Skip to content

Halo 1.2.0: pipeline parallelism, faster training and Nemotron 3.5

Latest

Choose a tag to compare

@hivaze hivaze released this 04 Nov 19:59
3e95647

Halo 1.2.0 trains faster than 1.1.0 on all twelve SFT shapes we benchmarked, from 1.11× to 2.07× by wall clock at batch 1 with gradient checkpointing on, most of all under tensor and expert-tensor parallelism, and on ten of them peak allocated memory falls or stays within 0.07 GiB. New kernels for DSA attention and hyper-connections take GLM-5.3-Flash's LoRA setup to 2.22× at 8,192 tokens and 2.68× on rows of about 15,500 against the build before them. It adds pipeline parallelism, NVIDIA's Nemotron 3.5 Super VL and Lightning, SFT training for the multi-token-prediction (MTP) heads that Qwen, GLM and Nemotron releases ship, and tree packing for SFT. Qwen3-Next now trains under expert parallelism, and Qwen3.8-Flash-Next is added as experimental. The stack moves to transformers 5.20, TRL 1.14 and Liger 0.8.4, RL rollouts run on vLLM 0.32 or SGLang 0.5.22, and the import package is now halo instead of src.

The release also fixes bugs that gave wrong results with no error, among them PaliGemma training without a causal mask, FSDP2 under reentrant checkpointing dropping the gradients of a layer run more than once per backward, adapters in most vision towers staying at init under reentrant checkpointing, and accelerate's fsdp2_full_config.yaml leaving the frozen reference and teacher models zero on most ranks. The trainer now reads each rollout server at startup and refuses one that would train or serve wrong.

Upgrading takes renames in Python code, scripts and tool flags, one renamed YAML key, config values that are now refused, and the 1.2.0 rollout images. MIGRATION-1.2.0.md, attached to this release, is the full upgrade checklist and maps every renamed class, script, tool flag and module.

Highlights

  • Throughput against 1.1.0. On 8× B300 at batch 1 with gradient checkpointing on, over seeded uniform token ids and interleaved by wall clock, 1.2.0 leads on all twelve shapes, from 1.11× on Qwen3-8B under FSDP2 (15,490 against 13,935 tokens/s per GPU) through 1.82× at TP2 (7,013 against 3,861) to 2.07× on gpt-oss-20b at ep4 × etp2 (9,521 against 4,589). The 1.2.0 side is a release candidate, we have no like-for-like comparison at a larger batch, with checkpointing off or on real text, and the two Qwen3.5 rows also change attention from SDPA to FA4 (all twelve shapes). Rerun on a late 1.2.0 build, the eight shapes the band covers stay within 2% of these rates as medians of three on another machine, and their allocated peaks hold within 0.01 GiB, which puts ep4 × etp2 at 2.04× against the same 1.1.0 rate.
  • Peak memory against 1.1.0. Allocated peak falls or stays within 0.07 GiB on ten of the twelve shapes, falling most at ep2 (1.65 GiB) and ep8 × cp2 (1.60 GiB), and grows on FSDP2 (+0.36 GiB) and gpt-oss-20b at ep1 (+1.54 GiB), the cost of two decoder layers per shard group. Reserved memory moves differently, with ep1 up 6.09 GiB (69.73 to 75.82) and ep2 down 4.14 GiB (86.50 to 82.36).
  • GLM-5.3-Flash kernels. A DSA query reads about 1,800 to 1,900 keys, but on Blackwell torch's general mem-efficient kernel scored every key in the row with a backward costing 7.5× its forward, and hyper-connections ran stream-sized fp32 temporaries and a hundred-odd launches per Sinkhorn, so both now run on kernels of their own. The LoRA setup at ep8 on 8× B300, on rows of joined UltraChat exchanges, runs 2,840 tokens/s per GPU at 8,192 tokens against 1,282 and 2,390 against 893 on rows of about 15,500, with peaks unchanged at 133.0–133.5 and 175.6–176.8 GiB, and the recipe's own UltraChat rows are far shorter, so it reads lower on them. The full fine-tune on two 8-GPU machines, with checkpointing on, the same rows and one run of five steps per layout, runs 1,504 against 913 at ep16 and 2,423 against about 1,060 at pp2 × ep8. These pairs compare builds of 1.2.0, since no 1.1.0 row exists at this shape (GLM-5 Next).
  • FA4 and the attention default. With attn_implementation unset, 1.1.0 fell back to SDPA on Qwen3.5/3.6 and Qwen3-Next, and 1.2.0 takes FA4 on unpacked rows and FA2 on packed ones. On Qwen3.5-35B-A3B at ep8, on earlier 1.2.0 builds, unpacked FA4 reads 13,472 tokens/s per GPU against SDPA's 11,625 at 16k tokens over two rounds (+15.9%), and it runs 17.6% and 32.8% over FA2 at 16k and 32k in one round. Packed rows gain only 2.9% and 4.6% from FA4, so they stay on FA2, at 3.42× SDPA at 16k (14,852 against 4,348, two rounds) and 6.28× at 32k (16,454 against 2,618, one round), though only for runs that leave attention unset, as 1.1.0's packed recipes already pinned FA2.
  • Pipeline parallelism. Over a fast link between machines, where a model fits, PP does not beat data parallelism. Across two 8-GPU machines with checkpointing off, pp2 × dp8 runs 17,608 tokens/s per GPU against dp16's 18,337 on Qwen3-8B (−4.0%), and pp2 × ep8 runs 15,715 against 18,685 for ep8 on each machine with data parallelism on gpt-oss-20b (−15.9%). It does beat dp8 × tp2 (1.63×) and an ep16 group across both machines (3.82×), and on those machines forced onto plain TCP sockets, one run each, it holds 15,414 while dp16 falls to 1,117 (13.8×). It also pays where a model does not fit at ep8 on one machine. On GLM-5.3-Flash's full fine-tune, with checkpointing on, the same rows in every layout and one run of five steps each, ep8 with data parallelism runs out of memory in its first optimizer step, as the optimizer state of 40.2B trainable parameters per rank takes it to 250.5 GiB allocated and 263.5 reserved of the 267.7 the device offers before that state is fully built. ep16 takes 20.6 s per step (1,504 tokens/s per GPU, 214.1 GiB) and pp2 × ep8 takes 12.8 s (2,423, at 218.7 and 197.9 GiB), so PP leads by 1.61×, where before the kernels it led by 1.16× (about 1,060 against 913). Qwen3.5-35B-A3B fits either way, and there PP runs at 0.97× ep8 + DP (15,306 against 15,758) at 126.7 and 62.7 GiB against 148.7.
  • Nemotron 3.5 Super VL and Lightning. The family is new, so it has no 1.1.0 rate, and no row compares it with another MoE at the same shape. At ep8 on 8× B300, on builds of 1.2.0, Super VL's full fine-tune runs 3,054 tokens/s per rank at 8,192 tokens (168–169 GB allocated) and Lightning's 9,986 (51.2–51.6 GB), against 3,226 and 10,694 for their towers alone with no optimizer or reduce. The recipe rates include the optimizer and the FSDP2 reduce, and they say nothing about training quality.
  • Qwen3.5 and Qwen3.6 at full size. Qwen3.5-35B-A3B at ep8 runs 8,974 tokens/s per GPU at 4k tokens with a 41.63 GiB peak, 1.14× 1.1.0's 7,893, and 14,275 at 16k with 74.96 GiB, 1.23× 11,618. Those rows run on uniform ids at batch 1, so they say little about real text or longer rows. On real text at ep8, on rows of UltraChat exchanges joined to each length, Qwen3.6-35B runs 11,977 at 16,384 tokens (96.2 GiB), 10,643 at 32,768 (136.3 GiB) and 8,113 at 65,536 (217.2 GiB), and packing to 32,768 tokens gives 16,344, 1.54× the unpacked rate. The packed recipes at 33,000 tokens run about 17,200 on Qwen3.5-35B-A3B and about 17,100 on Qwen3.6-35B at 155.5 GiB, over 20 steps on a warm Triton cache, and on a fresh cache the first steps run far slower while kernels compile.
  • Weight sync. An unchanged weight push leaves every served log-prob bit-identical on all 40 cases. On Ling-mini-2.0 under vLLM 0.32, a push that left out the router's bias moved 1,907 of 2,010 served log-probs and took a tool task from 16 of 16 tool calls to 0 of 16, and carrying the bias brought it back. We did not re-run this on 1.1.0 or its engine.

