MindSpeed
MindSpeed is a high-performance acceleration library built for the Ascend platform. It provides training suites and acceleration libraries for different types of large models, such as LLM, MM, and Omni, and supports the Megatron and FSDP2 backends. It helps developers understand the MindSpeed training acceleration suite and learn how to develop and optimize models based on it.
MindSpeed Key Features
- MindSpeed LLM: Provides support for GLM-5.2 model training and DeepSeek-V4 long-sequence training, with the weight/data consolidation feature covering all models to significantly improve model training capabilities.
- MindSpeed MM: Provides support for the Kimi-K3, GLM-5.3 NEXT, and MiniMax M3 models.
- MindSpeed Bridge: An Ascend large model suite for the Bridge solution. It supports Kimi-K3 multimodal model training and adaptation, and adds sequence packing and context parallelism for Qwen3.5-VL, fused operators and packed TND training for GLM-5/GLM-5.2, and MoE permute fusion and preloaded VLM dataset shuffle control.
- TransformerEngineNPU: Adapted to the native TransformerEngine, it reuses the upstream APIs to carry low-precision strategies such as FP8, MXFP8, HIF8, and W4A8 through fused modules and autocast quantization contexts, and extends features such as MoE routing fusion, CPU offload, swap-based context parallel attention, and the FusedAdam optimizer.
- MegatronAdaptor: An Ascend adaptation plugin library for Megatron. Its built-in features cover basic running environment adaptation, Megatron basic adaptation, NPU profiling, NPU data dump accuracy comparison, and NPU deterministic computing.
- FSDPTurbo: An Ascend large model acceleration library for the FSDP solution. It supports free combinations of multi-dimensional parallelism such as FSDP, TP, EP, EFSDP, and CP, balancing training throughput and cluster scalability and easily supporting long-sequence training. It also provides memory optimization methods such as activation recomputation, batch chunking, and swap of activation values and optimizer states, as well as MXFP8 and W8A16 low-bit quantization acceleration, enabling you to train larger models with less memory and at lower cost.
- MindSpeed Core: An Ascend large model acceleration library for the Megatron solution. MindSpeed Core is adapted to Megatron-LM core v0.18.0, decoupling MindSpeed, MegatronAdaptor, and TransformerEngineNPU, and adds a get_batch configuration cache to reduce the overhead of repeated configuration parsing.
- MindSpeed Ops: A custom fused operator library for Ascend training. It integrates multiple Ascend operator development paradigms with unified API signatures. The backend supports Triton, TileLang, AscendC, and CATLASS, and it is optimized separately for the two generations of architectures used by
Atlas A3 training products andAscend 950PR&950DT products .
MindSpeed Documentation
Release and Installation |
|---|
MindSpeed LLM |
|---|
MindSpeed MM |
|---|
MindSpeed Bridge |
|---|
TransformerEngineNPU |
|---|