| Asynchronous RL at high staleness (guide) |
rollout.max_staleness 4 to 8, loss.type: decoupled, rollout.stale: mask, rollout.sync: publish |
CPU tests (tests/test_rl_async.py). One A100 run (Qwen3.5-0.8B, GSM8K, one seed): staleness 8 with masked_is and with rollout.inflight: tag, colocated vLLM |
Several seeds, models and tasks; the vllm_server arms (engine in another process); decoupled gave no gain in that run |
scripts/gpu_checks/async_rl.sh |
| Generations in flight at a weight update (guide) |
rollout.inflight: tag / resume |
CPU tests; tag on colocated vLLM in the run above |
resume (abort and continue under the new weights) on vLLM; remote workers started with --inflight |
scripts/gpu_checks/async_rl.sh |
| Fail-safe weight pushes to remote engines (guide) |
rollout.backend: remote, rollout.push_verify, rollout.push_link: nccl, rollout.push_dtype, rollout.min_engines |
CPU tests (tests/test_rl_pool_safe.py), the push protocol with a Gloo link between processes |
push_link: nccl (needs two GPUs) and its speed against TCP; push throughput and pool/lag on a real network; a worker lost on another node; min_engines under torchrun with FSDP |
scripts/gpu_checks/async_rl.sh (one machine, Gloo link only); none for NCCL across GPUs |
| Multi-role RL (guide) |
scenario:, roles:, rollout.push: fold / native, train.replicate_base |
CPU tests with tiny models (tests/test_rl_scenarios.py, tests/test_rl_patterns.py; plan_execute with a stand-in environment) |
Any GPU run: rollout.backend: vllm_server with one server per adapter, folded and native adapter pushes, replicated bases on several ranks; plan_execute on Harbor containers |
none |
| LoRA in RL (guide) |
lora.rank, lora.alpha in a pgs rl config |
CPU tests with tiny models and the hf backend (tests/test_rl_lora.py) |
Any GPU run: the vLLM weight push, the bf16 base next to float32 adapters under autocast, FSDP on more than one rank, 8-bit optimizers, MoE policies |
none |
| SGLang paths outside its GPU check (guide) |
lora.rank with named adapters on remote SGLang workers; rollout.routing_replay with sglang backends; rollout.weight_sync: distributed; more than one engine under torchrun |
CPU tests (tests/test_sglang_rollout.py). The plain SGLang backends pass scripts/gpu_checks/sglang.sh on one A100 (log-prob parity with vLLM, the support of truncated sampling included; weight updates by tensor and disk; sleep / wake) |
Named adapters through load_lora_adapter, routing replay, weight_sync: distributed and several engines under torchrun, on GPUs |
none |
| MoE routing replay on vLLM (guide) |
rollout.routing_replay (default off) |
CPU tests (tests/test_moe.py): replaying the model's own routing changes nothing; another routing is followed exactly. The hf backend |
The vLLM path end to end (colocated engine and server); replay against a real MoE deployment at scale |
none |
| RL packed micro-batches (guide) |
train.packing: varlen / tree in pgs rl (default padded) |
Log-probs and gradients equal to padded on one A100 for Qwen3-0.6B, Qwen3.5-0.8B and Qwen3.5-2B; step times measured |
The threshold below which short runs are copied instead of shared has not been re-measured |
scripts/gpu_checks/rl_packing.sh |
| Training for pass@k (guide) |
loss.pass_k |
CPU tests of the transform against brute force over subsets (tests/test_evalstats.py, tests/test_rl_pass_k.py) |
Its effect on training |
none |
| Score centering (guide) |
loss.score_centering: topk |
CPU tests of the math (tests/test_rl_sampling_support.py) |
Its effect on training: A/B it against off at equal steps before relying on it |
none |
| ActGRA with an 8-bit remainder (reference) |
train.optimizer: actgra, train.actgra_rounding: remainder8 |
CPU tests (tests/test_actgra.py) |
A comparison in training |
scripts/gpu_checks/actgra_check.py |
| DPO prompt-sharing packing (guide) |
dpo.packing: varlen / tree |
CPU tests in float64 (tests/test_dpo_packing.py); on one A100: bf16 equality within the padded-vs-padded noise floor on Qwen3.5-0.8B and 2B, the float32 pass on Qwen3.5-0.8B, speed-ups measured |
The float32 pass on other models |
scripts/gpu_checks/dpo_tree.sh |
| Expert parallelism (guide) |
parallel.expert_parallel |
Losses and gradients equal to one process on 2 and 4 CPU ranks; a short run reaches the same weights as FSDP alone |
Any run on several GPUs: speed, multi-node |
none |
| MoE balancing under context parallelism (guide) |
moe.* with parallel.context_parallel |
Each rank counts its slice of the rows (by construction) |
A run on GPUs |
none |
| Tensor and pipeline parallelism (guide) |
parallel.tp_degree, parallel.pp_degree |
Plans against the plain model (loss and every gradient) on one GPU's CUDA kernels; a tp_degree: 2 split on two CPU processes |
Throughput on several GPUs and nodes: the expected gains in the guide are estimates |
scripts/gpu_checks/tp_pp.sh (one GPU); scripts/bench_parallel.py (multi-GPU node) |
| Multi-tensor optimizer kernels under FSDP2 (reference) |
train.fused_optimizer with several ranks |
One GPU: exactness, memory, speed |
Several GPUs (each rank steps its local shards) |
scripts/gpu_checks/offload_fused_optim.sh (one GPU) |
| SeCO speed details (guide) |
memory.seco |
Memory, time and exactness measured on one A100 |
The time saved by running the last chunk once; packed against unpacked SeCO on a real length mix; time outside the kernels for small chunks |
scripts/bench_seco.py |
| Activation offload (guide) |
memory.activation_offload |
CPU tests (tests/test_activation_offload.py): gradients equal to a run without offload under every checkpointing mode, packing, SeCO and compile. One A100: memory, time and gradients on Qwen3.5-2B |
FSDP2 on several GPUs, context parallelism, gradient release, DPO and off-policy distillation with offload |
scripts/gpu_checks/offload_fused_optim.sh (one GPU) |
| Training from random weights (guide) |
model.init: random, model.init_seed |
CPU tests with tiny models (tests/test_pretraining.py): seeded initialisation, low-precision initialisation equal to a loaded checkpoint's, a run that trains and exports |
Runs beyond small models; nothing is tuned or benchmarked for pretraining at scale |
none |
| Multimodal training and RL (guide) |
multimodal.enabled, model.multimodal in RL |
CPU tests on tiny Qwen3.5 models (tests/test_multimodal*.py); the pipeline's ids and pixels equal AutoProcessor's |
Training on a GPU, real checkpoints, FSDP runs, the flash and linear-attention packed kernels with images, the in-process vLLM engine with images, serving an export with vLLM |
none |
| A vLLM teacher for agent traces (guide) |
teachers.<name>.backend: vllm with an agent_traces source, e.g. a 27B teacher with vllm_args: ["--quantization", "fp8"] |
Against a mock server on CPU: the loss equals topk_kl turn by turn |
A real teacher server: memory of the teacher and the trainer together, speed |
none |
Packed scoring in pgs distill (guide) |
train.packing: varlen / tree in pgs distill |
CPU tests in float64 (tests/test_opd_packing.py) for every loss; on one A100, varlen and tree equal to padded with full_rkl, and step times |
The same GPU comparison with topk_kl |
scripts/gpu_checks/opd_tree.sh |
A vLLM server rollout engine in pgs distill (guide) |
rollout.backend: vllm_server |
CPU tests |
Marked experimental; no GPU measurement is documented |
none |
| Off-policy distillation at scale (guide) |
distill.enabled |
CPU tests and small models: losses against references, chunked equal to unchunked, two-process FSDP equal to one process, cache round trips |
Large-model GPU runs |
none |
| Reading model internals (guide) |
pgs internals, palingenesis.internals |
CPU tests and small models (tests/test_internals.py) |
Large models |
none |
| Margin surgery (guide) |
pgs surgery |
One small model size; single device |
Other model sizes; calibrated int4 quantizers (GPTQ, AWQ) |
none |
| Common-mode rejection (guide) |
cmr: in pgs rl and pgs distill |
CPU tests (tests/test_cmr.py); single GPU only |
Its effect on decision benchmarks |
none |
| Observation loss (guide) |
data.include_observations in pgs train, loss.observation_weight in pgs rl |
CPU tests of the loss (tests/test_observation_loss.py) |
Its effect on SFT and RL quality |
none |
| Stable softmax (reference) |
train.stable_softmax |
CPU tests (tests/test_stable_softmax.py) |
Its effect on training quality |
none |