AI Edge Torch Generative AI
API
היא ספרייה מותאמת לניידים להמרת מודלים של PyTorch שמבוססים על טרנספורמרים
בפורמט LiteRT, מה שמאפשר להמיר מודלים גדולים של שפה (LLMs)
יצירת תמונות וטקסט במכשיר באמצעות LiteRT ו-MediaPipe. נכון לעכשיו, AI Edge Torch Generative Generative API, עם תמיכה מתוכננת ב-GPU וב-NPU.
מפתחי אפליקציות לנייד יכולים להשתמש ב-API הגנרטיבי של Edge כדי לשלב מודלים מסוג PyTorch LLM
בעזרת הסקת מסקנות מ-MediaPipe LLM
API כדי ליצור אפליקציות
להריץ את המודלים של PyTorch שעברו המרה לגמרי במכשיר.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-24 (שעון UTC)."],[],[],null,["# Convert generative PyTorch models\n\nThe [AI Edge Torch Generative\nAPI](https://github.com/google-ai-edge/ai-edge-torch/tree/main/ai_edge_torch/generative/)\nis a mobile-optimized library for converting transformer-based PyTorch models to\nthe LiteRT format, enabling you to convert Large Language Models (LLMs) for\non-device image and text generation with LiteRT and MediaPipe. The AI Edge Torch Generative API is currently CPU-only, with planned GPU and NPU support.\n\nMobile app developers can use the Edge Generative API to integrate PyTorch LLMs\nwith the [MediaPipe LLM Inference\nAPI](../../mediapipe/solutions/genai/llm_inference/index) to create apps that\nrun those converted PyTorch models completely on-device.\n\nFor more information, see the Generative Torch API [GitHub\nrepo](https://github.com/google-ai-edge/ai-edge-torch/tree/main/ai_edge_torch/generative/)."]]