Pipeline parallelism

Pipeline parallelism now runs for SFT, SMPO, DPO and KTO (both on precomputed reference log-probs, KTO with apo_zero_unpaired only), offline GRPO, Bradley-Terry reward and classification. Set pipeline_parallel_size, alone or with EP or pure ETP inside each stage, and FSDP2 data parallelism runs within the stage. Each stage spans whole NVLink domains, so a run needs at least two nodes at the default domain size and launches one torchrun per node.

Thirteen backbones are registered (model support), and other backbones, checkpoints with tied embeddings and every PEFT adapter are refused at startup, with PP with LoRA planned for 1.3.0. Released weights have run on four of the thirteen, the two shipped recipes (Qwen3-8B at pp2, gpt-oss-20b at pp2 × ep8), GLM-5.3-Flash, and 20 steps of Qwen3-30B-A3B at pp2 × ep4 on one machine with moe_balancing: none, whose losses stay within 0.12% of ep8. The others are tested on tiny models, where Qwen3-MoE, GLM-4 MoE Lite, Laguna and Inkling at ep2 and etp2 read a loss within 7.8e-7 (relative) of the unsplit model and a worst gradient cosine of at least 0.999169. Composite Qwen3.5 and 3.6 releases load for a stage through their text class under text_only_model: true, where Qwen3.5-2B and 4B ship tied embeddings and are refused. A save merges, takes its tower back and loads as the composite. Qwen3.8-Flash-Next and Nemotron 3.5 Super VL ran 13 steps with checkpointing on; with it off, the first step runs out of memory.

These rows ran across two 8-GPU machines on a late 1.2.0 build, with one stage per machine, 8 microbatches and the same tokens per step in every layout, in tokens/s per GPU over 10 steps with the highest rank's allocated peak. Each PP rate takes the matched run's attended tokens over the PP run's step time, which is how the other layouts count, because PP's logged rate counts every padded row.

  • Qwen3-8B at 4,096 tokens, checkpointing off: dp16 18,337 (42.2 GiB), pp2 × dp8 17,608 (41.3 GiB on one stage, 28.6 on the other), dp8 × tp2 10,780 (31.0 GiB).
  • Qwen3-8B at 4,096 tokens, checkpointing on: dp16 15,000 (24.5 GiB), pp2 × dp8 14,810 (22.1 and 20.7 GiB), dp8 × tp2 6,663 (20.5 GiB).
  • gpt-oss-20b at 8,192 tokens, checkpointing off: ep8 on each machine with data parallelism 18,685 (63.1 GiB), pp2 × ep8 15,715 (53.3 and 28.5 GiB), ep16 across both machines 4,115 (60.9 GiB).
  • gpt-oss-20b at 8,192 tokens, checkpointing on: ep8 with data parallelism 14,932 (39.0 GiB), pp2 × ep8 12,796 (25.9 and 18.0 GiB), ep16 3,806 (31.1 GiB).

With checkpointing on, PP runs 1.3% behind dp16 and 14.3% behind ep8 with data parallelism. Checkpointing off gains PP 18.9% on Qwen3-8B and 22.8% on gpt-oss-20b at 1.87× and 2.06× the allocated peak, so both recipes train with it off.

