[PR #1695] [CLOSED] bench: P4 prefill 78.8 -> 114.8 tok/s with existing auto sizing; expert reuse roofline #3614

Closed
opened 2026-11-07 15:29:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1695
Author: @CC-David-CC
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: bench/p4-prefill-roofline


📝 Commits (1)

  • 31c8df1 bench: measure P4 prefill chunk sizing and expert transfer reuse

📊 Changes

22 files changed (+44728 additions, -0 deletions)

View changed files

➕ bench/results/2026-10-09-community-p4-prefill-roofline/P4_PREFILL_ROOFLINE.txt (+49 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/README.md (+34 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/analyze_roofline.py (+121 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/host_read.cpp (+20 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/instrumentation.patch (+60 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/native_experts.txt (+49 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-prefill-roofline.png (+0 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-prefill-roofline.svg (+4023 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/auto/config.json (+78 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/auto/engine.log (+57 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/auto/results.json (+13069 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/config.json (+76 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/control/config.json (+78 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/control/engine.log (+56 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/control/results.json (+13069 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/engine.log (+96 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/host-roofs.jsonl (+3 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/results.json (+13291 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/roofs.jsonl (+45 -0)
➕ bench/results/2026-10-09-community-p4-prefill-roofline/p4_prefill_runner.py (+58 -0)

...and 2 more files

📄 Description

Independent P4 prefill measurements inspired by @vizdatom's #1670. Results-only: this does not implement or run the proposed layer-major path.

Prompt Fixed 512, median of 3 Existing auto, one run
4,096 78.018453 tok/s 107.259667 tok/s
8,192 78.840339 tok/s 114.753823 tok/s

One Tesla P4, Flash-Next-GSQ-RCO IQ3_XXS, int8 KV, CUDA 12.0, dual Xeon E5-2697 v3. Base fb58e0d. Warm page cache, zero prompt reuse, one generated token/request. Auto selected up to 1,792 tokens. Instrumented controls disable CPU expert sharing; matching fixed-512 controls were 77.928650/78.933397 tok/s.

8K fixed-512 copied 262.788941 GB of expert weights, 30.871322 GB distinct (88.25% repeated payload). Auto copied 193.275469 GB. Measured pinned H2D bandwidth: 11.886827 GB/s; VRAM read: 147.402334 GB/s. Copy waits were 6.2% of the fixed-512 timeline; fewer bytes are not an equivalent wall-time gain.

Includes exact prompts/output IDs, all 16 request records, configs, logs, replay driver, bandwidth sources, analysis and chart. The opt-in 21-line counter patch is a reproduction artifact only; engine source is unchanged. CUDA tested; no HIP/SYCL build or multi-token quality gate. Model revision/full asset hashes were not recorded.

Full report: bench/results/2026-10-09-community-p4-prefill-roofline/README.md


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1695 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bench/p4-prefill-roofline` --- ### 📝 Commits (1) - [`31c8df1`](https://github.com/Niko1221/Strata/commit/31c8df1ce81f5e087eb2750dfd9343924257cec0) bench: measure P4 prefill chunk sizing and expert transfer reuse ### 📊 Changes **22 files changed** (+44728 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/P4_PREFILL_ROOFLINE.txt` (+49 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/README.md` (+34 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/analyze_roofline.py` (+121 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/host_read.cpp` (+20 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/instrumentation.patch` (+60 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/native_experts.txt` (+49 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-prefill-roofline.png` (+0 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-prefill-roofline.svg` (+4023 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/auto/config.json` (+78 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/auto/engine.log` (+57 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/auto/results.json` (+13069 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/config.json` (+76 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/control/config.json` (+78 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/control/engine.log` (+56 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/control/results.json` (+13069 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/engine.log` (+96 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/host-roofs.jsonl` (+3 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/results.json` (+13291 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4-roofline/roofs.jsonl` (+45 -0) ➕ `bench/results/2026-10-09-community-p4-prefill-roofline/p4_prefill_runner.py` (+58 -0) _...and 2 more files_ </details> ### 📄 Description Independent P4 prefill measurements inspired by @vizdatom's #1670. Results-only: this does not implement or run the proposed layer-major path. | Prompt | Fixed 512, median of 3 | Existing auto, one run | | --- | ---: | ---: | | 4,096 | 78.018453 tok/s | 107.259667 tok/s | | 8,192 | 78.840339 tok/s | 114.753823 tok/s | One Tesla P4, Flash-Next-GSQ-RCO IQ3_XXS, int8 KV, CUDA 12.0, dual Xeon E5-2697 v3. Base fb58e0d. Warm page cache, zero prompt reuse, one generated token/request. Auto selected up to 1,792 tokens. Instrumented controls disable CPU expert sharing; matching fixed-512 controls were 77.928650/78.933397 tok/s. 8K fixed-512 copied 262.788941 GB of expert weights, 30.871322 GB distinct (88.25% repeated payload). Auto copied 193.275469 GB. Measured pinned H2D bandwidth: 11.886827 GB/s; VRAM read: 147.402334 GB/s. Copy waits were 6.2% of the fixed-512 timeline; fewer bytes are not an equivalent wall-time gain. Includes exact prompts/output IDs, all 16 request records, configs, logs, replay driver, bandwidth sources, analysis and chart. The opt-in 21-line counter patch is a reproduction artifact only; engine source is unchanged. CUDA tested; no HIP/SYCL build or multi-token quality gate. Model revision/full asset hashes were not recorded. Full report: bench/results/2026-10-09-community-p4-prefill-roofline/README.md --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:33 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3614
No description provided.