Skip to content
KernelIndex
Search⌘K

Attention QKV projection with bias and reshape

43 eligible runs
other

Fused QKV projection with bias and reshape for Gemma3 attention. Performs three separate linear projections (Q, K, V) with bias addition, then reshapes outputs from (batch, seq_len, hidden_size) to (batch, seq_len, num_heads, head_dim) format for multi-head attention.

Fastest reported
9.07µsmean · 71% of SOL
ac4kLicense unknown · unknown

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

No public sourceRun detail →

Current records

Workloadsuite of 16 cases · mean latencyhead_dim = 256 · q_out_dim = 1024 · kv_out_dim = 256 · hidden_size = 640 · num_attention_heads = 4 · num_key_value_heads = 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 · 31 results · last observed 2026-08-24Record history →
#
Implementation
Latency
vs #1
Trust
Observed
1
9.07µs71% SOL
1.00×
Reported · license unknown · no source
2026-07-12

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

no sourcelicense unknownno install recipeRun detail →
2
10.2µs68% SOL
1.13×
Reported · license unknown · no source
2026-08-03

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

no sourcelicense unknownno install recipeRun detail →
3
10.4µs67% 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 →
4
10.8µs66% SOL
1.19×
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 →
5
11.6µs64% SOL
1.28×
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 →
6
12.5µs62% SOL
1.38×
Reported · license unknown · no source
2026-07-22

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

no sourcelicense unknownno install recipeRun detail →
7
12.5µs62% SOL
1.38×
Reported · license unknown · no source
2026-08-19

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

no sourcelicense unknownno install recipeRun detail →
8
12.6µs61% SOL
1.39×
Reported · license unknown · no source
2026-08-24

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

no sourcelicense unknownno install recipeRun detail →
9
12.6µs62% SOL
1.39×
Reported · license unknown · no source
2026-07-16

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

no sourcelicense unknownno install recipeRun detail →
10
12.6µs61% SOL
1.39×
Reported · license unknown · no source
2026-08-20

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

no sourcelicense unknownno install recipeRun detail →
11
13.1µs60% SOL
1.44×
Reported · license unknown · no source
2026-08-11

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

no sourcelicense unknownno install recipeRun detail →
12
13.2µs60% SOL
1.45×
Reported · license unknown · no source
2026-08-12

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

no sourcelicense unknownno install recipeRun detail →
13
13.2µs60% SOL
1.45×
Reported · license unknown · no source
2026-08-12

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

no sourcelicense unknownno install recipeRun detail →
14
13.4µs59% SOL
1.47×
Reported · license unknown · no source
2026-08-21

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

no sourcelicense unknownno install recipeRun detail →
15
13.5µs59% SOL
1.49×
Reported · license unknown · no source
2026-08-20

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

no sourcelicense unknownno install recipeRun detail →
16
13.7µs59% SOL
1.51×
Reported · license unknown · no source
2026-07-18

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

no sourcelicense unknownno install recipeRun detail →
17
14.0µs59% SOL
1.54×
Reported · license unknown · no source
2026-07-13

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

no sourcelicense unknownno install recipeRun detail →
18
14.1µs59% SOL
1.56×
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 →
19
14.3µs58% SOL
1.57×
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 →
20
14.7µs57% SOL
1.62×
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 →
21
14.8µs57% SOL
1.63×
Reported · license unknown · no source
2026-08-16

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

no sourcelicense unknownno install recipeRun detail →
22
14.8µs57% SOL
1.63×
Reported · license unknown · no source
2026-08-12

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

no sourcelicense unknownno install recipeRun detail →
23
14.9µs56% SOL
1.64×
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 →
24
14.9µs57% SOL
1.64×
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 →
25
15.1µs57% SOL
1.67×
Reported · license unknown · no source
2026-08-12

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

no sourcelicense unknownno install recipeRun detail →
26
15.1µs57% SOL
1.67×
Reported · license unknown · no source
2026-08-12

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

no sourcelicense unknownno install recipeRun detail →
27
19.2µs50% SOL
2.11×
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 →
28
21.2µs47% SOL
2.34×
Reported · license unknown · no source
2026-07-27

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

no sourcelicense unknownno install recipeRun detail →
29
32.0µs36% SOL
3.53×
Reported · license unknown · no source
2026-07-24

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