On one machine, on the same code with checkpointing off on both sides and one run each, pp2 × dp4 runs 19,537 against dp8's 21,359, and pp2 × ep4 runs 21,836 against ep8's 19,989 (+9.2%), a gain that comes from the smaller EP group, with both of those runs still rising through the measured window. Across two machines the Qwen3-8B recipe, with save_only_model: false, saved to each node's own storage, resumed with its optimizer restored and merged with merge_pp_stages.py into one checkpoint that from_pretrained loads (pipeline parallelism).

Nemotron 3.5 Super VL and Lightning

Nemotron-H is the eighteenth MoE family, with 40 Mamba-2, 40 MoE and 8 attention layers on Super VL's 120.7B text tower beside a C-RADIO vision tower. Lightning (nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16) is the 31.6B text class alone, with a recipe based on a pull request by MekkCyber. SFT trains the family with full fine-tuning or LoRA, on text or images, at ep8 with lazy loading, and SMPO, offline GRPO and self-distillation are supported, with DPO and KTO on text only. TP and CP are refused, EP+ETP and PP have run on tiny models, and online and async GRPO are refused because no online update into either engine has been validated.

The other Super VL recipes also ran at ep8 on 8× B300, on builds of this release, each for 5 to 20 steps, in tokens/s per rank with peak allocated memory across ranks (every recipe).

  • LoRA, 16,384 tokens: 3,000 (92–94 GB).
  • Full fine-tune, about 31,700 tokens: 3,221 (227–235 GB, top rank at 99.4% of the device).
  • Frozen experts, about 48,800 tokens: 3,246 (188–194 GB, top GPU at 99% of the device).
  • Images, about 6,790 tokens: 3,198 (168 GB).

Those rows mix LoRA, full and frozen-expert runs, but the tower alone reads the same, between 3,223 and 3,336 tokens/s per rank up to 50,000 tokens with experts frozen, because the Mamba scan sets the rate. The Mamba layers take 64.8% of Super VL's forward and backward at 8,192 tokens, while the scan is about 2–2.5% of the FLOPs by arithmetic, because it runs in fp32. Our cut of its per-group body from upstream's 34.7 ms to 31.8 ms, on one layer and one GPU, gains only 1.05× on a whole step by calculation.

Both models resume exactly at a 9-layer cut. Super VL's lazy load peaks at about 10 GiB of host memory per rank, where an eager load holds about 249 GB, and Lightning's at 4.1 GiB, and their exports reload in stock transformers at an NLL gap of 0.0013 and 0.0042. That reload keeps upstream's time-step floor while the run and both engines do not, which scores 0.05–0.09 nats better on real text on Super VL and 0.106 on Lightning, so a stock reload can check an export but does not compute what the run trained. The image recipe with a real save wrote 736 GiB with optimizer shards and resumed to step 2 (Nemotron-H).

MTP heads

mtp_loss_weight on the SFT script trains the head a family's release ships under FSDP2, EP, ETP and EP+ETP, on Qwen3.5/3.6, Qwen3.8-27B, Qwen3-Next, GLM-4 MoE Lite and Nemotron-H, and other tails are refused by name. mtp_train_scope picks joint, detached or head_only, mtp_loss_type picks hard or soft (following Soft-MTP), and a head_only fit exits non-zero when held-out acceptance ends below its first reading plus mtp_min_acceptance_gain. Four recipes ship, head_only for Qwen3.6-35B, GLM-4.7-Flash and Nemotron 3.5 Lightning and joint for Qwen3.6-35B, and at weight 0 nothing is built.

On builds of this release, on Qwen3.6-35B at ep8, a stale Qwen3.5 head starts at 0.776 held-out acceptance. At a learning rate of 1e-5 soft took it to 0.825, while hard peaked at 0.801 and the gate rejected it, and at 1e-6 hard held 0.807, where the release's own head starts at 0.819. No fit has shown a served gain. With one draft token the stale soft fit read 0.82–0.83 on vLLM and SGLang, where the release head reads 0.83–0.84 and moves that much between launches, and since only soft fits have been served we name no winner between hard and soft.

A joint head costs 1.06–1.07× a step at 86.2–87.0 GiB allocated against 85.8 GiB with no head, on Qwen3.6-35B at ep8 with random packed tokens, one run each, and head_only takes 0.37× because it holds no trunk graph and no checkpointing, so it is not the same work. On Nemotron-H fits at 1e-5 fell and the gate rejected them, and Lightning at 1e-6 ended at 0.8126 and passed, so its recipe ships at that rate, with six steps of that recipe reading 0.8164 to 0.8167 on its own held-out rows at 4,096 tokens (MTP heads).

Rollout servers and weight sync

At startup the trainer now refuses a server that lacks the toolkit's image, repacks expert weights, sits on a loopback URL in a run across nodes or is missing a parser, token ids or a chat template the run reads, and during training a wrong parser stops the run by its second round holding an unparsed call. The 23 async GRPO recipes for gpt-oss, Gemma 4 and Qwen3.5/3.6 and all 20 family and engine pairs pass these checks on real servers, and none of about 350 test runs against them was refused by mistake. A family the engines cannot sync stops about 20 s after launch, where an earlier 1.2.0 build with no server up waited 240 s and reported it unreachable.

A single vLLM server restarted between syncs now recovers, where on an earlier 1.2.0 build the restart killed the new engine, and SGLang recovered already. In one run per engine on dense Qwen3-0.6B that took 5.4 s on vLLM and 62.4 s on SGLang, nearly all of it destroying the old group. On the Step-3.7 Flash release the sync adds 18 GiB at ep2 and 16 GiB at ep4 on the forwarding GPU, and an ep4 full fine-tune on 4 GPUs runs out of memory at its first optimizer step.

On earlier 1.2.0 builds, a push after one real optimizer step lands within twice the floor on all 38 cases that run that round, where the floor is the gap trainer and server show on identical weights, about 0.4 nats on fixed rows of gpt-oss-20b, which appears with no engine involved. On gpt-oss-20b most of it is bf16 flipping near-tied expert picks, since forcing fp32's top-k takes stock bf16 from 0.400 to 0.079, while GLM-4.7 only moves from 0.095 to 0.072 and Gemma 4 from 0.683 to 0.623, so on those two most of it is not routing.

