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

microsoft_Phi-4-reasoning-GGUF

Date: 2026-11-15Commit: 31acd2bSigned: 2DC28CC7B26A283B ✓

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

phi232GBmicrosoft_Phi-4-reasoning-GGUFggufpermissive
FactsParamsnot statedSize232 GBFormatsggufTasktext generationLicenseMITFrom sourcepermissive
$ fw get bartowski/microsoft_Phi-4-reasoning-GGUF
# manifest sha256 b9e2ddde0993… · 232 GB · 28 files
$ fw verify ./microsoft_Phi-4-reasoning-GGUF bartowski/microsoft_Phi-4-reasoning-GGUF
From sourceHosted (signed)bartowski/microsoft_Phi-4-reasoning-GGUFLast check: 2026-11-15 04:57 UTC

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

Quantized of Phi-4-reasoning.

Works with

Convert with

Overview

Size
232 GB
Weights
4.73 GB (smallest of 25 GGUF variants)
Parameters
not stated
Formats
gguf
Task
text generation
License
MIT (permissive)
Files
28, 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-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:57 UTCpassed

Model card

From the publisher at commit 31acd2b. Shown as plain text with links; images open at the publisher.

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

Using llama.cpp release b5228 for quantization.

Original model: https://huggingface.co/microsoft/Phi-4-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#

<|im_start|>system<|im_sep|>You are Phi, a language model trained by Microsoft to help users. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracing, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format:<think>{Thought section}</think>{Solution section}. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion. Now, try to solve the following question through the above guidelines:<|im_end|>{system_prompt}<|end|><|user|>{prompt}<|end|><|assistant|>

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