no sourcelicense unknownno install recipeRun detail →
30
36.1µs33% SOL
3.98×
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 →
31
39.8µs31% SOL
4.39×
Reported · license unknown · no source
2026-08-15

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
9.98µs
1.10×
Reported
license unknown · no source
unknown
11.2µs
1.24×
Reported
license unknown · no source
unknown
12.6µs
1.39×
Reported
license unknown · no source
unknown
12.5µs
1.38×
Reported
license unknown · no source
unknown
12.5µs
1.38×
Reported
license unknown · no source
unknown
13.9µs
1.54×
Reported
license unknown · no source
unknown
14.3µs
1.58×
Reported
license unknown · no source
unknown
14.8µs
1.63×
Reported
license unknown · no source
Show all 43 implementations ›
unknown
33.0µs
3.64×
Reported
license unknown · no source
unknown
33.5µs
3.70×
Reported
license unknown · no source
unknown
33.8µs
3.73×
Reported
license unknown · no source
unknown
9.12µs
1.01×
Reported
license unknown · no source
unknown
10.4µs
1.15×
Reported
license unknown · no source
unknown
11.6µs
1.28×
Reported
license unknown · no source
unknown
12.6µs
1.39×
Reported
license unknown · no source
unknown
12.6µs
1.39×
Reported
license unknown · no source
unknown
13.1µs
1.44×
Reported
license unknown · no source
unknown
13.2µs
1.45×
Reported
license unknown · no source
unknown
13.2µs
1.45×
Reported
license unknown · no source
unknown
13.4µs
1.47×
Reported
license unknown · no source
unknown
13.7µs
1.51×
Reported
license unknown · no source
unknown
13.8µs
1.52×
Reported
license unknown · no source
unknown
13.5µs
1.49×
Reported
license unknown · no source
unknown
14.0µs
1.54×
Reported
license unknown · no source
unknown
14.1µs
1.56×
Reported
license unknown · no source
unknown
14.3µs
1.57×
Reported
license unknown · no source
unknown
14.9µs
1.64×
Reported
license unknown · no source
unknown
15.0µs
1.65×
Reported
license unknown · no source
unknown
14.7µs
1.62×
Reported
license unknown · no source
unknown
15.1µs
1.67×
Reported
license unknown · no source
unknown
14.8µs
1.63×
Reported
license unknown · no source
unknown
15.1µs
1.67×
Reported
license unknown · no source
unknown
14.9µs
1.64×
Reported
license unknown · no source
unknown
19.2µs
2.11×
Reported
license unknown · no source
unknown
19.3µs
2.13×
Reported
license unknown · no source
unknown
21.2µs
2.34×
Reported
license unknown · no source
unknown
22.3µs
2.46×
Reported
license unknown · no source
unknown
32.0µs
3.53×
Reported
license unknown · no source
unknown
36.1µs
3.98×
Reported
license unknown · no source
unknown
39.8µs
4.39×
Reported
license unknown · no source
unknown
9.07µs
1.00×
Reported
license unknown · no source
unknown
10.2µs
1.13×
Reported
license unknown · no source
unknown
10.8µs
1.19×
Reported
license unknown · no source

Semantics

Inputs and outputs
hidden_statesbf16 [batch_size, seq_len, hidden_size]
q_weightbf16 [q_out_dim, hidden_size]
q_biasbf16 [q_out_dim]
k_weightbf16 [kv_out_dim, hidden_size]
k_biasbf16 [kv_out_dim]
v_weightbf16 [kv_out_dim, hidden_size]
v_biasbf16 [kv_out_dim]
query_statesbf16 [batch_size, seq_len, num_attention_heads, head_dim]
key_statesbf16 [batch_size, seq_len, num_key_value_heads, head_dim]
value_statesbf16 [batch_size, seq_len, num_key_value_heads, head_dim]
Axes and behavior
seq_lenvariable
head_dimconstant = 256
q_out_dimq_out_dim = num_attention_heads * head_dim
batch_sizevariable
kv_out_dimkv_out_dim = num_key_value_heads * head_dim
hidden_sizeconstant = 640
num_attention_headsconstant = 4
num_key_value_headsconstant = 1
determinismunspecified
constraintsNo mutation or aliasing
Identity
alias050_attention_qkv_projection_with_bias_and_reshapemodelgemma-3-270msha256fb4b2e40ba5c…
Sources: NVIDIA SOL-ExecBench (2026-08-24)last observed 2026-08-24How records are decidedJSON