Qwen · Alibaba

Qwen3.5 0.8B

Qwen3.5 0.8B from Alibaba has 752,393,024 parameters in its language model. Its weights take 1.5 GB in BF16 and about 376 MB at 4-bit, and each token of context adds 12.3 KB of KV cache (403 MB at 32K tokens). The checkpoint also carries a 101M-parameter vision encoder.

752Mparameters
1.5 GBBF16 weights
376 MB4-bit weights
12.3 KBKV per token

Part of the Qwen3.5 family: 752M · 1.88B · 4.21B · 8.95B · 26.9B · 34.7B · 122B · 396B

Architecture · VRAM · KV cache · Tensor shapes · Parameter count · FLOPs

Architecture

ArchitectureQwen3_5ForConditionalGeneration
Layers (L)24
Hidden size (d)1,024
AttentionGQA (4 query heads share each KV head)
Heads8 query, 2 key/value, 256 each
Feed-forwardSwiGLU, hidden size 3,584
Vocabulary (V)248,320
Tied embeddingsyes: the output head reuses the embedding
Biasesnone
Extra normspre-norm (RMSNorm before attention and FFN)
Max context262,144 tokens
Linear attentionGated DeltaNet on 18 of 24 layers: 16 key heads and 16 value heads of 128; full attention (with a sigmoid output gate) on the other 6
Vision encoderViT, 12 layers, 768 wide: 101M parameters with the projector (in the checkpoint, used only for images)
Weights in the release–

How much memory the weights need

Each parameter takes 4 bytes in FP32, 2 in BF16, 1 at 8 bits and half a byte at 4 bits, so the weights of the language model alone need:

PrecisionBytes per parameterWeights
FP3243.0 GB2.80 GiB
BF16 / FP1621.5 GB1.40 GiB
INT8 / FP81752 MB717.5 MiB
INT40.5376 MB358.8 MiB

GB here is 109 bytes; GiB (230) is what tools like nvidia-smi show. Real 4-bit files are a little larger: they also store scales, and some layers are often kept at higher precision. The vision encoder adds 201 MB in BF16 when used. A running model also needs its KV cache, activations and the runtime's own buffers.

Memory calculator

On common GPUs

Whether the weights plus a 8K-token KV cache fit in 90% of the card (how this is worked out):

Smallest card: 8 GB at BF16, 8 GB at 8-bit, 8 GB at 4-bit.

GPU memoryBF168-bit4-bit
8 GB1.6 GB920 MB544 MB
12 GB1.6 GB920 MB544 MB
16 GB1.6 GB920 MB544 MB
24 GB1.6 GB920 MB544 MB
48 GB1.6 GB920 MB544 MB
64 GB1.6 GB920 MB544 MB
80 GB1.6 GB920 MB544 MB

Each cell is the weights plus the 8K-token KV cache at that precision; ✓ where it fits.

KV cache

What it is: the KV cache, explained.

Only some layers keep keys and values, and not all of the same size:

6 attention layers × 2 × 2 × 256 × 2 bytes = 12,288 bytes per token

The 18 linear-attention layers cache no keys or values. Each keeps a fixed-size state instead (a 128 × 128 matrix for each of 16 heads, plus the last 3 tokens for the short convolution), held in FP32: 20.2 MB per sequence, whatever the context length. See linear attention.

ContextKV cache, BF168-bit KVWeights + KV, BF16
4K50.3 MB25.2 MB1.6 GB
32K403 MB201 MB1.9 GB
128K1.6 GB805 MB3.1 GB
256K (max)3.2 GB1.6 GB4.7 GB

For one sequence. Batching multiplies the KV cache by the number of sequences, not the weights.

Every tensor shape