With routing_replay: rollout (R3) the mean absolute log-ratio sits about 1.9× below no replay on gpt-oss-20b, 2.5× on Qwen3.6-35B and 1.2× on GLM-4.7-Flash, while recompute (R2) does not separate from no replay. These readings come from vLLM at step 1 and rollout_top_p: 1.0, on one short task with one run per mode and 87.5% of Qwen3.6's rollouts truncated, so R3 stays experimental, on only in the gpt-oss -ep1 recipes (routing replay).

Tree packing for SFT

Rows that start with the same text can now share that prefix inside a packed row (tree_packing: true beside packing: true). Each branch attends to the prefix and to itself, never to a sibling, so every example gets the logits, language-model loss and gradients it gets under flat packing, up to the backend's own rounding in bf16, and a tree run's eval_loss does not compare with a flat run's. It runs on gpt-oss, Qwen3 and Qwen3.5/3.6 with FA4 or FA2 and on GLM-5 Next with SDPA (tree packing).

On a synthetic corpus where half the rows share a document of about 6k tokens, packed to 64k tokens, 6 steps on an early build of this release take about 1.7× fewer packed rows at an equal peak. gpt-oss-20b at ep8 on FA4 steps in 4.45 s against 4.48 s, and Qwen3.5-35B-A3B under FSDP2 ZeRO-3 on FA2 takes 4.85 s against 3.45 s at about 1.3× the examples per second, on layouts that do not compare with each other. Tree rows keep each example's argmax at 99.58–100% of trained positions, where the example alone on eager against flash reads 99.44–99.82%.

Other new models

Qwen3-Next trains with EP and ETP, LoRA included, tested on GPU with tiny models, and its 80B-A3B SFT recipe at ep8 holds about 72 GiB per GPU before activations by arithmetic (Qwen3-Next). The dense Qwen3.8-27B and the MoE Qwen3.8-2.4T-A95B load through the Qwen3.5 paths with no recipe or GPU run yet.

Qwen3.8-Flash-Next is experimental, and SFT runs on its text tower under EP, pure ETP, EP+ETP or PP, while TP, CP and RL weight sync are refused. At full depth, on earlier builds, four steps of the EP8 LoRA recipe ran 2,659 and 2,696 tokens/s per GPU on steps 2 and 3 at 96.7–100.1 GiB allocated and 109.9–133.9 reserved, and step 4 took 81.3 s for a cause we did not check. That forward differs from the vLLM-served release by +0.0066 NLL on real text, and an untrained full-depth export served on vLLM 0.32 matched all 65,504 compared log-probs (Qwen3.8-Flash-Next).

Faster training

Each figure below compares the same code with and without the change on B300, and a gain applies to particular shapes, so these do not multiply into the totals above.

  • On Blackwell, GLM-5 Next's DSA layers run torch's forward per tile of queries over a causal crop rounded to a multiple of 8, with a closed-form backward and one fused Triton pass, which runs a forward, its recompute and the backward 4.95× as fast at 8k and 5.13× at 16k with the same output. With this kernel and the next, an 8k GLM-5.3-Flash step timed layer by layer takes 24.5 s against 51.1, and a 7-layer cut sits at a mean per-token gap to an fp32 reference of 0.0195 against 0.0232 (masked matmul attention).
  • Hyper-connections on GLM-5 Next and DeepSeek-V4 run projection, Sinkhorn, collapse and mix as one launch per direction each, which takes a hyper-connection and its mix from 143 launches to 16 forward and from 306 to 14 backward, and on the same 8k step takes the weights from 7.17 to 1.31 s and the mix from 3.39 to 0.44 s. DeepSeek-V4 has no rate on its released weights yet (hyper-connection kernels).
  • On B300 a bf16 plain GEMM runs 3–10× slower when its second operand's inner dimension or N is not a multiple of 8, and grouped GEMM has no such cliff. Only GLM-5 Next's two DSA kernels use this, masked matmul and tree sparse, since padding row lengths to 8 on a real gpt-oss-20b full fine-tune ran 4% slower.
  • Tensor-parallel linears compute on their local weight shards between explicit collectives instead of going through DTensor dispatch. Dense Qwen3-8B at TP2 trains 57.5% faster with a bit-identical loss, and gpt-oss-20b at ep8 × tp2 11.0% faster with a step-1 loss 5.3e-4 apart (relative) (local-shard linears).
  • gpt-oss under expert-tensor parallelism runs its experts on grouped GEMM instead of a per-expert loop, so gpt-oss-20b trains 68.6% faster at ep4 × etp2 and 3.17× as fast at pure etp8, and ETP checkpoints written on the loop resume exactly.
  • Under ZeRO-2, FSDP2 shards two decoder layers per group, which halves its collectives and hook calls. gpt-oss-20b at ep1 trains 11.3% faster and Qwen3-8B at CP2 8.2% faster, for about one more decoder layer of bf16 weights at peak, and ZeRO-3 takes none of this gain (shard groups).
  • Expert compute sorts its tokens by expert in three Triton kernels with no host sync, in place of about 31 small ops. gpt-oss-20b trains 10.6% faster at ep8 × cp2 and Qwen3.5-35B-A3B 9.0% faster at ep8, bit-identical, and the only comparison at batch 4, gpt-oss-20b at ep8, reads +1.47%.
  • The packing collator hands flash attention each packed row's document boundaries, which on packed Qwen3-8B on FA4, on real rows and off the twelve shapes, takes 310 host syncs a step to 24 and gains 9.5%. Pinned batches now copy to the device without blocking, which on Qwen3-8B on real rows at batch 2, also off the twelve shapes, read +11.4% at CP2 on unpacked rows and −0.05% under FSDP2 on packed rows over two rounds, with no gain on the benchmarked CP2 row.
  • One Ulysses all-to-all per exchange under CP gains 4.39% at CP2, and reads −0.37% at CP4 on 16k tokens.
  • A multi-tensor AdamWBF16 step, measured on B300, gains up to 4.1% under FSDP2 and 1.5% at ep8, and reads −0.1% at ep2.

