Repository navigation
fix(agentx): use 10 output tokens for agentic warmup requests - #74
Closed
whiz-Tuhin wants to merge 1 commit into
Closed
whiz-Tuhin wants to merge 1 commit into
whiz-Tuhin wants to merge 1 commit into
Conversation
Warmup capped every request at 1 output token, which the prefill produces alone, so warmup never ran the decode path or, in disaggregated serving, the KV transfer to decode. Raise the cap to 10, have the tests reference the constant, and update the --agentic-cache-warmup-duration help text and generated docs. Signed-off-by: Tuhin Khare <tkhare@nvidia.com>
Try out this PRQuick install: pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@d1dd085779ab2fdeb08004e67ccd43e36f07b3eeRecommended 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@d1dd085779ab2fdeb08004e67ccd43e36f07b3eeLast updated for commit: |
|
Moved upstream as ai-dynamo#1795, with your commit and authorship kept. Once it merges there we will cherry-pick it into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
_WARMUP_MAX_TOKENSinsrc/aiperf/timing/strategies/agentic_replay.pygoes from 1 to 10. It caps the output length of every agentic warmup request (snapshot primers and the cache-pressure stage). Profiling requests are unchanged.tests/unit/timing/strategies/test_agentic_replay.pynow assert against the constant instead of the literal 1.--agentic-cache-warmup-durationhelp text said "one-token outputs"; it now says "outputs capped at 10 tokens".docs/cli-options.mdand the config schema are regenerated.Why
With 1 output token the prefill produces the only token, so warmup never runs decode. With 10, warmup now exercises the decode path, including the KV transfer in disaggregated serving.
How tested
make test: all unit tests pass excepttests/unit/property/test_finite_invariants.py::test_every_numeric_field_has_bounds, which fails the same way onmaster(ScenarioSpec.environment_defaultshas no numeric bound), unrelated to this change.max_tokens_override is None) still passes.ruff check,ruff format,make check-ergonomics,make check-ruff-baselined,make check-config-schemapass.Relation to PR 68
PR 68 makes the synthesized agentic warmup opt-in (
--agentic-warmup) but keeps the warmup code path and this constant. The two changes are independent: this one sets the output length used when the warmup runs. A trial merge of the two branches gives no conflict in the files this PR touches.Signed-off-by is on the commit (DCO).
Note
Low Risk
Scoped to agentic replay warmup request shaping and docs; profiling behavior is unchanged, with a modest increase in warmup decode load.
Overview
Raises
_WARMUP_MAX_TOKENSinagentic_replay.pyfrom 1 to 10, so agentic replay warmup (snapshot primers and cache-pressure stage) requests cap output length at 10 tokens instead of 1. Profiling turns are unchanged (max_tokens_overridestays unset).CLI/config help and regenerated
docs/cli-options.mdnow describe “outputs capped at 10 tokens” for--agentic-cache-warmup-duration. Unit tests import the constant and assert against_WARMUP_MAX_TOKENSinstead of the literal1.Reviewed by Cursor Bugbot for commit d1dd085. Bugbot is set up for automated code reviews on this repo. Configure here.