The names are those in the Hugging Face checkpoint (the language model's sit under language_model.); shapes are [out, in] for weight matrices, as PyTorch stores them. One block is shown: the model repeats it 24 times (in two kinds).

TensorShapeParameters
Embedding
model.language_model.embed_tokens.weightalso used as the output head (tied)[248,320, 1,024]254,279,680
Linear-attention blocks (18 layers): model.layers.N.…
linear_attn.in_proj_qkv.weightqueries and keys for each key head, values for each value head[6,144, 1,024]6,291,456
linear_attn.in_proj_z.weightthe output gate[2,048, 1,024]2,097,152
linear_attn.in_proj_b.weightper head: how strongly to write (β)[16, 1,024]16,384
linear_attn.in_proj_a.weightper head: how fast to forget (α)[16, 1,024]16,384
linear_attn.conv1d.weighta depthwise convolution over the last 4 tokens[6,144, 1, 4]24,576
linear_attn.A_logper-head decay rate[16]16
linear_attn.dt_bias[16]16
linear_attn.norm.weightgated RMSNorm on each head's output[128]128
linear_attn.out_proj.weight[1,024, 2,048]2,097,152
mlp.gate_proj.weight[3,584, 1,024]3,670,016
mlp.up_proj.weight[3,584, 1,024]3,670,016
mlp.down_proj.weight[1,024, 3,584]3,670,016
input_layernorm.weight[1,024]1,024
post_attention_layernorm.weight[1,024]1,024
Full-attention blocks (every 4th: layers 3, 7, …, 23): model.layers.N.…
self_attn.q_proj.weightqueries and a sigmoid gate on the output, per head[4,096, 1,024]4,194,304
self_attn.k_proj.weight[512, 1,024]524,288
self_attn.v_proj.weight[512, 1,024]524,288
self_attn.o_proj.weight[1,024, 2,048]2,097,152
self_attn.q_norm.weightshared by every head[256]256
self_attn.k_norm.weight[256]256
mlp.gate_proj.weight[3,584, 1,024]3,670,016
mlp.up_proj.weight[3,584, 1,024]3,670,016
mlp.down_proj.weight[1,024, 3,584]3,670,016
input_layernorm.weight[1,024]1,024
post_attention_layernorm.weight[1,024]1,024
After the last block
model.language_model.norm.weightfinal norm[1,024]1,024
Vision encoder: patches and positions
model.visual.patch_embed.proj.weighta 2×16×16 convolution over frames and pixels[768, 3, 2, 16, 16]1,179,648
model.visual.patch_embed.proj.bias[768]768
model.visual.pos_embed.weightlearned positions, interpolated to the image's grid[2,304, 768]1,769,472
Vision encoder: one layer (×12): …layers.N.…
blocks.N.attn.qkv.weight[2,304, 768]1,769,472
blocks.N.attn.qkv.bias[2,304]2,304
blocks.N.attn.proj.weight[768, 768]589,824
blocks.N.attn.proj.bias[768]768
blocks.N.mlp.linear_fc1.weight[3,072, 768]2,359,296
blocks.N.mlp.linear_fc1.bias[3,072]3,072
blocks.N.mlp.linear_fc2.weight[768, 3,072]2,359,296
blocks.N.mlp.linear_fc2.bias[768]768
blocks.N.norm1.weight[768]768
blocks.N.norm1.bias[768]768
blocks.N.norm2.weight[768]768
blocks.N.norm2.bias[768]768
Vision encoder: merger
model.visual.merger.norm.weight[768]768
model.visual.merger.norm.bias[768]768
model.visual.merger.linear_fc1.weighteach 2×2 group of patches, concatenated[3,072, 3,072]9,437,184
model.visual.merger.linear_fc1.bias[3,072]3,072
model.visual.merger.linear_fc2.weight[1,024, 3,072]3,145,728
model.visual.merger.linear_fc2.bias[1,024]1,024

The parameter count, step by step

Each line gives the formula, the numbers from config.json, and the subtotal. The symbols:

V
vocabulary 248,320
d
hidden size 1,024
L
layers 24
H
query heads 8
K
key/value heads 2
h
head size 256
f
FFN hidden size 3,584

1. Embedding

One row of d numbers for each of the V tokens in the vocabulary.

Embedding
V × d
248,320 × 1,024
= 254,279,680

2. Linear-attention blocks (18 layers), ×18

Linear attention (Gated DeltaNet)
(2H_k·d_k+H_v·d_v) × d + H_v·d_v × d + 2 × (H_v × d) + (2H_k·d_k+H_v·d_v) × 1 × k + 2 × H_v + d_v + d × H_v·d_v
6,144 × 1,024 + 2,048 × 1,024 + 2 × (16 × 1,024) + 6,144 × 1 × 4 + 2 × 16 + 128 + 1,024 × 2,048
= 10,543,264
Feed-forward (SwiGLU)
2 × (f × d) + d × f
2 × (3,584 × 1,024) + 1,024 × 3,584
= 11,010,048
Norms
2 × d
2 × 1,024
= 2,048
One block
linear attention + feed-forward + norms
10,543,264 + 11,010,048 + 2,048
= 21,555,360
18 blocks
18 × block
18 × 21,555,360
= 387,996,480

3. Full-attention blocks (every 4th: layers 3, 7, …, 23), ×6

Attention (full, gated)
2·H·h × d + 2 × (K·h × d) + d × H·h + 2 × h
4,096 × 1,024 + 2 × (512 × 1,024) + 1,024 × 2,048 + 2 × 256
= 7,340,544
Feed-forward (SwiGLU)
2 × (f × d) + d × f
2 × (3,584 × 1,024) + 1,024 × 3,584
= 11,010,048
Norms
2 × d
2 × 1,024
= 2,048
One block
attention + feed-forward + norms
7,340,544 + 11,010,048 + 2,048
= 18,352,640
6 blocks
6 × block
6 × 18,352,640
= 110,115,840

4. Final norm and output head

Final norm (the head is the embedding, tied: 0 more)
d
1,024
= 1,024

5. Total

Language model
embedding + blocks + final
254,279,680 + 387,996,480 + 110,115,840 + 1,024
= 752,393,024

6. Multi-token prediction

The checkpoint also ships 1 multi-token-prediction module, trained to guess tokens further ahead. It is not used for ordinary decoding (it can drive speculative decoding), so it is left out of the total above but is in the files.

MTP: its own pieces
3 × d + d × 2d
3 × 1,024 + 1,024 × 2,048
= 2,100,224
MTP: a full-attention block
2·H·h × d + 2 × (K·h × d) + d × H·h + 2 × h + 2 × (f × d) + d × f + 2 × d
4,096 × 1,024 + 2 × (512 × 1,024) + 1,024 × 2,048 + 2 × 256 + 2 × (3,584 × 1,024) + 1,024 × 3,584 + 2 × 1,024
= 18,352,640

7. Vision encoder

The checkpoint also holds an image encoder (Llama 4's own ViT, 12 layers of width d_v = 768, MLP f_v = 3,072) and a projector into the language model. It runs only when the prompt has an image, so it is listed apart from the language model.

patches and positions

Patch embedding
d_v × C × t × p × p + d_v + n_pos × d_v
768 × 3 × 2 × 16 × 16 + 768 + 2,304 × 768
= 2,949,888

one layer, ×12

Attention
3d_v × d_v + 3d_v + d_v × d_v + d_v
2,304 × 768 + 2,304 + 768 × 768 + 768
= 2,362,368
MLP
f_v × d_v + f_v + d_v × f_v + d_v
3,072 × 768 + 3,072 + 768 × 3,072 + 768
= 4,722,432
LayerNorms
4 × d_v
4 × 768
= 3,072
One block
attention + mlp + layernorms
2,362,368 + 4,722,432 + 3,072
= 7,087,872
12 blocks
12 × block
12 × 7,087,872
= 85,054,464

merger

Into the language model
2 × d_v + d_v·m² × d_v·m² + d_v·m² + d × d_v·m² + d
2 × 768 + 3,072 × 3,072 + 3,072 + 1,024 × 3,072 + 1,024
= 12,588,544
Vision encoder
the parts above
2,949,888 + 85,054,464 + 12,588,544
= 100,592,896
In the checkpoint
language model + MTP + vision
752,393,024 + 20,452,864 + 100,592,896
= 873,438,784

Hugging Face counts 873,438,784 parameters in the Qwen/Qwen3.5-0.8B-Base safetensors files. The arithmetic above matches exactly.

FLOPs per token

A forward pass costs about two floating-point operations (a multiply and an add) for every weight a token passes through: 2 × N, with N the weights used in matrix multiplies (the embedding lookup is a read, not a multiply; the output head is a multiply, even though it is tied to the embedding). Here that is 2 × 752,393,024 = 1.5 GFLOPs per token.

Attention adds the work of comparing the token with every earlier one: 2 × L × T × H × (hqk + hv) for T tokens of context, which grows with the context while 2N does not.

That is for one new token at position T, as when generating. Averaged over a whole training sequence of length T, each token sees T/2 earlier ones on average, which halves it.

Context T2NAttentionTotal per token
4K1.5 GFLOPs220.2 MFLOPs1.7 GFLOPs
32K1.5 GFLOPs1.6 GFLOPs3.1 GFLOPs
128K1.5 GFLOPs6.5 GFLOPs8.0 GFLOPs
256K1.5 GFLOPs12.9 GFLOPs14.4 GFLOPs

Training costs about three times the forward pass per token (6N): the backward pass does roughly twice the forward work.

More in the glossary: FLOPs per token · quantization · parameters.

Compare

Compare with any model →

Close in size: Qwen3 0.6B 596M · Gemma 3 1B 1B · Qwen2.5 0.5B 494M · Llama 3.2 1B 1.24B · OLMo 2 1B 1.48B

Source

Read from Qwen/Qwen3.5-0.8B-Base, fetched 2026-12-03.