Axolotl 0.20.0 release notes
Axolotl 0.20.0 was released on September 30, 2026. The latest version is 0.21.1.
Release notes
Axolotl v0.20.0 Release Notes
There has been 67 commits since v0.19.0 (September 10, 2026).
We have added a bunch of features including GGUF export, Ringmaster context parallelism, native NVFP4 LoRA, and expert parallelism without DeepEP. Python 3.12 and torch 2.13.0 are now the minimums, and FSDP1 is removed.
Highlights
GGUF Export
You can now convert a trained checkpoint to GGUF for llama.cpp, Ollama, LM Studio, and llamafile with axolotl export config.yml --quantize Q4_K_M,Q8_0, which emits the base conversion plus one file per requested quant type.
- Contributed by @ved1beta in #3950.
Context Parallelism with Ringmaster
You can now train long-context runs with packed sequences under Ulysses, Ring, or USP context parallelism, with experimental support for recurrent layers (GDN, KDA, Mamba2) that carry state across shards.
Setting context_parallel_size, or a context_parallel: block to pick the backend and Ulysses/Ring sizes, enables it without a plugins: entry; install with pip install axolotl[ringmaster]. examples/distributed-parallel/llama3-8b-ringmaster-cp.yaml pairs it with FSDP2. See the guide.
- Contributed by @winglian in #3844 and #4053.
Native NVFP4 LoRA with Merge-Aware Training
You can now LoRA-train on a frozen native NVFP4 base under FSDP2, DeepSpeed ZeRO-1/2/3, or tensor parallelism, and the merged checkpoint matches what you trained: the forward runs on the same quantized base-plus-adapter weight that axolotl merge-lora writes.
Merge-aware training is on by default for supported ModelOpt/SonicMoE and native TorchAO paths, and nvfp4_merge_aware: false opts out. See the guide.
- Contributed by @winglian in #4045, #4044, and #4035.
Expert Parallelism Without DeepEP
You can now run expert parallelism on any GPU setup through a plain all_to_all backend, and compose it with FSDP2, HSDP, and context parallelism for full-parameter or LoRA MoE training at node scale.
expert_parallel_backend: auto uses DeepEP when installed and the torch backend otherwise, and expert_parallel_dispatch_chunks overlaps dispatch with the expert GEMMs. EP now requires fsdp_version: 2 with state_dict_type: FULL_STATE_DICT, and EP with tensor parallelism is rejected. See the guide.
- Contributed by @winglian in #4070.
CPU-Staged NF4 Loading for FSDP2 QLoRA
You can now load an FSDP2 QLoRA run without the load-time GPU OOM: rank zero stages and quantizes the NF4 weights on CPU and distributes the shards, and bitsandbytes quantization is chunked so tensors above the int32 element limit no longer fail.
qlora_sharded_model_loading now defaults on for FSDP2 QLoRA with cpu_ram_efficient_loading, and nf4_backend: torchao selects torchao's NF4Tensor as an alternative to bitsandbytes, MoE experts included. Prequantized bitsandbytes 4-bit checkpoints also load this way, and their adapters merge to a bf16 base. See the guide.
- Contributed by @winglian in #4003, #4023, and #4027.
Remote Training on More Clouds
You can now launch axolotl train --cloud on Baseten and, experimentally, Nebius Serverless Jobs alongside Modal, and new providers can ship as plugins through the axolotl.cloud_providers entry point.
Set provider: in your cloud config, plus image or image_build to run a prebuilt or locally built image. See the docs. Hugging Face Jobs has its own guide.
- Contributed by @winglian in #4028, @SalikovAlex in #3994, and @davanstrien in #4042.
Nemotron-3 LatentMoE on the MoE Expert Kernels
You can now LoRA-train nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 through ScatterMoE or SonicMoE. Nemotron-3's experts are non-gated relu² in moe_latent_size width, which both kernels previously rejected outright.
The routed experts stay packed NVFP4 while the rest of the model dequantizes to bf16 at load. Config: examples/nemotron-h/super-120b-a12b-nvfp4-lora.yaml. See the support matrix.
- Contributed by @winglian in #3866.
Weighted Data Mixing
You can now downweight a large corpus without materializing a pre-mixed dataset: a weight in (0, 1.0] on an SFT dataset entry shuffles and subsamples it to weight * len(dataset) examples before tokenization.
The weight is folded into the dataset fingerprint, so caches are not reused across different mixes. Streaming datasets are not subsampled and warn at validation.
- Contributed by @madScientist10 and @winglian in #3690.
New Features
- MixLoRA (#3535 by @OnePunchMonk):
adapter: mixlorawith theMixLoraPluginturns each FFN of a dense model into a routed mixture of LoRA experts, set bymixlora_num_expertsandmixlora_top_k. - Dynamic Fine-Tuning (#4008 by @ved1beta):
use_dft: truereweights each token's cross-entropy by its own detached probability, per Wu et al., 2025. - SCAO optimizer (#3624 by @whispering3):
optimizer: scaoafterpip install scao. - FLA backend for Mamba and Mamba2 (#4053, #4058 by @winglian):
model_config.mamba_backend: flaswaps in FLA mixers for full fine-tuning and LoRA onin_proj/out_proj, with packing and context parallelism. Transformers stays the default. See the guide. - Nemotron-H and native NVFP4 on the LoRA kernels, with FP32 LoRA gradients (#4032 by @winglian): the optimized LoRA projections now cover Nemotron-H attention and ReLU² MLPs and native weight-only NVFP4 bases, and opt-in
lora_fp32_gradientskeeps LoRA parameters and gradients in fp32 across single-device, DDP, FSDP2, and DeepSpeed. See the docs. - Sample packing for Mamba, Mamba2, and Falcon-Mamba (#4030, #4034 by @winglian): packing now works on the Hugging Face checkpoints, with recurrent and convolution state reset at document boundaries, and Mamba1 packs without
causal_conv1dinstalled. - Liger and fused attention for GLM-4.7-Flash (#4029 by @winglian): Liger RoPE, RMSNorm, and SwiGLU (dense and shared-expert MLPs), and
fused_attn_kernelfuses partial RoPE with the MLA Q/K/V assembly. - Selective activation checkpointing save rules and FSDP2 x TP (#4070 by @winglian):
save_modulesandsave_matmul_min_kchoose what selective checkpointing keeps, and FSDP2 with tensor parallelism works again on accelerate 1.15 / transformers 5.17. See the docs. - CCE fp32 and chunked classifier-gradient accumulation (#4037 by @winglian):
cut_cross_entropy_accum_c_fp32accumulates thelm_headgradient in fp32 for large vocabularies, andcut_cross_entropy_c_grad_chunk_size: autobounds that fp32 buffer to cut peak memory. - Dynamic work queue for dataset tokenization (#3460 by @Nero10578): with
dataset_num_proc > 1, workers now pull chunks of examples as they finish instead ofdatasets.map's fixed shards, so a few long examples no longer leave the rest of the pool idle. - Telemetry reports real final loss and learning rate (#3997 by @winglian): metrics are now carried forward across log entries, so runs no longer report 0 when evaluation or partial logs land after the training log. See the telemetry docs.
Documentation
- Dead links and a wrong anchor fixed across the Ministral and Mistral Small READMEs,
docs/export.qmd, and the FAQ (#4015 by @simpleqt), plus a duplicated word in therope_scalingdeprecation warning (#4014 by @simpleqt). - Dead cloud-provider links in the installation guide fixed (#4065 by @pratikgx).
- Nebius Serverless guide reorganized around setup, a first run, logs, outputs, and resume (#4040 by @SalikovAlex).
Model & Framework Support
🚨 Deprecations
- Python 3.12 and torch 2.13.0 are the new minimums (#4036, #4043 by @winglian):
requires-pythonmoves from 3.10 to 3.12 and torch from 2.11.0 to 2.13.0, since the Hub kernel builder only publishes builds for the latest two torch releases. Docker builds and CI now cover torch 2.13.0 and 2.14.0 (#4005 by @winglian, #4036), with Python 3.14 added to the test matrix. - FSDP1 removed (#4024 by @winglian): FSDP2 is the default and the only supported version, following its deprecation in transformers.
fsdp_version: 1, the top-levelfsdplist,sharding_strategy(usereshard_after_forward), andforward_prefetchnow raise, while other FSDP1-only options such assync_module_statesanduse_orig_paramsare dropped with a warning. See the migration guide. ring-flash-attnextra replaced byringmaster(#3844 by @winglian): installaxolotl[ringmaster]for context parallelism.ring_attn_funcandheads_k_strideare now ignored with a warning.- Legacy
MambaLMHeadModelloading removed (#4030 by @winglian): rawmamba_ssmcheckpoints such asstate-spaces/mamba-2.8bwithmodel_type: MambaLMHeadModelno longer load. Use Hugging Face format checkpoints (e.g.state-spaces/mamba-130m-hf) instead. - Modal is now an optional extra (#4028 by @winglian):
modalmoved out of the core dependencies, so Modal cloud users needpip install axolotl[modal](Baseten usesaxolotl[baseten]). - PRM requires
trl<=1.13.0(#4017 by @NanoCode012): TRL removedtrl.experimental.prm, so constructing a PRM trainer without it now raises with the pin to install instead of failing at import time. See the reward modelling docs.
New Model Support
- MiniCPM5, Nex-N2.5-mini, and Qwen3.6 (#4013 by @ved1beta): examples for MiniCPM5-2B (Llama architecture), Nex-N2.5-mini (Qwen3.5-MoE based, with vision), and Qwen3.6-35B-A3B.
- IFM K2-Horizon (#3989 by @ved1beta): the dense 0.9B/3.7B/7B/32B checkpoints and the MoVA sparse-MoE variants, with sample packing, trained through the checkpoints' remote code (
trust_remote_code: truerequired).examples/k2-horizon/ships a 7B LoRA and a MoVA-36B-A4B QLoRA + FSDP2 config. CCE, Liger, and the LoRA QKV/O kernels are unsupported for this architecture. - Nemotron-3 LatentMoE (#3866 by @winglian): see Highlights.
- ERNIE-4.5 SFT example (#3984 by @ved1beta): an
examples/ernie4_5/0.3b-sft.yamlconfig for the 0.3B checkpoint.
Dependency Updates
- transformers 5.16.1 → 5.17.0, accelerate 1.13.0 → 1.15.0, huggingface_hub 1.17.0 → 1.18.0, torchao 0.17.0 → 0.18.0, and the torch ceiling raised to 2.14.0 (#4000 by @winglian), with NVFP4 quantization API fixes for the torchao bump, the liger Jamba and Qwen3.5 vendored forwards refreshed, and the FA2 hub-kernel v2 pin from #3968 dropped.
- trl 1.9.0 → 1.13.0 (#4017 by @NanoCode012).
- peft 0.20.0 → 0.21.0 (#4012 by @NanoCode012), which fixes LoRA+ learning rates on embedding layers.
- deepspeed ceiling raised to <0.20.0 (#4043 by @winglian).
- New extras:
ringmaster(axolotl-ringmaster>=0.2.2) andfla(flash-linear-attention 0.5.2, TileLang 0.1.14) (#3844, #4053 by @winglian),modalandbaseten(#4028 by @winglian), andkernels-curated(#4060 by @winglian). - cut-cross-entropy pin bumped to 3574df5 against transformers 5.17 (#3999 by @NanoCode012), then switched to track the fork's
latesttag (#4037 by @winglian).
Bug Fixes
- Gradient accumulation was mis-normalized on some models (#3982 by @WatchTree-19)
- Kimi-Linear packing leaked recurrent state across documents (#4030 by @winglian): state now resets at document boundaries. Qwen3 Next and Qwen3.5 also fall back to a dense convolution when
causal_conv1dis not installed. - MoE quantization cache hooks leaked under checkpointing (#3915 by @pjordanandrsn): with
use_reentrant: false, the hook that re-disables torch's parametrization cache was skipped whenever backward recompute aborted mid-forward, leaving every dequantized expert pinned for the rest of training. It presents as a step-1 OOM rather than a memory ramp, and it fires on paths that pickuse_reentrant: falsefor you, including anyrl:run andgemma4. - NF4 merge and adapter-mapping follow-ups (#4023 by @winglian):
axolotl merge-loranow handles nested, transposed, fused, and renamed quantized parameters, ambiguous or mismatched adapter mappings raise instead of silently skipping, 4-bit block sizes other than 64 now raise, and the HF cache extraction directory is created before download. - Embedding dtype and checkpoint saving under FSDP LoRA/QLoRA (#4024, #4027 by @winglian): PEFT's k-bit preparation no longer upcasts the model's own embedding modules.
- Quantized weights were re-initialized at load (#4018 by @NanoCode012): parametrized quantized weights (NF4, load-time MoE quantization) were reported as missing keys and wastefully re-initialized. Reported by Hamid Shojanazeri.
- LoRA+ ignored
weight_decay(#4011 by @yupengtang): it was never forwarded to PEFT asloraplus_weight_decay, so every LoRA+ run trained withweight_decay=0.0regardless of config (fixes #4010). - LoRA+ embedding learning rate and resume (#4012 by @NanoCode012): the LoRA+ learning rate was not applied to embeddings (fixed upstream in peft 0.21.0), and resuming restored the checkpoint's weight decay over the configured one.
- Async GRPO crashed on the TRL 1.9 signature (#3976 by @rickkosse):
use_data_producer: truewithasync_prefetch: trueraisedTypeErroron the warmup rollout becauseAsyncGRPOTrainerhad a stale logps signature (fixes #3971). - CLI commands rejected HTTPS config URLs that the docs say are supported (#4048 by @SIDDARTHAREDDY8, fixes #4041).
- Multi-LoRA and offloading fixes (#4035 by @winglian): CCE and Liger no longer take over the multi-LoRA plugin's loss forward, activation offloading no longer copies FSDP2-gathered parameter views, and NVFP4 weights now reject activation quantization other than NVFP4.
- Multi-rank profiler snapshots overwrote each other (#4057 by @winglian).
- Tokens-per-second counters were not restored on auto-resume (#3941 by @Anai-Guo, fixes #3940):
include_tkpsnow resolves the checkpoint thatauto_resume_from_checkpointspicks. - Gradient-checkpointing offload and AMP kernels hardcoded CUDA (#3995 by @li-lizhe): they now use the active accelerator, so they run on non-CUDA backends such as Ascend NPU.
- huggingface_hub 1.x errors slipped past error handling (#4068 by @David-Wu1119, #4073 by @NanoCode012): a missing GRPO reward model again raises the intended "not found" error, and the token check catches hub network errors.
Infrastructure
- torch 2.14.0 (#4004, #4005 by @winglian): a 2.14.0 uv base image, with 2.14.0 added to the docker build, nightly, and test matrices. Multi-GPU e2e gains a CUDA 13.0 / Python 3.12 / torch 2.13.0 two-GPU row.
- Dedicated two-B200 NVFP4 CI job (#4045 by @winglian), and the
modalextra installed in the CI docker image (#4031 by @winglian). - CI and test upkeep: Hub kernel prefetch and longer multi-GPU timeouts (#4056, #4060 by @winglian), NF4 failure-propagation timing and LoRA-on-
lm_headunder CCE coverage (#4033, #4038 by @winglian), docs publish and lint moved to Python 3.12 (#4066 by @NanoCode012), the trainer builder test fixture using default adam betas (#4016 by @NanoCode012), a lint failure (#4021 by @NanoCode012), and version set to 0.20.0.dev0 (#3993 by @NanoCode012). - GitHub Actions bumps by @dependabot: astral-sh/setup-uv 10.0.1 → 10.1.0 (#4019, #4051), docker/setup-buildx-action 4.3.0 → 4.4.1 (#4049), codecov/codecov-action 7.0.0 → 7.1.1 (#4050), and docker/build-push-action 7.3.0 → 7.4.0 (#4052).
New Contributors
- @WatchTree-19 made their first contribution in #3982
- @pjordanandrsn made their first contribution in #3915
- @rickkosse made their first contribution in #3976
- @yupengtang made their first contribution in #4011
- @SalikovAlex made their first contribution in #3994
- @davanstrien made their first contribution in #4042
- @SIDDARTHAREDDY8 made their first contribution in #4048
- @David-Wu1119 made their first contribution in #4068
- @pratikgx made their first contribution in #4065
- @li-lizhe made their first contribution in #3995
- @whispering3 made their first contribution in #3624
Full Changelog: https://github.com/axolotl-ai-cloud/axolotl/compare/v0.19.0...v0.20.0
Source: GitHub release v0.20.0