janhq · text

Jan-v3-4B-base-instruct

janhq/Jan-v3-4B-base-instruct

Jan-v3-4B-base-instruct at Q4_K_M is exactly 2,716,066,656 bytes (2.53 GiB / 2.72 GB) — an effective 4.926 bits per weight, not the nominal 4. Its KV cache at 32K is 4.50 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
4.4B
Architecture
qwen3
36 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M1.56 GiB1,680,112,3203.047bartowski
Q2_K1.67 GiB1,797,124,8003.259bartowski
IQ3_XXS1.71 GiB1,837,316,8003.332bartowski
IQ3_XS1.85 GiB1,981,503,6803.593bartowski
Q3_K_S1.91 GiB2,054,124,8963.725janhq
Q3_K_S1.91 GiB2,054,124,9923.725janhq
Q3_K_S1.91 GiB2,054,125,7603.725bartowski
IQ3_M1.98 GiB2,130,024,6403.863bartowski
Q2_K_L2.03 GiB2,176,964,8003.948bartowski
Q3_K_M2.09 GiB2,242,745,6964.067399janhq
Q3_K_M2.09 GiB2,242,745,7924.067399janhq
Q3_K_M2.09 GiB2,242,746,5604.067bartowski
Q3_K_L2.24 GiB2,406,913,3764.365janhq
Q3_K_L2.24 GiB2,406,913,4724.365janhq
Q3_K_L2.24 GiB2,406,914,2404.365bartowski
IQ4_XS2.31 GiB2,477,383,3604.493399bartowski
Q4_02.41 GiB2,588,332,8964.694399janhq
Q4_02.41 GiB2,588,332,9924.694399janhq
Q4_02.42 GiB2,594,559,6804.705bartowski
IQ4_NL2.42 GiB2,600,130,2404.715bartowski
Q4_K_S2.42 GiB2,602,095,4564.719janhq
Q4_K_S2.42 GiB2,602,095,5524.719janhq
Q4_K_S2.42 GiB2,602,096,3204.719bartowski
Q4_K_M2.53 GiB2,716,066,6564.926399janhq
Q4_K_M2.53 GiB2,716,066,7524.926janhq
Q4_K_M2.53 GiB2,716,067,5204.926bartowski
Q4_12.64 GiB2,839,724,8965.150janhq
Q4_12.64 GiB2,839,724,9925.150janhq
Q4_12.64 GiB2,839,725,7605.150bartowski
Q4_K_L2.80 GiB3,004,745,9205.449bartowski
Q5_K_S2.88 GiB3,091,116,8965.606janhq
Q5_02.88 GiB3,091,116,8965.606janhq
Q5_02.88 GiB3,091,116,9925.606janhq
Q5_K_S2.88 GiB3,091,116,9925.606janhq
Q5_K_S2.88 GiB3,091,117,7605.606bartowski
Q5_K_M2.94 GiB3,156,919,1365.725399janhq
Q5_K_M2.94 GiB3,156,919,2325.725399janhq
Q5_K_M2.94 GiB3,156,920,0005.725bartowski
Q5_13.11 GiB3,342,508,8966.062janhq
Q5_13.11 GiB3,342,508,9926.062janhq

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.56 GiB0.56 GiB36 / 0 / 0
8,1921.13 GiB1.13 GiB36 / 0 / 0
16,3842.25 GiB2.25 GiB36 / 0 / 0
32,7684.50 GiB4.50 GiB36 / 0 / 0
65,5369.00 GiB9.00 GiB36 / 0 / 0
131,07218.00 GiB18.00 GiB36 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 2.31 GiB. The real file is 2.53 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
36
Attention heads
32
KV heads
8
Head dim
128
Hidden size
2560
Vocab
151,936
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

Questions people ask

How much VRAM does Jan-v3-4B-base-instruct need?
Q4_K_M is exactly 2,716,066,656 bytes (2.53 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Jan-v3-4B-base-instruct's KV cache?
4.50 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of Jan-v3-4B-base-instruct should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.