-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[None][test] Add InferenceX-style GSM8K accuracy eval mode #18738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zheyuf
merged 3 commits into
NVIDIA:main
from
zheyuf:zheyu/test/gsm8k-inferencemax-main
Sep 16, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
50 changes: 50 additions & 0 deletions
50
tensorrt_llm/evaluate/lm_eval_tasks/gsm8k_inferencex/gsm8k_inferencex.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # SemiAnalysisAI/InferenceX infx/evals/gsm8k.yaml (upstream lm-eval gsm8k.yaml with a | ||
| # "#### [number]" answer-format instruction, lm-evaluation-harness#3411), renamed to | ||
| # avoid the registry clash and with max_gen_toks set to InferenceX's documented eval-only | ||
| # budget (16384 context minus 4096 prompt). | ||
| tag: | ||
| - math_word_problems | ||
| task: gsm8k_inferencex | ||
| dataset_path: openai/gsm8k | ||
| dataset_name: main | ||
| output_type: generate_until | ||
| training_split: train | ||
| fewshot_split: train | ||
| test_split: test | ||
| doc_to_text: "Question: {{question}}\nEnd your response with the answer on the last line, formatted as: #### [number]\nAnswer:" | ||
| doc_to_target: "{{answer}}" | ||
| metric_list: | ||
| - metric: exact_match | ||
| aggregation: mean | ||
| higher_is_better: true | ||
| ignore_case: true | ||
| ignore_punctuation: false | ||
| regexes_to_ignore: | ||
| - "," | ||
| - "\\$" | ||
| - "(?s).*#### " | ||
| - "\\.$" | ||
| generation_kwargs: | ||
| until: | ||
| - "</s>" | ||
| - "<|im_end|>" | ||
| do_sample: false | ||
| temperature: 0.0 | ||
| max_gen_toks: 12288 | ||
| repeats: 1 | ||
| num_fewshot: 5 | ||
| filter_list: | ||
| - name: "strict-match" | ||
| filter: | ||
| - function: "regex" | ||
| group_select: -1 | ||
| regex_pattern: "#### (\\-?[0-9\\.\\,]+)" | ||
| - function: "take_first" | ||
| - name: "flexible-extract" | ||
| filter: | ||
| - function: "regex" | ||
| group_select: -1 | ||
| regex_pattern: "(-?[$0-9.,]{2,})|(-?[0-9]+)" | ||
| - function: "take_first" | ||
| metadata: | ||
| version: 3.0 |
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
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
13 changes: 13 additions & 0 deletions
13
tests/integration/defs/accuracy/references/gsm8k_inferencex.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # GSM8K under the InferenceX protocol (GSM8KInferenceX in accuracy_core.py). | ||
| # accuracy: mean of the published InferenceX vLLM B200 FP4 rows run with thinking enabled | ||
| # (inferencex.semianalysis.com/api/v1/evaluations, 2026-08). threshold: explicit floor | ||
| # (InferenceX's own gate is 90.0). | ||
| nvidia/MiniMax-M3-NVFP4: | ||
| # MSA path, FP8 KV cache, one-model Eagle3, thinking_mode enabled (rows: 97.27, 96.74). | ||
| - quant_algo: MIXED_PRECISION | ||
| kv_cache_quant_algo: FP8 | ||
| spec_dec_algo: Eagle3 | ||
| accuracy: 97.0 | ||
| threshold: 94.0 |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.