Skip to content

[DeepSeek-V4.1] Router GEMM 16384x384x5120: tuned row to hipBLASLt solution 438907 (traceability) - #6

Draft
amd-pedghazi wants to merge 1 commit into
dsv41-build/integration-basefrom
p21/item-1402-hipblaslt
Draft

amd-pedghazi wants to merge 1 commit into
dsv41-build/integration-basefrom
p21/item-1402-hipblaslt

Conversation

@amd-pedghazi

@amd-pedghazi amd-pedghazi commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Draft inside the fork for traceability of a tested DeepSeek-V4.1-Flash build (MI355X, ROCm 7.2.4). Not for upstream.

What

One row of aiter/configs/model_configs/dsv41_bf16_tuned_gemm.csv, the prefill MoE router GEMM
x[16384, 5120] x W[384, 5120]^T in BF16: libtype torch (solidx 0) -> hipblaslt, solidx 438907.

  • Solution 438907 is the best of the 2,084 hipBLASLt solutions for this shape.
  • The us field is its hot median (57.67); tflops and bw are computed from it as in the torch row.
  • The field format follows the gfx950 hipblaslt rows of kimik3_bf16_tuned_gemm.csv, with an empty kernelName.
  • AITER 285579b6 tuned_gemm.py sends libtype hipblaslt to hipb_gemm, which calls
    hipb_mm(inp, weights.t(), solidx, ...) with the row's solidx.

This replaces the router kernel of ROCm#7931, which was slower in the same check.

Measured (one MI355X, 50 warm-up calls, 300 timed runs, medians, µs)

Case torch (base row) hipBLASLt 438907
Hot 68.96 57.67
Producer-flush (the serving case) 93.80 86.88
Cold 83.80 98.30

The output is correct by the PR test's rule (fp32 reference rounded to BF16, rtol = atol = 1e-2, 0 failing elements).
In the serving case it is 7.4 % faster than torch. In the cold case it is 17 % slower.

Estimated serving effect: about 0.2 % of TTFT. This is an estimate from the per-call saving, not a measured gain. A one-GPU check of the built image confirmed that the dispatch reaches 438907, the output is correct, and the four cases above hold.

Branches

The base branch holds the files of an earlier tested build (47a98e79) byte for byte; the md5 lists are in the commit message of the base.

…tion 438907

One row of aiter/configs/model_configs/dsv41_bf16_tuned_gemm.csv: libtype torch (solidx 0) -> hipblaslt,
solidx 438907, the best of 2,084 hipBLASLt solutions for this shape (OPUS). us = its hot median,
tflops and bw from us; field format as the gfx950 hipblaslt rows of kimik3_bf16_tuned_gemm.csv (empty kernelName).
@amd-pedghazi amd-pedghazi changed the title [p21] DSv4.1 router GEMM 16384x384x5120: tuned row -> hipBLASLt 438907 (SILOTIGER-1402) [p21] DSv4.1 router GEMM 16384x384x5120: tuned row -> hipBLASLt 438907 Nov 18, 2026
@amd-pedghazi amd-pedghazi changed the title [p21] DSv4.1 router GEMM 16384x384x5120: tuned row -> hipBLASLt 438907 [DeepSeek-V4.1] Router GEMM 16384x384x5120: tuned row to hipBLASLt solution 438907 (traceability) Nov 25, 2026
@amd-pedghazi
amd-pedghazi force-pushed the p21/item-1402-hipblaslt branch from 01839ab to 98b18f2 Compare November 25, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant