MindSpore Backend
Support Overview
MindSpeed LLM now supports integration with Huawei's in-house AI framework MindSpore. It aims to provide an easy-to-use end-to-end large language model training solution across Huawei's full stack and deliver a more extreme performance experience. The MindSpore backend provides a set of APIs that align with PyTorch. Therefore, you can switch seamlessly without additional code adaptation.
News
🚀🚀🚀The MindSpore backend now supports DeepSeek-V3/Qwen3/GLM-4.5! 🚀🚀🚀
Version Compatibility Table
The dependency compatibility for MindSpeed LLM plus the MindSpore backend is listed below. For installation steps, see MindSpeed LLM Installation Guide.
| Dependency |
Version |
| Ascend NPU driver |
In development |
| Ascend NPU firmware |
| Toolkit |
CANN 8.5.0 |
| Kernel |
| Ascend Transformer Boost acceleration library (NNAL) |
| Python |
3.10 |
| MindSpore |
2.8.0 |
Note: The master branch uses development versions of the driver and CANN package. Therefore, some new features on master may not be supported by older dependency versions. To use a stable version, switch to the commercial release branch and install the corresponding dependency versions.
Model Support
The MindSpore backend only supports models implemented in mcore. The current model support details are listed below, and support for more models will be added gradually.
Feature Support
The following table shows support for the key acceleration features of MindSpeed on the MindSpore backend. Some unsupported features will be added in later iterations. Stay tuned.
Online Inference
Open Dataset Evaluation
Coming soon. Stay tuned.
Data Preprocessing
The MindSpore backend fully supports data preprocessing for MindSpeed LLM pretraining, supervised fine-tuning, RLHF, and other tasks.
Weight Conversion
The weight conversion for the MindSpeed MindSpore backend is consistent with the PyTorch backend. It currently supports mutual conversion between Hugging Face and Megatron-Core weight formats. For the weight conversion parameters and usage, see Weight Conversion.
| Source Format |
Target Format |
Sharding Features |
LoRA |
Contributor |
| huggingface |
megatron-core |
tp, pp, dpp, vpp, cp, ep, loop layer |
❌ |
【Ascend】 |
| megatron-core |
huggingface |
|
✅ |
| megatron-core |
tp, pp, dpp, vpp, cp, ep, loop layer |
❌ |
High Availability