Repository navigation
feat: tidy the config package after review - #4927
Closed
mikasenghaas wants to merge 1 commit into
Closed
mikasenghaas wants to merge 1 commit into
mikasenghaas wants to merge 1 commit into
Conversation
Type InferenceConfig.components() like the other entrypoints, move auto_setup_draft_swaps below the RLConfig fields, drop a stray TODO and two stale "per-node config" remarks, and declare pydantic>=2, which the package and pydantic-config need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mikasenghaas
force-pushed
the
feat/config-nits
branch
from
December 3, 2026 03:11
400ad11 to
74cf7ab
Compare
Member
Author
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. The peer review of the config stack listed five small issues that no other PR in the stack fixes.
Idea. Fix each in place:
InferenceConfig.components()returnsdict[str, ComponentConfig], like the other entrypoints andEntrypointConfig. It returneddict[str, Any].RLConfig.auto_setup_draft_swapssat between the field definitions. It now follows the last field. It is still the firstaftervalidator, so the order in which the validators run does not change.# TODO: Set thinking/ solution budgetincomponents/engine/vllm.pyis removed.prime-rl-configsdeclarespydantic>=2.0.0, not>=1.10.13. The package uses pydantic 2 APIs, andprime-pydantic-configalready requires>=2.0.0.uv.lockchanges only this specifier.return_sampling_maskdocstring drops its sentence, and the P/D sbatch comments name the role's engine config.Verification
On 400ad11 (rebased without changes to 74cf7ab), on macOS without torch or vllm:
inference.sbatchandrl.sbatchfiles.Merge order
Stacked on #4926 (#4899 → #4905 → #4909 → #4919 → #4921 → #4922 → #4923 → #4924 → #4925 → #4926 → this PR).
🤖 Generated with Claude Code
Note
Low Risk
Documentation, typing, dependency floor, and validator placement only; tests reported unchanged aside from regenerated sbatch comments.
Overview
Addresses post-review nits in
prime-rl-configswithout changing runtime behavior.Typing & deps.
InferenceConfig.components()now returnsdict[str, ComponentConfig], matchingEntrypointConfigand other entrypoints. The package declarespydantic>=2.0.0(was>=1.10.13), aligned with pydantic v2 APIs andprime-pydantic-config;uv.lockupdates the specifier only.Structure & cleanup.
RLConfig.auto_setup_draft_swapsmoves below the last field (still the firstmode="after"validator, so order is unchanged). Removes the stray TODO invllm.py.enable_return_sampling_maskdoc drops the obsolete “persists into per-node configs” sentence; P/D SLURM comments say kv_transfer is built from the role's engine config instead of “per-node config.”Reviewed by Cursor Bugbot for commit 74cf7ab. Bugbot is set up for automated code reviews on this repo. Configure here.