TECHNOLOGY

MegaTrain: full-parameter 120B training with one GPU and host RAM

In this article
THE QUICK TAKE

MegaTrain moves persistent training state into host RAM; its single-GPU results depend on RAM capacity, transfer bandwidth, workload and model architecture.

In April 2026, researchers introduced MegaTrain, a full-parameter language-model training system that stores the main model state in server RAM and streams weights to the GPU layer by layer. The authors report training GPT-OSS-120B on one NVIDIA H200. That placement requires 1.5 TB of host RAM and depends strongly on CPU–GPU transfer performance. A coauthor’s announcement is dated April 5; the first arXiv paper version was published April 6, 2026.

This concerns updating all parameters, rather than only small adapters. However, the paper title’s full precision does not mean all state is FP32: the implementation uses BF16 weights and gradients, with two FP32 Adam moments. GPT-OSS-120B is also mixture-of-experts: only part of its experts participates for each token. Its total size therefore cannot be equated directly with the computational work of a dense 120-billion-parameter model. These qualify the headline result. See sections 3.3 and 4.1.

What happens to weights and gradients

Ordinary training needs memory for weights, gradients, optimizer state, and activations: intermediate values required by the backward pass. Even when weights fit in GPU memory, the remaining state can prevent training.

MegaTrain moves persistent state into host RAM. During the forward pass, the required layer is loaded into GPU memory, executed, and released. Weights are supplied again for backward computation; gradients return to RAM, and Adam updates parameters on the CPU. Some activations are checkpointed, while others are recomputed in blocks. This saves GPU memory at the cost of additional computation and transfers. See the algorithm description.

RAM transfers are much slower than GPU-local memory access. To reduce idle time, the authors use double buffering: while the accelerator processes one layer, the next is prefetched into another buffer. Separate CUDA streams handle computation, incoming weights, and outgoing gradients. Reusable layer templates bind to arriving weights, avoiding persistent GPU residency of the full model and its global computation graph. Overlap is not guaranteed for every workload: if transfers exceed the available computation window, the GPU waits. See sections 3.2–3.4.

CPU offloading is not new. The DeepSpeed ZeRO-Offload documentation, for example, describes CPU optimizer offload. MegaTrain contributes a particular organization of layer execution, buffers, and recomputation, designed around storing the main state in RAM. The LoHan paper from 2024 also investigates large-model fine-tuning on a consumer GPU with limited host memory; it establishes prior work, rather than verifying MegaTrain.

What the tests showed

For 72B–120B models, the authors used one H200 SXM with 141 GB HBM3e and 1.5 TB RAM, connected to the host through PCIe Gen4. Their table includes dense Qwen2.5-72B and MoE GPT-OSS-120B. This is an expensive server configuration: one GPU does not mean an ordinary home PC. For 7–32B models, another system used one GH200 with 96 GB HBM and 480 GB local RAM, connected through NVLink-C2C. See the hardware and models.

BF16 weights and gradients plus two FP32 moments require approximately 12 bytes per parameter under this accounting. For 120 billion parameters, that gives approximately 1.44 TB for those states alone, before additional costs. This is a format-based estimate, rather than an independent consumption measurement for a particular run. It explains why host RAM is a defining constraint. See the memory management section.

On GH200 with a 14B model, the authors report sustained 264 TFLOPS, or 1.84 times DeepSpeed ZeRO-3 Offload in their comparison. This belongs to one configuration, rather than a speed promise for 120B or arbitrary hardware. Results depend on model, batch size, CPU–GPU link, and baseline configuration. Not every comparison condition is assembled clearly enough in the available description to make the ratio a universal reference. See the authors’ results.

The authors also tested more accessible hardware. With a separately evaluated RTX 3090 with 24 GB VRAM and a workstation with 251 GB RAM, they report training Qwen2.5-14B using three sequences of 8192 tokens, reaching 30.19 TFLOPS and using 103.7 GB CPU memory. In the same table, ZeRO-3 could not fit 14B even at batch size one. These are author results using different maximum batch sizes: they establish execution on the described system, rather than a comparison at identical workloads. See Table 9.

A separate 7B GH200 experiment reached 512 thousand context tokens at batch size one using chunked MLP execution. Its table reports 81.9 GB GPU memory and 871.4 seconds per step. Long-context support thus has a specific time cost and cannot be transferred to 120B. See Table 7.

Quality and practical meaning

The authors evaluated quality on MetaMathQA, splitting approximately 395 thousand examples into 70% training and 30% evaluation. For 7B they report exact-match accuracy of 88.99% with MegaTrain versus 88.93% with ZeRO-3 Offload; for 14B, 92.52% versus 92.41%. Close results support comparability in that experiment, rather than identical quality across every task, model, and sustained run. Independent replication of the key 120B and 1.84× findings was not established. See the method and Table 3.

The approach could help research groups or organizations with substantial server RAM and limited access to multiple GPUs, such as teams adapting an open model to specialized data. Evaluate weight size, optimizer RAM, available bandwidth, batch size, step duration, and the cost of the complete server. The reviewed materials do not establish total cost or completed training duration for 120B. The MegaTrain repository provides instructions and configurations, but its current version changed after the April preprint and does not itself establish independent reproduction.

Before comparison, review full training versus LoRA and QLoRA and recording a reproducible stack: GPU count without host state and a defined workload does not describe the full experiment.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles