AIPC: Evidence-Guided Agent Workflows for PyTorch Project Deployment
Zhanwei Wu, Jianhao Su, Brian Zhang, ShengTing Huang, Weidong Feng, Gang Liu, Zhiguo Li, Wei Huang, Li Tan, Wanjun Li, Zejiong Teng, Changgeng Zhong, Guanping Wu, Han-Hsing Tu
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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI, cs.LG
Related papers
AEGIS: Evidence-Guided Set Decisions for Requirement-to-Code Traceability
Shared title terminologycs.SEZhiyao Wang, Yiming Peng, Munan Li et al.
Automated Safety Analysis for Agentic Workflows
Shared title terminologycs.SEYanju Chen, Ying Li, Bosi Zhang et al.
SWE-growth: Teacher-Guided Adaptive Self-Play for Software Engineering Agents
Shared title terminologycs.SESongshi Liang, Zixuan Huang, Mingxuan Song et al.
Mind the Gap: A Deployed Multi-Agent System for Documentation Maintenance
Shared title terminologycs.SELorenzo Masoero
Agent Trajectories as Evidence for Software Quality Assurance
Shared title terminologycs.SEJonathan Ullrich, Julien Siebert, Michael Kläs et al.
Toward an Evidence-Based Template for Agent Instruction Files: An Empirical Study of Adoption, Consistency, and Maintenance
Shared title terminologycs.SEMehedi Hasan Shanto, Md. Anaytul Islam, Muhammad Asaduzzaman et al.