Memory changes, one at a time

  • Rank 0's object gathers now use the connections every run already has, which takes the NCCL buffers it kept for every peer from 2.936 to 0.750 GiB on an 8-GPU node, against an earlier 1.2.0 build, as we have no 1.1.0 reading.
  • Async GRPO's length_ordered_microbatches deals rows into micro-batches longest first, which on one test row takes the update phase from 480.5 to 328.3 s and peak from 210.25 to 183.35 GiB, with the recompute bitwise identical.
  • Under CP the head loss now runs on Liger's fused kernel, which takes GLM-4.7-Flash at ep8 × cp4 and 65,536 tokens from 53.30 to 46.99 GiB, with the step-1 loss within 7e-8.
  • An eager EP+TP load slices experts before the GPU move, which takes Qwen3-30B-A3B at ep2 × tp2 from 61.8 to 33.8 GiB per GPU at load, against an earlier 1.2.0 build, with identical losses.

Seven gpt-oss recipes (DPO, SMPO, reward, classification, offline GRPO, self-distillation and 20B multi-node SFT) now train without gradient checkpointing, so they peak higher than before, and on EP8 rows measured on 1.1.0 or earlier that gave 25–32% more tokens/s at 1.4–2.0× the memory. The Qwen3-4B SFT recipe moves from FA2 with checkpointing on to FA4 with it off, which on 8 GPUs under accelerate runs 0.5526 steps/s against 0.3713 (+48.8%), with its peak not captured.

Low-precision compute

bf16 stays the default, because neither low-precision path beats it on a whole step and every one of them peaks above it. On a 1.2.0 development build at ep8 on 4,096-token rows, with gpt-oss-20b at batch 4 and Qwen3-30B-A3B and Qwen3.5-35B-A3B at batch 8, simulated fp8 measures 0.29–0.45× bf16 and simulated mxfp4 0.10–0.18×, and native DeepGEMM (HALO_DEEPGEMM_NATIVE=1) 0.43–0.54× at fp8 and 0.37–0.53× at mxfp4. No new kernel ships (low-precision compute).

Fixes for results that were wrong with no error

Most of these were also present in 1.1.0.

  • PaliGemma and PaliGemma 2 trained without a causal mask, so every trained token also attended to the tokens after it, and older PaliGemma results were affected. The VLM collators now write token_type_ids and training loads make the decoder causal.
  • With FSDP2 and reentrant gradient checkpointing, which MoE runs use outside PP, a decoder layer run more than once per backward kept the gradients of only one run and stayed gathered past the optimizer step, which hit async GRPO with environments and the GRPO log-prob scorers. Each such layer now finishes its FSDP2 post-backward before the step.
  • On single-group EP with experts outside FSDP2, a reentrant recompute divided earlier segments' expert gradients again, so they came out too small. The divide now runs once per optimizer step.
  • Under reentrant checkpointing, an adapter or a trained parameter in a vision tower's checkpointed blocks took no gradient behind a frozen patch embedding and stayed at init on Qwen3-VL, Qwen3.5/3.6, Qwen3.8-Flash-Next, GLM-5 Next, MiniMax-M3-VL, Step-3.7, Gemma 4, Nemotron-H and Llama 4. Halo 1.1.0 has the same code path. Those blocks now train, with gradients at most 1e-7 from a non-reentrant run of the same step on tiny composites on CPU at fp32, so losses differ, each image row pays a tower recompute whose cost at real image sizes we have not yet measured, and resuming an earlier adapter starts training its untrained tower factors.
  • A composite that states tie_word_embeddings only on its root config, loaded with text_only_model: true, trained a random head, because its text class read only its own level and the coverage gate excused the head. A text-only load now ties the head, and a flag on a sibling tower no longer counts.
  • Under accelerate launch with fsdp2_full_config.yaml, a frozen reference or teacher was zero on every rank except each node's local rank 0, so DPO, KTO and every other trainer with a frozen model scored against zeros there, and models now load with their weights on every rank.
  • MoE SFT with moe_balancing: aux_loss weighed the router aux loss at processes × gradient_accumulation_steps times its coefficient on Hugging Face's num_items_in_batch path, and it is now weighed at router_aux_loss_coef once per optimizer step.
  • Offline GRPO scored the wrong log-probs on DeepSeek-V4 and Mistral 4 above one row per batch, by up to 0.272 and 0.579 nats on tiny models on CPU, because their attention reads a token's row index. Those families now forward each row alone, which reads 9.5e-7 and 4.8e-7 against a control of 1.9e-6.
  • Teacher distillation from a gpt-oss teacher under reset_sinks: true, the default, neutralized the teacher's attention sinks too, and such a run is now refused.
  • On B200 and B300, FLA's delta-rule state kernel autotuned onto configs whose results changed between runs and were wrong at some positions of packed and padding-free rows, on Qwen3.5/3.6, Qwen3-Next, GLM-5 Next and Ling 3.0, and Halo now keeps it on the configs FLA restricts it to from 0.5.2.
  • Gemma 2 trained without its attention softcap in the padded-batch scripts, so SDPA is now refused for softcapped models, and Laguna through remote code with attention unset ran its sliding-window layers as full attention on FA4, so it now takes SDPA.
  • Ling 2.0 and Ring attended across the documents of a packed row, so packed Ling 2.0 rows now run per document on FA4 or FA3, and packing Ring is refused unless allow_cross_document_linear_attention: true.
  • Video, audio and payload-less image parts trained with no pixels, and a text checkpoint dropped its image data. Both now raise.
  • Under HSDP, with fsdp_shard_ep1_experts: false, and under QLoRA, data-parallel replicas that drew adapters or new vocabulary rows from differently seeded streams trained apart while saves wrote one copy, and every replica now starts from the first one's copy.
  • With more than one EP group, an expert-only LoRA resume restored the expert optimizer moments only on the rank that saved them, and a LoRA run whose added_special_tokens grew the vocabulary could drop the new embedding rows from its adapter saves. Both are fixed.
  • On SGLang a weight snapshot could be overwritten before the send stream read it, which corrupted the served model, and each one is now held until that stream retires.
  • Code-contests grading failed correct answers under a statement allowing 1e-4 by comparing floats at a fixed 1e-6, and the sandbox clock timed out correct C++ under eval load by starting before the jail was up. Both are fixed.

