Phi-4-mini-instruct, GGUF Q4_K_M

Microsoft's Phi-4-mini-instruct (3.8B parameters), converted to GGUF and quantized to Q4_K_M with llama.cpp. The weights are Microsoft's, unchanged apart from the conversion and quantization. This is the file the Takehouse song workstation downloads for its optional lyrics writer that runs on the user's PC.

File

File Bytes SHA-256
Phi-4-mini-instruct-Q4_K_M.gguf 2,493,840,704 5d2bfa39f12d0c2b4aed118e84e5721cd547630b4fd7f1783ad30c5ffb124062

Built from

  • Repository: microsoft/Phi-4-mini-instruct at revision cfbefacb99257ffa30c83adab238a50856ac3083.
  • Its safetensors (SHA-256, equal to the repository's listing):
    • model-00001-of-00002.safetensors (4,903,637,712 bytes): bc703090b63eda16f639fa4de7ac54635c23105ab1da2f6ec4d3403151d38ee6
    • model-00002-of-00002.safetensors (2,768,428,504 bytes): 7ff79b9d2d31076bac2663393451f6530f4fc8ca49b09002116c92c373dba983

How it was built

  • Tools: llama.cpp at commit 23f83e056d88ddae0d56b01ccc65fa42ab6625f7: its convert_hf_to_gguf.py and llama-quantize.
  • No importance matrix: plain quantization.
python convert_hf_to_gguf.py <Phi-4-mini-instruct> --outtype bf16 --outfile Phi-4-mini-instruct-BF16.gguf
llama-quantize Phi-4-mini-instruct-BF16.gguf Phi-4-mini-instruct-Q4_K_M.gguf Q4_K_M

The result is 2,370 MiB at 5.18 bits per weight. It loads in llama.cpp's llama-server from the same commit.

Licence

MIT, ยฉ Microsoft Corporation: the licence of the base model, in LICENSE.

Downloads last month
343
GGUF
Model size
4B params
Architecture
phi3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for GainPublications/Phi-4-mini-instruct-GGUF

Quantized
(219)
this model