OpenAssistant · text

codellama-13b-oasst-sft-v10

OpenAssistant/codellama-13b-oasst-sft-v10

codellama-13b-oasst-sft-v10 at Q4_K_M is exactly 7,866,183,712 bytes (7.33 GiB / 7.87 GB) — an effective 4.835 bits per weight, not the nominal 4. Its KV cache at 32K is 25.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
13.0B
Architecture
llama
40 layers
Context
16,384
native (config.json)
License
llama2

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K5.06 GiB5,429,537,3123.337TheBloke
Q3_K_S5.27 GiB5,659,185,9523.478TheBloke
Q3_K_M5.90 GiB6,337,975,0723.895TheBloke
Q3_K_L6.45 GiB6,929,765,1524.259TheBloke
Q4_06.86 GiB7,366,062,1124.527TheBloke
Q4_K_S6.91 GiB7,414,558,7524.557TheBloke
Q4_K_M7.33 GiB7,866,183,7124.835TheBloke
Q5_K_S8.36 GiB8,972,533,7925.515TheBloke
Q5_08.36 GiB8,972,533,7925.515TheBloke
Q5_K_M8.60 GiB9,230,172,1925.673TheBloke
Q6_K9.95 GiB10,679,409,9526.564TheBloke
Q8_012.88 GiB13,831,668,5128.501TheBloke

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0963.13 GiB3.13 GiB40 / 0 / 0
8,1926.25 GiB6.25 GiB40 / 0 / 0
16,38412.50 GiB12.50 GiB40 / 0 / 0
32,76825.00 GiB25.00 GiB40 / 0 / 0
65,53650.00 GiB50.00 GiB40 / 0 / 0
131,072100.00 GiB100.00 GiB40 / 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 6.82 GiB. The real file is 7.33 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
40
Attention heads
40
KV heads
40
Head dim
128
Hidden size
5120
Vocab
32,032
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does codellama-13b-oasst-sft-v10 need?
Q4_K_M is exactly 7,866,183,712 bytes (7.33 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is codellama-13b-oasst-sft-v10's KV cache?
25.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 codellama-13b-oasst-sft-v10 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.
codellama-13b-oasst-sft-v10 — VRAM requirements, exact quant sizes — ossmodeldb