Repository navigation
Conversation
Signed-off-by: Xiake Sun <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Request-count handling, hit-rate validation, input validation, and automated coverage remain unresolved.
4 open findings
What changed in this PR
Adds controlled prefix-cache benchmarking through prefix priming and cache-hit reporting.
Changes:
- Adds prefix metadata and prewarming support.
- Adds benchmark and server-launch scripts.
- Records expected and observed cache-hit statistics.
| File | Description |
|---|---|
scripts/run_pure_text_bench_prefix_cache_hit.sh |
Runs a configurable prefix-cache benchmark. |
scripts/launch_qwen38_flash_next_fp8_mi308x_pure_tp_4_or_8_or_2.sh |
Configures radix caching and reporting. |
python/sglang/benchmark/serving.py |
Implements prefix priming and reporting. |
python/sglang/benchmark/datasets/generated_shared_prefix.py |
Generates cache-prefix metadata. |
python/sglang/benchmark/datasets/common.py |
Extends dataset rows with prefix fields. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
apinge
approved these changes
Oct 13, 2026
apinge
merged commit Oct 15, 2026
1df949d
into
apinge:qwen38-flash-next-amd-current-fix-install
78 of 88 checks passed
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.


Motivation
This PR aim to port minimal function from upstream sgl-project#37359 to measures inference performance under controlled prefix-cache hit rates.
Modifications
./run_pure_text_bench_prefix_cache_hit.shand update Qwen3.8 server launch script accordinglyUsage example:
Accuracy Tests
Not applicable
Speed Tests and Profiling
12K-input, 350-output, 55%-hit point at concurrency 8 on MI308X PTL TP2:
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ci