Repository navigation
fix: pass shared [monitors.file] settings to trainer and orchestrator - #4901
Open
mikasenghaas wants to merge 1 commit into
Open
mikasenghaas wants to merge 1 commit into
mikasenghaas wants to merge 1 commit into
Conversation
This was referenced Dec 2, 2026
mikasenghaas
force-pushed
the
fix/shared-file-monitor
branch
from
December 2, 2026 19:36
126a6f4 to
553c6a5
Compare
This was referenced Dec 2, 2026
mikasenghaas
force-pushed
the
feat/public-internal-configs
branch
from
December 2, 2026 22:05
d537b9e to
e0f7246
Compare
mikasenghaas
force-pushed
the
fix/shared-file-monitor
branch
from
December 2, 2026 22:05
553c6a5 to
574a254
Compare
A shared [monitors.file] block passed only its path down. Its other settings (trace_sample, live, chunk_bytes, ...) never reached the trainer or the orchestrator, which kept their defaults without a warning. Propagate every FileMonitorConfig field. A resolved rl.json dumps every shared leaf, defaults included, so a re-load saw those defaults as values that conflict with a component's own setting. [ckpt] with [orchestrator.ckpt] rollouts = true already failed to re-load this way, and the file monitor fields would have too. A shared value equal to its class default now never conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mikasenghaas
force-pushed
the
fix/shared-file-monitor
branch
from
December 2, 2026 22:37
574a254 to
c12e608
Compare
mikasenghaas
changed the base branch from
feat/public-internal-configs
to
main
December 2, 2026 22:44
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why. Under
uv run rl, a shared[monitors.file]block passes onlypathto the trainer and the orchestrator. Its other settings (trace_sample,live,chunk_bytes,compress,float_decimals) are dropped without a warning, and both components keep their defaults. So[monitors.file] trace_sample = 0.1still writes every trace.Idea. Propagate every
FileMonitorConfigfield, not a hand-kept list. This exposed a second bug. A resolvedrl.jsondumps every shared leaf, defaults included. On re-load (uv run rl @ rl.json, as single-node SLURM does), the propagation reads those defaults as user values. So they conflict with a value set on one component. This already breaks[ckpt]with[orchestrator.ckpt] rollouts = true, and the file monitor fields would break the same way. So a shared value that equals its class default now never conflicts:propagate_shared_fieldsnow takes the config class that holds the shared fields (RLConfig), to look up the defaults.Verification
The repro and the mutation table ran on 126a6f4 on macOS, before the rebase onto
main. The env has no torch. On c12e608 (onmainat 9d0453a),tests/unitgives 777 passed, 50 failed, 111 collection errors in 10 s. Every failure and error is a module my env lacks.Repro: resolve a config, read the components, and re-load its dumped JSON.
[monitors.file] trace_sample = 0.1, live = falsetrace_sample = 1.0,live = true0.1,false[ckpt]+[orchestrator.ckpt] rollouts = true, re-loadrl.json['ckpt.rollouts'] is set, but ['orchestrator.ckpt.rollouts'] is also set[monitors.file]+[orchestrator.monitors.file] trace_sample = 0.5, re-loadwandb_gql, env tasksets), and each occurs on the base branch too.pathonly)test_shared_file_monitor_settings_reach_both_componentsfailstest_resolved_json_with_shared_defaults_roundtripsfail with the conflict errorMerge order
This PR targets
mainand is independent of the config-layout stack (#4899 → #4905 → #4909). Whichever merges second rebases; #4899 movesconfigs/rl.pytoconfigs/entrypoints/rl.py.🤖 Generated with Claude Code
Note
Low Risk
Scoped to RL config propagation and validation; behavior changes are bug fixes with new unit tests, with no auth or data-path impact.
Overview
Fixes shared
[monitors.file]on therlentrypoint so allFileMonitorConfigfields (e.g.trace_sample,live,chunk_bytes) propagate to trainer and orchestrator, not onlypath.propagate_shared_fieldsnow receives the RL config class and uses newfield_defaulthelpers to compare shared values against Pydantic defaults. Shared leaves that are just defaults no longer trigger mutex conflicts when a component sets a different explicit value—so resolvedrl.jsonfiles round-trip via@without false positives (notablyckpt.rolloutsvsorchestrator.ckpt.rollouts).Also updates
scripts/mini_moe.pyto importQwen3_5ForCausalLMfromqwen3_5instead of the oldqwen3_5_moemodule. Unit tests cover file-monitor propagation and default round-trip cases.Reviewed by Cursor Bugbot for commit c12e608. Bugbot is set up for automated code reviews on this repo. Configure here.