SSM¶
10 ops, 62 workloads.
One table per op, one row per workload. Ratio is the fastest other implementation's device time divided by ours, so green is faster than it, plain is level with it, red is slower. Times are in ms. How these numbers are taken.
Mamba2Fwd¶
x: [Bsz, S, H, P]dt: [Bsz, S, H], f32A: [H], f32B, C: [Bsz, S, G, N]
mamba2-x: [1, 2048, 80, 64]dt: [1, 2048, 80], f32A: [80], f32B, C: [1, 2048, 1, 128]dtype=bf162p7b mamba2-x: [1, 8192, 64, 64]dt: [1, 8192, 64], f32A: [64], f32B, C: [1, 8192, 1, 128]dtype=f161p3b
x: [Bsz, S, H, P]dt: [Bsz, S, H], f32A, dt_bias: [H], f32B, C: [Bsz, S, G, N]
mamba2-x: [1, 2048, 80, 64]dt: [1, 2048, 80], f32A, dt_bias: [80], f32B, C: [1, 2048, 1, 128]dtype=bf162p7b- dt- bias mamba2-x: [1, 8192, 64, 64]dt: [1, 8192, 64], f32A, dt_bias: [64], f32B, C: [1, 8192, 1, 128]dtype=f161p3b- dt- bias
x: [Bsz, S, H, P]dt: [Bsz, S, H], f32A: [H], f32B, C: [Bsz, S, G, N]initial_states: [Bsz, H, P, N], f32
mamba2-x: [1, 2048, 80, 64]dt: [1, 2048, 80], f32A: [80], f32B, C: [1, 2048, 1, 128]initial_states: [1, 80, 64, 128], f32dtype=bf162p7b- init mamba2-x: [1, 8192, 64, 64]dt: [1, 8192, 64], f32A: [64], f32B, C: [1, 8192, 1, 128]initial_states: [1, 64, 64, 128], f32dtype=f161p3b- init
x: [Bsz, S, H, P]dt: [Bsz, S, H], f32A, dt_bias: [H], f32B, C: [Bsz, S, G, N]initial_states: [Bsz, H, P, N], f32
mamba2-x: [1, 2048, 80, 64]dt: [1, 2048, 80], f32A, dt_bias: [80], f32B, C: [1, 2048, 1, 128]initial_states: [1, 80, 64, 128], f32dtype=bf162p7b- dt- bias- init mamba2-x: [1, 8192, 64, 64]dt: [1, 8192, 64], f32A, dt_bias: [64], f32B, C: [1, 8192, 1, 128]initial_states: [1, 64, 64, 128], f32dtype=f161p3b- dt- bias- init
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16 | 1.39× | 0.1030 | vllmtorch-compiletorch-ref | 0.1436 0.7572 2.2689 | 79.1 | · | · |
mamba2- | f16 | 1.45× | 0.2785 | vllmtorch-compiletorch-ref | 0.4033 2.3332 6.9081 | 93.8 | · | · |
mamba2- | bf16 | 1.40× | 0.1031 | vllmtorch-compiletorch-ref | 0.1443 0.7579 2.2712 | 79 | · | · |
mamba2- | f16 | 1.45× | 0.2785 | vllmtorch-compiletorch-ref | 0.4035 2.3358 6.9127 | 93.8 | · | · |
mamba2- | bf16 | 1.41× | 0.1040 | vllmtorch-compiletorch-ref | 0.1468 0.7557 2.2678 | 78.3 | · | · |
mamba2- | f16 | 1.45× | 0.2787 | vllmtorch-compiletorch-ref | 0.4031 2.3326 6.9068 | 93.7 | · | · |
mamba2- | bf16 | 1.42× | 0.1040 | vllmtorch-compiletorch-ref | 0.1471 0.7565 2.2698 | 78.3 | · | · |
mamba2- | f16 | 1.45× | 0.2786 | vllmtorch-compiletorch-ref | 0.4033 2.3337 6.9086 | 93.7 | · | · |
SelectiveScanFwd¶
u, delta, z: [Bsz, Di, S]A: [Di, N], f32B, C: [Bsz, G, N, S]D, delta_bias: [Di], f32
dtype=bf16
mamba-u, delta, z: [1, 5120, 4096]A: [5120, 16], f32B, C: [1, 1, 16, 4096]D, delta_bias: [5120], f322.8b- prefill mamba-u, delta, z: [1, 4096, 4096]A: [4096, 16], f32B, C: [1, 1, 16, 4096]D, delta_bias: [4096], f321.4b- prefill grouped-u, delta, z: [8, 4096, 2048]A: [4096, 32], f32B, C: [8, 8, 32, 2048]D, delta_bias: [4096], f32state
u, delta, z: [Bsz, Di, S]A: [Di, N], f32B, C: [Bsz, G, N, S]D, delta_bias: [Di], f32initial_states: [Bsz, Di, N], f32
dtype=bf16
mamba-u, delta, z: [1, 5120, 1]A: [5120, 16], f32B, C: [1, 1, 16, 1]D, delta_bias: [5120], f32initial_states: [1, 5120, 16], f322.8b- decode mamba-u, delta, z: [64, 5120, 1]A: [5120, 16], f32B, C: [64, 1, 16, 1]D, delta_bias: [5120], f32initial_states: [64, 5120, 16], f322.8b- decode- b64
u, delta: [Bsz, Di, S]A: [Di, N]B, C: [Bsz, G, N, S]D, delta_bias: [Di]
mamba-u, delta: [1, 1536, 4096]A: [1536, 16]B, C: [1, 1, 16, 4096]D, delta_bias: [1536]dtype=f32130m- no- gate
u, delta, z: [Bsz, Di, S]A: [Di, N], f32B, C: [Bsz, G, N, S]D, delta_bias: [Di], f32seq_idx: [Bsz, S], i32
mamba-u, delta, z: [1, 5120, 4096]A: [5120, 16], f32B, C: [1, 1, 16, 4096]D, delta_bias: [5120], f32seq_idx: [1, 4096], i32dtype=bf162.8b- packed
u, delta, z: [Bsz, Di, S]A: [Di, N], f32B, C: [Bsz, G, N, S]
bare-u, delta, z: [4, 2048, 1024]A: [2048, 16], f32B, C: [4, 1, 16, 1024]dtype=bf16scan
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba- | bf16 | 2.41× | 0.3020 | vllm | 0.7288 | 7.5 | · | · |
mamba- | bf16 | 2.54× | 0.2344 | vllm | 0.5943 | 7.73 | · | · |
grouped- | bf16 | 2.47× | 1.6439 | vllm | 4.0602 | 8.33 | · | · |
mamba- | bf16 | 1.44× | 0.00195 | vllm-state-updatevllm | 0.00282 0.0538 | 0.283 | · | · |
mamba- | bf16 | 1.37× | 0.0135 | vllm-state-updatevllm | 0.0185 2.5382 | 2.63 | · | · |
mamba- | f32 | 1.41× | 0.2321 | vllm | 0.3267 | 2.79 | · | · |
mamba- | bf16 | 6.88× | 0.3478 | vllm | 2.3941 | 6.51 | · | · |
bare- | bf16 | 2.56× | 0.1169 | vllm | 0.2986 | 7.54 | · | · |
CausalConv1dFwd¶
x: [Tt, D]weight: [D, W]conv_state: [B, D, L]cu_seqlens: [B + 1], i32bias: [D]has_initial_state: [B], bool
dtype=bf16/bf16
mamba2-x: [4096, 5376]weight: [5376, 4]conv_state: [4, 5376, 3]cu_seqlens: [5], i32bias: [5376]has_initial_state: [4], boolseq_lens=repeat(1024, 4)2.7b- prefill- 4k mamba2-x: [32768, 5376]weight: [5376, 4]conv_state: [8, 5376, 3]cu_seqlens: [9], i32bias: [5376]has_initial_state: [8], boolseq_lens=repeat(4096, 8)2.7b- prefill- 32k
x: [Tt, D]weight: [D, W]conv_state: [B, D, L]cu_seqlens: [B + 1], i32bias: [D]
mamba2-x: [4096, 5376]weight: [5376, 4]conv_state: [4, 5376, 3]cu_seqlens: [5], i32bias: [5376]seq_lens=repeat(1024, 4)dtype=bf16/bf162.7b- pf4k- nost
x: [Tt, D]weight: [D, W]conv_state: [B, D, L]cu_seqlens: [B + 1], i32has_initial_state: [B], bool
bias=None
qwen3-x: [4096, 8192]weight: [8192, 4]conv_state: [4, 8192, 3]cu_seqlens: [5], i32has_initial_state: [4], boolseq_lens=[2500,1000,500,96]dtype=f16/f16next- pf4k- ragged qwen3-x: [32768, 8192]weight: [8192, 4]conv_state: [4, 8192, 3]cu_seqlens: [5], i32has_initial_state: [4], boolseq_lens=repeat(8192, 4)dtype=f16/f16next- prefill- 32k qwen3.8-x: [4096, 10240]weight: [10240, 4]conv_state: [4, 10240, 9]cu_seqlens: [5], i32has_initial_state: [4], boolseq_lens=repeat(1024, 4)dilation=3dtype=bf16/bf16flash- ple- pf
x: [Tt, D]weight: [D, W]conv_state: [P, D, L]cu_seqlens: [B + 1], i32has_initial_state: [B], boolcache_indices: [B], i32
bias=Nonedtype=bf16/bf16
qwen3.6-x: [4096, 10240]weight: [10240, 4]conv_state: [256, 10240, 3]cu_seqlens: [5], i32has_initial_state: [4], boolcache_indices: [4], i32seq_lens=repeat(1024, 4)27b- pf- pool qwen3.6-x: [4096, 10240]weight: [10240, 4]conv_state: [256, 10240, 6]cu_seqlens: [4], i32has_initial_state: [3], boolcache_indices: [3], i32seq_lens=[3000,1000,96]27b- pf- spec- pool qwen3.6-x: [4096, 8192]weight: [8192, 4]conv_state: [256, 8192, 3]cu_seqlens: [5], i32has_initial_state: [4], boolcache_indices: [4], i32seq_lens=repeat(1024, 4)35b- a3b- pf- pool qwen3.8-x: [4096, 10240]weight: [10240, 4]conv_state: [256, 10240, 9]cu_seqlens: [5], i32has_initial_state: [4], boolcache_indices: [4], i32seq_lens=repeat(1024, 4)dilation=3flash- ple- pool
x: [Tt, D]weight: [D, W], f32conv_state: [B, D, L]cu_seqlens: [B + 1], i32has_initial_state: [B], bool
glm-x: [4096, 24576]weight: [24576, 4], f32conv_state: [4, 24576, 3]cu_seqlens: [5], i32has_initial_state: [4], boolseq_lens=repeat(1024, 4)bias=Nonedtype=bf16/f325.3- flash- pf
x: [Tt, D]weight: [D, W], f32conv_state: [P, D, L]cu_seqlens: [B + 1], i32has_initial_state: [B], boolcache_indices: [B], i32
glm-x: [4096, 24576]weight: [24576, 4], f32conv_state: [256, 24576, 3]cu_seqlens: [5], i32has_initial_state: [4], boolcache_indices: [4], i32seq_lens=repeat(1024, 4)bias=Nonedtype=bf16/f325.3- flash- pf- pool
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16/bf16 | 2.27× | 0.0274 | vllm | 0.0622 | 6.42 | · | · |
mamba2- | bf16/bf16 | 2.47× | 0.1798 | vllm | 0.4446 | 7.84 | · | · |
mamba2- | bf16/bf16 | 2.31× | 0.0269 | vllm | 0.0622 | 6.54 | · | · |
qwen3- | f16/f16 | 2.19× | 0.0392 | vllm | 0.0859 | 6.85 | · | · |
qwen3- | f16/f16 | 2.44× | 0.2608 | vllm | 0.6371 | 8.23 | · | · |
qwen3.8- | bf16/bf16 | 1.75× | 0.0647 | vllm | 0.1135 | 5.18 | · | · |
qwen3.6- | bf16/bf16 | 2.48× | 0.0458 | vllm | 0.1135 | 7.33 | · | · |
qwen3.6- | bf16/bf16 | 2.32× | 0.0491 | vllm | 0.1139 | 6.83 | · | · |
qwen3.6- | bf16/bf16 | 2.44× | 0.0378 | vllm | 0.0922 | 7.11 | · | · |
qwen3.8- | bf16/bf16 | 1.85× | 0.0614 | vllm | 0.1136 | 5.46 | · | · |
glm- | bf16/f32 | 2.12× | 0.1074 | vllm | 0.2274 | 7.5 | · | · |
glm- | bf16/f32 | 2.08× | 0.1094 | vllm | 0.2273 | 7.36 | · | · |
SSDChunkCumsumFwd¶
dt: [B, S, H], f32A: [H], f32
chunk_size=256dt_softplus=true
mamba2-dt: [1, 4096, 48], f32A: [48], f32dtype=f16780m mamba2-dt: [8, 2048, 64], f32A: [64], f32dtype=bf161p3b
dt: [B, S, H], f32A, dt_bias: [H], f32
chunk_size=256dt_softplus=true
mamba2-dt: [1, 4096, 48], f32A, dt_bias: [48], f32dtype=f16780m- dt- bias mamba2-dt: [8, 2048, 64], f32A, dt_bias: [64], f32dtype=bf161p3b- dt- bias mamba2-dt: [2, 32768, 80], f32A, dt_bias: [80], f32dtype=f162p7b
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | f16 | 1.65× | 0.00282 | torch-compilevllmtorch-ref | 0.00464 0.00477 0.0735 | 0.489 | · | · |
mamba2- | bf16 | 1.60× | 0.00525 | vllmtorch-compiletorch-ref | 0.00842 0.0111 0.0939 | 1.4 | · | · |
mamba2- | f16 | 1.69× | 0.00282 | torch-compilevllmtorch-ref | 0.00477 0.00483 0.0755 | 0.559 | · | · |
mamba2- | bf16 | 1.62× | 0.00531 | vllmtorch-compiletorch-ref | 0.00861 0.0113 0.0990 | 1.58 | · | · |
mamba2- | f16 | 1.37× | 0.0203 | vllmtorch-compiletorch-ref | 0.0278 0.0311 0.2436 | 2.06 | · | · |
SSDChunkCouplingFwd¶
C, B: [Bsz, S, G, N]
chunk_size=256
mamba2-C, B: [1, 4096, 1, 128]dtype=f16780m mamba2-C, B: [4, 2048, 1, 128]dtype=bf162p7b mamba2-C, B: [3, 3072, 8, 128]dtype=f16grouped- prefill
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | f16 | 1.53× | 0.00653 | vllmtorch | 0.00998 0.0370 | 20.6 | · | · |
mamba2- | bf16 | 1.40× | 0.0111 | vllmtorch | 0.0156 0.0522 | 24.2 | · | · |
mamba2- | f16 | 1.75× | 0.0573 | vllmtorch | 0.1000 0.4687 | 42.2 | · | · |
SSDChunkStateFwd¶
x: [Bsz, NC * Q, H, P]B: [Bsz, NC * Q, G, N]dt, dA_cumsum: [Bsz, H, NC, Q], f32
dtype=bf16/f32
mamba2-x: [1, 4096, 48, 64]B: [1, 4096, 1, 128]dt, dA_cumsum: [1, 48, 16, 256], f32780m mamba2-x: [4, 2048, 80, 64]B: [4, 2048, 1, 128]dt, dA_cumsum: [4, 80, 8, 256], f322p7b
x: [Bsz, NC * Q, H, P]B: [Bsz, NC * Q, G, N]dt, dA_cumsum: [Bsz, H, NC, Q], f32seq_idx: [Bsz, NC * Q], i32
mamba2-x: [1, 4096, 48, 64]B: [1, 4096, 1, 128]dt, dA_cumsum: [1, 48, 16, 256], f32seq_idx: [1, 4096], i32dtype=bf16/f32780m- seq- idx mamba2-x: [2, 32768, 64, 64]B: [2, 32768, 1, 128]dt, dA_cumsum: [2, 64, 128, 256], f32seq_idx: [2, 32768], i32dtype=f16/f321p3b
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16/f32 | 1.43× | 0.0180 | vllmtorch-compiletorch-ref | 0.0257 0.1629 0.5447 | 180 | · | · |
mamba2- | bf16/f32 | 1.55× | 0.0512 | vllmtorch-compiletorch-ref | 0.0794 0.5223 1.7564 | 210 | · | · |
mamba2- | bf16/f32 | 9.33× | 0.0175 | torch-compiletorch-ref | 0.1636 0.5577 | 184 | · | · |
mamba2- | f16/f32 | 11.05× | 0.2992 | torch-compiletorch-ref | 3.3070 11.1752 | 231 | · | · |
SSDStatePassingFwd¶
states: [B, NC, H, N]dA_chunk_cumsum: [B, H, NC], f32
mamba2-states: [1, 16, 64, 128]dA_chunk_cumsum: [1, 64, 16], f32dtype=bf161p3b mamba2-states: [2, 128, 80, 128]dA_chunk_cumsum: [2, 80, 128], f32dtype=f162p7b
states: [B, NC, H, N]dA_chunk_cumsum: [B, H, NC], f32initial_states: [B, H, N], f32
mamba2-states: [1, 16, 64, 128]dA_chunk_cumsum: [1, 64, 16], f32initial_states: [1, 64, 128], f32dtype=bf161p3b- init
states: [B, NC, H, N]dA_chunk_cumsum: [B, H, NC]initial_states: [B, H, N]
mamba2-states: [1, 16, 64, 8192]dA_chunk_cumsum: [1, 64, 16]initial_states: [1, 64, 8192]dtype=f321p3b- flat
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16 | 1.52× | 0.00186 | torch-compilevllmtorch-ref | 0.00282 0.0140 0.1242 | 0.142 | · | · |
mamba2- | f16 | 9.01× | 0.00918 | vllmtorch-compiletorch-ref | 0.0827 0.0902 1.1477 | 0.573 | · | · |
mamba2- | bf16 | 1.09× | 0.00186 | torch-compilevllmtorch-ref | 0.00202 0.0102 0.1238 | 0.142 | · | · |
mamba2- | f32 | 1.08× | 0.0170 | torch-compilevllmtorch-ref | 0.0184 0.0367 0.1262 | 0.986 | · | · |
SSDChunkScanFwd¶
x: [B, NC * Q, H, P]cb: [B, NC, G, Q, Q]dA_cumsum: [B, H, NC, Q], f32C: [B, NC * Q, G, N]prev_states: [B, NC, H, P, N], f32dt: [B, H, NC, Q]
mamba2-x: [1, 4096, 48, 64]cb: [1, 16, 1, 256, 256]dA_cumsum: [1, 48, 16, 256], f32C: [1, 4096, 1, 128]prev_states: [1, 16, 48, 64, 128], f32dt: [1, 48, 16, 256]dtype=bf16780m mamba2-x: [4, 2048, 80, 64]cb: [4, 8, 1, 256, 256]dA_cumsum: [4, 80, 8, 256], f32C: [4, 2048, 1, 128]prev_states: [4, 8, 80, 64, 128], f32dt: [4, 80, 8, 256]dtype=bf162p7b mamba2-x: [2, 32768, 64, 64]cb: [2, 128, 1, 256, 256]dA_cumsum: [2, 64, 128, 256], f32C: [2, 32768, 1, 128]prev_states: [2, 128, 64, 64, 128], f32dt: [2, 64, 128, 256]dtype=f161p3b
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16 | 1.45× | 0.0732 | vllmtorch-compiletorch-ref | 0.1058 0.5067 1.9653 | 88 | · | · |
mamba2- | bf16 | 1.44× | 0.2312 | vllmtorch-compiletorch-ref | 0.3339 1.6473 6.5343 | 92.9 | · | · |
mamba2- | f16 | 1.54× | 1.4513 | vllmtorch-compiletorch-ref | 2.2346 9.9631 40.2463 | 94.7 | · | · |
CausalConv1dUpdateFwd¶
x: [B, D]weight: [D, W]conv_state: [B, D, L]bias: [D]
dtype=bf16/bf16
mamba2-x: [1, 5376]weight: [5376, 4]conv_state: [1, 5376, 3]bias: [5376]2.7b- decode- b1 mamba2-x: [64, 5376]weight: [5376, 4]conv_state: [64, 5376, 3]bias: [5376]2.7b- decode- b64 mamba2-x: [256, 5376]weight: [5376, 4]conv_state: [256, 5376, 3]bias: [5376]2.7b- decode- b256
x: [B, D]weight: [D, W]conv_state: [B, D, L]
qwen3-x: [64, 8192]weight: [8192, 4]conv_state: [64, 8192, 3]dtype=f16/f16next- decode- b64
x: [B, D]weight: [D, W]conv_state: [P, D, L]conv_state_indices: [B], i32
dtype=bf16/bf16
qwen3.6-x: [64, 10240]weight: [10240, 4]conv_state: [256, 10240, 3]conv_state_indices: [64], i3227b- dec- pool qwen3.6-x: [64, 8192]weight: [8192, 4]conv_state: [256, 8192, 3]conv_state_indices: [64], i3235b- a3b- dec- pool qwen3.8-x: [64, 10240]weight: [10240, 4]conv_state: [256, 10240, 9]conv_state_indices: [64], i32dilation=3flash- ple- dec
x: [Tt, D]weight: [D, W]conv_state: [P, D, L]conv_state_indices, num_accepted_tokens: [B], i32query_start_loc: [B + 1], i32
seq_lens=repeat(4, 64)max_query_len=4dtype=bf16/bf16
qwen3.6-x: [256, 10240]weight: [10240, 4]conv_state: [256, 10240, 6]conv_state_indices, num_accepted_tokens: [64], i32query_start_loc: [65], i3227b- spec- verify qwen3.6-x: [256, 8192]weight: [8192, 4]conv_state: [256, 8192, 6]conv_state_indices, num_accepted_tokens: [64], i32query_start_loc: [65], i3235b- a3b- spec qwen3.8-x: [256, 10240]weight: [10240, 4]conv_state: [256, 10240, 12]conv_state_indices, num_accepted_tokens: [64], i32query_start_loc: [65], i32dilation=3flash- ple- spec
x: [B, D]weight: [D, W], f32conv_state: [P, D, L]conv_state_indices: [B], i32
glm-x: [64, 24576]weight: [24576, 4], f32conv_state: [256, 24576, 3]conv_state_indices: [64], i32dtype=bf16/f325.3- flash- dec- pool
x: [Tt, D]weight: [D, W], f32conv_state: [P, D, L]conv_state_indices, num_accepted_tokens: [B], i32query_start_loc: [B + 1], i32
glm-x: [256, 24576]weight: [24576, 4], f32conv_state: [256, 24576, 6]conv_state_indices, num_accepted_tokens: [64], i32query_start_loc: [65], i32seq_lens=repeat(4, 64)max_query_len=4dtype=bf16/f325.3- flash- spec
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16/bf16 | 1.95× | 0.00163 | vllm | 0.00318 | 0.0264 | · | · |
mamba2- | bf16/bf16 | 1.85× | 0.00283 | vllm | 0.00525 | 0.972 | · | · |
mamba2- | bf16/bf16 | 2.06× | 0.00656 | vllm | 0.0135 | 1.68 | · | · |
qwen3- | f16/f16 | 2.02× | 0.00327 | vllm | 0.00659 | 1.28 | · | · |
qwen3.6- | bf16/bf16 | 1.72× | 0.00461 | vllm | 0.0079 | 1.14 | · | · |
qwen3.6- | bf16/bf16 | 1.85× | 0.00355 | vllm | 0.00656 | 1.18 | · | · |
qwen3.8- | bf16/bf16 | 1.34× | 0.00765 | vllm | 0.0103 | 0.686 | · | · |
qwen3.6- | bf16/bf16 | 1.74× | 0.00867 | vllmtorch-ref | 0.0151 2.1287 | 2.42 | · | · |
qwen3.6- | bf16/bf16 | 1.71× | 0.00755 | vllmtorch-ref | 0.0129 2.1000 | 2.22 | · | · |
qwen3.8- | bf16/bf16 | 1.49× | 0.0149 | vllmtorch-ref | 0.0222 2.1782 | 1.4 | · | · |
glm- | bf16/f32 | 2.32× | 0.008 | vllm | 0.0186 | 1.57 | · | · |
glm- | bf16/f32 | 1.79× | 0.0174 | vllmtorch-ref | 0.0312 2.0896 | 2.89 | · | · |
SSDRecurrentFwd¶
A: [H, P, N], f32dt: [Bsz, H, P], f32x: [Bsz, H, P]B, C: [Bsz, G, N]state: [Bsz, H, P, N], f32
mamba2-A: [64, 64, 128], f32dt: [1, 64, 64], f32x: [1, 64, 64]B, C: [1, 1, 128]state: [1, 64, 64, 128], f32dtype=bf161p3b mamba2-A: [80, 64, 128], f32dt: [8, 80, 64], f32x: [8, 80, 64]B, C: [8, 1, 128]state: [8, 80, 64, 128], f32dtype=f162p7b mamba2-A: [48, 64, 128], f32dt: [32, 48, 64], f32x: [32, 48, 64]B, C: [32, 1, 128]state: [32, 48, 64, 128], f32dtype=f16780m
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mamba2- | bf16 | 2.50× | 0.00294 | vllmtorch-compileflashinfertorch-ref | 0.00736 0.00848 0.0140 0.0301 | 1.42 | · | · |
mamba2- | f16 | 1.40× | 0.0117 | vllmflashinfertorch-compiletorch-ref | 0.0164 0.0275 0.0285 0.1119 | 3.58 | · | · |
mamba2- | f16 | 1.24× | 0.0250 | vllmflashinfertorch-compiletorch-ref | 0.0309 0.0437 0.0677 0.2413 | 4.03 | · | · |