alt.freeweights.phi / microsoft_Phi-4-mini-instruct-GGUF
From: bartowski <huggingface.co/bartowski>Newsgroups: alt.freeweights.phiSubject:

microsoft_Phi-4-mini-instruct-GGUF

Date: 2026-11-14Commit: 7ff82c2Signed: 2DC28CC7B26A283B ✓

Text generation model. Gguf weights, 55.2 GB in all. Published by bartowski under MIT.

phi55.2GBmicrosoft_Phi-4-mini-instruct-GGUFggufpermissive
FactsParamsnot statedSize55.2 GBFormatsggufTasktext generationLicenseMITFrom sourcepermissive
$ fw get bartowski/microsoft_Phi-4-mini-instruct-GGUF
# manifest sha256 66a77d003802… · 55.2 GB · 26 files
$ fw verify ./microsoft_Phi-4-mini-instruct-GGUF bartowski/microsoft_Phi-4-mini-instruct-GGUF
From sourceHosted (signed)bartowski/microsoft_Phi-4-mini-instruct-GGUFLast check: 2026-11-14 21:27 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Phi-4-mini-instruct.

Works with

Convert with

Overview

Size
55.2 GB
Weights
1.51 GB (smallest of 23 GGUF variants)
Parameters
not stated
Formats
gguf
Task
text generation
License
MIT (permissive)
Files
26, each with a sha256
Publisher
bartowski
Added
2026-11-14
Section
alt.freeweights.phi
Lineage

Original release from the publisher.

Base model: microsoft/Phi-4-mini-instruct

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:27 UTCpassed

Model card

From the publisher at commit 7ff82c2. Shown as plain text with links; images open at the publisher.

Llamacpp imatrix Quantizations of Phi-4-mini-instruct by microsoft#

Using llama.cpp release b4792 for quantization.

Original model: https://huggingface.co/microsoft/Phi-4-mini-instruct

All quants made using imatrix option with dataset from here

Run them in LM Studio

Run them directly with llama.cpp, or any other llama.cpp based project

Prompt format#

<|system|>{system_prompt}<|end|><|user|>{prompt}<|end|><|assistant|>

Download a file (not the whole branch) from below:#

FilenameQuant typeFile SizeSplitDescription
Phi-4-mini-instruct-Q8_0.ggufQ8_04.08GBfalseExtremely high quality, generally unneeded but max available quant.
Phi-4-mini-instruct-Q6_K_L.ggufQ6_K_L3.30GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
Phi-4-mini-instruct-Q6_K.ggufQ6_K3.16GBfalseVery high quality, near perfect, recommended.
Phi-4-mini-instruct-Q5_K_L.ggufQ5_K_L3.00GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
Phi-4-mini-instruct-Q5_K_M.ggufQ5_K_M2.85GBfalseHigh quality, recommended.
Phi-4-mini-instruct-Q5_K_S.ggufQ5_K_S2.73GBfalseHigh quality, recommended.
Phi-4-mini-instruct-Q4_K_L.ggufQ4_K_L2.64GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
Phi-4-mini-instruct-Q4_1.ggufQ4_12.53GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
Phi-4-mini-instruct-Q4_K_M.ggufQ4_K_M2.49GBfalseGood quality, default size for most use cases, recommended.
Phi-4-mini-instruct-Q3_K_XL.ggufQ3_K_XL2.40GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
Phi-4-mini-instruct-Q4_K_S.ggufQ4_K_S2.34GBfalseSlightly lower quality with more space savings, recommended.
Phi-4-mini-instruct-Q4_0.ggufQ4_02.33GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
Phi-4-mini-instruct-IQ4_NL.ggufIQ4_NL2.33GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
Phi-4-mini-instruct-Q3_K_L.ggufQ3_K_L2.25GBfalseLower quality but usable, good for low RAM availability.
Phi-4-mini-instruct-IQ4_XS.ggufIQ4_XS2.22GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
Phi-4-mini-instruct-Q3_K_M.ggufQ3_K_M2.12GBfalseLow quality.
Phi-4-mini-instruct-IQ3_M.ggufIQ3_M2.02GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
Phi-4-mini-instruct-Q3_K_S.ggufQ3_K_S1.90GBfalseLow quality, not recommended.
Phi-4-mini-instruct-IQ3_XS.ggufIQ3_XS1.84GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
Phi-4-mini-instruct-Q2_K_L.ggufQ2_K_L1.83GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
Phi-4-mini-instruct-IQ3_XXS.ggufIQ3_XXS1.68GBfalseLower quality, new method with decent performance, comparable to Q3 quants.
Phi-4-mini-instruct-Q2_K.ggufQ2_K1.68GBfalseVery low quality but surprisingly usable.
Phi-4-mini-instruct-IQ2_M.ggufIQ2_M1.51GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.

Embed/output weights#

Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

Downloading using huggingface-cli#

