KV shared attention with RoPE
KV-Sharing Attention with RoPE for Gemma3n. Implements novel KV-sharing mechanism where later layers reuse key-value states from earlier non-shared layers. Supports both global and sliding window attention patterns with RoPE embeddings, query/key/value normalization, and attention logit soft-capping.
Reported evidence · last observed 2026-07-15. Reported by source; not independently reproduced. No public source. License unknown.
Current records
Workloadsuite of 16 cases · mean latencyhead_dim = 256 · kv_out_dim = 256 · hidden_size = 2304 · qkv_out_dim = 2048 · num_attention_heads = 8 · num_key_value_heads = 1 · num_key_value_groups = 816 cases
Not measured on H100 for this workload. Challenges →
1126.8µs82% SOL1.00×Reported · license unknown · no source2026-07-15
Measured exactly what you asked. Reported by source; not independently reproduced.
2135.8µs80% SOL1.07×Reported · license unknown · no source2026-08-21
Measured exactly what you asked. Reported by source; not independently reproduced.
3136.0µs80% SOL1.07×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.
4143.6µs79% SOL1.13×Reported · license unknown · no source2026-08-18
Measured exactly what you asked. Reported by source; not independently reproduced.
5144.2µs79% SOL1.14×Reported · license unknown · no source2026-08-05
Measured exactly what you asked. Reported by source; not independently reproduced.
6145.3µs79% SOL1.15×Reported · license unknown · no source2026-08-21
Measured exactly what you asked. Reported by source; not independently reproduced.
7146.5µs79% SOL1.16×Reported · license unknown · no source2026-08-04
Measured exactly what you asked. Reported by source; not independently reproduced.
8155.2µs77% SOL1.22×Reported · license unknown · no source2026-07-18
Measured exactly what you asked. Reported by source; not independently reproduced.
9164.8µs76% SOL1.30×Reported · license unknown · no source2026-07-21
Measured exactly what you asked. Reported by source; not independently reproduced.
10164.9µs76% SOL1.30×Reported · license unknown · no source2026-08-18
Measured exactly what you asked. Reported by source; not independently reproduced.
11168.4µs75% SOL1.33×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.
12174.3µs74% SOL1.37×Reported · license unknown · no source2026-07-12
Measured exactly what you asked. Reported by source; not independently reproduced.
13183.9µs73% SOL1.45×Reported · license unknown · no source2026-08-20
Measured exactly what you asked. Reported by source; not independently reproduced.
14185.9µs73% SOL1.47×Reported · license unknown · no source2026-07-12
Measured exactly what you asked. Reported by source; not independently reproduced.
15195.0µs72% SOL1.54×Reported · license unknown · no source2026-08-06
Measured exactly what you asked. Reported by source; not independently reproduced.
16244.7µs65% SOL1.93×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.
17486.7µs47% SOL3.84×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.
18956.8µs30% SOL7.54×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.