Skip to content
KernelIndex
Search⌘K

Attention output reshape and projection

31 eligible runs
other

Fused attention output reshape and projection. Takes multi-head attention output from [batch, num_heads, seq_len, v_head_dim] format, transposes to [batch, seq_len, num_heads, v_head_dim], reshapes to [batch, seq_len, num_heads * v_head_dim] (requires contiguous copy), then projects to [batch, seq_len, hidden_size] via output projection. This is a critical memory bandwidth bottleneck due to non-contiguous transpose, memory reallocation for contiguous, and large intermediate dimension (16384) before projection to hidden_size (7168).

Fastest reported
235.6µsmean · 69% of SOL
RIAC as wellLicense unknown · unknown

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

No public sourceRun detail →

Current records

Workloadsuite of 16 cases · mean latencynum_heads = 128 · v_head_dim = 128 · hidden_size = 7168 · intermediate_size = 1638416 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 · 19 results · last observed 2026-08-18Record history →
#
Implementation
Latency
vs #1
Trust
Observed
1
235.6µs69% SOL
1.00×
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 →
2
245.9µs67% SOL
1.04×
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 →
3
246.2µs66% SOL
1.05×
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 →
4
250.4µs66% SOL
1.06×
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 →
5
250.9µs65% SOL
1.07×
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 →
6
251.4µs65% SOL
1.07×
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
255.5µs63% SOL
1.08×
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
256.6µs63% SOL
1.09×
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 →
9
259.3µs63% SOL
1.10×
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 →
10
269.4µs60% SOL
1.14×
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
274.6µs59% SOL
1.17×
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 →
12
277.7µs58% SOL
1.18×
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
279.3µs57% SOL
1.19×
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 →
14
282.7µs57% SOL
1.20×
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 →
15
283.7µs56% SOL
1.20×
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 →
16
300.1µs54% SOL
1.27×
Reported · license unknown · no source
2026-07-25

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

no sourcelicense unknownno install recipeRun detail →
17
304.3µs55% SOL
1.29×
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 →
18
312.3µs53% SOL
1.33×
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 →
19
553.4µs49% SOL
2.35×
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 →

Implementations

Implementation
Runtime
Best latency
Evidence
Availability
unknown
235.6µs
1.00×
Reported
license unknown · no source
unknown
237.2µs
1.01×
Reported
license unknown · no source
unknown
239.1µs
1.01×
Reported
license unknown · no source
unknown
243.9µs
1.04×
Reported
license unknown · no source
unknown
246.1µs
1.04×
Reported
license unknown · no source
unknown
250.4µs
1.06×
Reported
license unknown · no source
unknown
250.9µs
1.07×
Reported
license unknown · no source
unknown
260.4µs
1.11×
Reported
license unknown · no source
Show all 31 implementations ›
unknown
259.3µs
1.10×
Reported
license unknown · no source
unknown
263.7µs
1.12×
Reported
license unknown · no source
unknown
269.4µs
1.14×
Reported
license unknown · no source
unknown
241.1µs
1.02×
Reported
license unknown · no source
unknown
249.4µs
1.06×
Reported
license unknown · no source
unknown
251.4µs
1.07×
Reported
license unknown · no source
unknown
255.5µs
1.08×
Reported
license unknown · no source
unknown
256.6µs
1.09×
Reported
license unknown · no source
unknown
276.6µs
1.17×
Reported
license unknown · no source
unknown
274.6µs
1.17×
Reported
license unknown · no source
unknown
277.7µs
1.18×
Reported
license unknown · no source
unknown
279.3µs
1.19×
Reported
license unknown · no source
unknown
282.7µs
1.20×
Reported
license unknown · no source
unknown
283.7µs
1.20×
Reported
license unknown · no source
unknown
304.3µs
1.29×
Reported
license unknown · no source
unknown
300.1µs
1.27×
Reported
license unknown · no source
unknown
312.3µs
1.33×
Reported
license unknown · no source
unknown
317.1µs
1.35×
Reported
license unknown · no source
unknown
317.7µs
1.35×
Reported
license unknown · no source
unknown
553.4µs
2.35×
Reported
license unknown · no source
unknown
242.5µs
1.03×
Reported
license unknown · no source
unknown
245.9µs
1.04×
Reported
license unknown · no source
unknown
246.2µs
1.05×
Reported
license unknown · no source

Semantics

Inputs and outputs
attn_outputbf16 [batch_size, num_heads, seq_len, v_head_dim]
o_proj_weightbf16 [hidden_size, intermediate_size]
outputbf16 [batch_size, seq_len, hidden_size]
Axes and behavior
seq_lenvariable
num_headsconstant = 128
batch_sizevariable
v_head_dimconstant = 128
hidden_sizeconstant = 7168
intermediate_sizeintermediate_size = num_heads * v_head_dim
determinismunspecified
constraintsNo mutation or aliasing
Identity
alias063_attention_output_reshape_and_projectionmodelkimi-k2-instruct-0905sha25603e57dde37f6…
Sources: NVIDIA SOL-ExecBench (2026-08-18)last observed 2026-08-18How records are decidedJSON