Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* chore(config): remove wandb.shared deprecation shim The ``SharedWandbConfig.deprecate_shared_field`` ``model_validator(mode="before")`` introduced in #2649 popped ``wandb.shared`` from input dicts with a ``FutureWarning`` so older configs that still set ``shared = true`` (or ``false``) kept loading. The ``rl`` entrypoint always uses shared W&B mode now, the legacy split with ``-trainer`` / ``-orchestrator`` suffixes is gone, and the in-tree configs no longer set ``shared``. Drop the shim so configs that still carry the field fail loudly via the default ``extra = "forbid"`` instead of silently warning. Docs and CHANGELOG updated. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(config): honor --no-wandb / --no-ckpt across shared and sub-configs pydantic-config's CLI negation (``--no-wandb`` / ``--no-ckpt``) writes the string ``"None"`` into the override dict, which only becomes real ``None`` later via ``BaseConfig._none_str_to_none``. ``RLConfig``'s subclass ``mode="before"`` validators run *before* that conversion, so the bare-block enablement in ``propagate_shared_fields`` used to see the string and re-enable ``trainer.wandb`` / ``orchestrator.wandb`` (or the ``ckpt`` pair) with defaults — silently undoing the CLI's intent. Tighten the bare-block check from ``get(key) is not None`` to ``isinstance(get(key), dict)``. A bare ``[wandb]`` block in TOML is ``{}`` (dict, still enables); ``--no-wandb`` produces ``"None"`` (string, now correctly skipped). Same logic applies to ``ckpt``. Verified end-to-end with ``cli(RLConfig, args=[..., "--no-wandb"])``: ``cfg.wandb``, ``cfg.trainer.wandb``, ``cfg.orchestrator.wandb`` are all ``None``. ``--wandb None`` and ``--no-ckpt`` behave the same. Bare ``[wandb] {}`` / ``[ckpt] {}`` blocks still enable the sub-configs. Co-authored-by: Cursor <cursoragent@cursor.com> * chore(changelog): drop --no-wandb fix entry It's a bug fix, not a breaking config change, so it doesn't belong in CHANGELOG.md (which documents breaking config changes only). Co-authored-by: Cursor <cursoragent@cursor.com> * chore(comment): trim bare-block enablement comment Co-authored-by: Cursor <cursoragent@cursor.com> * docs(wandb): drop legacy-mode reference; add AGENTS rule ``docs/`` should describe the current state of the codebase, not its history. Strip the "the legacy split has been removed" sentence from ``docs/training.md`` — readers on ``main`` don't care that there used to be a non-shared mode — and add a ``## Docs`` rule to ``AGENTS.md`` to codify it. Co-authored-by: Cursor <cursoragent@cursor.com> * chore(agents): trim docs rule Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
43 KiB
43 KiB
Changelog
Documenting breaking configuration changes — renamed, removed, or moved fields that require users to update existing configs.
wandb.sharedremoved: The deprecation shim that poppedwandb.sharedfrom input dicts with aFutureWarning(introduced in #2649) is gone. Therlentrypoint always uses shared W&B mode now, and existing configs that still setwandb.shared = true(orfalse) will fail validation. Drop the field from your config. (2026-05-27)max_async_levelandstrict_async_levelremoved: The async-execution semantics between trainer and orchestrator are now design invariants, not config knobs. The trainer always runs exactly one step ahead of inference, and the orchestrator always adopts the freshest checkpoint that doesn't violate the one-step barrier. The shared top-levelmax_async_level, the per-sub-configtrainer.max_async_level/orchestrator.max_async_level, andorchestrator.strict_async_levelhave all been removed. Existing configs setting any of these must drop the field; the previous defaults (max_async_level = 1,strict_async_level = false) match the new hardcoded behavior. Bench mode no longer bypasses the weight-ckpt wait (theint(1e9)workaround is gone) andmultimodal/rl_color_codeword_feat_renderer.toml's priormax_async_level = 0(fully synchronous on-policy) is no longer expressible. (2026-05-25)teacher_inferenceremoved from RL entrypoint: The[teacher_inference]config block and thedeployment.num_teacher_gpus/deployment.num_teacher_nodesfields have been removed. Therlentrypoint now only manages the student-policy inference server. External teachers (used by OPD and local-vLLM SFT) must be started manually (e.g.CUDA_VISIBLE_DEVICES=1 uv run inference --model.name <teacher> --server.port 8001 ...) and pointed at via[orchestrator.teacher.client]. Existing configs using[teacher_inference]ordeployment.num_teacher_gpus/deployment.num_teacher_nodesmust drop those fields and bring up the teacher out-of-band. (2026-05-25)rollouts_per_example→group_size: The orchestrator-level field, the group-level[orchestrator.eval]field, and the per-env[[orchestrator.eval.env]]field have all been renamed. The old name still parses as a validation alias (in both TOML and CLI), so existing configs keep working without changes; new configs should prefergroup_size. (2026-05-22)AdvantageInputs/AdvantageOutputsare now per-group, andAdvantageOutputs.advantagesis a plainlist[float](second breaking change to this API in three weeks).AdvantageInputs.rolloutsis nowlist[vf.RolloutOutput](a single group) instead oflist[list[vf.RolloutOutput]], andAdvantageOutputs.advantagesis nowlist[float]instead of a 2DFloat[Tensor, "num_examples rollouts_per_example"].compute_advantagescallsadvantage_fnonce per group, which lets partial-group training (groups smaller thanrollouts_per_exampleafter rollout errors) round-trip without the previous bucket-by-size workaround. Custom advantage functions must drop the outer list dimension and return a list of floats — e.g.AdvantageOutputs(advantages=(rewards - rewards.mean(dim=1, keepdim=True)).tolist())becomesAdvantageOutputs(advantages=[r - mean for r in rewards])(or.tolist()if you keep torch internally). (2026-05-22)[model.vlm]requiresorchestrator.use_renderer = true: VLMs must go through the renderer path; thevlm_requires_renderervalidator rejectsuse_renderer = falsewhen[model.vlm]is set. The renderer owns the HF processor per-slot and ships genericmm_kwargskeyed by the model's forward signature. Sinceuse_rendereralready defaults totrue, most VLM configs need no change. (2026-05-19)- First-class
training_mode+ batch-driven loss dispatch (collection of removals/renames). Loss selection is now driven byTrainingSample.training_mode(rl/opd/sft), set under[orchestrator]. The trainer is mode-agnostic and dispatches per batch.orchestrator.use_sft_lossremoved: replaced by[orchestrator] training_mode = "sft". The orchestrator stamps each sample'straining_modeand the trainer dispatches tosft_loss_fnper batch.orchestrator.teacher_rollout_modelremoved (no alias): configs must rename to[orchestrator.teacher](teacher_modelis also accepted as a back-compat alias forteacher). Used in both opd and sft modes; the role is determined bytraining_mode.orchestrator.model→orchestrator.student: renamed for symmetry withorchestrator.teacher. Legacy[orchestrator.model]and a flat[orchestrator.model.lora]-style layout are aliased via a back-compat shim, so most existing configs still parse. New code should use[orchestrator.student.*].trainer.loss.type = "sft"removed (SFTLossConfigdeleted): zero-field discriminator that is now implied bytraining_mode = "sft".trainer.losscollapsed to aDefaultLossConfig | CustomLossConfigunion. Existing configs setting[trainer.loss] type = "sft"must remove that line; the orchestrator-leveltraining_mode = "sft"is enough.trainer.loss.teacher_tauremoved fromDefaultLossConfig: the teacher-KL term is now exclusive toopd_loss_fn(which inlinesteacher_tau = 1.0).default_loss_fnonly handles reward-driven RL and no longer accepts ateacher_tau. Configs that setteacher_tauon[trainer.loss]will fail validation — switch to[orchestrator] training_mode = "opd"(which usesopd_loss_fnwith the value baked in).trainer.lossonly applies to rl-mode batches: opd and sft don't readtrainer.loss.opd_loss_fn's knobs (dppo_mask_*, kl_tau) are inlined as literals; tweak them by editing the function.CustomLossConfigoverrides the rl-mode loss only — opd and sft always use their dedicated fns. (2026-05-19)
orchestrator.use_token_clientremoved: The server-tokenized TITO path has been deprecated end-to-end. The orchestrator-side config flag (use_token_client), the verifiers client_type (openai_chat_completions_token), and the inference server's/v1/chat/completions/tokensroute (along with theOpenAIServingChatWithTokenswrapper) are all gone. The orchestrator now picks between renderer-backed TITO (use_renderer = true, default) and MITO (use_renderer = false, fallback). Existing configs withuse_token_client = truemust migrate touse_renderer = true(oruse_renderer = falsefor MITO); configs withuse_token_client = falsecan simply drop the field. (2026-05-19)orchestrator.advantage.length_penalty→ discriminated sub-config: The scalarlength_penalty: Literal["tokens","turns"] | Noneis replaced by aLengthPenaltyConfig | Nonediscriminated ontype. Token shaping now takes weighted completion + tool-response token costs. Migration:length_penalty = "tokens"becomes[orchestrator.advantage.length_penalty]\ntype = "tokens"(default weightscompletion_weight = 1.0,tool_response_weight = 1.0— total context).length_penalty = "turns"becomes[orchestrator.advantage.length_penalty]\ntype = "turns". (2026-05-06)orchestrator.advantage.length_shaping→orchestrator.advantage.length_penalty: The booleanlength_shapingflag has been replaced bylength_penalty: Literal["tokens", "turns"] | None(default:None).length_shaping = truebecomeslength_penalty = "tokens";length_shaping = falsebecomeslength_penalty = None. The new"turns"option applies the same correctness-gated efficiency shaping using trajectory turn count instead of completion-token count. (2026-05-01)AdvantageInputsAPI: Replaced therewards/completion_lengths/num_turnstensor fields with a singlerollouts: list[list[vf.RolloutOutput]](grouped by problem). Custom advantage functions can now access any rollout metadata. Existing custom advantages must update their signatures and extract per-rollout fields directly (e.g.torch.tensor([[r["reward"] for r in g] for g in inputs.rollouts])). (2026-05-01)orchestrator.teacher_rollout_modelnow requiresorchestrator.use_sft_loss = true: External teacher rollout configs no longer rely ontrainer.loss.type = "sft"to select SFT loss. Existing hard-distill configs must setorchestrator.use_sft_loss = truealongsideorchestrator.teacher_rollout_model; the orchestrator validates the pair and stamps training samples with the per-batch SFT loss bool. (2026-04-26)model.attn = "eager"(NEW option): Addedeageras a valid value for themodel.attnfield. Required for GPT-OSS models on non-Hopper GPUs, since the only flash attention kernel GPT-OSS supports (kernels-community/vllm-flash-attn3) is Hopper-only. A clear error message is raised at model load time if GPT-OSS is used withouteageron unsupported hardware. Also addedkernelsas a core dependency. (2026-04-05)[[orchestrator.env]]→[[orchestrator.train.env]]: Training environments and sampling are now configured under[orchestrator.train]. The old[[orchestrator.env]]and[orchestrator.sampling]paths are auto-translated with a deprecation warning and will be removed in a future release. (2026-04-09)- Per-env sampling overrides (NEW): Both
TrainEnvConfigandEvalEnvConfignow accept a[sampling]section for per-env overrides. Unset fields inherit from the group-level sampling config ([orchestrator.train.sampling]or[orchestrator.eval.sampling]). (2026-04-09) - Per-env eval sampling overrides:
EvalEnvConfignow accepts a[sampling]section. Unset fields inherit from[orchestrator.eval.sampling]. AllEvalSamplingConfigfields remain nullable (None = defer to inference server default). (2026-04-09) orchestrator.buffer.env_ratios→ per-envorchestrator.train.env[].ratio:buffer.env_ratioshas been removed. Setratioon each[[orchestrator.train.env]]entry instead. Ratios must be all-or-nothing across envs (either all have a ratio or none do). (2026-04-05)orchestrator.valremoved: The[orchestrator.val]config section (ValConfig) has been removed. Existing configs must delete this section. (2026-04-05)orchestrator.max_concurrentremoved: Concurrency limiting viamax_concurrentand the global semaphore have been removed. Existing configs must delete this field. (2026-04-05)orchestrator.buffer.hash_keysdefault changed: Default changed from["task", "prompt"]to["env_name", "prompt"]. Thetaskfield is no longer overridden by the orchestrator for env identification;env_nameis used instead. Buffer checkpoints using the old default may not resume correctly. (2026-04-05)orchestrator.eval.env[].failed_rolloutsmetric is now a ratio: Theeval/{name}/failed_rolloutsmetric now reports a ratio (0.0–1.0) instead of a raw count. Dashboards keying on this metric should be updated. (2026-04-05)orchestrator.sampling.temp_schedulerremoved: Temperature scheduling (TemperatureSchedulerConfig) has been removed.sampling.temperatureis now a requiredfloat(default1.0). Existing configs usingtemp_schedulermust replace it with a fixedtemperaturevalue. (2026-04-05)orchestrator.verificationremoved: The[orchestrator.verification]config section (VerificationConfig) has been removed. Rollout scoring is now always enabled. Existing configs must delete this section. (2026-04-05)orchestrator.eval.env[].skip_firstremoved: Theskip_firstfield onEvalEnvConfighas been removed. Existing configs using this field must delete it. (2026-04-05)EvalSaveHFConfigremoved: Unused config class removed. (2026-04-09)orchestrator.env[].max_total_completion_tokens(NEW): Addedmax_total_completion_tokens: inttoEnvConfig(default:-1, disabled). Limits the total completion tokens across all turns in a multi-turn rollout. Auto-populated intoextra_env_kwargsand applied via the verifiersset_max_total_completion_tokens()setter. Works for both training and eval environments. (2026-04-06)sampling.max_tokens→sampling.max_completion_tokens: Renamedmax_tokenstomax_completion_tokensin bothSamplingConfigandEvalSamplingConfigfor consistency with OpenAI API naming. The old name is accepted with a deprecation warning. (2026-04-06)log.fileandlog.env_worker_logsremoved: Removedlog.file(fromLogConfigandSharedLogConfig) andlog.env_worker_logs(fromLogConfig). Python file logging is replaced by deployment-level capture. Existing configs using these fields must delete them. Log paths unified:.stdoutfiles renamed to.log, SLURM logs moved fromslurm/tologs/. (2026-03-31)trainer.log.ranks_filter(NEW): Addedranks_filter: list[int]toTrainerLogConfig(default:[0]). Controls which ranks appear in trainer console output via torchrun's--local-ranks-filter. (2026-03-31)wandb.log_extras.sample_ratio/ monitor sample logging defaults:wandb.log_extras.sample_ratiois now actually applied to W&B sample-table logging via the shared monitor sampler (it was previously a no-op for WandB). Separately, the orchestrator no longer hard-caps sample logging to 8 rollouts before monitor-level sampling runs, so when monitorsample_ratioisNone, monitors now receive and may log the full rollout batch for a step instead of at most 8 rollouts. This affects both W&B and Prime monitor sample logging behavior. (2026-03-27)[model.vlm].freeze_vision_encoder: Added toVLMConfig. Controls whether the vision encoder is frozen (default:true). Whenfalse, the vision encoder is trainable and FSDP-sharded per-block. Has no effect with LoRA. Moved from[trainer.model].freeze_vision_encoderinto the VLM sub-config. (2026-03-25)loss_impl = "quack_fused"(SFT): Addedquack_fusedoption for the SFTloss_implfield. Uses quack-kernels for chunked linear + cross-entropy with CuTe DSL CUDA kernels, avoiding full logits materialization. Requiresquack-kernelspackage. Does not support Gemma logit softcapping. Custom model impl (model.impl = "custom") also gains quack RMSNorm acceleration on CUDA automatically. (2026-03-26)model.ac.targets: Removed themambaselective activation checkpoint target and folded that behavior into the broaderlinear_attntarget. Existing configs usingtargets = ["mamba"]will now fail validation at runtime withValueError; switch them totargets = ["linear_attn"]. Thelinear_attntarget description now covers supported token mixers outside the standard softmax-attention path, including NemotronH Mamba layers, Qwen3.5-MoE GatedDeltaNet layers, and AFMoE sliding-window attention layers. (2026-03-28)model.tp(trainerModelConfig): Removed from the trainer model config. Existing trainer configs must delete this field; it is no longer accepted. (2026-03-26)orchestrator.env[].num_workers: Added configurable env server worker count (int | "auto", default:"auto"). When"auto", scales based on concurrency (1 worker per 256 concurrent rollouts). Only used when the orchestrator spawns the env server (i.e.addressis not set). (2026-03-25)[model.vlm](NEW — replaces auto-detection): VLM mode is now opt-in via a[model.vlm]sub-config with requiredvision_encoder_attrandlanguage_model_attrfields. There is no auto-detection — if you train a VLM, you must add[model.vlm]. Existing multimodal configs need the new section. Seedocs/multimodal.mdfor the table of known model attrs. (2026-03-24)model.optimization_dtype/model.reduce_dtype(VLM models, RL only): VLM dtype validation now only applies to RL training (TrainerConfig), not SFT. VLM models used withsftno longer requireoptimization_dtype='bfloat16'/reduce_dtype='bfloat16'. RL training still enforces both to match vLLM inference. (2026-03-24)model.ep_comm_backend: Added expert-parallel communication backend selection. Accepted values aretorch(default, uses TorchTitan all-to-all collectives) anddeepep(uses DeepEP custom kernels). This field only affects configurations with expert parallelism enabled viamodel.ep > 1. (2026-03-22)model.deepep_num_sms: Added DeepEP SM allocation control for intranode dispatch/combine kernels (default:20, minimum:1). This field is only used whenmodel.ep_comm_backend='deepep'; it also determines the internode RDMA channel count (num_channels = num_sms / 2). (2026-03-22)model.deepep_token_chunk_size: Added optional token chunk size for DeepEP MoE pipelining (default:None, minimum:1). When set, DeepEP dispatch for chunki+1overlaps expert compute for chunki. This field is only used whenmodel.ep_comm_backend='deepep'. (2026-03-22)model.optimization_dtype/model.reduce_dtype(VLM models): Added validation that VLM models must useoptimization_dtype='bfloat16'andreduce_dtype='bfloat16'to match vLLM inference. Previously valid configs withfloat32(the default) are now rejected for VLM model names. Set both fields to"bfloat16"when training VLMs. (2026-03-21)model.ac.modeandmodel.ac.targets: Added selective activation checkpointing configuration.model.ac.modeacceptsfull(default) orselective. Whenselective,model.ac.targetsselects subcomponents to checkpoint. Supported public targets are currentlynorm,attention_sdpa,mla_up_proj, androuted_experts; runtime validation remains the source of truth.model.ac.targetsdefaults to["norm"], and selective mode requires at least one target. (2026-03-20)orchestrator.advantage.length_shaping_alpha→orchestrator.advantage.length_shaping: Replaced GR³ (length_shaping_alpha: float | None) with correctness-gated efficiency shaping (length_shaping: bool, default:false). No hyperparameter needed, noonline_difficulty_filteringrequirement. Existing configs usinglength_shaping_alphamust switch tolength_shaping = true. (2026-04-13)orchestrator.advantage.length_weighted_mean: Removed. The default advantage now always uses the plain per-problem mean baseline unlessorchestrator.advantage.length_shapingis enabled. Existing configs must delete this field. (2026-03-19)prime_monitor.log_extras.sample_ratio: Added ratio-based rollout sampling (0.0–1.0, default: None). When set, caps the number of rollouts logged per step tolen(rollouts) * sample_ratio.Nonepreserves current behavior (log all rollouts). Interacts with existingintervalgate which still runs first. (2026-03-12)client.connect_timeout: Added configurable TCP connect timeout for inference API requests (default: 30.0s). Previously hardcoded to 5.0s. Helps with vLLM or cluster flakiness (2026-03-11)model.fused_lm_head_token_chunk_size: Added as the fused LM-head chunking field for the token-chunked implementation. Unlike the removedmodel.fused_lm_head_chunk_size, this chunks over flattened sequence tokens rather than vocabulary rows.model.fused_lm_head_chunk_sizeis no longer accepted; switch configs tomodel.fused_lm_head_token_chunk_sizeexplicitly. (2026-03-09)slurm.pre_run_command: Added optional shell command to run on the head node before starting the job. Useful for cleanup routines (e.g. killing stale processes, removing lock files). For all-nodes execution, wrap withsrunin the command string (default: None) (2026-03-08)slurm.nodelist,slurm.exclude,slurm.account,slurm.time: Added common SLURM scheduling options (all default: None) (2026-03-08)orchestrator.verification.enabled: Added top-level rollout verification switch.orchestrator.buffer.skip_verificationhas been removed; useverification.enabled = falseinstead. When disabled, rewards are always 0 and reward-dependent buffer features (online_difficulty_filtering,easy_threshold,hard_threshold) must be unset (2026-03-03)client.dp_rank_count: Added configuration for data-parallel inference routing. When > 1, eachclient.base_urlis expanded intodp_rank_countlogical clients and pinned viaX-data-parallel-rankto keep multi-turn rollouts on a consistent DP rank (default: 1) (2026-03-03)model.lora: Moved frommodel.experimental.loratomodel.lora(no longer experimental) (#1440, 2025-12-16)- Auto-set
api_server_count=1on inference when LoRA is enabled, because vLLM doesn't support hotloading for multiple API servers (#1422, 2025-12-17) inference.model.rope_scaling: Added RoPE scaling configuration passthrough to vLLM (#1447 2025-12-17)orchestrator.env_mix: Deprecated in favor oforchestrator.buffer.env_ratios(#1450, 2025-12-18)orchestrator.buffer.hash_keys: Added hash keys configuration for buffer checkpointing (#1450, 2025-12-18)orchestrator.buffer.env_ratios: Added environment ratio configuration for buffer sampling (#1450, 2025-12-18)orchestrator.buffer.skip_verification: Added configuration to skip verification of rollouts using the environment's rubric. If True, rewards are always set to 0. Cannot be used withonline_difficulty_filtering=Trueor wheneasy_threshold/hard_thresholdare set (default: False)orchestrator.ckpt.buffer_path: Deprecated (#1450, 2025-12-18)orchestrator.buffer.easy_fractionandorchestrator.buffer.hard_fraction: Easy and hard fraction now defines the fraction of easy and hard problems to convert to normal when resuming, whereas previously it was the ratio of easy/ hard samples to sample per step (#1450, 2025-12-18)orchestrator.teacher_model: Added teacher model configuration for computing teacher logprobs (e.g. for distillation). SupportsTeacherModelConfig(custom model) orNone(disabled). Renamed fromreference_model(2025-12-20)seq_len: Added root-levelseq_lenconfig that sets bothtrainer.model.seq_lenandorchestrator.seq_len. Added validation thattrainer.model.seq_len >= orchestrator.seq_len(2025-12-18)trainer.loss.sequence_mask_ratio_lowandtrainer.loss.sequence_mask_ratio_high: Renamed totrainer.loss.sequence_mask_lowandtrainer.loss.sequence_mask_high(2025-12-19)trainer.loss.token_mask_highandtrainer.loss.token_mask_low: Added token-level importance ratio masking thresholds (2025-12-19)trainer.loss.sequence_clip_high: Added sequence-level importance ratio clipping threshold (2025-12-19)trainer.loss.geo_mask_highandtrainer.loss.geo_mask_low: Added geometric importance ratio masking thresholds (2025-12-19)trainer.loss.adv_tau: Added tau parameter for advantages (default: 1.0)trainer.loss.teacher_tau: Added tau parameter for teacher logprobs (default: 0.0). Renamed fromref_tauteacher_gpu_ids: Added GPU IDs for teacher inference server. When set, automatically starts a teacher inference server and configuresorchestrator.teacher_modelteacher_inference: Added optional teacher inference config. Defaults to copying frominferenceconfig with port 8001{orchestrator,trainer}.transport.zmq: Added ZMQ transport for training batches and micro batches (#1446, 2025-12-22)model.impl: Changed default fromhftoauto. Withauto, the implementation automatically selectscustomif supported for the model, otherwise falls back tohf(#1488, 2025-12-27)orchestrator.eval.skip_eval_on_resume: Added flag (defaultTrue) to skip the first potentially redundant online eval immediately after resuming from a checkpoint (#1491, 2025-12-27)trainer.weight_broadcast.adapter_only: Removed. Adapter-only behavior is now automatically derived from the presence of LoRA configuration (2025-12-27)ckpt.keep: Renamed tockpt.keep_last. Addedckpt.keep_intervalto keep checkpoints at every N steps permanently (2025-12-31)MultiLoRAMoE: QwenMoE now supports training expert loras and this is enabled by default in thetarget_modules. (2026-01-01)model.fused_lm_head_chunk_size: Added chunk size configuration for fused LM head to enable memory-efficient chunked logprob computation. When set, splits vocabulary into chunks to avoid materializing full [N, V] logit tensor (default: None) (#1525, 2026-01-03)model.fused_lm_head_chunk_size: RL training now auto-sets this to 2048 if not specified (except whenimpl='liger_kernel'). SFT training continues to use None (2026-01-05)trainer.metrics_server: Added optional Prometheus metrics server for trainer observability. Exposes/metricsendpoint with step, loss, throughput, grad_norm, etc. Disabled by default (default: None) (#1547, 2026-01-06)model.lora.alpha: Changed default from 16.0 to 32.0 (2026-01-10)orchestrator.env.log: Added logging configuration for environment workers. If set, enables logging withlevel(str, default: "warn") andvf_level(str, default: "warn") fields. If None (default), logging is disabled (#1561, 2026-01-13)eval.watcher: Added flag (defaultFalse) to watchweights_dirfor newly-created stable checkpoints and evaluate them as they appear (2026-01-14)orchestrator.log.env_worker_logs: Added flag (defaultFalse) to write env worker logs tologs/env_workers/{env_name}.log(2026-01-15)orchestrator.env.log: Removed. Useorchestrator.logfor env worker logging instead (2026-01-15)orchestrator.eval.retry.reraise: Changed default fromTruetoFalse. WhenFalse, raisestenacity.RetryErrorafter retries are exhausted instead of the original exception, allowing failed eval environments to be skipped with a warning (#1586, 2026-01-14)model.ep: Expert parallelism now supported (with auto/custom impl only), changed from the old behaviour whenep>1was a no-op to a proper parallelization of the MoE layers. (#1595, 2026-01-15)orchestrator.reload_weights_on_start: Removed. The reload was a no-op in practice since vLLM servers already start with base weights, and LoRA runs skipped it. (#1829, 2026-02-19)orchestrator.client.elastic: Added elastic inference pool with DNS-based service discovery. Supports dynamic server scaling via any DNS hostname with multiple A records (Kubernetes headless services, Consul, Route53, etc.). Automatically syncs LoRA adapters on new servers and only exposes ready servers to workers (#1617, 2026-01-19)model.fused_lm_head_chunk_size: Replaced chunk sizeint | Nonesetting withint | Literal["auto", "disabled"]setting.autoauto-sets to 2048 if possible.disabledexplicitly disables chunked loss (use vanilla LM head). Default behaviour is to useautofor RL training anddisabledfor SFT training. (not changed from previous version) (#1649, 2026-01-23)client.skip_model_check: Added configuration to skip checking if the model is available in the inference pool. Useful for external APIs or API keys that don't support the /models endpoint (default: False) (#1543, 2026-01-06)orchestrator.sampling.temp_scheduler: Added optional temperature schedule configuration with linear and cosine schedules. Set eithersampling.temperature(constant) orsampling.temp_scheduler(schedule), not both. Default remains 1.0 if neither is set. (2026-01-27)orchestrator.trajectory_strategy: Deprecated. Interleaving now automatically handles extension breaks by starting a new sample when the prefix doesn't match, achieving best-of-both behavior. The setting is ignored and interleaved mode is always used. (2026-01-30)model.impl: Removedliger_kernelmodel implementation from supported options. The Liger kernel dependency remains for SFT loss. (2026-01-30)log.json_logging: Added JSON structured logging option for log aggregation systems (Loki, Grafana, etc.). Outputs flat newline-delimited JSON withtimestamp,level,message,module,function,linefields. Available on rootlog,trainer.log, andorchestrator.log(default: False) (2026-01-28)model.optim_cpu_offload: Added flag to offload optimizer states to CPU without moving parameters (default: False) (2026-01-31)orchestrator.tasks_per_minute: Added optional rate limiting for sandbox tasks per environment worker. Uses token bucket algorithm. If None (default), no rate limiting is applied (2026-02-02)model.cp: Whencp>1withattn="flash_attention_3", requiremodel.impl="custom"(FA3 ring-attention kernel only in custom path) (2026-02-06)model.attn: Addedfa4as an attention implementation option. Flash attention 4 is only supported with the custom implementation (#1726, 2026-02-06)inference.model.enable_prefix_caching: Added flag to enable prefix caching in vLLM. Passed to vLLM as--enable-prefix-caching(default: None) (2026-02-08)orchestrator.env.address: Added address field onEnvConfig. If set, connect to an environment server at this address; if None, spawn a server in a subprocess (2026-02-06)orchestrator.env.extra_env_kwargs: Added onEnvConfig. Extra kwargs passed to the env (e.g. seq_len, interleaved_rollouts, score_rollouts). Auto-populated by the orchestrator for training envs; generally not recommended for user override. Main use case is to match these kwargs when running an env in an isolated environment server (default: {}) (2026-02-06)OrchestratorConfig: Removedworkers_per_env,max_env_worker_restarts, andmask_env_responses(2026-02-06)EvalSaveDiskConfig,EvalSaveConfig,RetryConfig,OnlineEvalConfig: Removed (2026-02-06)TemperatureScheduleConfig: Renamed toTemperatureSchedulerConfig(2026-02-06)optim.mu: Added Muon momentum (mu) config field (default: 0.95). Previously hardcoded to Muon class default. Also fixedoptim.betas1/optim.betas2not being passed through to the Muon optimizer (2026-02-09)dump_config: Added--dump-config <path>flag to therlcommand. When set, writes the resolved subconfigs (trainer, orchestrator, inference, teacher_inference) to the given directory and exits without starting any processes (2026-02-12)client.api_key_var: Changed default from "OPENAI_API_KEY" to "VLLM_API_KEY" (2026-02-12)orchestrator.filters: Added orchestrator-side rollout filters for detecting degenerate generations. Supports[[filters]] type = "gibberish"(rare tokens at high entropy) and[[filters]] type = "repetition"(high-confidence token streaks). Detected rollouts get reward zeroed and completion mask cleared (2026-02-13)inference.model.tool_call_parser: Changed default from"hermes"to auto-detection from model name. UsesMODEL_TOOL_CALL_PARSERdict to infer the correct vLLM tool call parser (e.g. Qwen3→hermes, GLM-4.5→glm45, GLM-4.7→glm47, MiniMax-M2→minimax_m2, INTELLECT-3→hermes). Unknown models default toNone. Explicit values still take priority. (#1795, 2026-02-16)orchestrator.eval.cancel_inflight_rollouts_on_eval: Added flag to optionally cancel in-flight training rollouts before starting online evals. When enabled, avoids congestion by preventing training and eval rollouts from running simultaneously, but slows training as the rollout pipeline must refill after each eval (default: False) (2026-02-16)orchestrator.use_token_client: Added flag to use the token-in-token-out (TITO) client for training across all environments. When enabled, usesopenai_chat_completions_tokenclient type instead ofopenai_chat_completions. Only use when environments have linear history and the chat template has the extension property (default: False) (2026-02-21)model.cp+ AFMoE: Context parallelism now works with AFMoE models via unifiedsubstitute_ring_attnwhich patches_compute_attentionon bothFlashAttentionandAfmoeFlashAttentionto use ring attention. Sliding window layers automatically get per-layerwindow_size; full attention layers default to(-1, -1). Also plumbedwindow_sizethrough the FA3 ring attention wrapper (ring_fa3_varlen_func). (2026-02-21)orchestrator.token_batch_sizeandorchestrator.max_inflight_rollouts: Added token-based batching viatoken_batch_sizeand explicit in-flight rollout control viamax_inflight_rollouts(2026-02-23)orchestrator.batch_size: Now optional and mutually exclusive withtoken_batch_size. If neither is set, defaults to rollout mode withbatch_size=128(2026-02-23)inference.enable_expert_parallel,inference.all2all_backend, andinference.enable_eplb: Added expert-parallel inference controls passed to vLLM as--enable-expert-parallel,--all2all-backend, and--enable-eplb(defaults:False,"allgather_reducescatter",False) (2026-02-23)rl_slurm/sft_slurmentrypoints: Removed. SLURM submission is now handled by the unifiedrlandsftentrypoints. Add a[slurm]section to your config to submit via SLURM instead of running locally (2026-02-23)inference_gpu_ids/trainer_gpu_ids/teacher_gpu_ids: Removed fromRLConfig. Replaced by[deployment]section withtype = "single_node"(fields:num_train_gpus,num_infer_gpus,num_teacher_gpus) ortype = "multi_node"(fields:num_train_nodes,num_infer_nodes,num_teacher_nodes,nodes_per_fsdp_group). Default issingle_nodewith 1 train GPU and 1 infer GPU (2026-02-23)RLSLURMConfig: Removed. Fieldsjob_name,num_train_nodes,num_infer_nodes,gpus_per_node,nodes_per_fsdp_group,project_dir,slurm_template,dry_runare now under[slurm]and[deployment]in the unifiedRLConfig(2026-02-23)SFTSLURMConfig: Removed. Fieldsjob_name,num_nodes,gpus_per_node,nodes_per_fsdp_group,project_dir,slurm_template,dry_runare now under[slurm]and[deployment]inSFTConfig(2026-02-23)[deployment](RL): Added deployment configuration.type = "single_node"auto-derives contiguous GPU assignments fromnum_infer_gpus,num_train_gpus,num_teacher_gpus.type = "multi_node"requires[slurm]and usesnum_train_nodes,num_infer_nodes(2026-02-23)[deployment](SFT): Added deployment configuration.type = "single_node"withnum_gpus(default: 1).type = "multi_node"withnum_nodes,nodes_per_fsdp_group,hf_hub_offline(2026-02-23)[slurm](RL): Added SLURM configuration withjob_name,project_dir,template_path,partition,dry_run. When present,uv run rlgenerates and submits an sbatch script instead of running locally. Template is auto-selected based on deployment type (2026-02-23)[slurm](SFT): Added SLURM configuration withjob_name,project_dir,template_path,partition,dry_run. When present,uv run sftgenerates and submits an sbatch script instead of running locally (2026-02-23)hf_hub_offline(RL/SFT SLURM): Removed.HF_HUB_OFFLINE=1is now hardcoded in the multi-node SLURM templates (2026-02-23)- SLURM templates: Moved from
src/prime_rl/slurm/tosrc/prime_rl/templates/and renamed tosingle_node_rl.sbatch.j2,multi_node_rl.sbatch.j2,single_node_sft.sbatch.j2,multi_node_sft.sbatch.j2(2026-02-23) - Entrypoints: Moved
rlandsftentrypoints fromprime_rl.rl/prime_rl.sfttoprime_rl.entrypoints.rl/prime_rl.entrypoints.sft. No change to CLI usage (uv run rl,uv run sft) (2026-02-24) output_dir(RL): Changed fromPath | None(defaultNone) toPath(defaultPath("outputs")). The SLURM-specific validation that rejected the default has been removed —output_dirnow works the same for local and SLURM runs (2026-02-24)clean_output_dir: Added toRLConfigandSFTConfig(default:False). Training now raisesFileExistsErrorwhenoutput_dircontains checkpoints from a previous run and not resuming. Setclean_output_dir=trueto delete and start fresh, or setckpt.resume_stepto resume (2026-02-24)clean: Removed fromRLConfig. The oldcleanflag (default:True) silently deleted logs, rollouts, and broadcasts on every local RL run. Superseded by the explicitclean_output_dirflag (2026-02-24)- Config consolidation: All config modules moved into
prime_rl.configssubpackage.utils/config.py+transport/config.py→configs/shared.py;trainer/config.py+trainer/rl/config.py→configs/trainer.py;trainer/sft/config.py→configs/sft.py;orchestrator/config.py→configs/orchestrator.py;inference/config.py→configs/inference.py;rl_config.py→configs/rl.py. Class renames:SFTTrainerConfig→SFTConfig,RLTrainerConfig→TrainerConfig. Component prefixes dropped from orchestrator and inference config classes (e.g.OrchestratorCheckpointConfig→CheckpointConfig). TypeAlias renames: droppedTypesuffix (e.g.LossConfigType→LossConfig,TransportConfigType→TransportConfig), renamedLossConfigclass →DefaultLossConfig. No TOML key changes. (2026-02-24) trainer.enable_router_replay: Added flag to enable router replay. If True, will return routed experts in the batch. This is only supported ifenable_return_routed_experts=Truein the inference config or pass--enable-return-routed-expertsto vLLM server. This is only supported for custom models. (2026-02-22)inference.enable_return_routed_experts: Added flag to enable return routed experts. Passed to vLLM as--enable-return-routed-experts(2026-02-22)orchestrator.oversampling_factor: Added rollout-only over-sampling config that resolvesmax_inflight_rollouts = int(batch_size * oversampling_factor)whenmax_inflight_rolloutsis unset. Cannot be used withtoken_batch_sizeor together with explicitmax_inflight_rollouts(2026-02-25)sft.val: Added optional periodic SFT validation withval/lossandval/num_tokenslogging. Configure viasft.val.data(validation dataset) andsft.val.interval(every N steps, default 50). Runs the full validation dataset each pass. (2026-02-26)model.fused_lm_head_chunk_size: Changed default value from 2048 to 8192 for RL training (2026-02-26)inference.data_parallel_size_localandinference.data_parallel_rpc_port: Added data-parallel node-local controls for vLLM, passed as--data-parallel-size-localand--data-parallel-rpc-port(defaults:None,13345) (2026-02-26)dump_config: Removed fromRLConfig. Replaced bydry_run(see below) (2026-02-26)slurm.dry_run: Removed fromSlurmConfig. Replaced by top-leveldry_run(see below) (2026-02-26)dry_run: Added toRLConfigandSFTConfig(default:False). When set, validates the config, writes resolved subconfigs tooutput_dir/configs/, and exits without starting any processes. Works the same for both local and SLURM runs (2026-02-26)- Config output location: Resolved subconfigs are now always written to
output_dir/configs/instead of.pydantic_config/<uuid>/. This applies to both local and SLURM entrypoints, and for both single-node and multi-node deployments (2026-02-26) - SFT config filename: The resolved SFT trainer config is now written as
sft.tomlinstead oftrainer.toml(2026-02-26) - Inference entrypoint: Moved from
prime_rl.inference.servertoprime_rl.entrypoints.inference. No change to CLI usage (uv run inference) (2026-02-26) [slurm](inference): Added SLURM configuration toInferenceConfig. When present,uv run inferencegenerates and submits an sbatch script instead of running locally. Each SLURM node runs an independent vLLM replica (no cross-node parallelism) (2026-02-26)[deployment](inference): Added deployment configuration.type = "single_node"(default) withgpus_per_node.type = "multi_node"withnum_nodesandgpus_per_node— requires[slurm](2026-02-26)inference.output_dir: Added directory for SLURM logs and generated scripts (default:"outputs") (2026-02-26)inference.dry_run: Added flag (default:False). When set, validates config, writes resolved config tooutput_dir/configs/, and exits without starting inference or submitting SLURM jobs (2026-02-26)orchestrator.teacher_rollout_model: Added optional external rollout model configuration. When set, rollouts are generated from this endpoint/model instead of the student inference server. Accepts aTeacherRolloutModelConfigwithclientandmodelsub-fields, orNone(default:None) (2026-02-26)trainer.loss.type = "sft": Added SFT loss variant. Settrainer.loss.type = "sft"to use masked negative log-likelihood loss instead of the default RL loss (2026-02-26)trainer.loss.type = "custom": Added custom loss variant. Settrainer.loss.type = "custom"withimport_path(e.g."my_module.my_loss") and optionalkwargsto use an external loss function (2026-02-26)trainer.loss(default loss): Made IPO (DPPO-Binary TV variant (arxiv) + Kimi-K2.5 KL (Kimi-K2.5)) the default loss. Removedratio_type,token_mask_low,token_mask_high,sequence_clip_high,geo_mask_low,geo_mask_high,sequence_mask_low,sequence_mask_high. Addedipo_mask_low(default: 0.2) andipo_mask_high(default: 0.2) for token-level probability-difference masking. Changedkl_taudefault from0.0to1e-3. (2026-03-02)- Metrics logging overhaul: All orchestrator metrics now follow a
{metric}/{scope}/{stat}naming convention where scope isall(global) or an env name. Per-env breakdowns are always logged (previously only when >1 env). Key renames:reward/mean→reward/all/mean,batch/solve_none→solve_none/all,val_reward/→val/reward/,metrics/{name}→metrics/{env}/{name},stop_condition/{sc}→stop_condition/all/{sc},error/mean→error/all/mean. New per-env metrics:solve_none/{env},solve_all/{env},effective_batch_size/{env},stop_condition/{env}/generation_truncated,stop_condition/{env}/{sc},error/{env}/mean, plus per-env breakdowns forseq_len,prefill_len,decode_len,is_truncated,samples_per_rollout,num_turns,generation_ms,scoring_ms. Removed:reward/std,reward/median, per-error-type breakdown (error/{error_type}). Env name"all"is reserved and rejected at config validation. Env name validation now strips@versionsuffixes to match runtime behavior (e.g.math@1.0andmath@2.0correctly detected as duplicates). Solve stats now useexample_idgrouping instead of index arithmetic (pre-existing bug fix). (2026-03-08) wandb.shared(experimental): Added shared W&B mode that logs trainer and orchestrator metrics to a single W&B run instead of two separate runs. Useswandb.Settings(mode="shared")(requires wandb SDK >= 0.19.9). Enabled by default on the RL entrypoint. Disable with--wandb.shared False. Run ID is communicated viaWANDB_SHARED_RUN_IDenv var; process role viaWANDB_SHARED_LABEL. Non-primary processes retrywandb.initup to 30 times waiting for the primary to create the run. Works with multi-node SLURM. (2026-03-18)wandb.id: Removed fromWandbConfig. Run IDs are now managed internally via env vars for shared mode. (2026-03-18)trainer.ckpt.skip_optimizer: Added flag to skip loading optimizer states when resuming training. When set, only the model weights are loaded from the checkpoint. (2026-03-24)