PH

Phi4 Nvidia Coder

PhiGGUF by ykaroutUpdated 2025-03-24
Download on Hugging Face
Parameters14.7B
Context16K
Layers40
Architecturellama
Smallest quant12.0 GB
Quick answer

Phi4 Nvidia Coder needs about 14.2 GB of memory at Q6_K (a 12.0 GB file) with an 8K context window, so it fits on a 16 GB GPU.

Phi4 Nvidia Coder is a 14.7B-parameter Phi model in GGUF format, quantized by ykarout. Its trained context length is 16K tokens. The repository has 1 quant file, from 12.0 GB (Q6_K) to 12.0 GB (Q6_K).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q6_K12.0 GB 14.2 GB
Too big Get file →

What GPU do you need for Phi4 Nvidia Coder?

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: no quant fits at an 8K context.
  • 16 GB VRAM: the best quant that fits is Q6_K (12.0 GB file, about 14.2 GB in use).

Which Phi4 Nvidia Coder quant should you choose?

Q6_K (12.0 GB) is the middle option in this repository. Very close to the original quality for most uses, at a clearly larger size than 4-bit.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturellama
Parameters14.7B
Layers40
Trained context16,384 tokens
KV cache (fp16)200 KB per token

Source

Quantized byykarout
FamilyPhi
Licenseapache-2.0
Downloads (HF)20
Last updated2025-03-24

Frequently asked questions about Phi4 Nvidia Coder

How much VRAM does Phi4 Nvidia Coder need?

About 14.2 GB at Q6_K with an 8K context window. That is the 12.0 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 Phi4 Nvidia Coder on an 8 GB GPU?

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

What is the file size of Phi4 Nvidia Coder GGUF?

It depends on the quant: Q6_K is 12.0 GB.

What context length does Phi4 Nvidia Coder support?

The GGUF header lists a trained context length of 16,384 tokens (16K). The KV cache grows with the context you use: about 1.7 GB at 8K and 3.4 GB at 16K.

Where can I download Phi4 Nvidia Coder GGUF?

The files are on Hugging Face in the ykarout/phi4-nvidia-coder-Q6_K-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 Phi4 Nvidia Coder use?

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

Other GGUFs of phi4-nvidia-coder-fp16

Similar models

Browse all →

More from ykarout

All by ykarout →

More Phi models

All Phi →

Other medium models

All medium models →