SAM hq mask decoder two way transformer
Two-way transformer block for SAM-HQ mask decoder performing bidirectional cross-attention between sparse prompt tokens and dense image embeddings. Includes: (1) self-attention on sparse tokens, (2) cross-attention from tokens to image, (3) MLP on tokens, (4) cross-attention from image to tokens. Uses downsampled internal dimensions (256->128) for cross-attention efficiency.
Reported evidence · last observed 2026-08-19. Reported by source; not independently reproduced. No public source. License unknown.
Current records
Workloadsuite of 16 cases · mean latencymlp_dim = 2048 · hidden_size = 256 · internal_dim = 128 · num_attention_heads = 816 cases
Not measured on H100 for this workload. Challenges →
1142.4µs80% SOL1.00×Reported · license unknown · no source2026-08-19
Measured exactly what you asked. Reported by source; not independently reproduced.
2173.8µs77% SOL1.22×Reported · license unknown · no source2026-07-15
Measured exactly what you asked. Reported by source; not independently reproduced.
3174.3µs77% SOL1.22×Reported · license unknown · no source2026-07-17
Measured exactly what you asked. Reported by source; not independently reproduced.
4193.0µs75% SOL1.36×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.
5198.5µs75% SOL1.39×Reported · license unknown · no source2026-07-17
Measured exactly what you asked. Reported by source; not independently reproduced.
6199.4µs74% SOL1.40×Reported · license unknown · no source2026-08-21
Measured exactly what you asked. Reported by source; not independently reproduced.
7236.1µs71% SOL1.66×Reported · license unknown · no source2026-08-21
Measured exactly what you asked. Reported by source; not independently reproduced.
8253.7µs69% SOL1.78×Reported · license unknown · no source2026-08-19
Measured exactly what you asked. Reported by source; not independently reproduced.
9289.9µs66% SOL2.04×Reported · license unknown · no source2026-08-17
Measured exactly what you asked. Reported by source; not independently reproduced.
10295.5µs66% SOL2.08×Reported · license unknown · no source2026-07-11
Measured exactly what you asked. Reported by source; not independently reproduced.
11306.9µs65% SOL2.16×Reported · license unknown · no source2026-08-07
Measured exactly what you asked. Reported by source; not independently reproduced.
12309.8µs65% SOL2.18×Reported · license unknown · no source2026-08-15
Measured exactly what you asked. Reported by source; not independently reproduced.
13349.2µs62% SOL2.45×Reported · license unknown · no source2026-08-18
Measured exactly what you asked. Reported by source; not independently reproduced.
14361.4µs61% SOL2.54×Reported · license unknown · no source2026-08-18
Measured exactly what you asked. Reported by source; not independently reproduced.
15369.9µs61% SOL2.60×Reported · license unknown · no source2026-08-16
Measured exactly what you asked. Reported by source; not independently reproduced.
16394.6µs59% SOL2.77×Reported · license unknown · no source2026-08-13
Measured exactly what you asked. Reported by source; not independently reproduced.
17443.8µs56% SOL3.12×Reported · license unknown · no source2026-07-14
Measured exactly what you asked. Reported by source; not independently reproduced.
18474.7µs55% SOL3.33×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.
19680.4µs45% SOL4.78×Reported · license unknown · no source2026-07-23
Measured exactly what you asked. Reported by source; not independently reproduced.
201.20ms32% SOL8.46×Reported · license unknown · no source2026-07-10
Measured exactly what you asked. Reported by source; not independently reproduced.