Nebius LayerStream cuts MoE fine-tuning costs by streaming state through host memory
Nebius introduces LayerStream, a training engine that reduces GPU memory overhead for mixture-of-experts models by keeping optimizer state in host memory. Benchmarks show up to 3.15x faster throughput
Nebius has released LayerStream, a new training engine designed to optimize the fine-tuning of large mixture-of-experts (MoE) models. Published on November 25, 2026, the system addresses the high memory costs associated with training sparse models by shifting specific training states from GPU to host memory. This architectural change allows for faster iteration and reduced hardware requirements without sacrificing model accuracy.
What happened
Fine-tuning large MoE models typically requires massive GPU clusters because the training state, including weights, gradients, and optimizer variables, must reside in fast GPU memory. For a 313-billion-parameter model, this state can consume approximately 5.6 terabytes before accounting for activations. Traditional approaches spread this state across more GPUs, which increases communication overhead and infrastructure costs. LayerStream challenges this convention by keeping the optimizer state and saved activations in cheaper, larger host memory, streaming only the necessary working state to the GPU during computation.
The results demonstrate significant performance gains across different hardware configurations. On sixteen NVIDIA H200 GPUs, LayerStream trained the Qwen3.8-Flash-Next model 3.15 times faster than a tuned Megatron-LM-based trainer, completing a dataset pass in 7.1 minutes compared to 22.4 minutes. This speedup translated to a 68 percent reduction in GPU cost per token. The system also proved effective on other hardware, allowing older or less expensive GPUs to compete with newer, high-end chips by reducing the memory bottleneck that usually limits their utility.
In tests involving the GLM-5.3-Flash model, LayerStream enabled sixteen B300 GPUs to outperform a baseline of twenty-four B300 GPUs, achieving 2.97 times the throughput at 78 percent lower cost per token. When using lower-priced H100 GPUs, the system trained the same model 3.1 times faster than the B300 baseline, reducing the cost per token by 80 percent. These benchmarks suggest that organizations can achieve high-performance fine-tuning using fewer or cheaper resources by optimizing how data moves between memory tiers.
How it works
LayerStream operates on the principle that GPU memory is scarce and expensive, while host memory is abundant and cheap. The engine keeps the optimizer’s running averages and saved activations in host memory. It streams each layer’s working weights and gradients to the GPU only when that specific layer is being computed. Once a layer’s backward pass is complete, its gradients are used for an immediate update, and the memory is freed. This "layer-at-a-time" approach ensures that the full set of gradients never occupies GPU memory simultaneously.
To maintain efficiency, the system employs four key techniques. First, it applies weight updates during the backward pass, overlapping these operations with remaining computations to hide latency. Second, it arranges expert computation so that tokens reach their experts via fast intra-node links, minimizing cross-node network traffic. Third, it retains expensive intermediate results from the forward pass for reuse in the backward pass, avoiding recomputation. Finally, it uses optimized kernels for attention and other operations, fusing small tasks to reduce overhead.
The communication strategy is particularly critical for distributed training. In conventional setups, tokens travel across the network to reach remote experts, creating a bottleneck that scales with batch size. LayerStream confines most token traffic within individual nodes. The data that must cross node boundaries has a fixed size per layer, regardless of batch size, and is scheduled to overlap with computation. This design decouples communication costs from batch size, allowing for more predictable and efficient scaling.
Key details
- LayerStream keeps optimizer state and saved activations in host memory, streaming working state to the GPU only during layer computation.
- On 16 NVIDIA H200 GPUs, Qwen3.8-Flash-Next training was 3.15 times faster than a tuned Megatron-LM baseline, with 68 percent lower GPU cost per token.
- For GLM-5.3-Flash, 16 B300 GPUs achieved 2.97 times the throughput of a 24-B300 baseline, reducing GPU cost per token by 78 percent.
- Using 32 H100 GPUs, LayerStream trained GLM-5.3-Flash 3.1 times faster than the 24-B300 baseline, cutting GPU cost per token by 80 percent.
- Model FLOPs utilization (MFU) improved significantly, rising from 5.2 percent to 16.3 percent for Qwen3.8-Flash-Next on H200 GPUs.
- Loss parity checks on matched data showed closely matching loss curves, with differences within 0.003 of the baseline trainer over one epoch.
Why it matters
For engineering teams building with large language models, memory constraints often dictate hardware choices rather than compute needs. By decoupling memory capacity from GPU selection, LayerStream allows teams to use cheaper or older GPUs that would otherwise be unable to hold the full training state. This shift can dramatically lower the barrier to entry for fine-tuning massive MoE models, making high-performance training accessible to organizations with tighter budgets.
The improvement in model FLOPs utilization indicates that more of the available hardware capacity is dedicated to actual training rather than waiting for data movement or memory management. Higher MFU means better return on investment for every hour of GPU time. Additionally, the ability to reduce cluster size while maintaining or improving throughput simplifies infrastructure management and reduces the complexity of distributed training setups.
What you can do
- Evaluate your current MoE fine-tuning pipeline to identify if memory bottlenecks are limiting your choice of GPU hardware.
- Benchmark your existing trainer against LayerStream metrics, focusing on tokens per second and GPU cost per token.
- Consider testing LayerStream on lower-cost GPU instances like H100s to see if reduced memory overhead allows for viable training runs.
- Review your network topology to ensure intra-node communication is optimized, as LayerStream relies on fast local links for token routing.
- Monitor model FLOPs utilization in your current setup to establish a baseline for comparing efficiency gains.
- Validate loss parity on a small subset of your data when adopting new training engines to ensure numerical stability matches your requirements.



