Accelerating Transformers Fine-Tuning with NVIDIA NeMo AutoModel
18:00 · June 24, 2026 · Hugging Face Blog

Summary
NVIDIA NeMo AutoModel is an open-source component of the NVIDIA NeMo framework that extends Hugging Face Transformers v5 to improve fine-tuning of mixture-of-experts models. It subclasses AutoModelForCausalLM and layers three targeted optimizations on top of v5’s existing MoE support: Expert Parallelism to shard expert weights across GPUs, DeepEP fused all-to-all kernels that overlap token dispatch with expert computation, and TransformerEngine attention and linear kernels. These additions address the memory and communication bottlenecks that arise when routing tokens across hundreds of experts at scale.
The library preserves the standard Hugging Face loading interface. Users change only the import statement; the from_pretrained call accepts the same arguments and can accept a PyTorch DeviceMesh for distributed setups. The resulting model remains compatible with save_pretrained, which writes standard safetensors checkpoints usable by inference engines such as vLLM and SGLang. For supported architectures the library supplies hand-tuned implementations; for others it falls back to the base v5 path while still applying available kernel patches.
Benchmarks illustrate the practical impact. On single-node 8×H100 runs, Qwen3-30B-A3B and Nemotron 3 Nano 30B-A3B show 3.4–3.7× higher throughput and 29–32 % lower peak memory relative to the best Transformers v5 configuration. At frontier scale, full-parameter fine-tuning of the 550 B Nemotron 3 Ultra hybrid model across 16 nodes becomes feasible only because Expert Parallelism reduces the per-GPU expert footprint enough to stay within H100 memory limits; native v5 runs out of memory under the same conditions.
The performance gains come from three complementary mechanisms. Expert Parallelism distributes expert parameters along a dedicated moe_mesh, cutting expert memory by the expert-parallel degree. DeepEP replaces separate collectives with fused dispatch kernels that hide communication latency behind grouped matrix multiplications. TransformerEngine supplies fused attention, linear, and normalization kernels that accelerate both MoE and non-MoE layers. Together these changes let practitioners move from data-parallel v5 runs to combined expert- and data-parallel configurations without rewriting model code.
Why it matters
Directly addresses hands-on tooling for ML engineers with specific algorithmic optimizations, benchmarks, and implementation patterns for large-scale MoE fine-tuning that Dutch AI practitioners can apply immediately.




