PH

phi 1 5

PhiGGUF by walter-cavinawUpdated 2024-01-21
Download on Hugging Face
Parameters1.42B
Context2K
Layers24
Architecturephi2
Smallest quant0.7 GB
Quick answer

phi 1 5 needs about 2.8 GB of memory at Q3_K_S (a 0.7 GB file) with an 8K context window, so it fits on a 4 GB GPU.

phi 1 5 is a 1.42B-parameter Phi model in GGUF format, quantized by walter-cavinaw. Its trained context length is 2K tokens. The repository has 1 quant file, from 0.7 GB (Q3_K_S) to 0.7 GB (Q3_K_S).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q3_K_S0.7 GB 1.6 GB
Fits Get file →

What GPU do you need for phi 1 5?

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: the best quant that fits is Q3_K_S (0.7 GB file, about 2.8 GB in use).

Which phi 1 5 quant should you choose?

Q3_K_S (0.7 GB) is the middle option in this repository. A reasonable choice when a 4-bit file will not fit, mostly on larger models. Quality loss is noticeable but often acceptable.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturephi2
Parameters1.42B
Layers24
Trained context2,048 tokens
KV cache (fp16)192 KB per token

Source

Quantized bywalter-cavinaw
FamilyPhi
Downloads (HF)28
Last updated2024-01-21

Frequently asked questions about phi 1 5

How much VRAM does phi 1 5 need?

About 2.8 GB at Q3_K_S with an 8K context window. That is the 0.7 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 1 5 on an 8 GB GPU?

Yes, with Q3_K_S: the 0.7 GB file needs about 2.8 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of phi 1 5 GGUF?

It depends on the quant: Q3_K_S is 0.7 GB.

What context length does phi 1 5 support?

The GGUF header lists a trained context length of 2,048 tokens (2K). The KV cache grows with the context you use: about 1.6 GB at 8K and 0.4 GB at 2K.

Where can I download phi 1 5 GGUF?

The files are on Hugging Face in the walter-cavinaw/phi-1-5-gguf repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

Similar models

Browse all →

More Phi models

All Phi →

Other tiny models

All tiny models →