Repository navigation
Halo 1.1.0: faster MoE training, exact resume and more reliable async RL
Halo 1.1.0 brings together 20 pull requests merged since Halo 1.0.0, with faster MoE training, exact resume and more reliable async RL.
Highlights
Performance and memory
- At 2,048-token rows, Gemma 4 26B-A4B full fine-tuning on 2× B300 now runs at 14,980 tok/s, 1.67× over Halo 1.0.0’s 8,984 at the same 101.8 GiB per GPU and 1.65× the fastest of the five other frameworks we measured (setup and numbers).
- That speedup comes from fused kernels for the expert GLU and the weighted un-permute, torch’s fused RMSNorm, the gradient clip folded into the AdamWBF16 step on EP runs, a faster AdamWBF16 kernel (51.6 → 31.8 ms per step on gpt-oss-20b on one GPU), and FlexAttention on sliding-window layers with matmul attention on wide-head global layers (
sdpa_flex_sliding). At EP2 and 4,096 tokens the same kernel and optimizer changes make gpt-oss-20b 1.25× faster than before, Qwen3-30B-A3B 1.12× and GLM-4.7-Flash 1.09×. - At 16k-token rows FlexAttention takes Gemma 4 from 4,124 to 16,204 tok/s, while peak memory drops from 237.6 to 225.0 GiB per GPU.
- gpt-oss trains up to 27% faster at EP8 than before: the expert un-permute now gathers and sums in fp32 instead of using a bf16 atomic
index_add_, which also makes the EP8 forward deterministic, and DeepEP’s hidden padding no longer copies. - Against the newest stock TRL, 1.15.0, on 8× B300 with the same data and weights and FSDP2 ZeRO-3 on both sides, gpt-oss-20b trains 1.7–2.5× faster and uses less memory at four of the five shapes. Against stock TRL 1.6.0, the version Halo builds on, the same setup gives 2.3–2.5× at the two shapes we ran it. With each framework at its fastest setup, full fine-tuning of gpt-oss-20b from 4k to 128k tokens is 1.2–1.4× faster on Halo than on NVIDIA’s NeMo AutoModel 26.08 and 1.6–2.5× faster than on stock TRL, and Halo stays ahead on Qwen3.5-35B-A3B, Qwen3-30B-A3B, LoRA and DPO. The comparison table below has the setup and the numbers.
- The opt-in
fsdp_defer_grad_syncreduces gradients once per accumulation window instead of after every micro-step. On one node that gives +3–5% for Qwen3-8B and +12% for Qwen3-30B-A3B atep_size: 1, and across two nodes +9–13% for Qwen3-8B, for one extra gradient copy per GPU (about 13 GiB on Qwen3-8B and 50 GiB on Qwen3-30B-A3B on one node). fp32_routernow works atep_size: 1with sharded experts, at 104 GiB per GPU on gpt-oss-20b against 153 GiB with the oldfsdp_shard_ep1_experts: falseworkaround.
Checkpoints and resume
- Incomplete checkpoints are skipped and moved aside, and a failed optimizer restore now stops the run, with
allow_optimizer_warm_restart: trueto keep the old behavior. - Stochastic rounding replays exactly, and fp32 masters, DPO/KTO reference scores and unmerged LoRA adapters are saved with the checkpoint, so with
full_determinisma resumed run matches the uninterrupted one bit for bit. - On-policy GRPO keeps the base model as its KL reference after a resume, and saves and weight syncs use the Hub’s tensor names for every family.
LoRA and PEFT
- LoRA weight sync folds adapters into copies, so the frozen base no longer drifts (one sync used to move 15–23% of the adapted weights), and DoRA under FSDP2 now pushes the merged weights.
- Under FSDP2, KL reference passes no longer freeze the adapters (PEFT merged our fix upstream in huggingface/peft#3839, due in its next release) and no trainable adapter is left out of the gradient sync, and expert-only LoRA at
ep_size > 1no longer hangs when a rank gets no tokens.
Data and stability
- Ranks agree on the model commit, modality and data shards before loading and fail together on a mismatch.
prepare_dataset --num-shards 1output trains at any data-parallel size, unseeded samplers are seeded fromdata_seed, and Hub downloads skip repo subfolders (61 GiB instead of 182 GiB for gpt-oss-120b). - SMPO padding-free keeps conv and recurrent state inside each document, and DeepSeek-V4 refuses packing.
- Silent fallbacks now fail with the setting to change, and a rank-local GRPO failure raises on every rank instead of hanging the others.
- Training no longer fails when
HF_HOMEis mounted read-only: the Triton and FA4 kernel caches fall back to the temp dir with a warning.
Async GRPO and environments
- The opt-in
balance_token_masscancels each round’s net push on the sampled tokens. Without it, a KL-free run’s entropy drifts whenever failures run longer than solutions, or the other way round, and an opt-in early stop catches a run that drifts anyway. - When the engine forces the reasoning closed at the thinking budget, the closing tokens no longer train. Turns the engine cut off and empty turns train only as penalties, and rollouts send every sampling setting explicitly.
- An effort level can run a soft thinking budget (
enforce_thinking_cap: false): the chat template states the budget as a target, the engine closes the reasoning only at the run’s ceiling, andreasoning_price_past_budgetcharges only for what a turn reasons past it. - The vLLM image fixes wrong prompt log-probs under speculative decoding, and the SGLang image fixes log-probs shifted by retracted requests.
- Code contests pay only when every hidden test passes, verdicts no longer leak hidden tests, and sandbox faults a program can cause count against it. Every code-contests recipe also runs a veto judge that has to quote what the policy did, and the QA environments accept a numeric answer only when it states one value.
- Judge checks take a
weight, so a veto judge can price some process flags and only log others. - Offline GRPO now supports context parallelism for full fine-tuning, EP+CP included, thanks to @MagellaX.
Precision
- DPO and KTO sum log-probs in fp32 (bf16 sums put up to 28 nats of error into the reference), chunked GRPO log-probs keep fp32 logits and each model’s output transform, and
moe_balancing: aux_lossnow trains the routers under gradient checkpointing.
Security
- The weight-sync rendezvous binds only its advertised address, since vLLM workers unpickle what they read there, and the bubblewrap sandbox runs its jail as an unprivileged uid with no capabilities.
Speedups
| Workload (B300) | Change | Throughput | Peak memory |
|---|---|---|---|
| Gemma 4 26B-A4B SFT, 2 GPUs, 2k rows | Halo 1.0.0 → Halo 1.1.0 | 8,984 → 14,980 tok/s (1.67×) | 101.8 GiB, unchanged |
| Gemma 4 26B-A4B SFT, 2 GPUs, 16k rows | FlexAttention | 4,124 → 16,204 tok/s (3.93×) | 237.6 → 225.0 GiB |
| gpt-oss-20b SFT, EP8 | atomic-free permute, copy-free padding | 13,050 → 16,574 tok/s/GPU (1.27×) | 48.1 → 48.6 GiB |
| gpt-oss-120b SFT, EP8 | atomic-free permute, copy-free padding | 10,301 → 12,832 tok/s/GPU (1.25×) | 129.9 → 130.7 GiB |
| AdamWBF16 step, gpt-oss-20b, 1 GPU | one Philox call per four elements | 51.6 → 31.8 ms (1.62×) | unchanged |
| Offline GRPO, Qwen3-8B, 8k rows, chunked log-probs | tensor cores, fp32 logits | 11,793 → 18,311 tok/s/GPU (1.55×) | not measured |
| Qwen3-8B SFT, HSDP on two nodes of two GPUs | fsdp_defer_grad_sync: true (opt-in) |
14,945 → 16,910 tok/s/GPU (1.13×) | 55.5 → 63.1 GiB |
The Gemma 4 rows were measured on pre-release commits, with Halo 1.0.0 standing for main just before the kernel work, and the gpt-oss rows train on packed chat data.
When we re-measured our own performance claims, two from Halo 1.0.0 didn’t hold up, and we corrected the docs: CUDA_DEVICE_MAX_CONNECTIONS=1 has no measurable throughput effect (it stays the validated setting), and torch.compile gains at most 1% on EP MoE. The old figure was wrong because its benchmark ran every configuration in one process, so the compile-only run inherited Liger’s kernels.
Against stock TRL and NeMo AutoModel
One node of eight B300s, the same UltraChat rows and Hub weights for all three, real routing and one optimizer step per batch, each framework at its fastest setup. Tokens/s per GPU with peak memory in parentheses:
| Workload | Stock TRL 1.15.0 | NeMo AutoModel 26.08 | Halo 1.1.0 |
|---|---|---|---|
| gpt-oss-20b, 16k tokens | 9.6k (164 GiB) | 17.9k (109 GiB) | 24.1k (134 GiB) |
| gpt-oss-20b, 128k tokens | 6.4k (125 GiB) | 8.1k (119 GiB) | 10.4k (65 GiB) |
| Qwen3.5-35B-A3B, 16k tokens | stalls | 9.1k (187 GiB) | 16.6k (231 GiB) |
| Qwen3-30B-A3B, 16k tokens | 13.8k (167 GiB) | 14.4k (127 GiB) | 17.5k (214 GiB) |
| Qwen3-8B (dense), 16k tokens | 16.6k (118 GiB) | — | 17.9k (111 GiB) |
| gpt-oss-20b LoRA r16, 4k tokens | 10.4k (111 GiB) | — | 15.1k (28 GiB) |
| gpt-oss-20b DPO, one epoch | 5.9k (155 GiB) | — | 11.7k (37 GiB) |
| Qwen3.5-35B-A3B DPO, one epoch | 6.3k (245 GiB) | — | 7.8k (64 GiB) |
- Matched layouts. On gpt-oss-20b at 16k tokens with the same layout, Halo is 1.3–1.5× faster than NeMo AutoModel and 2.3–2.5× faster than stock TRL, using less memory than stock TRL and 6–47% more than NeMo. With FSDP2 ZeRO-3 on both sides it is 1.7–2.5× faster than stock TRL 1.15.0 over five shapes and 2.3–2.5× faster than stock TRL 1.6.0 at the two shapes we ran it.
- Setups. gpt-oss keeps its attention sinks live in all three. Stock TRL ran SDPA on Qwen3.5 and Liger 0.8.2 on Qwen3 (0.8.3 and 0.8.4 give Qwen3 a wrong forward pass), and its DPO scores the reference every step because the precompute option stalls under FSDP2. NeMo AutoModel ran SDPA on Qwen3.5 and needs fused cross-entropy to fit 128k tokens.
- DPO. The numbers cover one epoch, including Halo’s one-time reference pass. Per training step Halo is 2.7× and 1.6× faster.
Upgrading
Pull public.ecr.aws/whitecircle/halo:blackwell-1.1.0 or :hopper-1.1.0, and the rebuilt rollout images :vllm-0.26.0-1.1.0 and :sglang-0.5.17-1.1.0 (the moving :vllm-0.26.0 and :sglang-0.5.17 tags follow them). The trainer refuses a bubblewrap sandbox without newuidmap, which the Halo 1.1.0 training image adds. With isr_engine_reference it also refuses a vLLM server whose prompt log-probs are wrong, so update the rollout images too.
Breaking changes and migration notes
Removed config keys (refused at startup)
- GRPO:
advantage_modeand its fouradvantage_*knobs,isr_band_min/isr_band_max,num_prefetch_batches, and theeffort_length_*knobs (usereasoning_price,reasoning_price_capandreasoning_floor, and re-tune: the formula changed). - Environments: code contests
repl_timeout,execution_progress_reward,improved_resubmission_refund, and the per-leveltested_submission_rewardandmax_length_cutoff_recoveries. Native tool-userequire_tool_useandmulti_turn_reward. - Distillation:
use_clm_loss(usedistill_alpha), and theearth_mover_distanceandalpha_beta_divergencelosses. SMPO:label_pad_token_id. - Judge terms:
transcript→view,max_transcript_chars→max_view_chars,instructions→context. - Env GRPO refuses TRL’s
top_k,top_p,min_p,repetition_penaltyandgeneration_kwargs(set therollout_*ones), IS modes other than the default ortoken_truncate,vllm_importance_sampling_clip_min,loss_type: vespo, and amax_completion_lengthother thanrollout_max_tokens. A reasoning level’s thinking cap must stay belowrollout_max_tokens(code contests’mediumcaps thinking at 8,192). - Stricter values: non-finite, boolean and fractional numbers are refused.
test_sizeis a proportion in (0, 1) (no row counts),dataset_ratioin (0, 1] andfocal_alphain [0, 1]. For no floor, writemin_log_prob: null, not-.inf. SFT refuses non-defaultdataset_text_fieldanddataset_kwargs, which Halo 1.0.0 silently overwrote.
Behavior
- Rollouts send
top_k: -1,min_p: 0andrepetition_penalty: 1unless you set them, so a model’sgeneration_config.jsondefaults (Qwen3top_k: 20, Gemma 464) no longer apply. - Code contests score 1 only when every hidden test passes,
verdict_detaildefaults tooutcome, and Codeforces problems graded only on their statement examples are left out unless you pass--include_examples_only. Eval numbers are not comparable with Halo 1.0.0. - The code-contests recipes carry a judge veto term that reads
OPENROUTER_API_KEY, withon_error: invalid: an episode the judge can’t score leaves training, and two steps in a row with no valid episode stop the run. Drop the term to run without a judge. The recipes also run soft thinking budgets, priced past the budget: serve the Qwen3.6 and Gemma 4 effort templates from this release, which state a soft budget as a target. - On-policy GRPO loads its KL reference in the run dtype and attention instead of TRL’s fp32 copy, so KL values shift slightly.
- A failed optimizer restore stops the run, and
allow_optimizer_warm_restart: truekeeps the old behavior. - DPO/KTO precompute and offline GRPO KL checkpoints from Halo 1.0.0 have no saved reference scores. A resume that would re-score the trained weights is refused, and the error gives a one-step way to regenerate them.
- A Halo 1.0.0
merge_expert_lora_on_saveor embedding LoRA checkpoint can’t be resumed by an adapter run. Start a new run from its merged weights. - nvfp4 exports from Halo 1.0.0 store the inverse global scale: re-export them.
- DeepSeek-V4 refuses packing and
padding_free.save_sharded_epis refused for Command A+, LFM2-VL, Inkling-mm, DeepSeek-V4, GLM-5 Next, Mistral 3 and Step-3.7, whose gathered save is the export. - Training loaders refuse fp8 checkpoints. Dequantize once with
scripts/before_training/convert_*_bf16.py.full_determinismrefuses an EP group that spans NVLink domains. - Env GRPO no longer shrinks a turn’s total under a thinking cap. Set
rollout_max_answer_tokensto bound what a turn writes past its reasoning. - A warm kernel cache under a read-only
HF_HOMEis no longer read. ExportTRITON_CACHE_DIRandFLASH_ATTENTION_CUTE_DSL_CACHE_DIRto keep using it. - Multi-node runs with a node-local
HF_HOMEneedDIST_INPUT_SHARED_FILESYSTEM=0, and every rank must load the same Hub commit (pinmodel_revision). environment_kwargscan no longer carrymax_turnsorreward_terms(use the top-level fields), ReAct environments refusesystem_prompt, an unresolvablerollout_stop_tokensentry raises, andscale_rewards_std_flooris refused withscale_rewards: none.- Judges read a new prompt layout:
finalis the environment’s final answer, andfullincludes the reasoning (include_reasoning: falsehides it). Judge scores shift against Halo 1.0.0. RLVR judges and reward models read the conversation column instead of the rendered prompt. - The local and bubblewrap sandboxes need
pidfd_open(Linux 5.3 or newer, allowed by seccomp).
Metrics
<name>/scored_frac→<source>/<name>/scored,reward/effort_length_*→reward/reasoning_*, offline GRPO{positive,negative}/rewards_*→pg_objective_*, and self-distillationbeta→opd_beta.- Removed:
sampling/is_token_band_masked_frac,reward/execution,reward/tested_submission. Stored trainer metrics are now means over all ranks.
Scripts, environment and Python API
- Script flags:
--openai_base_url/--openai_api_key/--model_nameand the playground spellings →--base_url/--api_key/--model,patch_vocab.py --torch_dtype→--dtype, andreset_sinks.py --input_dir→--model_id. - MCP presets read
GITHUB_PERSONAL_ACCESS_TOKEN, andSLACK_BOT_TOKENwithSLACK_TEAM_ID. VLLM_GROUP_HOST/SGLANG_GROUP_HOSTmust resolve to one local IPv4 address, which the rendezvous binds. SetHALO_WEIGHT_SYNC_BIND_ALL=1behind NAT or port mapping.HALO_S3_DEFAULT_BUCKEThas no fallback bucket.AdamWBF16andMuonbuilt by hand need named parameters (model.named_parameters()).VariableSchedulerCallbackis linear only (its default was cosine).parallel_openai_requests/generate_openai_responsedropresponse_format,use_native_json_schemaandsystem_prompt. The rewards, distillation-loss, EP/TP saver and inference modules moved without import shims, and a custom environment implements_final_answerfor judge and reward-modelfinalviews.- Every Ray node of a
ray_addresscluster needs the Halo 1.1.0 image (Ray 2.58). - The GRPO reference pages moved: Async GRPO with Environments is under
agent-docs/training-methods/async-grpo/, andgrpo/offline-grpo.md,grpo/online-grpo.mdandgrpo/rewards.mdbecamegrpo/offline.md,grpo/online.mdandgrpo/rewards/. Links to the old pages break.
Thanks
Thanks to Sergei Bratchikov (@hivaze) for leading the release, @advpropsys for the MoE kernels, FlexAttention, the Gemma 4 benchmark and many reviews, @MagellaX for offline GRPO with context parallelism and fp32 master loading, @kv-248 for the numeric grading report, @mixeden for the new logo, @MekkCyber and @DeevsDeevs for reviews, and the PEFT maintainers for merging the FSDP2 adapter fix upstream (huggingface/peft#3839).
Full changelog: v1.0.0...v1.1.0
