This repository was archived by the owner on Apr 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Update MMLU/GPQA/LongBench accuracy benchmarks and Add document #63
Merged
Merged
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Accuracy Benchmark | ||
|
|
||
| In srt-slurm, users can run different accuracy benchmarks by setting the benchmark section in the config yaml file. Supported benchmarks include `mmlu`, `gpqa` and `longbenchv2`. | ||
|
|
||
| **Note that the `context-length` argument in the config yaml needs to be larger than the `max_tokens` argument of accuracy benchmark.** | ||
|
|
||
|
|
||
| ## MMLU | ||
|
|
||
| For MMLU dataset, the benchmark section in yaml file can be modified in the following way: | ||
| ```bash | ||
| benchmark: | ||
| type: "mmlu" | ||
| num_examples: 200 # Number of examples to run | ||
| max_tokens: 2048 # Max number of output tokens | ||
| repeat: 8 # Number of repetition | ||
| num_threads: 512 # Number of parallel threads for running benchmark | ||
| ``` | ||
|
|
||
| Then launch the script as usual: | ||
| ```bash | ||
| srtctl apply -f config.yaml | ||
| ``` | ||
|
|
||
| After finishing benchmarking, the `benchmark.out` will contain the results of accuracy: | ||
| ``` | ||
| ==================== | ||
| Repeat: 8, mean: 0.812 | ||
| Scores: ['0.790', '0.820', '0.800', '0.820', '0.820', '0.790', '0.820', '0.840'] | ||
| ==================== | ||
| Writing report to /tmp/mmlu_deepseek-ai_DeepSeek-R1.html | ||
| {'other': np.float64(0.9), 'other:std': np.float64(0.30000000000000004), 'score:std': np.float64(0.36660605559646725), 'stem': np.float64(0.8095238095238095), 'stem:std': np.float64(0.392676726249301), 'humanities': np.float64(0.7428571428571429), 'humanities:std': np.float64(0.4370588154508102), 'social_sciences': np.float64(0.9583333333333334), 'social_sciences:std': np.float64(0.19982631347136331), 'score': np.float64(0.84)} | ||
| Writing results to /tmp/mmlu_deepseek-ai_DeepSeek-R1.json | ||
| Total latency: 465.618 s | ||
| Score: 0.840 | ||
| Results saved to: /logs/accuracy/mmlu_deepseek-ai_DeepSeek-R1.json | ||
| MMLU evaluation complete | ||
| ``` | ||
|
|
||
|
|
||
| ## GPQA | ||
| For GPQA dataset, the benchmark section in yaml file can be modified in the following way: | ||
| ```bash | ||
| benchmark: | ||
| type: "gpqa" | ||
| num_examples: 198 # Number of examples to run | ||
| max_tokens: 65536 # We need a larger output token number for GPQA | ||
| repeat: 8 # Number of repetition | ||
| num_threads: 128 # Number of parallel threads for running benchmark | ||
| ``` | ||
| The `context-length` argument here should be set to a value larger than `max_tokens`. | ||
|
|
||
|
|
||
| ## LongBench-V2 | ||
| To be updated | ||
|
|
||
|
|
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
cat -n scripts/benchmarks/gpqa/bench.sh | head -60Repository: ishandhanani/srt-slurm
Length of output: 2469
🏁 Script executed:
Repository: ishandhanani/srt-slurm
Length of output: 2145
Add comments explaining the rationale for default parameter values.
The
--thinking-moderemoval is properly documented, but the script lacks explanatory comments for the new defaults:max_tokens=32768— clarify why this value was chosen for DeepSeek-R1 reasoning on GPQAnum_threads=128— clarify the impact on sglang request parallelizationThese values are reasonable for GPQA evaluation with a reasoning model, but documenting the rationale helps future maintainers understand the performance/quality trade-offs.
🤖 Prompt for AI Agents