Skip to content
KernelIndex
Search⌘K

Repeat KV attention matmul

30 eligible runs
attention

Fused Grouped Query Attention (GQA) key-value repetition and attention score computation. This operation repeats key tensors from num_key_value_heads to num_attention_heads (4x expansion), then computes scaled attention scores via Q@K^T. The fusion avoids materializing the expanded key tensor, saving 75% of intermediate memory bandwidth.

Fastest reported
25.0µsmean · 59% of SOL
RecursiveLicense unknown · unknown

Reported evidence · last observed 2026-07-10. Reported by source; not independently reproduced. No public source. License unknown.

No public sourceRun detail →

Current records

Workloadsuite of 16 cases · mean latencyhead_dim = 128 · num_attention_heads = 32 · num_key_value_heads = 32 · num_key_value_groups = 116 cases

Not measured on H100 for this workload. Challenges →

Source-native comparison · GPU NVIDIA B200 · Workload suite of 16 cases · mean latency · Protocol SOL-ExecBench evaluation stack v1.1 · mean · 18 results · last observed 2026-08-18Record history →
#
Implementation
Latency
vs #1
Trust
Observed
1
25.0µs59% SOL
1.00×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
2
26.7µs55% SOL
1.07×
Reported · license unknown · no source
2026-08-18

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
3
27.0µs55% SOL
1.08×
Reported · license unknown · no source
2026-07-31

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
4
27.5µs55% SOL
1.10×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
5
27.6µs56% SOL
1.11×
Reported · license unknown · no source
2026-08-06

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
6
28.7µs54% SOL
1.15×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
7
28.7µs55% SOL
1.15×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
8
28.8µs53% SOL
1.15×
Reported · license unknown · no source
2026-07-15

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
9
29.1µs53% SOL
1.16×
Reported · license unknown · no source
2026-07-20

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
10
29.8µs52% SOL
1.19×
Reported · license unknown · no source
2026-08-06

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
11
31.3µs51% SOL
1.25×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
12
33.0µs49% SOL
1.32×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
13
38.2µs42% SOL
1.53×
Reported · license unknown · no source
2026-07-28

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
14
40.2µs44% SOL
1.61×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
15
47.7µs42% SOL
1.91×
Reported · license unknown · no source
2026-07-10

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
16
61.8µs30% SOL
2.47×
Reported · license unknown · no source
2026-08-02

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
17
333.1µs8% SOL
13.33×
Reported · license unknown · no source
2026-07-28

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →
18
354.2µs7% SOL
14.17×
Reported · license unknown · no source
2026-07-29

Measured exactly what you asked. Reported by source; not independently reproduced.

no sourcelicense unknownno install recipeRun detail →

Implementations

Implementation
Runtime
Best latency
Evidence
Availability
unknown
24.5µs
1.00×
Reported
license unknown · no source
unknown
27.0µs
1.10×
Reported
license unknown · no source
unknown
27.1µs
1.11×
Reported
license unknown · no source
unknown
26.7µs
1.09×
Reported
license unknown · no source
unknown
27.0µs
1.10×
Reported
license unknown · no source
unknown
28.8µs
1.18×
Reported
license unknown · no source
unknown
30.1µs
1.23×
Reported
license unknown · no source
unknown
29.1µs
1.19×
Reported
license unknown · no source
Show all 30 implementations ›
unknown
29.8µs
1.22×
Reported
license unknown · no source
unknown
38.4µs
1.57×
Reported
license unknown · no source
unknown
61.8µs
2.53×
Reported
license unknown · no source
unknown
69.6µs
2.84×
Reported
license unknown · no source
unknown
333.1µs
13.61×
Reported
license unknown · no source
unknown
28.7µs
1.17×
Reported
license unknown · no source
unknown
27.5µs
1.12×
Reported
license unknown · no source
unknown
28.7µs
1.17×
Reported
license unknown · no source
unknown
31.2µs
1.28×
Reported
license unknown · no source
unknown
31.3µs
1.28×
Reported
license unknown · no source
unknown
32.6µs
1.33×
Reported
license unknown · no source
unknown
33.0µs
1.35×
Reported
license unknown · no source
unknown
34.2µs
1.40×
Reported
license unknown · no source
unknown
37.7µs
1.54×
Reported
license unknown · no source
unknown
38.3µs
1.56×
Reported
license unknown · no source
unknown
40.2µs
1.64×
Reported
license unknown · no source
unknown
38.2µs
1.56×
Reported
license unknown · no source
unknown
47.7µs
1.95×
Reported
license unknown · no source
unknown
354.2µs
14.47×
Reported
license unknown · no source
unknown
27.6µs
1.13×
Reported
license unknown · no source
unknown
25.0µs
1.02×
Reported
license unknown · no source
unknown
27.8µs
1.13×
Reported
license unknown · no source

Semantics

Inputs and outputs
querybf16 [batch_size, num_attention_heads, seq_len, head_dim]
keybf16 [batch_size, num_key_value_heads, seq_len, head_dim]
attn_weightsbf16 [batch_size, num_attention_heads, seq_len, seq_len]
Axes and behavior
seq_lenvariable
head_dimconstant = 128
batch_sizevariable
num_attention_headsconstant = 32
num_key_value_headsconstant = 32
num_key_value_groupsconstant = 1
determinismunspecified
constraintsNo mutation or aliasing
Identity
alias031_repeat_kv_attention_matmulmodelolmo-3-7b-thinksha256393296842a78…
Sources: NVIDIA SOL-ExecBench (2026-08-18)last observed 2026-08-18How records are decidedJSON