Skip to content

Set warmup salt to true as default#365

Open
arekay-nv wants to merge 1 commit into
mainfrom
arekay/main/set_warmup_salt_true
Open

Set warmup salt to true as default#365
arekay-nv wants to merge 1 commit into
mainfrom
arekay/main/set_warmup_salt_true

Conversation

@arekay-nv

Copy link
Copy Markdown
Collaborator

What does this PR do?

Enable warmup to use salt by default.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor/cleanup

Related issues

Testing

  • Tests added/updated
  • All tests pass locally
  • Manual testing completed

Checklist

  • Code follows project style
  • Pre-commit hooks pass
  • Documentation updated (if needed)

Signed-off-by: Rashid Kaleem <230885705+arekay-nv@users.noreply.github.com>
@arekay-nv arekay-nv requested a review from a team June 22, 2026 03:19
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@github-actions github-actions Bot requested a review from nvzhihanj June 22, 2026 03:20

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request changes the default value of the warmup salt configuration from False to True across the schema, configuration templates, and unit tests. Feedback suggests adding a negative CLI flag (--no-warmup-salt) to ensure users can still disable warmup salting from the command line now that it is enabled by default.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines 513 to +516
help="Prepend a unique random hex salt to each warmup prompt",
),
] = Field(
False, description="Prepend a unique random hex salt to each warmup prompt"
True, description="Prepend a unique random hex salt to each warmup prompt"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since salt now defaults to True, users who want to disable warmup salting via the CLI will need a negative flag (e.g., --no-warmup-salt). Currently, cyclopts.Parameter only defines the alias --warmup-salt without a corresponding negative flag. Adding negative="--no-warmup-salt" ensures that users can easily disable it from the command line.

            help="Prepend a unique random hex salt to each warmup prompt",
            negative="--no-warmup-salt",
        ),
    ] = Field(
        True, description="Prepend a unique random hex salt to each warmup prompt"

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