microsoft · text · mixture of experts

Phi-3.5-MoE-instruct

microsoft/Phi-3.5-MoE-instruct

Phi-3.5-MoE-instruct at Q4_K_M is exactly 25,345,994,304 bytes (23.61 GiB / 25.35 GB) — an effective 4.842 bits per weight, not the nominal 4.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
41.9B
total, not active
Architecture
phimoe
32 layers
Context
131,072
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XXS10.27 GiB11,031,893,8562.108bartowski
IQ2_XS11.43 GiB12,275,504,9922.345bartowski
IQ2_S11.67 GiB12,534,734,6882.395bartowski
IQ2_M12.82 GiB13,761,568,6082.629bartowski
Q2_K14.22 GiB15,265,136,4802.917bartowski
Q2_K_L14.34 GiB15,393,392,4802.941bartowski
IQ3_XS15.92 GiB17,097,754,4643.267bartowski
Q3_K_S16.82 GiB18,055,104,3523.450bartowski
IQ3_M17.11 GiB18,367,055,7123.509bartowski
Q3_K_M18.66 GiB20,032,718,6883.827bartowski
Q3_K_L20.20 GiB21,688,419,9044.144lmstudio-community
Q3_K_L20.20 GiB21,688,420,1924.144bartowski
IQ4_XS20.78 GiB22,315,175,7764.263bartowski
IQ4_NL21.99 GiB23,615,319,9044.512bartowski
Q4_022.08 GiB23,703,400,2884.529bartowski
Q4_K_S22.18 GiB23,810,355,0404.549bartowski
Q4_K_M23.61 GiB25,345,994,3044.842lmstudio-community
Q4_K_M23.61 GiB25,345,994,5924.842bartowski
Q4_K_L23.70 GiB25,443,469,1524.861bartowski
Q4_124.41 GiB26,207,219,5525.007bartowski
Q5_K_S26.84 GiB28,815,896,4165.505bartowski
Q5_K_M27.68 GiB29,716,098,9125.677bartowski
Q5_K_L27.75 GiB29,797,156,7045.693bartowski
Q6_K32.00 GiB34,359,334,4646.564lmstudio-community
Q6_K32.00 GiB34,359,334,7526.564bartowski
Q6_K_L32.06 GiB34,422,949,7286.577bartowski
Q8_041.44 GiB44,499,764,8008.502lmstudio-community
Q8_041.44 GiB44,499,765,0888.502bartowski
F163 shards78.00 GiB83,753,043,84016.001bartowski

KV cache by context

unresolved

This model declares a 131,072-token sliding window, but we could not establish which layers use it. Its architecture publishes the layout as a per-layer array inside the model file rather than as a period in config.json, and we have not yet ingested that array.

A flat context × layers × heads figure would be substantially too high, so we are not showing one. This is tracked as a known gap rather than filled with a guess.

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.94 GiB. The real file is 23.61 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
32,064
Sliding window
131072
SWA period
MLA
no
Experts
16
Experts per token
2
use_sliding_window

Questions people ask

How much VRAM does Phi-3.5-MoE-instruct need?
Q4_K_M is exactly 25,345,994,304 bytes (23.61 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
Is Phi-3.5-MoE-instruct a mixture-of-experts model?
Yes — 16 experts, 2 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of Phi-3.5-MoE-instruct 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.