infly · text

OpenCoder-1.5B-Instruct

infly/OpenCoder-1.5B-Instruct

OpenCoder-1.5B-Instruct at Q4_K_M is exactly 1,417,775,200 bytes (1.32 GiB / 1.42 GB) — an effective 5.952 bits per weight, not the nominal 4. Its KV cache at 32K is 6.56 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
1.9B
Architecture
llama
24 layers
Context
4,096
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q3_K_L1.18 GiB1,269,218,4005.328lmstudio-community
Q4_K_M1.32 GiB1,417,775,2005.952lmstudio-community
Q6_K1.81 GiB1,947,311,2008.175lmstudio-community
Q8_01.89 GiB2,027,306,0808.511lmstudio-community

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.82 GiB0.82 GiB24 / 0 / 0
8,1921.64 GiB1.64 GiB24 / 0 / 0
16,3843.28 GiB3.28 GiB24 / 0 / 0
32,7686.56 GiB6.56 GiB24 / 0 / 0
65,53613.13 GiB13.13 GiB24 / 0 / 0
131,07226.25 GiB26.25 GiB24 / 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 1.00 GiB. The real file is 1.32 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
24
Attention heads
14
KV heads
14
Head dim
160
Hidden size
2240
Vocab
96,640
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does OpenCoder-1.5B-Instruct need?
Q4_K_M is exactly 1,417,775,200 bytes (1.32 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is OpenCoder-1.5B-Instruct's KV cache?
6.56 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 OpenCoder-1.5B-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.