PH

phi 3 22b

PhiGGUF by mradermacherUpdated 2024-12-16
Download on Hugging Face
Parameters22.1B
Context128K
Layers64
Architecturephi3
Smallest quant8.1 GB
Quick answer

phi 3 22b needs about 16.8 GB of memory at Q4_K_M (a 13.6 GB file) with an 8K context window, so it fits on a 24 GB GPU. This repository has 14 quants, from 8.1 GB (Q2_K) to 23.5 GB (Q8_0). Longer context needs more: at 32K tokens the KV cache alone adds about 10.7 GB.

Phi 3 22B – 22.1 B parameter model with 131 072 token context

Phi 3 22B is a 22.1 B parameter language model with a trained context of 131 072 tokens. It is available in multiple GGUF quantizations and released under the MIT license. The model supports large context lengths but has no vision capabilities.

Good at

  • Large context handling
  • High parameter count
  • MIT licensed

Limits

  • 131 072 token context limit
  • Requires significant VRAM for larger quants
  • No vision support

Best for

  • Long‑form content generation
  • Complex reasoning tasks
  • Large context chat

Who it’s for. Developers and researchers needing a high‑capacity model for text‑only workloads. The model is suitable for applications that require extended context and deep reasoning without image inputs.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q2_K8.1 GB 11.3 GB
Too big Get file →
IQ3_XS9.2 GB 12.4 GB
Too big Get file →
IQ3_S9.6 GB 12.8 GB
Too big Get file →
Q3_K_S9.6 GB 12.8 GB
Too big Get file →
IQ3_M10.2 GB 13.4 GB
Too big Get file →
Q3_K_M11.0 GB 14.1 GB
Too big Get file →
Q3_K_L11.9 GB 15.0 GB
Too big Get file →
IQ4_XS11.9 GB 15.1 GB
Too big Get file →
Q4_K_S12.6 GB 15.8 GB
Too big Get file →
Q4_K_M13.6 GB 16.8 GB
Too big Get file →
Q5_K_S15.2 GB 18.4 GB
Too big Get file →
Q5_K_M16.0 GB 19.2 GB
Too big Get file →
Q6_K18.2 GB 21.3 GB
Too big Get file →
Q8_023.5 GB 26.7 GB
Too big Get file →

For 8 GB VRAM, use Q2_K (8.12 GB, ~11.3 GB memory at 8 k context) or IQ3_XS (9.17 GB, ~12.4 GB). With 12 GB VRAM, Q4_K_S (12.59 GB, ~15.8 GB) or Q4_K_M (13.57 GB, ~16.8 GB) are viable. Larger VRAM allows Q5_K_M or Q6_K for higher quality.

What GPU do you need for phi 3 22b?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: no quant fits at an 8K context.
  • 6 GB VRAM: no quant fits at an 8K context.
  • 8 GB VRAM: no quant fits at an 8K context.
  • 12 GB VRAM: the best quant that fits is Q2_K (8.1 GB file, about 11.3 GB in use).
  • 16 GB VRAM: the best quant that fits is Q4_K_S (12.6 GB file, about 15.8 GB in use).
  • 24 GB VRAM: the best quant that fits is Q6_K (18.2 GB file, about 21.3 GB in use).
  • 32 GB VRAM: the best quant that fits is Q8_0 (23.5 GB file, about 26.7 GB in use).

Which phi 3 22b quant should you choose?

Q4_K_M is the usual starting point for phi 3 22b: it balances file size and quality well. Here it is a 13.6 GB file.

The Q8_0 file is 23.5 GB, about 1.7 times the size of Q4_K_M. It keeps the weights closer to the original, which only matters if you have the memory to spare.

If memory is tight, the smallest file is Q2_K at 8.1 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturephi3
Parameters22.1B
Layers64
Trained context131,072 tokens
KV cache (fp16)320 KB per token

Source

Quantized bymradermacher
FamilyPhi
Licensemit
Downloads (HF)965
Last updated2024-12-16

Frequently asked questions about phi 3 22b

How much VRAM does phi 3 22b need?

About 16.8 GB at Q4_K_M with an 8K context window. That is the 13.6 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run phi 3 22b on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 11.3 GB, so you would need a larger GPU or CPU offloading.

What is the file size of phi 3 22b GGUF?

It depends on the quant: Q2_K is 8.1 GB, IQ3_XS is 9.2 GB, IQ3_S is 9.6 GB, Q3_K_S is 9.6 GB, IQ3_M is 10.2 GB, Q3_K_M is 11.0 GB and 8 more.

What context length does phi 3 22b support?

The GGUF header lists a trained context length of 131,072 tokens (128K). The KV cache grows with the context you use: about 2.7 GB at 8K and 10.7 GB at 32K.

Where can I download phi 3 22b GGUF?

The files are on Hugging Face in the mradermacher/phi-3-22b-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does phi 3 22b use?

Hugging Face lists the license as mit. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.

Can I run Phi 3 22B on 8 GB VRAM?

Yes, using the Q2_K or IQ3_XS quantizations, which are 8.12 GB and 9.17 GB respectively and require about 11.3–12.4 GB memory at 8 k context.

Does Phi 3 22B support image inputs?

No, the model has no vision capabilities and is text‑only.

Similar models

Browse all →

More from mradermacher

All by mradermacher →

More Phi models

All Phi →

Other medium models

All medium models →