Manuscript Offprint

arXiv:2610.34890

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zhanwei Wu1,∗^{1,*},†, Jianhao Su1,∗^{1,*}, Brian Zhang1,∗^{1,*}, ShengTing Huang1^{1}, Weidong Feng1^{1}, Gang Liu1^{1}, Zhiguo Li1^{1}, Wei Huang1^{1}, Li Tan1^{1}, Wanjun Li1^{1}, Zejiong Teng1^{1}, Changgeng Zhong1^{1}, Guanping Wu1^{1}, Han-Hsing Tu2^{2}

1^{1}Qualcomm Technologies, Inc. 2^{2}Independent Researcher

Abstract—Deploying and optimizing a PyTorch inference project on a dedicated accelerator, especially an on-device NPU, usually cannot be done through the framework's device API alone as with CUDA; the project must also be converted into hardware-runtime artifacts and adapted to the target toolchain and application interface. Platforms differ in model formats, quantization flows, operator support, and toolchain interfaces, so model adaptation, numerical correctness, and hardware performance problems often have to be located, repaired, and rechecked back and forth across the model (PyTorch/ONNX), toolchain, runtime, and device-execution layers. LLM Agents can invoke tools to handle such cross-layer faults, but without project constraints they may still drift off task because of insufficient domain knowledge, an overly large space of configuration and repair choices, or poor path selection.

To this end, 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, and organizes model adaptation, runtime 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, covering vision, speech, LLM, and diffusion models. In two optimization cases, AIPC's optimization knowledge and strategies guide the Agent to accuracy and performance gains: under the predefined accuracy and latency criteria, 6/7 Skill arm Whisper-Small runs meet all criteria versus 0/6 in the control arm; YOLO-Worldv2 reaches an end-to-end speedup of 2.791×2.791\times (control arm 1.599×1.599\times). Under a pre-fixed deployment contract, AIPC Skill, tool permissions, and check conditions, some runs achieved zero in-run human intervention (0-HITL). We also run an auxiliary experiment to examine the ability of Qwen3.8-27B, a model capable of local deployment, to drive an Agent workflow.

Index Terms—PyTorch project deployment, on-device AI deployment, LLM Agent, model conversion, model optimization, Qualcomm QAIRT, NPU inference

I. INTRODUCTION

References (39)