Fixes for hangs and late failures

  • Under torchrun FSDP2, a batch mixing image and text rows hung a full fine-tune. Shard groups now agree on which parameters hold a gradient, and the setups that still cannot pair their reduces raise instead.
  • A slow checkpoint writer past DIST_NCCL_TIMEOUT_MINUTES aborted the job, and a fenced write that failed on one rank left its peers waiting. Writes now join over the store and a failure reaches every rank, as a CUDA out-of-memory in the retained expert gather now does too.
  • A trainer killed mid-sync left a paused engine that hung every completion, and a new trainer now refuses that server and says how to lift the pause.
  • merge_ep_shards.py dropped every optimizer shard, so a resume from a merged directory always warm-restarted, and it now carries them through. A gathered save whose chunk failed its hub revert wrote two expert layouts, and it now raises.
  • We fixed the three shipped cross-node EP recipes that raised at their first evaluation, at step 300, the bare-srun launch recipe, which started every node as rank 0, and three gpt-oss LoRA recipes that ended in an adapter no tool folds. DeepSeek-V4 with added tokens trained into an IndexError, and it is now refused.
  • On H100 and H200, FA2's forward picked the image's stub split-K kernels for a short unpadded batch and for a GQA decode step, so those calls threw. The Hopper build now pins FA2's forwards to one split.

Security

  • A judge term fell back to OPENROUTER_API_KEY or OPENAI_API_KEY when its own api_key_env was unset, which could send another vendor's key to a custom endpoint. A named variable is now that key or a refusal, and a hosted key goes only to its vendor's host.
  • MCP filesystem episodes shared the host's /tmp, so a group's siblings could read each other's files and an episode could change other processes' files. Each episode now gets its own scratch directory.
  • prepare_dataset.py, the reward-model scorers, merge_peft_adapters.py and convert_to_bf16.py on an adapter's Hub base, and merge_models.py --tokenizer_source ran a third-party repo's code by default. --trust_remote_code now defaults off for a Hub source, and --tokenizer_source takes a local directory.

