llm-jp · text

llm-jp-4-8b-instruct

llm-jp/llm-jp-4-8b-instruct

llm-jp-4-8b-instruct at Q4_K_M is exactly 5,304,881,696 bytes (4.94 GiB / 5.30 GB) — an effective 4.940 bits per weight, not the nominal 4. Its KV cache at 32K is 4.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
8.6B
Architecture
llama
32 layers
Context
65,536
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ3_M3.85 GiB4,131,787,5523.848mmnga-o
Q3_K_M4.07 GiB4,365,881,8884.066mmnga-o
Q3_K_L4.35 GiB4,668,920,3524.348mmnga-o
IQ4_XS4.49 GiB4,823,061,2804.492mmnga-o
Q4_04.70 GiB5,045,359,1364.699mmnga-o
IQ4_NL4.71 GiB5,062,136,6084.714mmnga-o
Q4_K_S4.73 GiB5,076,816,4164.728mmnga-o
Q4_K_M4.94 GiB5,304,881,6964.940mmnga-o
Q5_K_S5.61 GiB6,018,437,6645.605mmnga-o
Q5_05.61 GiB6,018,437,6645.605mmnga-o
Q5_K_M5.73 GiB6,152,131,1045.729mmnga-o
Q6_K6.57 GiB7,052,333,6006.568mmnga-o
Q8_08.51 GiB9,132,708,3848.505mmnga-o

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.50 GiB0.50 GiB32 / 0 / 0
8,1921.00 GiB1.00 GiB32 / 0 / 0
16,3842.00 GiB2.00 GiB32 / 0 / 0
32,7684.00 GiB4.00 GiB32 / 0 / 0
65,5368.00 GiB8.00 GiB32 / 0 / 0
131,07216.00 GiB16.00 GiB32 / 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 4.50 GiB. The real file is 4.94 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
32
KV heads
8
Head dim
128
Hidden size
4096
Vocab
196,608
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does llm-jp-4-8b-instruct need?
Q4_K_M is exactly 5,304,881,696 bytes (4.94 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is llm-jp-4-8b-instruct's KV cache?
4.00 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 llm-jp-4-8b-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.