Click to view download instructions

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download bartowski/microsoft_Phi-4-mini-instruct-GGUF --include "microsoft_Phi-4-mini-instruct-Q4_K_M.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download bartowski/microsoft_Phi-4-mini-instruct-GGUF --include "microsoft_Phi-4-mini-instruct-Q8_0/*" --local-dir ./

You can either specify a new local-dir (microsoft_Phi-4-mini-instruct-Q8_0) or download them all in place (./)

ARM/AVX information#

Previously, you would download Q4_0_4_4/4_8/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.

Now, however, there is something called "online repacking" for weights. details in this PR. If you use Q4_0 and your hardware would benefit from repacking weights, it will do it automatically on the fly.

As of llama.cpp build b4282 you will not be able to run the Q4_0_X_X files and will instead need to use Q4_0.

Additionally, if you want to get slightly better quality for , you can use IQ4_NL thanks to this PR which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.

Click to view Q4_0_X_X information (deprecated

I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.

Click to view benchmarks on an AVX2 system (EPYC7702)

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 ± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 ± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 ± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 ± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 ± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 ± 0.03100%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp512301.02 ± 1.74147%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp1024287.23 ± 0.20101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp2048262.77 ± 1.81101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg12818.80 ± 0.9948%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg25624.46 ± 3.0483%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg51236.32 ± 3.5990%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp512271.71 ± 3.53133%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp1024279.86 ± 45.63100%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp2048320.77 ± 5.00124%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg12843.51 ± 0.05111%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg25643.35 ± 0.09110%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg51242.60 ± 0.31105%

Q4_0_8_8 offers a nice bump to prompt processing and a small bump to text generation

Which file should I choose?#

Click here for details

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

The I-quants are not compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.

Credits#

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

Thank you to LM Studio for sponsoring my work.

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

Files

26 files · 55.2 GBWeights 1.51 GB (smallest of 23 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 26 files with their sha256
FileSizesha256
.gitattributes3.38 KBd1b9f3d082885b8f4ea1c5b8c2e4ebee46a334c49b00f5e7c5a87b2d19f439a9
README.md14.0 KBf4e57ba1e6c4b72c024977ee62548d38be88b7a6cdffcea1502cae24380b98e2
microsoft_Phi-4-mini-instruct-IQ2_M.gguf1.51 GB33c12b44229a85d88a3bedfe849e138643bbde5478925d191faeb409bc2ea3ec
microsoft_Phi-4-mini-instruct-IQ3_M.gguf2.02 GB0d6a07d53a3ebd474a8ca9abc9415af39e88f041cfbfe388e3bf632b84e7b232
microsoft_Phi-4-mini-instruct-IQ3_XS.gguf1.84 GBa94bcca75234c1775025a319a1765e3c61c5b18298d0314633f7f7524356ec2e
microsoft_Phi-4-mini-instruct-IQ3_XXS.gguf1.68 GB80c87df8ba98f4e02f5e3bb8b71cab541dafb601ef071a195a4df38c56e213d7
microsoft_Phi-4-mini-instruct-IQ4_NL.gguf2.33 GBc75b97730ea19e533d5a5fcbb695984bfd6278e170bf49e1251ea4f5e85b7763
microsoft_Phi-4-mini-instruct-IQ4_XS.gguf2.22 GB88f5f428d64ea04332eaf3dc19d05ad4df3e04847ad9d2b0e3c947233f361a56
microsoft_Phi-4-mini-instruct-Q2_K.gguf1.68 GB85134b59572e8726252f02bae6476ed6cf8c3109f5dc05da363965430157608d
microsoft_Phi-4-mini-instruct-Q2_K_L.gguf1.83 GBb233015a8c8fbd13f080cbebc9a8dc496c2ce52faed06d17fb0963192e0378b5
microsoft_Phi-4-mini-instruct-Q3_K_L.gguf2.25 GBd04c6c4014f24f56dc3341aa69e198815f2931a8769aeb630ced541f792889b4
microsoft_Phi-4-mini-instruct-Q3_K_M.gguf2.12 GB514a111e3b847b1698b253bf8e8ada7c1bb81dc10dc4bccab590edaff5aec06c
microsoft_Phi-4-mini-instruct-Q3_K_S.gguf1.90 GBa1dd4dc181bd94e896a947dbf413f04d9cce2b962a22fe363812a28b5ac34826
microsoft_Phi-4-mini-instruct-Q3_K_XL.gguf2.40 GBd95f8462d750d574db0c60ed5e83c551a42d94da99b4a5f85d54b5bbbf0c14e0
microsoft_Phi-4-mini-instruct-Q4_0.gguf2.33 GB2124412a2d3410dd05c5d01796457283812210633165a2a86c909f815971518e
microsoft_Phi-4-mini-instruct-Q4_1.gguf2.53 GB788a028447e152719d2673930fdfb0df5f73cc134b666915565492e32fe93f26
microsoft_Phi-4-mini-instruct-Q4_K_L.gguf2.64 GBea4e670db872d1cf505e02bf8f85745ce98a564c1429fc3609cc9462089da13e
microsoft_Phi-4-mini-instruct-Q4_K_M.gguf2.49 GB01999f17c39cc3074afae5e9c539bc82d45f2dd7faa3917c66cbef76fce8c0c2
microsoft_Phi-4-mini-instruct-Q4_K_S.gguf2.34 GBd75c4e4a4a4f9c775ca5fec8802e7a65bbbe9241034f5b39e6a8d092f3805880
microsoft_Phi-4-mini-instruct-Q5_K_L.gguf3.00 GB9e2c332c023f50ae7ed5fd51c8ca3ed846e364ad8a98471da99603082509734b
microsoft_Phi-4-mini-instruct-Q5_K_M.gguf2.85 GB840ad85cff01e41701e2b2a3826016916f8e51242c8f25d62e59fa7eb93acbc5
microsoft_Phi-4-mini-instruct-Q5_K_S.gguf2.73 GBb027246d847c6d6c5419a14885256061e911cc864001820b16e037868d43d090
microsoft_Phi-4-mini-instruct-Q6_K.gguf3.16 GB59dba927b98f39c26859aab7fb27d5f577666f8a5db38f0eccf3f207902ba23b
microsoft_Phi-4-mini-instruct-Q6_K_L.gguf3.30 GBad6e8f3dbaca28a7d8c269058bd6ba543b7d0932be06927f847f24c9bb0d8408
microsoft_Phi-4-mini-instruct-Q8_0.gguf4.08 GBa12f242c4ee379b9da91673e5d78b30bfacfe4fd86a0b2259d2ecad5d93cb6c7
microsoft_Phi-4-mini-instruct.imatrix2.23 MBbe45717d26324e46f8bba4bc2badd89e7005bb2d6ddb8330749208b992f8ad40
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7ff82c2aaa pinned now manifest updated, same commit2026-11-14 21:27 UTC26 files · 55.2 GB
7ff82c2aaa2026-11-14 21:27 UTC26 files · 55.2 GB

Use it

$ fw get bartowski/microsoft_Phi-4-mini-instruct-GGUF
# manifest sha256 66a77d003802… · 55.2 GB · 26 files
$ fw verify ./microsoft_Phi-4-mini-instruct-GGUF bartowski/microsoft_Phi-4-mini-instruct-GGUF
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/bartowski/microsoft_Phi-4-mini-instruct-GGUF.json --dir ./microsoft_Phi-4-mini-instruct-GGUF $ python3 fw.py verify ./microsoft_Phi-4-mini-instruct-GGUF ./bartowski__microsoft_Phi-4-mini-instruct-GGUF.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/microsoft_Phi-4-mini-instruct-GGUF --revision 7ff82c2aaa4dde30121698a973765f39be5288c0 --local-dir ./microsoft_Phi-4-mini-instruct-GGUF
llama.cppDownload one GGUF variant (microsoft_Phi-4-mini-instruct-IQ2_M, 1.51 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/microsoft_Phi-4-mini-instruct-GGUF --include "microsoft_Phi-4-mini-instruct-IQ2_M*" --local-dir ./microsoft_Phi-4-mini-instruct-GGUF $ llama-server -m ./microsoft_Phi-4-mini-instruct-GGUF/microsoft_Phi-4-mini-instruct-IQ2_M.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./microsoft_Phi-4-mini-instruct-GGUF/microsoft_Phi-4-mini-instruct-IQ2_M.gguf\n' > Modelfile $ ollama create microsoft-phi-4-mini-instruct-gguf -f Modelfile

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
Inherited from the base model microsoft/Phi-4-mini-instruct: the strictest license along the lineage applies. 2026-11-14
Text in
README.md
Text sha256
f4e57ba1e6c4b72c024977ee62548d38be88b7a6cdffcea1502cae24380b98e2
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: bartowski <huggingface.co/bartowski>Newsgroups: alt.freeweights.phiSubject: microsoft_Phi-4-mini-instruct-GGUFDate: 2026-11-14Commit: 7ff82c2Signed: 2DC28CC7B26A283B ✓
Upstream
bartowski/microsoft_Phi-4-mini-instruct-GGUF
Pinned commit
7ff82c2aaa4dde30121698a973765f39be5288c0
Manifest
microsoft_Phi-4-mini-instruct-GGUF.json · .minisig
Manifest sha256
66a77d003802891a4c55cd442254a9398b06403165632a0374f9f9d838c8f04e
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/bartowski/microsoft_Phi-4-mini-instruct-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/microsoft_Phi-4-mini-instruct-GGUF.json.minisig $ minisign -Vm microsoft_Phi-4-mini-instruct-GGUF.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

microsoft/Phi-4-mini-instruct · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/microsoft_Phi-4-mini-instruct-GGUF
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. microsoft_Phi-4-mini-instruct-GGUF.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: bunny-phi-2-siglip-lora
From: microsoft <huggingface.co/microsoft>Subject: MediPhi
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Clinical
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Guidelines
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Instruct
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-MedCode