Other changes

  • An optimizer step whose global gradient norm is NaN or inf is now skipped by default and counted, and more than max_consecutive_nonfinite_steps (default 3) in a row raise on every rank (non-finite steps).
  • Two knobs are new. HALO_DSA_MATMUL runs GLM-5 Next's DSA layers on the new kernel, on by default on Blackwell, and 0 keeps SDPA's own backend. HALO_HC_KERNELS is on by default, and 0 keeps upstream's hyper-connection forwards on GLM-5 Next and DeepSeek-V4.
  • pad_to_multiple_of now pads on the completion collator, whose non-CP path dropped it with no message, and it is refused with packing or padding_free, whose rows carry no padding.
  • gradient_checkpointing_plan: auto (opt-in) measures a packed SFT run at step 2 and then checkpoints only every k-th decoder layer, or none, while the predicted peak fits. Its best shape, dense packed rows at 8k tokens, runs 25.5% faster than full checkpointing, and it reads −0.06% at 32k tokens.
  • QLoRA on a MoE base needs use_grouped_gemm: false, async GRPO's prefetch_depth collects several rounds ahead and a single server now takes enable_prefetch: true, and HALO_CHECKPOINT_WRITE_THREADS opts into background part writes, where at 2 threads a gpt-oss-20b ep8 gathered save took 22.8 and 22.0 s against 28.4 and 28.8 s.
  • Halo pins Liger's RoPE to Triton, because since Liger 0.8.3 the RoPE auto-selects a CuTe kernel at large shapes that rotates a stale buffer under the CUTE_DSL_ENABLE_TVM_FFI=1 our images set for FA4 (Liger #1571). The fix has merged but is not in Liger v0.8.5, and 1.1.0 locks Liger 0.8.0, so no Halo release trained on the wrong rotary.
  • The stack moves to transformers 5.20.2, TRL 1.14.2, sentence-transformers 6.1.0, Liger 0.8.4, huggingface-hub 1.33.0 and FlashAttention-4 4.0.0b37, and both rollout images carry transformers 5.19.0. PEFT stays at 0.18.1, torch 2.11, accelerate 1.11 and NCCL 2.31.2 are unchanged, and other locked dependencies move to their security releases. Three of our PRs have merged into PEFT (#3839, #3838, #3938) and are not yet in a PEFT release, so 1.2.0 runs none of them.

For contributors

We split the package by concern, from 374 Python modules to about 500 at about the same line count, in eleven layers that a test holds. One MoEFamilySpec per MoE family declares its capabilities and expert layout, which took the EP layer files of the 15 families both releases share from 1,632 to 840 lines. CPU test files went from 799 to 1,081 and GPU scripts from 224 to 253.

Upgrading

Pull public.ecr.aws/whitecircle/halo:blackwell-1.2.0 or :hopper-1.2.0, and the rollout images :vllm-0.32.0-1.2.0 and :sglang-0.5.22-1.2.0; the moving :blackwell, :hopper, :vllm-0.32.0 and :sglang-0.5.22 tags follow them. Update the rollout servers together with the trainer, because every client refuses a server that does not report the toolkit's image, so a 1.1.0 server cannot take a 1.2.0 weight sync. Leave VLLM_USE_V2_MODEL_RUNNER as the image sets it (rollout servers). docker-compose.vllm.yml takes its image from VLLM_IMAGE and no longer builds one, so set it to the public tag or build with make build-vllm, and docker-compose.sglang.yml takes SGLANG_IMAGE the same way. All four images are built from 3e9564788ad5456ff25a431674734a4805a2fd3b.

Breaking changes

The list below covers the changes most runs meet; MIGRATION-1.2.0.md has every one, with the steps.

  • Package. Imports move from src to halo with no shims, and classes such as DistributedGRPOTrainer, now DistributedOnlineGRPOTrainer, are renamed with no aliases. Custom entry scripts, trainers and environments need the changes listed in MIGRATION-1.2.0.md.
  • Scripts and tools. Training scripts moved, tools were renamed, and tool flags share one vocabulary with underscores. halo run no longer takes -n or -p, and prepare_dataset.py and the reward-model scorers default --trust_remote_code off.
  • Config keys. Async GRPO reads rollout_group_port instead of vllm_group_port. A non-default ddp_timeout is refused (use DIST_NCCL_TIMEOUT_MINUTES), and so is router_aux_loss_coef on the trainer config. A lora_target_modules list now always names modules, and settings a run used to accept and ignore, such as profiler_* with the profiler off, are refused at startup.
  • Rollout servers. A hand-run server must use the toolkit image and carry the flags the run reads, such as --moe-backend triton (SGLang --moe-runner-backend triton), a tool parser, a reasoning parser and --return-tokens-as-token-ids. A hand gpt-oss config on a tool environment sets rollout_stop_tokens: ["<|call|>"], and a MoE with no family spec can no longer train online or async.
  • RL behavior. A wrong tool parser stops the run (tool_parser_watch_rounds), a launch with no policy gradient stops at zero_gradient_round_limit (default 50), and a resume lost after a good push ends the run after 4 attempts. An episode that outgrows the served window now trains on what it earned, the waived reasoning terms (reasoning_terms_in_failed_groups: true keeps the old charge) and the new code-contests judge rubric change rewards.
  • TRL 1.14 GRPO defaults. use_bias_correction_kl is now true, which changes the KL gradient of every online or async GRPO run with beta != 0 (false keeps 1.1.0's term), and online GRPO's unset max_completion_length is 512 instead of 256.
  • Attention defaults. With attn_implementation unset, the padded-batch scripts take FA4 on Blackwell, Qwen3.5/3.6 and Qwen3-Next take FA4 (FA2 for multi-document SFT rows), GLM-4.7-Flash takes FA2 on Blackwell, softcapped models take FA2 (FA3 on Hopper), PaliGemma takes SDPA and PaliGemma 2 FlexAttention, so loss values differ slightly from 1.1.0.
  • New refusals. Setups that trained wrong or failed late now stop at startup, among them a text checkpoint given image data, video and audio parts, packing where a layer would mix documents, padding_free on M-RoPE decoders, an EP or expert-TP group on a dense model or a MoE with no family spec, a gpt-oss teacher under reset_sinks: true, TRL's chat_template_path, pad_to_multiple_of with packing or padding_free, and a non-zero attention_dropout on FA3 or FA4.
  • Training behavior. moe_balancing: auto now picks aux_loss for multimodal Qwen3.5/3.6 checkpoints and bias_update for MoE embedding runs on families whose bias exports, and those embedding runs load on the grouped-GEMM EP layers, where LoRA and accelerate launch are refused (use_grouped_gemm: false keeps 1.1.0's stock experts). SMPO cuts an over-long completion with no forced EOS, and SFT replaces TRL's chunked_nll loss type with nll and warns. Hyper-connections on GLM-5 Next and DeepSeek-V4 compute in fp32 and round once, so losses there move by rounding and routing (0.33% at step 1 on GLM-5.3-Flash), and a double backward through these kernels, the DSA kernel or tree sparse attention raises.
  • Low precision. With HALO_DEEPGEMM_NATIVE=1, runs below the old size floor now run native, mxfp4 runs the native kernel and fp4 stays simulated, and simulated runs report MFU 2× or 4× higher than in 1.1.0.
  • Logged numbers. MoE SFT loss values change with the aux-loss fix. tokens_per_second and MFU read 1.4–2.1% lower at the same speed, and per-GPU throughput counts a batch that a TP, expert-TP or pipeline group shares once, so a TP2 or ETP2 run logs half of what 1.1.0 would log at the same speed.
  • Checkpoints and data. Delete a 1.1.0 async GRPO prefetch_pending-* file pickled under src before resuming. convert_to_bf16 and patch_vocab now write a stored MTP head back, the first run rebuilds its dataset caches once, and a dataset baked with 1.2.0 does not load on 1.1.x.
  • Environment and layout. A few knobs such as HALO_TP_CONSISTENCY_CHECK are removed, a boolean variable set to an unknown value warns and keeps its default, make install is make check-lock, and the make targets and compose files no longer fall back to /mnt.

Validation

The full CPU suite passes inside both training images (34,979 and 34,914 tests). The 434 rows of the GPU core tier pass on the last 1.2.0 build. On builds of this release, the CPU equivalence checks passed, every training method ran two steps, saved, resumed and exported on GPU through halo launch, and the pipeline-parallel tier passed its 94 rows.

On those builds, against live servers on both engines, the 40 weight-push cases, 114 rollout cases across EP, TP, ETP, HSDP, resume, LoRA and prefetch and the R2 and R3 sweeps passed. Packing and attention have their own 91 GPU cases, 76 of them on document isolation, which all passed, and Nemotron-H's and MTP's modes have tiny-model GPU cases. Checkpoints written by 1.1.0 resume with the optimizer restored and export, for FSDP2, LoRA, gathered and sharded EP (the sharded ones after merge_ep_shards.py) and async GRPO runs. On the last builds, both new kernels' suites and their multi-GPU rows passed, the real GLM-5.3-Flash and Qwen3.5 rows ran, and, with the kernels off, the EP layers of all 18 families matched the build before them bit for bit.

Across two machines, 1.2.0 ran both PP recipes, GLM-5.3-Flash's full fine-tune at ep16 and pp2 × ep8, node-local ep8 with data parallelism through a per-node save and resume, gpt-oss-20b at ep16 through a gathered save and at ep2 × etp4, weight sync, and an MTP head. HSDP, EP+TP, EP+CP and pure ETP last crossed machines before 1.2.0, and pp2 × etp2 has run on one host.

What we did not measure

  • Frameworks. We did not repeat the TRL and NeMo comparison on this release, so those numbers remain 1.1.0's.
  • Family rates. Step-3.7, Gemma 4, gpt-oss-120b, Qwen3.5-122B, Laguna, LFM-2, Mistral Small 4, DeepSeek-V4, Inkling, Command A+ and Ling-mini have no 1.2.0 throughput row.
  • Pipeline parallelism. The two-machine rows cover Qwen3-8B, gpt-oss-20b, GLM-5.3-Flash, Qwen3.5-35B-A3B, Qwen3.6-35B, Qwen3.8-Flash-Next and Nemotron Super VL only, no row sets PP against CP or ETP at one shape, pp2 × etp2 has no throughput row, and GLM-5.3-Flash ran five steps per layout with no gathered save.
  • GLM-5.3-Flash kernels. Each pair is one run of five steps, the two-machine layouts have no layer-by-layer split, the recipe's own UltraChat rows have no settled rate, and DeepSeek-V4 has no rate on its released weights.
  • Nemotron. Lightning's full fine-tune ran only at 8,192 tokens, 5 steps and ep8, and FSDP2 alone never ran on its weights. Exact resume is checked only at the cut, Super VL has no fit at 1e-6, and no head cost exists on either release.
  • Qwen3.8-Flash-Next. The full fine-tune recipe has not run at full depth, the depth runs are 4 LoRA steps plus an untrained export, and SGLang is untried.
  • Weight sync speed. It was not re-read on vLLM 0.32 or SGLang 0.5.22, and the docs' 53 and 80 GB/s are from older engines.
  • Routing replay and low precision. R2 and R3 have no step time, memory or run-to-run spread, and no native or simulated low-precision path has a convergence comparison.
  • Tree packing and MTP. Tree packing has no row on a real corpus. detached and head_only hard are untimed, an unfit stale head was never served, and no run measures what a joint head does to the trunk.
  • Images. Rates exist on Nemotron only, and none compares with 1.1.0.
  • Not timed. The default change to FA2 on GLM-4.7 has no timing, and load time and load RSS are not compared with 1.1.0.

Known issues

  • With more than one EP group, a LoRA adapter or an added embedding row starts identical across groups only when every rank is seeded alike, as the training scripts seed it (EP limitations).
  • PP's logged rate counts every padded row at max_length, where the other layouts count real tokens, so it reads above the attended rate (17,709 against 17,608 on Qwen3-8B, 2,556 against 2,423 on GLM-5.3-Flash).
  • A full fine-tune that does not fit is not refused up front, so GLM-5.3-Flash at ep8 with data parallelism runs out of memory about 3 minutes in.
  • On Nemotron-H no run has trained a release to a quality metric, the two longest recipes sit at the device's limit, and on an image run under Liger the logged mean_token_accuracy and entropy are not meaningful on a training step.
  • An MTP head is not carried by online weight sync, and SGLang starts on a checkpoint with no head and misses every draft, so read its counters (serving).
  • Five Qwen recipes render qwen3-multiturn.jinja, which writes replies with no think block, so on Qwen3.6-35B a run starts at a loss near 3.3, which reads about 0.83 after two optimizer steps.
  • Qwen3.8-Flash-Next is experimental, with exact resume checked only on a four-layer cut. At release size under pp2 × ep8 it fits only with gradient checkpointing on. Tree packing under ETP and EP+ETP is accepted but not yet verified.
  • FlashAttention-4 4.0.0b37 is a beta, and a pinned FA4 on Gemma 2 in the padded-batch scripts is refused only when the first padded batch reaches it, so leave attn_implementation unset there.
  • A text SFT run whose chat template ends assistant turns with no turn terminator is not refused at startup, as an image run now is. With train_on_completions_only, set eos_token to the token that closes a turn.
  • FLA's Triton kernels are autotuned per TRITON_CACHE_DIR, and different picks round differently, so runs that must match bit for bit should share a warm cache.
  • A dead server raises slowly, after about 4 minutes for a killed engine and about 20 for a frozen SGLang server at 2 ranks. SGLang 0.5.22 fails to start a Gemma 4 server with --enable-return-routed-experts, so leave that flag off for it.
  • Five recipes changed shape in 1.2.0 and did not run on their full-size model, Laguna S, LFM2.5-8B, Mistral Small 4, DeepSeek-V4 LoRA and Command A+, so their memory fit is computed.
  • Under transformers 5.20, a plain unwrapped save_pretrained on a node-local writer other than global rank 0 skips the weights with no error, which hits DDP under save_on_each_node and the embedding trainer's sentence-transformers fallback, and not the distributed savers or PEFT saves.
  • With PEFT 0.18.1, AutoModelForCausalLM.from_pretrained on a directory that holds adapter_config.json raises ModuleNotFoundError, so load adapters with PeftModel.from_pretrained.
  • Every rank still contacts the Hub at startup for a text model's tokenizer, so at large world sizes download the model first and set HF_HUB_OFFLINE=1.
  • A python tool with no sandbox= runs in-process, as react_math and qa_search with include_python_tools do, so a call that times out returns while its thread keeps running until the process exits. An endless loop written by the model slows that process for the rest of the run, so give the tool a sandbox backend where a model can write one.
  • Security advisories stay open for six locked packages the stack cannot move yet, Pillow 12.3.0, datasets 4.8.5, fsspec 2026.2.0, setuptools 81, torch 2.11, and accelerate 1.11.0, which has no fixed release.

Full changelog: v1.1.0...v1.2.0