Skip to content

feat: tidy the config package after review - #4927

Closed
mikasenghaas wants to merge 1 commit into
feat/config-utilsfrom
feat/config-nits
Closed

mikasenghaas wants to merge 1 commit into
feat/config-utilsfrom
feat/config-nits

Conversation

@mikasenghaas

@mikasenghaas mikasenghaas commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

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() returns dict[str, ComponentConfig], like the other entrypoints and EntrypointConfig. It returned dict[str, Any].
  • RLConfig.auto_setup_draft_swaps sat between the field definitions. It now follows the last field. It is still the first after validator, so the order in which the validators run does not change.
  • The stray # TODO: Set thinking/ solution budget in components/engine/vllm.py is removed.
  • prime-rl-configs declares pydantic>=2.0.0, not >=1.10.13. The package uses pydantic 2 APIs, and prime-pydantic-config already requires >=2.0.0. uv.lock changes only this specifier.
  • Two stale "per-node config" remarks now name what they mean: the return_sampling_mask docstring 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:

  • Launcher output. I dry-ran the 103 launcher cases against feat: keep config logic inside prime_rl.configs #4926. The only difference is the edited comment line in 11 P/D inference.sbatch and rl.sbatch files.
  • Tests. The config, launch, router, resume, client, dynamo, algorithm, model-source, control, dashboard and parser tests: 976 passed.

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-configs without changing runtime behavior.

Typing & deps. InferenceConfig.components() now returns dict[str, ComponentConfig], matching EntrypointConfig and other entrypoints. The package declares pydantic>=2.0.0 (was >=1.10.13), aligned with pydantic v2 APIs and prime-pydantic-config; uv.lock updates the specifier only.

Structure & cleanup. RLConfig.auto_setup_draft_swaps moves below the last field (still the first mode="after" validator, so order is unchanged). Removes the stray TODO in vllm.py. enable_return_sampling_mask doc 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.

@mikasenghaas
mikasenghaas added this pull request to stack #4918 December 3, 2026 03:10
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

Copy link
Copy Markdown
Member Author

Folded into #4919. The config stack is now four PRs, one per motivation: #4899 (public vs internal configs) → #4909 (a complete config per process) → #4919 (package layout) → #4928 (resolve each value in one place).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant