katafiek · text

Katarau-9B-ru-RP-nsfw

katafiek/Katarau-9B-ru-RP-nsfw

Katarau-9B-ru-RP-nsfw at Q4_K_M is exactly 5,629,101,024 bytes (5.24 GiB / 5.63 GB) — an effective 5.029 bits per weight, not the nominal 4. Its KV cache at 32K is 1.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
9.0B
Architecture
qwen35
32 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S2.55 GiB2,742,635,1042.450mradermacher
I1-IQ1_M2.68 GiB2,877,262,4322.571mradermacher
I1-IQ2_XXS2.89 GiB3,101,641,3122.771mradermacher
I1-IQ2_XS3.06 GiB3,285,338,7202.935mradermacher
I1-IQ2_S3.19 GiB3,427,961,4403.063mradermacher
I1-IQ2_M3.36 GiB3,607,464,5443.223mradermacher
I1-Q2_K_S3.44 GiB3,697,232,4803.303mradermacher
Q2_K3.56 GiB3,827,255,6483.420mradermacher
I1-Q2_K3.56 GiB3,827,255,9043.420mradermacher
I1-IQ3_XXS3.67 GiB3,938,159,2003.519mradermacher
I1-IQ3_XS3.95 GiB4,243,409,5043.791mradermacher
Q3_K_S3.97 GiB4,259,400,0323.806mradermacher
I1-Q3_K_S3.97 GiB4,259,400,2883.806mradermacher
I1-IQ3_S4.07 GiB4,370,811,4883.905mradermacher
I1-IQ3_M4.11 GiB4,415,375,9683.945mradermacher
Q3_K_M4.31 GiB4,623,518,0484.131mradermacher
I1-Q3_K_M4.31 GiB4,623,518,3044.131mradermacher
Q3_K_L4.59 GiB4,925,507,9364.401mradermacher
I1-Q3_K_L4.59 GiB4,925,508,1924.401mradermacher
I1-IQ4_XS4.84 GiB5,196,434,0164.643mradermacher
IQ4_XS4.87 GiB5,227,891,0404.671mradermacher
I1-Q4_04.96 GiB5,325,933,1524.759mradermacher
Q4_K_S4.98 GiB5,351,623,0084.782mradermacher
I1-Q4_K_S4.98 GiB5,351,623,2644.782mradermacher
I1-IQ4_NL5.05 GiB5,418,207,8404.841mradermacher
Q4_K_M5.24 GiB5,629,101,0245.029katafiek
Q4_K_M5.24 GiB5,629,102,4325.029mradermacher
I1-Q4_K_M5.24 GiB5,629,102,6885.029mradermacher
I1-Q4_15.41 GiB5,809,326,6885.191mradermacher
Q5_K_S5.87 GiB6,305,302,8805.634mradermacher
I1-Q5_K_S5.87 GiB6,305,303,1365.634mradermacher
Q5_K_M6.02 GiB6,467,961,8245.779katafiek
Q5_K_M6.02 GiB6,467,963,2325.779mradermacher
I1-Q5_K_M6.02 GiB6,467,963,4885.779mradermacher
Q6_K6.85 GiB7,359,251,4246.575katafiek
Q6_K6.85 GiB7,359,252,8326.575mradermacher
I1-Q6_K6.85 GiB7,359,253,0886.575mradermacher
Q8_08.87 GiB9,527,493,6008.513katafiek
Q8_08.87 GiB9,527,495,0088.513mradermacher
F1616.69 GiB17,920,690,52816.012mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.13 GiB0.50 GiB4.00×8 / 0 / 24
8,1920.25 GiB1.00 GiB4.00×8 / 0 / 24
16,3840.50 GiB2.00 GiB4.00×8 / 0 / 24
32,7681.00 GiB4.00 GiB4.00×8 / 0 / 24
65,5362.00 GiB8.00 GiB4.00×8 / 0 / 24
131,0724.00 GiB16.00 GiB4.00×8 / 0 / 24

24 of 32 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 4.0× at long context.

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.69 GiB. The real file is 5.24 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
16
KV heads
4
Head dim
256
Hidden size
4096
Vocab
248,320
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Katarau-9B-ru-RP-nsfw need?
Q4_K_M is exactly 5,629,101,024 bytes (5.24 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Katarau-9B-ru-RP-nsfw's KV cache?
1.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 Katarau-9B-ru-RP-nsfw 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.