[PR #4268] [CLOSED] [Benchmark] STRATA_PROMPT_ATTN_IMMA and STRATA_HC_UPMIX on 2x RTX 4060 Ti (sm_89), Strata 0.2.6 #4980

Closed
opened 2026-11-07 16:31:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4268
Author: @fioruccione
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: bench-sm89-imma-upmix


📝 Commits (2)

  • 02c40c9 [Benchmark] STRATA_PROMPT_ATTN_IMMA and STRATA_HC_UPMIX on 2x RTX 4060 Ti (sm_89), 0.2.6
  • 369e959 [Benchmark] COMMUNITY.md: the PR number of the sm_89 IMMA/UPMIX report

📊 Changes

51 files changed (+13728 additions, -0 deletions)

View changed files

➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/README.md (+112 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/answer.jsonl (+1 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/decode.jsonl (+2 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/engine-excerpt.txt (+77 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/power.csv (+1335 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/prefill.jsonl (+4 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/answer.jsonl (+1 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/decode.jsonl (+2 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/engine-excerpt.txt (+77 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/power.csv (+1355 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/prefill.jsonl (+4 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/answer.jsonl (+1 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/decode.jsonl (+2 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/engine-excerpt.txt (+77 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/power.csv (+1331 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/prefill.jsonl (+4 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/answer.jsonl (+1 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/decode.jsonl (+2 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/engine-excerpt.txt (+78 -0)
➕ bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/power.csv (+1303 -0)

...and 31 more files

📄 Description

Problem and result

The prompt read of a long document is what my office waits for, and on GeForce Ada cards FP16 with FP32 accumulation
runs at half rate (about 45 TFLOPS on my RTX 4060 Ti in cuBLAS, against 74 with FP16 accumulation and 151 in INT8).
STRATA_PREFILL_TIMING=1 showed that two phases of a 69K prompt, hc read and qsa attn, take about 15% of the GPU
time. DETAILS.md has an opt-in switch for each, STRATA_HC_UPMIX and STRATA_PROMPT_ATTN_IMMA, measured on sm_86 only.

This PR adds what they do on sm_89: with both on, prompts read 4.8% faster at 20K and 6.1% at 69K (two rounds of
A/B/C/D, every range clear of the baseline's), and bench.sh --long gives +5.3% at 16K and +4.5% at 32K. 4K prompts
and decode do not change. Results only: one new folder under bench/results/ and its row in COMMUNITY.md.

None. This is a benchmark report. I am not asking to change a default here. If the numbers are useful for that on RTX
40 cards, I can open an issue.

Approach

Each configuration is a fresh server start from the same config, with only the environment changed. I ran
A B C D and then D C B A on Strata 0.2.6 built here. Each start got a warm-up, two fresh ~20K and two fresh ~69K
prompts, two decodes and one fixed answer for comparison, with power sampled every 250 ms. Then bench.sh --long ran
once with and once without the switches. The README in the folder has the method and the per-phase timings.

Validation

Passed:

  • 4-configuration A/B on v0.2.6 (4b9e05a2), local CUDA 12.6 sm_89 build, 2x RTX 4060 Ti, UD-IQ4_XS: 0 failed
    requests, no error lines in the engine log. Every request is in ab/*/prefill.jsonl.
  • STRATA_HC_UPMIX_CHECK=4: 16 of 16 checks with relative RMS 0 and max difference 0.
  • qsa_prompt_attn_parity 32768 2048 5 built from the same tag, on both GPUs: FAILURES: 0.
  • ./bench.sh --long on the baseline and on both switches: 0 failed requests each.

Failed:

  • A first bench.sh attempt with --url sent no API key, so every request got a 401. That was my mistake, not
    Strata's. I re-ran it without --url and those are the results in the folder.

Not run:

  • KL or teacher-forced agreement: tools/quant_quality.py reads through the decode windows, and these switches only
    touch the prompt path.
  • Any other GPU or backend. No code change, so no HIP/SYCL build.

Limits

One machine, one model and quant, two rounds of two requests per size. UPMIX_CHECK covers the first four reads of
each start (layers 0-1), not every layer. Text at temperature 0 differs between two baseline runs too, so the
answers cannot show whether IMMA's rounding changes them.

I did this with an AI coding assistant: it wrote the scripts and helped me read the engine code. I ran everything on my
machine and checked the numbers.


🔄 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/4268 **Author:** [@fioruccione](https://github.com/fioruccione) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bench-sm89-imma-upmix` --- ### 📝 Commits (2) - [`02c40c9`](https://github.com/Niko1221/Strata/commit/02c40c9f0ef0b4e6561d79a2d1a0d92569b40775) [Benchmark] STRATA_PROMPT_ATTN_IMMA and STRATA_HC_UPMIX on 2x RTX 4060 Ti (sm_89), 0.2.6 - [`369e959`](https://github.com/Niko1221/Strata/commit/369e959a9b865fc8669c96f431d7a1ecf60b4ca9) [Benchmark] COMMUNITY.md: the PR number of the sm_89 IMMA/UPMIX report ### 📊 Changes **51 files changed** (+13728 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/README.md` (+112 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/answer.jsonl` (+1 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/decode.jsonl` (+2 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/engine-excerpt.txt` (+77 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/power.csv` (+1335 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round1/prefill.jsonl` (+4 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/answer.jsonl` (+1 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/decode.jsonl` (+2 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/engine-excerpt.txt` (+77 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/power.csv` (+1355 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/A-baseline-round2/prefill.jsonl` (+4 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/answer.jsonl` (+1 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/decode.jsonl` (+2 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/engine-excerpt.txt` (+77 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/power.csv` (+1331 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round1/prefill.jsonl` (+4 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/answer.jsonl` (+1 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/decode.jsonl` (+2 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/engine-excerpt.txt` (+78 -0) ➕ `bench/results/2026-10-26-community-2x-rtx-4060ti-imma-upmix/ab/B-imma-round2/power.csv` (+1303 -0) _...and 31 more files_ </details> ### 📄 Description ## Problem and result The prompt read of a long document is what my office waits for, and on GeForce Ada cards FP16 with FP32 accumulation runs at half rate (about 45 TFLOPS on my RTX 4060 Ti in cuBLAS, against 74 with FP16 accumulation and 151 in INT8). `STRATA_PREFILL_TIMING=1` showed that two phases of a 69K prompt, `hc read` and `qsa attn`, take about 15% of the GPU time. DETAILS.md has an opt-in switch for each, `STRATA_HC_UPMIX` and `STRATA_PROMPT_ATTN_IMMA`, measured on sm_86 only. This PR adds what they do on sm_89: with both on, prompts read 4.8% faster at 20K and 6.1% at 69K (two rounds of A/B/C/D, every range clear of the baseline's), and `bench.sh --long` gives +5.3% at 16K and +4.5% at 32K. 4K prompts and decode do not change. Results only: one new folder under `bench/results/` and its row in `COMMUNITY.md`. ## Related discussion None. This is a benchmark report. I am not asking to change a default here. If the numbers are useful for that on RTX 40 cards, I can open an issue. ## Approach Each configuration is a fresh server start from the same config, with only the environment changed. I ran A B C D and then D C B A on Strata 0.2.6 built here. Each start got a warm-up, two fresh ~20K and two fresh ~69K prompts, two decodes and one fixed answer for comparison, with power sampled every 250 ms. Then `bench.sh --long` ran once with and once without the switches. The README in the folder has the method and the per-phase timings. ## Validation **Passed:** - 4-configuration A/B on `v0.2.6` (`4b9e05a2`), local CUDA 12.6 sm_89 build, 2x RTX 4060 Ti, UD-IQ4_XS: 0 failed requests, no error lines in the engine log. Every request is in `ab/*/prefill.jsonl`. - `STRATA_HC_UPMIX_CHECK=4`: 16 of 16 checks with relative RMS 0 and max difference 0. - `qsa_prompt_attn_parity 32768 2048 5` built from the same tag, on both GPUs: `FAILURES: 0`. - `./bench.sh --long` on the baseline and on both switches: 0 failed requests each. **Failed:** - A first `bench.sh` attempt with `--url` sent no API key, so every request got a 401. That was my mistake, not Strata's. I re-ran it without `--url` and those are the results in the folder. **Not run:** - KL or teacher-forced agreement: `tools/quant_quality.py` reads through the decode windows, and these switches only touch the prompt path. - Any other GPU or backend. No code change, so no HIP/SYCL build. ## Limits One machine, one model and quant, two rounds of two requests per size. UPMIX_CHECK covers the first four reads of each start (layers 0-1), not every layer. Text at temperature 0 differs between two baseline runs too, so the answers cannot show whether IMMA's rounding changes them. I did this with an AI coding assistant: it wrote the scripts and helped me read the engine code. I ran everything on my machine and checked the numbers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:31:45 +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#4980
No description provided.