moncefem · text

legitus-instruct-v1

moncefem/legitus-instruct-v1

legitus-instruct-v1 at Q4_K_M is exactly 5,057,886,624 bytes (4.71 GiB / 5.06 GB) — an effective 5.024 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.1B
Architecture
apertus
32 layers
Context
65,536
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S1.91 GiB2,047,031,9682.034mradermacher
I1-IQ1_M2.04 GiB2,186,623,6482.172mradermacher
I1-IQ2_XXS2.25 GiB2,419,276,4482.403mradermacher
I1-IQ2_XS2.44 GiB2,622,175,9042.605mradermacher
I1-IQ2_S2.60 GiB2,787,981,9842.769mradermacher
I1-IQ2_M2.77 GiB2,974,104,2242.954mradermacher
I1-Q2_K_S2.82 GiB3,029,678,7523.010mradermacher
Q2_K3.06 GiB3,287,890,3363.266mradermacher
I1-IQ3_XXS3.06 GiB3,287,890,5923.266mradermacher
I1-Q2_K3.06 GiB3,287,890,5923.266mradermacher
I1-IQ3_XS3.32 GiB3,566,287,5203.543mradermacher
Q3_K_S3.43 GiB3,679,009,1843.655mradermacher
I1-Q3_K_S3.43 GiB3,679,009,4403.655mradermacher
I1-IQ3_S3.44 GiB3,696,835,2323.672mradermacher
I1-IQ3_M3.55 GiB3,814,931,1043.790mradermacher
Q3_K_M3.88 GiB4,165,548,4484.138mradermacher
I1-Q3_K_M3.88 GiB4,165,548,7044.138mradermacher
I1-IQ4_XS4.16 GiB4,463,344,2884.434mradermacher
IQ4_XS4.21 GiB4,518,394,2724.489mradermacher
Q3_K_L4.26 GiB4,578,687,3924.548mradermacher
I1-Q3_K_L4.26 GiB4,578,687,6484.548mradermacher
I1-IQ4_NL4.37 GiB4,694,031,0084.663mradermacher
I1-Q4_04.38 GiB4,699,273,8884.668mradermacher
Q4_K_S4.40 GiB4,723,390,8804.692mradermacher
I1-Q4_K_S4.40 GiB4,723,391,1364.692mradermacher
Q4_K_M4.71 GiB5,057,886,6245.024mradermacher
I1-Q4_K_M4.71 GiB5,057,886,8805.024mradermacher
I1-Q4_14.79 GiB5,147,015,8405.113mradermacher
Q5_K_S5.23 GiB5,616,777,6325.580mradermacher
I1-Q5_K_S5.23 GiB5,616,777,8885.580mradermacher
Q5_K_M5.41 GiB5,812,861,3445.774mradermacher
I1-Q5_K_M5.41 GiB5,812,861,6005.774mradermacher
Q6_K6.16 GiB6,615,021,9846.571mradermacher
I1-Q6_K6.16 GiB6,615,022,2406.571mradermacher
Q8_07.98 GiB8,565,373,3448.509mradermacher
F1615.01 GiB16,115,120,54416.008mradermacher

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.22 GiB. The real file is 4.71 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
131,072
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does legitus-instruct-v1 need?
Q4_K_M is exactly 5,057,886,624 bytes (4.71 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is legitus-instruct-v1'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 legitus-instruct-v1 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.