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

microsoft_Phi-4-mini-reasoning-GGUF

Date: 2026-11-15Commit: 519790cSigned: 2DC28CC7B26A283B ✓

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

phi62.9GBmicrosoft_Phi-4-mini-reasoning-GGUFggufpermissive
FactsParamsnot statedSize62.9 GBFormatsggufTasktext generationLicenseMITFrom sourcepermissive
$ fw get bartowski/microsoft_Phi-4-mini-reasoning-GGUF
# manifest sha256 6ef6a8bf5548… · 62.9 GB · 27 files
$ fw verify ./microsoft_Phi-4-mini-reasoning-GGUF bartowski/microsoft_Phi-4-mini-reasoning-GGUF
From sourceHosted (signed)bartowski/microsoft_Phi-4-mini-reasoning-GGUFLast check: 2026-11-15 04:49 UTC

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

Quantized of Phi-4-mini-reasoning.

Works with

Convert with

Overview

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

Original release from the publisher.

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

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-15 04:49 UTCpassed

Model card

From the publisher at commit 519790c. Shown as plain text with links; images open at the publisher.

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

Using llama.cpp release b5228 for quantization.

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

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|>Your name is Phi, an AI math expert developed by Microsoft. {system_prompt}<|end|><|user|>{prompt}<|end|><|assistant|>

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

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

