Skip to content

[None][fix] trtllm_modeling_v2: give boot and serve answers 128 tokens - #21779

Closed
Wanli-Jiang wants to merge 1 commit into
NVIDIA:mainfrom
Wanli-Jiang:user/williamj/mv2flow-boot-max-tokens
Closed

Wanli-Jiang wants to merge 1 commit into
NVIDIA:mainfrom
Wanli-Jiang:user/williamj/mv2flow-boot-max-tokens

Conversation

@Wanli-Jiang

Copy link
Copy Markdown
Collaborator

@coderabbitai summary

Description

trtllm_modeling_v2 agent flow (agent-flow/) only. Split out of #21629.

The boot and serve keyword checks failed a working target: the boot workload allowed 48 tokens and the serve gate 32, and with a chat template a thinking model states the GSM8K "Natalia" prompt's expected 72 only after about 50 tokens. The serve gate also gave its answers to the boot prompts its own budget, so raising the boot's alone did not help it.

  • accuracy.boot.max_tokens and accuracy.serve.max_tokens default to 128 (were 32), through one constant, DEFAULT_BOOT_MAX_TOKENS, shared by the boot spec, the serve spec and the derived spec's default boot block.
  • The serve gate gives each answer it holds to the boot workload's keywords the larger of the serve and the boot max_tokens.
  • INTAKE.md and task.example.yaml say why the budget must cover the checked answers.

Test Coverage

  • agent-flow/tests/workflows/trtllm_modeling_v2/test_gates.py::test_a_checked_boot_prompt_has_room_for_its_answer_at_boot_and_at_serve (fails on main: [32] == [128]).
  • agent-flow/tests: 1830 passed.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

… to finish

The boot and serve keyword checks failed a working target: the boot
workload allowed 48 tokens and the serve gate 32, and with a chat
template a thinking model states the GSM8K "Natalia" prompt's expected
72 only after some 50 tokens. The serve gate also gave its answers to
the boot prompts its own budget, so raising the boot's alone did not
help it.

accuracy.boot.max_tokens and accuracy.serve.max_tokens now default to
128 (DEFAULT_BOOT_MAX_TOKENS, shared by the boot spec, the serve spec
and the derived spec's default boot block), and the serve gate gives
each answer it holds to the boot workload's keywords the larger of the
serve and the boot max_tokens. INTAKE.md and task.example.yaml say why
the budget must cover the checked answers.

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
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.

1 participant