Skip to content

fix: preserve CLI scenario overrides when using --config - #64

Open
lvliang-intel wants to merge 1 commit into
SemiAnalysisAI:masterfrom
lvliang-intel:fix_cli_scenario_issue
Open

lvliang-intel wants to merge 1 commit into
SemiAnalysisAI:masterfrom
lvliang-intel:fix_cli_scenario_issue

Conversation

@lvliang-intel

Copy link
Copy Markdown

Summary

Fix --scenario and --unsafe-override being ignored when used with --config.

Root Cause
The config-file merge path omitted these fields from CLI overrides, silently dropping a CLI-only scenario.

For example, our benchmark used:
aiperf profile --config benchmark_config.json --scenario inferencex-agentx-mvp

The resolved scenario remained None, so its required ignore_eos=True was never injected. Generation could stop at EOS early, despite expecting scenario-enforced EOS suppression.

Solution
Reuse _apply_scenario_fields in the config-file merge path. Explicit CLI values override file values, including False; omitted flags preserve file values. Add regression tests and document the precedence rules.

Validation

181 related tests passed, including the ignore_eos injection regression.
All applicable pre-commit checks passed.

…onfig

Signed-off-by: lvliang-intel <liang1.lv@intel.com>
@cursor

cursor Bot commented Oct 26, 2026

Copy link
Copy Markdown

Bugbot is paused — your team has an unpaid invoice

Bugbot is paused because your team has an unpaid invoice.

Pay it from the billing page in the Cursor dashboard and Bugbot resumes automatically.

(requestId: 5cf1c724-2c15-4e70-a335-e8560d515c7a)

@github-actions

Copy link
Copy Markdown

Try out this PR

Quick install:

pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@c91eb8d4907eab3822279e972bf17eecf49bec5a

Recommended with virtual environment (using uv):

uv venv --python 3.12 && source .venv/bin/activate
uv pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@c91eb8d4907eab3822279e972bf17eecf49bec5a

Last updated for commit: c91eb8d • Browse code

@lvliang-intel lvliang-intel changed the title Fix CLI --scenario and --unsafe-override being ignored when using --config fix: preserve CLI scenario overrides when using --config Oct 26, 2026
@github-actions github-actions Bot added the fix label Oct 26, 2026
@hshen14

hshen14 commented Oct 26, 2026

Copy link
Copy Markdown

Hi @FrankD412 please help review the PR. Thanks.

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants