[[["เข้าใจง่าย","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/)."]]