amalia-llm · text

AMALIA-9B-0626-DPO

amalia-llm/AMALIA-9B-0626-DPO

AMALIA-9B-0626-DPO at Q4_K_M is exactly 5,582,838,528 bytes (5.20 GiB / 5.58 GB) — an effective 4.880 bits per weight, not the nominal 4. Its KV cache at 32K is 5.25 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K3.35 GiB3,593,067,2643.141duarteocarmo
Q3_K_S3.86 GiB4,141,767,4243.620duarteocarmo
Q3_K_M4.24 GiB4,553,136,8963.980duarteocarmo
Q3_K_L4.58 GiB4,913,847,0404.295duarteocarmo
IQ4_XS4.74 GiB5,084,863,2324.445duarteocarmo
Q4_K_S4.96 GiB5,321,186,0484.651duarteocarmo
Q4_K_S4.96 GiB5,321,186,1764.651layerx-labs
Q4_K_M5.20 GiB5,582,838,5284.880duarteocarmo
Q4_K_M5.20 GiB5,582,838,5924.880csoares31
Q4_K_M5.20 GiB5,582,838,6244.880layerx-labs
Q5_K_S5.93 GiB6,366,092,0325.565duarteocarmo
Q5_K_M6.07 GiB6,518,168,3205.697duarteocarmo
Q6_K7.00 GiB7,511,956,2246.566duarteocarmo
Q8_09.06 GiB9,728,449,2808.504duarteocarmo
Q8_09.06 GiB9,728,449,3448.504csoares31
Q8_09.06 GiB9,728,449,3768.504layerx-labs
BF1617.05 GiB18,308,422,40016.003duarteocarmo
F1617.05 GiB18,308,422,46416.003csoares31
BF1617.05 GiB18,308,422,52816.003layerx-labs

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.66 GiB0.66 GiB42 / 0 / 0
8,1921.31 GiB1.31 GiB42 / 0 / 0
16,3842.63 GiB2.63 GiB42 / 0 / 0
32,7685.25 GiB5.25 GiB42 / 0 / 0
65,53610.50 GiB10.50 GiB42 / 0 / 0
131,07221.00 GiB21.00 GiB42 / 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.79 GiB. The real file is 5.20 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does AMALIA-9B-0626-DPO need?
Q4_K_M is exactly 5,582,838,528 bytes (5.20 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is AMALIA-9B-0626-DPO's KV cache?
5.25 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 AMALIA-9B-0626-DPO 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.