arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.34890cs.SEcs.AIcs.LG
收藏

AIPC:面向PyTorch项目部署的证据引导智能体工作流

AIPC: Evidence-Guided Agent Workflows for PyTorch Project Deployment

Qualcomm Technologies, Inc.(高通技术有限公司)

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

AI总结:

提出AIPC智能体方法,结合结构化技能与多维度证据实现PyTorch推理项目的跨层部署优化,在高通QAIRT设备端NPU上针对多类模型验证其性能与精度优势,部分运行实现零人工干预。

摘要:

在专用加速器(尤其是设备端NPU)上部署和优化PyTorch推理项目,仅使用CUDA这类框架设备API是不够的,项目必须转换为硬件运行时工件,并适配目标工具链和应用程序接口。模型格式、量化流程、算子支持及工具链接口的差异,会产生跨越PyTorch/ONNX模型、工具链、运行时和设备执行的跨层问题。大语言模型(LLM)智能体可调用工具解决此类问题,但可能因领域知识不足、配置与修复空间过大或路径选择不佳而出现偏差。我们提出AIPC(AI Porting & Conversion,AI移植与转换),一种用于部署PyTorch推理项目的智能体方法。AIPC将结构化技能与工具链、运行时及 profiling(性能分析)证据相结合,驱动跨层诊断与修复,将模型适配、工件构建、目标设备执行、精度修复和性能优化整合为一个部署流程。我们在高通(Qualcomm)QAIRT的设备端NPU路径上,针对视觉、语音、大语言模型(LLM)和扩散模型评估AIPC。在两个优化案例中,6/7次Skill-arm Whisper-Small运行满足预设的精度和延迟标准,而对照组的6次运行均未达标;YOLO-Worldv2实现了2.791倍的端到端加速,对照组仅为1.599倍。在预定义的部署契约、技能、工具权限和检查条件下,部分运行实现了零人工干预(0-HITL)。我们还研究了Qwen3.8-27B作为可本地部署的模型,用于驱动智能体工作流。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