You can either specify a new local-dir (microsoft_Phi-4-mini-reasoning-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, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

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

27 files · 62.9 GBWeights 1.51 GB (smallest of 24 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes3.48 KB6d5bdb53ad12867928a6a22f50ef210cd48e1760ed5c0ef8df87b597be639d85
README.md14.3 KB9374ec399255d0ca20a0e256c1a1a8f2c1d0567764a8c1790ab41d0fce1efd9a
microsoft_Phi-4-mini-reasoning-IQ2_M.gguf1.51 GBa5e9c72d51f8c08c82ed0558bea0d768b7ac1b8a2f93cd2c5f2d8172ad6a245e
microsoft_Phi-4-mini-reasoning-IQ3_M.gguf2.02 GB2a9732d467dc726552353bdcd3146449d22be143ed2797443c7bbb09c1f50269
microsoft_Phi-4-mini-reasoning-IQ3_XS.gguf1.84 GBe5b11d76a491249c4afb39e2e2527e8b9e71e963c69edc839e43ebe34d7ea26d
microsoft_Phi-4-mini-reasoning-IQ3_XXS.gguf1.68 GBff4dad6f68d8318f6c2cc34441ec62d4d69022f0ba4f5041f3635f75bcb97dbf
microsoft_Phi-4-mini-reasoning-IQ4_NL.gguf2.33 GB3bb44fe8455b81674aa49307590eaf22b3e4cf138dfef25eb33aef11627c1c9c
microsoft_Phi-4-mini-reasoning-IQ4_XS.gguf2.22 GBd7ca9619e75ce8c760c967c6e9a95231933dd24c46b1f1ace3a4c9d7d446a9d2
microsoft_Phi-4-mini-reasoning-Q2_K.gguf1.68 GB169cdb82775f9c62b39d825f296a86c2d86f0a237b3d4b53fc4b88ff0491f547
microsoft_Phi-4-mini-reasoning-Q2_K_L.gguf1.83 GBeff1dc7767d03ad570eca4250abc4833ffd4402ee303dacb6e6d86d7a69eafe7
microsoft_Phi-4-mini-reasoning-Q3_K_L.gguf2.25 GB869fbc23f326dd75d29b48eb69fa11c6bffde95d8836fed534f9839bbd560464
microsoft_Phi-4-mini-reasoning-Q3_K_M.gguf2.12 GBb090988b856fd6ae3b66d55846614d176b92ef52741833fced67b12a02e5b223
microsoft_Phi-4-mini-reasoning-Q3_K_S.gguf1.90 GBbb9a6f68c3e6587cf013d5d470b989fd7610ddf01c51f1b6a66b2c054dfeabe8
microsoft_Phi-4-mini-reasoning-Q3_K_XL.gguf2.40 GB9730b9ae92b7bc55569492569bcdaa1ab657e777a2bcefd67bd98dafc14f3631
microsoft_Phi-4-mini-reasoning-Q4_0.gguf2.33 GBa8843380786f086d3dad15af84d5e8b292e7ef57e4526f2910778ad04a12c719
microsoft_Phi-4-mini-reasoning-Q4_1.gguf2.53 GB211351b8382f235756c9880ee09f3a3c9b4d2506d88c41bb95f3cff2b348f39f
microsoft_Phi-4-mini-reasoning-Q4_K_L.gguf2.64 GB3cd1f2f7930bd2b84a666c06b5f0f501709faf12024ad34a22c9b621307ac9c5
microsoft_Phi-4-mini-reasoning-Q4_K_M.gguf2.49 GBce8becd58f350d8ae0ec3bbb201ab36f750ffab17ab6238f39292d12ab68ea06
microsoft_Phi-4-mini-reasoning-Q4_K_S.gguf2.34 GB2d5a4b7bcf956e00dec03e9bed68cf0543d225806b11941cfb9630b00af71ed4
microsoft_Phi-4-mini-reasoning-Q5_K_L.gguf3.00 GBe5e656a0feb7c5fa6346a41e0df0d07904345e8ab98df073b73172c513a01de3
microsoft_Phi-4-mini-reasoning-Q5_K_M.gguf2.85 GBdaabb3e23ca39e969ccd1ee8eec731a164f3c1754bbc70ce946a474ce4df0d7b
microsoft_Phi-4-mini-reasoning-Q5_K_S.gguf2.73 GB90cb31d96ca269cce239693b75d9e496b19f8ba9fe8f78c019d3011d1d3aaa0c
microsoft_Phi-4-mini-reasoning-Q6_K.gguf3.16 GBc1313ebb6e39814c4d2f09bd41116b71327793267737a57dd362bbf07b040a0f
microsoft_Phi-4-mini-reasoning-Q6_K_L.gguf3.30 GB060e5b4f5a829db29309c4d092f720fce6d7e7b94daeb6d78c8ab4fc96213c1d
microsoft_Phi-4-mini-reasoning-Q8_0.gguf4.08 GB817d5441f36965e8cca18018a9b8e6f6f7cd52e5deb0d3f245c44590d6a010f1
microsoft_Phi-4-mini-reasoning-bf16.gguf7.68 GBe75aa5b2c99197933f3b3051ec99c1ff1a711a2bcafd6d8eb9bbb64f19b8e3ea
microsoft_Phi-4-mini-reasoning.imatrix2.23 MBaf8bb6a8285df150e3edc21aeae9f373b798a86b9c8a4955d3d4af1eb9e75f11
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
519790c460 pinned now2026-11-15 04:49 UTC27 files · 62.9 GB

Use it

$ fw get bartowski/microsoft_Phi-4-mini-reasoning-GGUF
# manifest sha256 6ef6a8bf5548… · 62.9 GB · 27 files
$ fw verify ./microsoft_Phi-4-mini-reasoning-GGUF bartowski/microsoft_Phi-4-mini-reasoning-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-reasoning-GGUF.json --dir ./microsoft_Phi-4-mini-reasoning-GGUF $ python3 fw.py verify ./microsoft_Phi-4-mini-reasoning-GGUF ./bartowski__microsoft_Phi-4-mini-reasoning-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-reasoning-GGUF --revision 519790c46093945c24bed49875702ad9126c721c --local-dir ./microsoft_Phi-4-mini-reasoning-GGUF
llama.cppDownload one GGUF variant (microsoft_Phi-4-mini-reasoning-IQ2_M, 1.51 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/microsoft_Phi-4-mini-reasoning-GGUF --include "microsoft_Phi-4-mini-reasoning-IQ2_M*" --local-dir ./microsoft_Phi-4-mini-reasoning-GGUF $ llama-server -m ./microsoft_Phi-4-mini-reasoning-GGUF/microsoft_Phi-4-mini-reasoning-IQ2_M.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./microsoft_Phi-4-mini-reasoning-GGUF/microsoft_Phi-4-mini-reasoning-IQ2_M.gguf\n' > Modelfile $ ollama create microsoft-phi-4-mini-reasoning-gguf -f Modelfile

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
9374ec399255d0ca20a0e256c1a1a8f2c1d0567764a8c1790ab41d0fce1efd9a
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-reasoning-GGUFDate: 2026-11-15Commit: 519790cSigned: 2DC28CC7B26A283B ✓
Upstream
bartowski/microsoft_Phi-4-mini-reasoning-GGUF
Pinned commit
519790c46093945c24bed49875702ad9126c721c
Manifest
microsoft_Phi-4-mini-reasoning-GGUF.json · .minisig
Manifest sha256
6ef6a8bf554852f4772b7ff4e052fe84ec6415f278cf7fd43ebc4d3c3227f8b7
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:49 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/bartowski/microsoft_Phi-4-mini-reasoning-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/microsoft_Phi-4-mini-reasoning-GGUF.json.minisig $ minisign -Vm microsoft_Phi-4-mini-reasoning-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-reasoning · 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-reasoning-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-reasoning-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