Nebius Reports LayerStream Fine-Tunes Qwen3.8-Flash-Next 3.15× Faster Than Its Megatron-Based Trainer on 16 H200s
Key point
Nebius LayerStream delivered 60.7k tokens/s versus 19.2k for a Megatron-LM-based trainer when fine-tuning Qwen3.8-Flash-Next on 16 H200s.
Details
- Nebius’s LayerStream fine-tuning engine keeps optimizer state and saved activations in host memory, streaming each layer’s working state to GPUs; it reached 60.7k versus 19.2k tokens/s (3.15×) for Qwen3.8-Flash-Next on 16 H200s
- Against a model-tuned NVIDIA Megatron-LM-based production trainer, the Qwen run processed its data in 7.1 versus 22.4 minutes and reduced GPU cost per token by 68%; the BF16 full fine-tuning used LongAlign-10k: 1,979 conversations, about 25.8M tokens, and up to 32,768 context
- For GLM-5.3-Flash (313B parameters, 17.4B active), 16 B300s reached 76.2k versus 25.7k tokens/s against a 24-B300 baseline, with 78% lower cost; that throughput comparison used different data, RL loss, and batch size
- Nebius integrated LayerStream into its managed training API; a GLM-based estimate puts GPU-only cost per 1B training tokens at about USD 500 on 32 H100s versus USD 2,460 on 24 B300s, not an actual 1B-token run or total service cost
How LayerStream works
- A typical estimate is about 18 bytes per parameter for weights, gradients, a full-precision copy, and optimizer state; a 313B-parameter model needs about 5.6 TB before activations
- LayerStream keeps optimizer state and saved activations in host memory, streams layer working weights when needed, applies AdamW updates layer by layer during the backward pass, and frees gradients after use
- Tokens reach experts within a node; fixed-size transfers between nodes overlap computation, while forward-result reuse and GPU workload balancing reduce overhead; model- and GPU-specific kernel tuning and operation fusion target compute and kernel speed on H100/H200, and copying, communication overlap, and small-kernel speed on B300
- The host-memory and layer-streaming idea was inspired by Physion Labs’ NexTron; Nebius developed the implementation for large mixture-of-experts models
Other benchmark results
- One B300 node delivered 80% of the throughput of a three-node baseline at 0.41× the cost; for GLM, 32 H100s versus 24 B300s delivered 3.1× throughput and 80% lower cost, with a 25.8M-token workload estimated at about 5 minutes and USD 13 versus 17 minutes and USD 64, based on a baseline using different data
- MiniMax-M3.1-Flash (427B parameters, 23.5B active) ran 1.08× faster on 32 H100s than on 32 B300s, with 56% lower token cost
- Reported peak-compute utilization: Qwen on 16 H200s rose from 5.2% to 16.3% (3.2×); GLM from 5.3% to 23.2% for 24 versus 16 B300s (4.4×), and to 27.5% for 32 H100s (5.2×); MiniMax from 12.6% to 31.1% for 32 H100s versus 32 B300s (2.5×); the H100 comparison also benefits from its lower peak
- GPU-hour prices as of 2026-11-16: H100 USD 4.50, H200 USD 5.40, and B300 USD 9.50; H100’s hourly price was less than half B300’s
Validation and limits
- A matched-data GLM test used the same data, step-wise packs, and optimizer hyperparameters for 1 epoch: 25.8M tokens over 18 steps; Megatron loss stayed within 0.003 of LayerStream at each step, with up to 0.005 difference before the first update
- With 32-bit optimizer state, LayerStream’s AdamW update was bit-identical to the PyTorch reference; with 16-bit state, its loss stayed within 0.0022 of 32-bit Megatron from the first update; on 16 B300s, matched timing was 32 versus 126 seconds per step (about 3.9×), while Megatron’s CPU optimizer used 12 threads per rank
- Reported runs used no gradient clipping; LayerStream updates layers before calculating the full gradient norm and does not support exact global gradient clipping; validation covers one epoch and reported optimizer settings, not downstream quality or long-term convergence equivalence
- The USD 500 versus USD 2,460 per-1B-token figures are GPU-only extrapolations from the GLM throughput comparison and inherit its different-data caveat; Nebius is expanding support to more models
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.