N Neurarch Try it See it Changes Bot Pricing API Open app

Comparisons / Mamba SSM Block vs Jamba

Mamba SSM Block vs Jamba

Pure state space against a hybrid that keeps some attention.

Jamba has 13B more parameters than Mamba SSM Block: 42 layers added, 7 removed, 8 changed.

Baseline

Mamba SSM Block

Layers
16
Parameters
168M
Input
1 × 1024
Output
1 × 1024 × 50280
Forward-passes
yes
Est. train cost
$2.58
Compared

Jamba

Layers
51
Parameters
13B
Input
1 × 4096
Output
1 × 4096 × 65536
Forward-passes
yes
Est. train cost
$338.33

The deltas

Every number is Jamba relative to Mamba SSM Block.

Parameters
+13B (77× the size)
Layers
+35
Added
42
Removed
7
Changed
8
Unchanged
3

Which GPUs each one fits

Each side is measured at its own declared input (1 × 1024 against 1 × 4096). Both columns are right about their own model; the difference between them is not a fact about the designs.

GPUMamba SSM BlockJamba
T4 16GBnono
A100 40GBfitsno
H100 80GBfitsno

Layer by layer

Aligned in topological order. 3 of 60 rows are the same layer with the same parameters.

Hide all 60 rows
Mamba SSM BlockJamba
LayerParamsOutputLayerParamsOutput
1changed
shape
tokens
Input
1 × 1024tokens
Input
1 × 4096
2changed
numEmbeddings, embeddingDim
embed
Embedding
51M1 × 1024 × 1024token_embed
Embedding
268M1 × 4096 × 4096
3added—mixer_norm_1
Rms Norm
4.1K1 × 4096 × 4096
4added—mamba_1
Mamba
101M1 × 4096 × 4096
5added—mixer_residual_1
Add
1 × 4096 × 4096
6changed
normalizedShape
norm_ssm
Rms Norm
1.0K1 × 1024 × 1024ffn_norm_1
Rms Norm
4.1K1 × 4096 × 4096
7changed
type, outFeatures, embedDim, ffDim
in_proj
Linear
1 × 1024 × 4096mlp_1
Feed Forward
117M1 × 4096 × 4096
8removedto_channels
Permute
1 × 4096 × 1024—
9removedz_gate
Swish
1 × 1024 × 4096—
10removedcausal_conv
Conv1d
16K1 × 4096 × 1024—
11removedto_tokens
Permute
1 × 1024 × 4096—
12removedsilu_x
Swish
1 × 1024 × 4096—
13added—ffn_residual_1
Add
1 × 4096 × 4096
14added—mixer_norm_2
Rms Norm
4.1K1 × 4096 × 4096
15changed
dConv, expand
ssm_scan
Mamba
51M1 × 1024 × 4096mamba_2
Mamba
101M1 × 4096 × 4096
16removedgate_out
Multiply
1 × 1024 × 4096—
17added—mixer_residual_2
Add
1 × 4096 × 4096
18added—ffn_norm_2
Rms Norm
4.1K1 × 4096 × 4096
19added—moe_2
Moe Layer
2.8B1 × 4096 × 4096
20added—ffn_residual_2
Add
1 × 4096 × 4096
21added—mixer_norm_3
Rms Norm
4.1K1 × 4096 × 4096
22added—mamba_3
Mamba
101M1 × 4096 × 4096
23added—mixer_residual_3
Add
1 × 4096 × 4096
24added—ffn_norm_3
Rms Norm
4.1K1 × 4096 × 4096
25changed
type, outFeatures, embedDim, ffDim
out_proj
Linear
1 × 1024 × 1024mlp_3
Feed Forward
117M1 × 4096 × 4096
26sameresidual_1
Add
1 × 1024 × 1024ffn_residual_3
Add
1 × 4096 × 4096
27changed
normalizedShape
norm_ffn
Rms Norm
1.0K1 × 1024 × 1024mixer_norm_4
Rms Norm
4.1K1 × 4096 × 4096
28removedffn
Swiglu
6.3M1 × 1024 × 1024—
29added—mamba_4
Mamba
101M1 × 4096 × 4096
30added—mixer_residual_4
Add
1 × 4096 × 4096
31added—ffn_norm_4
Rms Norm
4.1K1 × 4096 × 4096
32added—moe_4
Moe Layer
2.8B1 × 4096 × 4096
33added—ffn_residual_4
Add
1 × 4096 × 4096
34added—mixer_norm_5
Rms Norm
4.1K1 × 4096 × 4096
35added—attn_5
Grouped Query Attention
42M1 × 4096 × 4096
36added—mixer_residual_5
Add
1 × 4096 × 4096
37added—ffn_norm_5
Rms Norm
4.1K1 × 4096 × 4096
38added—mlp_5
Feed Forward
117M1 × 4096 × 4096
39added—ffn_residual_5
Add
1 × 4096 × 4096
40added—mixer_norm_6
Rms Norm
4.1K1 × 4096 × 4096
41added—mamba_6
Mamba
101M1 × 4096 × 4096
42added—mixer_residual_6
Add
1 × 4096 × 4096
43added—ffn_norm_6
Rms Norm
4.1K1 × 4096 × 4096
44added—moe_6
Moe Layer
2.8B1 × 4096 × 4096
45added—ffn_residual_6
Add
1 × 4096 × 4096
46added—mixer_norm_7
Rms Norm
4.1K1 × 4096 × 4096
47added—mamba_7
Mamba
101M1 × 4096 × 4096
48added—mixer_residual_7
Add
1 × 4096 × 4096
49added—ffn_norm_7
Rms Norm
4.1K1 × 4096 × 4096
50added—mlp_7
Feed Forward
117M1 × 4096 × 4096
51added—ffn_residual_7
Add
1 × 4096 × 4096
52added—mixer_norm_8
Rms Norm
4.1K1 × 4096 × 4096
53added—mamba_8
Mamba
101M1 × 4096 × 4096
54added—mixer_residual_8
Add
1 × 4096 × 4096
55added—ffn_norm_8
Rms Norm
4.1K1 × 4096 × 4096
56added—moe_8
Moe Layer
2.8B1 × 4096 × 4096
57sameresidual_2
Add
1 × 1024 × 1024ffn_residual_8
Add
1 × 4096 × 4096
58added—final_norm
Rms Norm
4.1K1 × 4096 × 4096
59changed
outFeatures, inFeatures
lm_head
Linear
1 × 1024 × 50280lm_head
Linear
269M1 × 4096 × 65536
60sameoutput
Output
1 × 1024 × 50280logits
Output
1 × 4096 × 65536

What this is not

Take it further

Open either graph in the editor, change it, and check it again: Mamba SSM Block · Jamba

Compare any two models of your own, including anything on Hugging Face: the comparison tool.

Machine-readable: this page as markdown · the pair index · POST https://www.neurarch.com/api/v1/plan for a graph of your own.

Related comparisons

Transformer Block vs Mamba SSM Block
Attention against a state-space layer for the same job.
Simple RNN vs Mamba SSM Block
The recurrent layer everyone started with against its modern replacement.