Ascend/pytorch
As the core component of the Huawei Ascend for PyTorch community, TorchNPU is a deep learning adapter plugin built by Ascend for PyTorch, enabling the PyTorch framework to directly invoke Ascend NPU and providing developers with the powerful compute capabilities of Ascend AI processors.
What it solves
TorchNPU enables the PyTorch framework to directly run on Huawei Ascend NPUs, bridging standard machine learning workflows with specialized Ascend AI processors.
How it works
It acts as an adapter plugin that integrates operators and device resources into PyTorch through PrivateUse1. The software provides basic compute capabilities, distributed training acceleration via communication primitives, graph mode optimization through dynamic graph capture and static graph compilation, and tools for debugging, profiling, and performance tuning.
Who it’s for
This project is intended for AI developers, researchers, and engineers who want to train and run machine learning models using PyTorch on Huawei Ascend hardware.
Highlights
- Basic compute support covering mainstream AI scenarios with native and custom APIs.
- Distributed training acceleration supporting FSDP2, DTensor, and collective/point-to-point communication primitives.
- Graph mode execution via dynamic graph capture, static graph optimization, and NPUGraph offloading.
- Built-in debugging and tuning capabilities including profiling and WatchDog communication anomaly monitoring.
Related
- Project
- Project
- Project
- Project
- Project