Skip to content

Preserve typed sampling parameters for nested task overrides - #522

Merged
abhishekraok merged 2 commits into
mainfrom
codex/preserve-nested-sampling-overrides
Nov 10, 2026
Merged

abhishekraok merged 2 commits into
mainfrom
codex/preserve-nested-sampling-overrides

Conversation

@abhishekraok

Copy link
Copy Markdown
Collaborator

Codex · codex://threads/01a1326f-ed81-75e3-80e4-661392dbe4b5

Merge -o sampling_params.max_tokens=32768 into typed task sampling parameters instead of replacing them with a dictionary. Preserve the task's other sampling defaults and existing flat overrides; flat keys take precedence if both spellings are supplied. Build Beaker task previews through the same configuration path as runtime.

Fixes #397. No default task specifications or pinned task hashes change. Reference: current CLI/runtime behavior at 1b9fe6f3; no external benchmark changes.

Validation at 52c4464a:

  • uv run --frozen --no-group vllm ruff check src/ tests/ and ruff format --check src/ tests/: pass.
  • uv run --frozen --no-group vllm ty check src/: pass. The older ty check src/ alembic/ command fails because this revision has no root alembic/ directory.
  • PATH=<bundled-git>:$PATH TERM=xterm-256color COLUMNS=200 uv run --frozen --no-group vllm pytest tests/ --ignore=tests/integration -q --basetemp=/tmp/oe397: 5,063 passed, 41 skipped. CLI/Beaker focused tests: 107 passed.
  • Independent Claude review: no blockers.

No GPU or Beaker run; the regression exercises CLI parsing, runtime task configuration, hashable sampling parameters, and launch preview consistency on CPU.

Preserve typed sampling params for nested task overrides
@abhishekraok
abhishekraok requested a review from a team as a code owner October 31, 2026 18:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:43:15.274056Z e0eff8d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abhishekraok abhishekraok left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Written by Claude Code session fix-pr-review

Reviewed at e0eff8d (after update from main). Looks correct; no blockers.

  • Checked end to end with the mock provider: olmo-eval run -m mock -t ifeval -o sampling_params.max_tokens=32768 -o limit=3 --no-upload completes and stores max_tokens: 32768 in the task config; tests cover flat-vs-nested precedence and Beaker-preview/runtime parity.
  • Non-blocking: AsyncEvalRunner still calls get_task(spec, overrides) for its pre-checks (runners/asynq/runner.py ~L1039) with the raw sampling_params dict; only configure_task hydrates it. Harmless today because those checks don't hash the config, but hydrating in one place would remove the trap.
  • Composes with null-override-parse (#517): -o sampling_params.max_tokens=null yields None once both land; all five open fix PRs merged together pass the CPU suite.

@abhishekraok
abhishekraok added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 97d209e Nov 10, 2026
8 checks passed
@abhishekraok
abhishekraok deleted the codex/preserve-nested-sampling-overrides branch November 10, 2026 00:47
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.

CLI -o sampling_params.* override corrupts TaskConfig and crashes every worker

2 participants