Skip to content

Add run_config passthrough for orchestrator settings#497

Merged
rasdani merged 1 commit intomainfrom
feature/run-config-passthrough
Apr 13, 2026
Merged

Add run_config passthrough for orchestrator settings#497
rasdani merged 1 commit intomainfrom
feature/run-config-passthrough

Conversation

@rasdani
Copy link
Copy Markdown
Collaborator

@rasdani rasdani commented Apr 7, 2026

Summary

  • Expose [run_config] TOML section for passing arbitrary orchestrator CLI args to hosted training
  • The backend already supports runConfig as a freeform dict converted to CLI args — this just wires it up in the CLI
  • Enables settings like use_token_client, max_concurrent, filters, advantage, etc. that aren't first-class CLI fields

Usage

model = "Qwen/Qwen3-4B-Thinking-2507"
batch_size = 256

[run_config]
use_token_client = false
max_concurrent = 512

Test plan

  • prime rl run with [run_config] section parses without error
  • Verify runConfig appears in API payload
  • Verify orchestrator receives the extra CLI args

🤖 Generated with Claude Code


Note

Medium Risk
Adds a freeform run_config dict to the RL run config and forwards it to the /rft/runs payload, which can change orchestrator behavior and potentially cause unexpected run failures if misconfigured.

Overview
Adds support for a freeform run_config section in prime rl run configs. The CLI now parses run_config, prints it in the training config preview, and passes it through to RLClient.create_run so it is included as run_config in the /rft/runs request payload.

Reviewed by Cursor Bugbot for commit b6d3de4. Bugbot is set up for automated code reviews on this repo. Configure here.

Expose the `[run_config]` TOML section to pass arbitrary orchestrator
CLI args (e.g. use_token_client, max_concurrent, filters) through to
hosted training. The backend already supports `runConfig` as a freeform
dict that gets converted to CLI args via `_build_cli_args`.

Usage:
  [run_config]
  use_token_client = false
  max_concurrent = 512

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rasdani rasdani requested a review from JannikSt April 7, 2026 19:13
@rasdani rasdani merged commit c46c4a7 into main Apr 13, 2026
12 checks passed
@rasdani rasdani deleted the feature/run-config-passthrough branch April 13, 2026 09:47
@rasdani rasdani mentioned this pull request Apr 13, 2026
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.

2 participants