FilenameQuant typeFile SizeSplitDescription
Phi-4-reasoning-bf16.ggufbf1629.32GBfalseFull BF16 weights.
Phi-4-reasoning-Q8_0.ggufQ8_015.58GBfalseExtremely high quality, generally unneeded but max available quant.
Phi-4-reasoning-Q6_K_L.ggufQ6_K_L12.28GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
Phi-4-reasoning-Q6_K.ggufQ6_K12.03GBfalseVery high quality, near perfect, recommended.
Phi-4-reasoning-Q5_K_L.ggufQ5_K_L10.92GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
Phi-4-reasoning-Q5_K_M.ggufQ5_K_M10.60GBfalseHigh quality, recommended.
Phi-4-reasoning-Q5_K_S.ggufQ5_K_S10.15GBfalseHigh quality, recommended.
Phi-4-reasoning-Q4_K_L.ggufQ4_K_L9.43GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
Phi-4-reasoning-Q4_1.ggufQ4_19.27GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
Phi-4-reasoning-Q4_K_M.ggufQ4_K_M9.05GBfalseGood quality, default size for most use cases, recommended.
Phi-4-reasoning-Q4_K_S.ggufQ4_K_S8.44GBfalseSlightly lower quality with more space savings, recommended.
Phi-4-reasoning-Q4_0.ggufQ4_08.41GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
Phi-4-reasoning-IQ4_NL.ggufIQ4_NL8.38GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
Phi-4-reasoning-Q3_K_XL.ggufQ3_K_XL8.38GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
Phi-4-reasoning-IQ4_XS.ggufIQ4_XS7.94GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
Phi-4-reasoning-Q3_K_L.ggufQ3_K_L7.93GBfalseLower quality but usable, good for low RAM availability.
Phi-4-reasoning-Q3_K_M.ggufQ3_K_M7.36GBfalseLow quality.
Phi-4-reasoning-IQ3_M.ggufIQ3_M6.91GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
Phi-4-reasoning-Q3_K_S.ggufQ3_K_S6.50GBfalseLow quality, not recommended.
Phi-4-reasoning-IQ3_XS.ggufIQ3_XS6.25GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
Phi-4-reasoning-Q2_K_L.ggufQ2_K_L6.05GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
Phi-4-reasoning-IQ3_XXS.ggufIQ3_XXS5.85GBfalseLower quality, new method with decent performance, comparable to Q3 quants.
Phi-4-reasoning-Q2_K.ggufQ2_K5.55GBfalseVery low quality but surprisingly usable.
Phi-4-reasoning-IQ2_M.ggufIQ2_M5.11GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.
Phi-4-reasoning-IQ2_S.ggufIQ2_S4.73GBfalseLow quality, uses SOTA techniques to be 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-reasoning-GGUF --include "microsoft_Phi-4-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-reasoning-GGUF --include "microsoft_Phi-4-reasoning-Q8_0/*" --local-dir ./

You can either specify a new local-dir (microsoft_Phi-4-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

28 files · 232 GBWeights 4.73 GB (smallest of 25 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 28 files with their sha256
FileSizesha256
.gitattributes3.43 KB72dec389e7db6b021e2015d20f4b2301f558c375349c2ba5dbb3049f21036569
README.md15.4 KB77a4c776f0037ccc67ea8fd323e7c176f975de5e9e05f51e83de3c94a26d616b
microsoft_Phi-4-reasoning-IQ2_M.gguf5.11 GB106c2d77e22b87b4c9ded14b82ac8fa6554c264d492a38c822c97f9aa76f466f
microsoft_Phi-4-reasoning-IQ2_S.gguf4.73 GBcc447e928d9fcf81d89650e7e2b39d109efeb906a4dd0e73f425c05cf7a14634
microsoft_Phi-4-reasoning-IQ3_M.gguf6.91 GB8f95954f051c3dc06eef892228dcc9503feb48a824631d72b8055601965122e9
microsoft_Phi-4-reasoning-IQ3_XS.gguf6.25 GBf88ebd81b1caf57bddd27f55655f7f0aa6b74d412fa5421359d6a646fd79a6f4
microsoft_Phi-4-reasoning-IQ3_XXS.gguf5.85 GB22ab0dc7a9bf7015cbe16b7084ad526764c509ba5de93f9cad863c48b95919e0
microsoft_Phi-4-reasoning-IQ4_NL.gguf8.38 GB2fac4eaa36067e9b2fc7fffbd9e2e2d92e8a0eec97913c748f980144a02ff106
microsoft_Phi-4-reasoning-IQ4_XS.gguf7.94 GB57f29567615d82394905088d4b29bc399af0e9919ef7de00268e27b3aec55b77
microsoft_Phi-4-reasoning-Q2_K.gguf5.55 GBf41aa95e1dc7e6840f04f3315b521e8df9613611d37e97eccef4f2cf0362751d
microsoft_Phi-4-reasoning-Q2_K_L.gguf6.05 GB39ce1a7ba008d74a07f0036e3bd4b897276f7768b6fe59c6ce7ebd0c2a518ee0
microsoft_Phi-4-reasoning-Q3_K_L.gguf7.93 GBf1a8fb7bebd9fb6712f2beb502ccece0a88b595b67b2dcc98e85f84fc9179f36
microsoft_Phi-4-reasoning-Q3_K_M.gguf7.36 GB5bd1348beab1db7ddb216116f3151eb7a2c138aa9d193ca190b82c908ce81007
microsoft_Phi-4-reasoning-Q3_K_S.gguf6.50 GB1f51e96e488b3b805dac9a5122e5b7392f567b31453e0b83ec732f96803e235f
microsoft_Phi-4-reasoning-Q3_K_XL.gguf8.38 GB5e5e491e1b0057c97fb3c41fe4b44819a4c8daf493d6e4d5eefbf66f413494b3
microsoft_Phi-4-reasoning-Q4_0.gguf8.41 GBd55f93a186575ae01adb094407d657d234fb6a3d5429bea8eb7fd6a54c86b749
microsoft_Phi-4-reasoning-Q4_1.gguf9.27 GB52330f82a773fb9a1afb1e91e8ace2c26b9fd7e270f0da38906b0a1e48952125
microsoft_Phi-4-reasoning-Q4_K_L.gguf9.43 GB909c158ee193cb59fed156d00f9d0a58249c498566905feecd84a73cea1fadfd
microsoft_Phi-4-reasoning-Q4_K_M.gguf9.05 GBe02aea7b191055b8d9a5ca7d58a99214a6dc87be8759cf97089814163bda5042
microsoft_Phi-4-reasoning-Q4_K_S.gguf8.44 GB92a1e9602ede231bc6a27586e4f3290659ae0216fb3f5899ae49058ecb53f30d
microsoft_Phi-4-reasoning-Q5_K_L.gguf10.9 GBf1326cb0ffdd5ac6ef7a7ee91427e19c237b07c1f6456c60fd37f6ae00085694
microsoft_Phi-4-reasoning-Q5_K_M.gguf10.6 GBdd0cff3239deaf10db5aea5026a0ed6fa757dae9d6d7a189109bba4f3236d4a0
microsoft_Phi-4-reasoning-Q5_K_S.gguf10.2 GBdee695f9b87648bac9a3e4831b9389b221d094f962abb81e8fad5ca4c32ba853
microsoft_Phi-4-reasoning-Q6_K.gguf12.0 GBe7639d1c0f9be23f6967a42c0632369070c07d78d9c2477d8da01e60f6abcf24
microsoft_Phi-4-reasoning-Q6_K_L.gguf12.3 GB3654826324a63e38a5599884b66194bd49bc449304cb7af42c9d515eccfe507c
microsoft_Phi-4-reasoning-Q8_0.gguf15.6 GB2be359aae4671d8233b3ae120539070d94be47f0cd3b2573976026ee640fa1ea
microsoft_Phi-4-reasoning-bf16.gguf29.3 GB1e498b4abc4c002366b217f0278ab1f5f08c9aaa9d31f3b1fa77795dda5d8e5a
microsoft_Phi-4-reasoning.imatrix5.33 MB21eff9ba02390b6daee1b5d74ba8ca4123e1e2a3bb24b00b17af22971a2cf6e3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
31acd2bded pinned now2026-11-15 04:57 UTC28 files · 232 GB

Use it

$ fw get bartowski/microsoft_Phi-4-reasoning-GGUF
# manifest sha256 b9e2ddde0993… · 232 GB · 28 files
$ fw verify ./microsoft_Phi-4-reasoning-GGUF bartowski/microsoft_Phi-4-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-reasoning-GGUF.json --dir ./microsoft_Phi-4-reasoning-GGUF $ python3 fw.py verify ./microsoft_Phi-4-reasoning-GGUF ./bartowski__microsoft_Phi-4-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-reasoning-GGUF --revision 31acd2bdedae7114e095a73bd3d14a026f85bd71 --local-dir ./microsoft_Phi-4-reasoning-GGUF
llama.cppDownload one GGUF variant (microsoft_Phi-4-reasoning-IQ2_S, 4.73 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/microsoft_Phi-4-reasoning-GGUF --include "microsoft_Phi-4-reasoning-IQ2_S*" --local-dir ./microsoft_Phi-4-reasoning-GGUF $ llama-server -m ./microsoft_Phi-4-reasoning-GGUF/microsoft_Phi-4-reasoning-IQ2_S.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./microsoft_Phi-4-reasoning-GGUF/microsoft_Phi-4-reasoning-IQ2_S.gguf\n' > Modelfile $ ollama create microsoft-phi-4-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
77a4c776f0037ccc67ea8fd323e7c176f975de5e9e05f51e83de3c94a26d616b
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-reasoning-GGUFDate: 2026-11-15Commit: 31acd2bSigned: 2DC28CC7B26A283B ✓
Upstream
bartowski/microsoft_Phi-4-reasoning-GGUF
Pinned commit
31acd2bdedae7114e095a73bd3d14a026f85bd71
Manifest
microsoft_Phi-4-reasoning-GGUF.json · .minisig
Manifest sha256
b9e2ddde09937e4220c793a92417f9a11a11612a76621347f5dbb1d5e9b4943b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:57 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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