BSC-LT · text

ALIA-40b-instruct-2606

BSC-LT/ALIA-40b-instruct-2606

ALIA-40b-instruct-2606 at Q4_K_M is exactly 24,591,541,344 bytes (22.90 GiB / 24.59 GB) — an effective 4.865 bits per weight, not the nominal 4. Its KV cache at 32K is 6.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
40.4B
Architecture
llama
48 layers
Context
163,840
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S9.06 GiB9,727,059,3281.925mradermacher
I1-IQ1_M9.74 GiB10,463,159,6802.070mradermacher
I1-IQ2_XXS10.89 GiB11,689,993,6002.313mradermacher
I1-IQ2_XS11.89 GiB12,772,124,0322.527mradermacher
I1-IQ2_S12.63 GiB13,560,784,2562.683mradermacher
I1-IQ2_M13.54 GiB14,542,251,3922.877mradermacher
I1-Q2_K_S13.68 GiB14,686,430,5922.906mradermacher
Q2_K14.63 GiB15,711,937,6323.109mradermacher
I1-Q2_K14.63 GiB15,711,937,9203.109mradermacher
I1-IQ3_XXS15.11 GiB16,222,070,1443.210mradermacher
I1-IQ3_XS16.21 GiB17,406,567,8083.444mradermacher
Q3_K_S16.95 GiB18,202,436,7043.601mradermacher
I1-Q3_K_S16.95 GiB18,202,436,9923.601mradermacher
I1-IQ3_S17.00 GiB18,255,914,3683.612mradermacher
I1-IQ3_M17.55 GiB18,844,165,5043.728mradermacher
Q3_K_M18.67 GiB20,044,784,7363.966mradermacher
I1-Q3_K_M18.67 GiB20,044,785,0243.966mradermacher
Q3_K_L20.14 GiB21,628,134,4964.279mradermacher
I1-Q3_K_L20.14 GiB21,628,134,7844.279mradermacher
I1-IQ4_XS20.64 GiB22,158,845,3124.384mradermacher
IQ4_XS20.81 GiB22,347,588,7044.422mradermacher
I1-Q4_021.76 GiB23,369,426,3044.624mradermacher
Q4_K_S21.84 GiB23,449,117,7924.639mradermacher
I1-Q4_K_S21.84 GiB23,449,118,0804.639mradermacher
Q4_K_M22.90 GiB24,591,541,3444.865mradermacher
I1-Q4_K_M22.90 GiB24,591,541,6324.865mradermacher
I1-Q4_123.93 GiB25,689,924,9925.083mradermacher
Q5_K_S26.16 GiB28,085,920,8645.557mradermacher
I1-Q5_K_S26.16 GiB28,085,921,1525.557mradermacher
Q5_K_M26.78 GiB28,754,388,0645.689mradermacher
I1-Q5_K_M26.78 GiB28,754,388,3525.689mradermacher
Q6_K30.90 GiB33,177,412,7046.564mradermacher
I1-Q6_K30.90 GiB33,177,412,9926.564mradermacher
Q8_040.02 GiB42,969,801,8248.502mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.75 GiB0.75 GiB48 / 0 / 0
8,1921.50 GiB1.50 GiB48 / 0 / 0
16,3843.00 GiB3.00 GiB48 / 0 / 0
32,7686.00 GiB6.00 GiB48 / 0 / 0
65,53612.00 GiB12.00 GiB48 / 0 / 0
131,07224.00 GiB24.00 GiB48 / 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 21.18 GiB. The real file is 22.90 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does ALIA-40b-instruct-2606 need?
Q4_K_M is exactly 24,591,541,344 bytes (22.90 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is ALIA-40b-instruct-2606's KV cache?
6.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 ALIA-40b-instruct-2606 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.