huihui-ai · text

Phi-4-mini-instruct-abliterated

huihui-ai/Phi-4-mini-instruct-abliterated

Phi-4-mini-instruct-abliterated at Q4_K_M is exactly 2,491,875,264 bytes (2.32 GiB / 2.49 GB) — an effective 5.197 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
3.8B
Architecture
phi3
32 layers
Context
131,072
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K_S1.48 GiB1,593,769,9203.324Melvin56
Q2_K1.57 GiB1,682,636,4803.509tensorblock
Q2_K1.57 GiB1,682,636,7363.509Melvin56
Q3_K_M1.97 GiB2,117,533,3764.416tensorblock
Q3_K_M1.97 GiB2,117,533,6324.416Melvin56
Q3_K_L2.10 GiB2,249,654,2084.692Melvin56
Q4_K_M2.32 GiB2,491,875,2645.197Melvin56
Q5_K_M2.65 GiB2,848,128,9605.940Melvin56
Q6_K2.94 GiB3,155,623,8726.581Melvin56
Q8_03.80 GiB4,084,612,0328.518Melvin56
F167.15 GiB7,680,695,23216.018Melvin56

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

Architecture

from config.json
Layers
32
Attention heads
24
KV heads
8
Head dim
128
Hidden size
3072
Vocab
200,064
Sliding window
262144
SWA period
1
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Phi-4-mini-instruct-abliterated need?
Q4_K_M is exactly 2,491,875,264 bytes (2.32 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Phi-4-mini-instruct-abliterated'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 Phi-4-mini-instruct-abliterated 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.