AIPC: Evidence-Guided Agent Workflows for PyTorch Project Deployment
Zhanwei Wu (Qualcomm Technologies, Inc), Jianhao Su (Qualcomm Technologies, Inc), Brian Zhang (Qualcomm Technologies, Inc), ShengTing Huang (Qualcomm Technologies, Inc),
Key points
From the paper's conclusion- We propose AIPC (AI Porting & Conversion), an Agent method for deploying PyTorch inference projects.
Abstract
Deploying and optimizing a PyTorch inference project on a dedicated accelerator, especially an on-device NPU, requires more than using a framework device API as with CUDA. The project must be converted into hardware-runtime artifacts and adapted to the target toolchain and application interface. Differences in model formats, quantization flows, operator support, and toolchain interfaces create cross-layer problems spanning PyTorch/ONNX models, toolchains, runtimes, and device execution. LLM Agents can invoke tools to address such problems, but may drift because of insufficient domain knowledge, large configuration and repair spaces, or poor path selection. We propose AIPC (AI Porting & Conversion), an Agent method for deploying PyTorch inference projects. AIPC combines structured Skills with toolchain, runtime, and profiling evidence to drive cross-layer diagnosis and repair, organizing model adaptation, artifact building, on-target execution, accuracy repair, and performance optimization into one deployment flow. We evaluate AIPC on the on-device NPU path of Qualcomm QAIRT across vision, speech, LLM, and diffusion models. In two optimization cases, 6/7 Skill-arm Whisper-Small runs meet predefined accuracy and latency criteria versus 0/6 control runs, while YOLO-Worldv2 achieves a 2.791x end-to-end speedup versus 1.599x for the control. Under a pre-fixed deployment contract, Skill, tool permissions, and check conditions, some runs achieve zero in-run human intervention (0-HITL). We also examine Qwen3.8-27B as a locally deployable model for driving an Agent workflow.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware AbilitiesarXiv · 2026
- AgentDP: Towards Automated Model Deployment for Heterogeneous Embedded AI ApplicationsarXiv · 2026
- TrainBridge: Agentic NPU Training Optimization Guided by GPU Compilation EvidencearXiv · 2026
- Characterization of machine learning compilers for LLM inference on NVIDIA GPUsThe Journal of Supercomputing · 2026
- Agentic Design Space Exploration for Joint Hardware Configuration Selection and Mapping of AI Inference Workloads on Heterogeneous Edge SoCsarXiv · 2026
- KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel OptimizationarXiv · 2026