alt.freeweights.phi / Phi-3-medium-4k-instruct-GGUF
From: bartowski <huggingface.co/bartowski>Newsgroups: alt.freeweights.phiSubject:

Phi-3-medium-4k-instruct-GGUF

Date: 2026-11-15Commit: 2e47877Signed: 2DC28CC7B26A283B ✓

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

phi212GBPhi-3-medium-4k-instruct-GGUFggufpermissive
FactsParamsnot statedSize212 GBFormatsggufTasktext generationLicenseMITFrom sourcepermissive
$ fw get bartowski/Phi-3-medium-4k-instruct-GGUF
# manifest sha256 b1741ee904d1… · 212 GB · 24 files
$ fw verify ./Phi-3-medium-4k-instruct-GGUF bartowski/Phi-3-medium-4k-instruct-GGUF
From sourceHosted (signed)bartowski/Phi-3-medium-4k-instruct-GGUFLast check: 2026-11-15 04:56 UTC

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

Quantized of Phi-3-medium-4k-instruct.

Works with

Convert with

Overview

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

Original release from the publisher.

Base model: microsoft/Phi-3-medium-4k-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-15 04:56 UTCpassed

Model card

From the publisher at commit 2e47877. Shown as plain text with links; images open at the publisher.

Llamacpp imatrix Quantizations of Phi-3-medium-4k-instruct#

Using llama.cpp release b3509 for quantization.

Original model: https://huggingface.co/microsoft/Phi-3-medium-4k-instruct

All quants made using imatrix option with dataset from here

Run them in LM Studio

Prompt format#

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

What's new#

  • Updated to latest llama.cpp to fix rope scaling

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

FilenameQuant typeFile SizeSplitDescription
Phi-3-medium-4k-instruct-f32.gguff3255.84GBtrueFull F32 weights.
Phi-3-medium-4k-instruct-Q8_0.ggufQ8_014.83GBfalseExtremely high quality, generally unneeded but max available quant.
Phi-3-medium-4k-instruct-Q6_K_L.ggufQ6_K_L11.53GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
Phi-3-medium-4k-instruct-Q6_K.ggufQ6_K11.45GBfalseVery high quality, near perfect, recommended.
Phi-3-medium-4k-instruct-Q5_K_L.ggufQ5_K_L10.18GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
Phi-3-medium-4k-instruct-Q5_K_M.ggufQ5_K_M10.07GBfalseHigh quality, recommended.
Phi-3-medium-4k-instruct-Q5_K_S.ggufQ5_K_S9.62GBfalseHigh quality, recommended.
Phi-3-medium-4k-instruct-Q4_K_L.ggufQ4_K_L8.69GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
Phi-3-medium-4k-instruct-Q4_K_M.ggufQ4_K_M8.57GBfalseGood quality, default size for must use cases, recommended.
Phi-3-medium-4k-instruct-Q4_K_S.ggufQ4_K_S7.95GBfalseSlightly lower quality with more space savings, recommended.
Phi-3-medium-4k-instruct-Q3_K_XL.ggufQ3_K_XL7.63GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
Phi-3-medium-4k-instruct-Q3_K_L.ggufQ3_K_L7.49GBfalseLower quality but usable, good for low RAM availability.
Phi-3-medium-4k-instruct-IQ4_XS.ggufIQ4_XS7.47GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
Phi-3-medium-4k-instruct-Q3_K_M.ggufQ3_K_M6.92GBfalseLow quality.
Phi-3-medium-4k-instruct-IQ3_M.ggufIQ3_M6.47GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
Phi-3-medium-4k-instruct-Q3_K_S.ggufQ3_K_S6.06GBfalseLow quality, not recommended.
Phi-3-medium-4k-instruct-IQ3_XS.ggufIQ3_XS5.81GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
Phi-3-medium-4k-instruct-Q2_K_L.ggufQ2_K_L5.30GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
Phi-3-medium-4k-instruct-Q2_K.ggufQ2_K5.14GBfalseVery low quality but surprisingly usable.
Phi-3-medium-4k-instruct-IQ2_M.ggufIQ2_M4.72GBfalseRelatively 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.

Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.

Thanks!

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

Downloading using huggingface-cli#

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/Phi-3-medium-4k-instruct-GGUF --include "Phi-3-medium-4k-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/Phi-3-medium-4k-instruct-GGUF --include "Phi-3-medium-4k-instruct-Q8_0/*" --local-dir ./

You can either specify a new local-dir (Phi-3-medium-4k-instruct-Q8_0) or download them all in place (./)

Which file should I choose?#

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.

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

Files

24 files · 212 GBWeights 4.72 GB (smallest of 20 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 24 files with their sha256
FileSizesha256
.gitattributes4.02 KB373025e004fded22c547211bcbf6d029b145b39c9f4c3997bf2ff9d78f96b99b
Phi-3-medium-4k-instruct-IQ2_M.gguf4.72 GB60f9eac9ee0f107dd3936193d6144ae3f3deaabbf181ae71da3b70a9fc914978
Phi-3-medium-4k-instruct-IQ3_M.gguf6.47 GB56c8a23e228f33102aba5b2ce5da8bce4685a7093a34cc1bba6b241dae190013
Phi-3-medium-4k-instruct-IQ3_XS.gguf5.81 GBba0480d6578eba3b2a933b61800e17ebf7a9cd179db6c140ad22e5fd697249b4
Phi-3-medium-4k-instruct-IQ4_XS.gguf7.47 GBa68027f0ee4e8d7e64629a193d295ce3cd464dd3d86c96284c3af8fe1d584ae2
Phi-3-medium-4k-instruct-Q2_K.gguf5.14 GBfe457bf0e1ed12c8d525a9faba454015d127a9547221318686591b1f8598b224
Phi-3-medium-4k-instruct-Q2_K_L.gguf5.30 GBf364aec15c9d3bef4b8f4a810c5882d3bc52eee27184bd0467d8817c86e14e85
Phi-3-medium-4k-instruct-Q3_K_L.gguf7.49 GBaa7e493f01e99559555a4b86d347df670c0cf26485a58f33ecdb51a7991e9c96
Phi-3-medium-4k-instruct-Q3_K_M.gguf6.92 GB413b3b0599e92fdc8f111a7afeddbf9341bd61e81b900f51a508bb9287e56bfa
Phi-3-medium-4k-instruct-Q3_K_S.gguf6.06 GBd4ef439051437962e1cd25486b4a27f2eca09d2f7a828a555ca523e1d5bb1e4f
Phi-3-medium-4k-instruct-Q3_K_XL.gguf7.63 GBabb20f1c67e5ed097c296e52f696fc05cecafd357c3fa178f4eb4eeaa5c51b47
Phi-3-medium-4k-instruct-Q4_K_L.gguf8.69 GB220505f813224febb93c0df1b054026a403276fd0fd2b456aa595816fa4fd8cd
Phi-3-medium-4k-instruct-Q4_K_M.gguf8.57 GB6f05c97bc676dd1ec8d58e9a8795b4f5c809db771f6fc7bf48634c805face82c
Phi-3-medium-4k-instruct-Q4_K_S.gguf7.95 GB06773e20ace9b94b87470b41f2a321e9ebf4896f4539d706f369a520c73de5a1
Phi-3-medium-4k-instruct-Q5_K_L.gguf10.2 GB0fe640ed1a2869d34ea32157e5ce3c95ddd7435f3f59f7ff6eafefda2c6c3bfc
Phi-3-medium-4k-instruct-Q5_K_M.gguf10.1 GB25874bc0da2469d366bdd3328530008b8de65a9c57d64a3ba0d5b3d9f9c406a4
Phi-3-medium-4k-instruct-Q5_K_S.gguf9.62 GBdb2806cc2b6fb5a5d7fac5ac05e4844cdc7b58069ec54e73e8eac785715713a0
Phi-3-medium-4k-instruct-Q6_K.gguf11.5 GB0240650c79af4944a3aabfefdab382e0b25210ddfcfa72ea6914c6ca76f321fd
Phi-3-medium-4k-instruct-Q6_K_L.gguf11.5 GB470bda526e0970094c5c185fcb60f057798921c8d2e071dfc7dedab4efbf91fa
Phi-3-medium-4k-instruct-Q8_0.gguf14.8 GB665037dac21915fdd9584082487b7882922799c130f8591cf6e7b7796f40d194
Phi-3-medium-4k-instruct-f32/Phi-3-medium-4k-instruct-f32-00001-of-00002.gguf39.5 GBeb2902dd2296bc38b5fe5dfde4b341edb159895d3ab3bb30a2a081c2fd98dd43
Phi-3-medium-4k-instruct-f32/Phi-3-medium-4k-instruct-f32-00002-of-00002.gguf16.4 GBd24b86f2686df851e82c7aa0f43f95b7f44cc16b10c1dd58b5dc7e26fd3696b1
Phi-3-medium-4k-instruct.imatrix5.33 MBa2da7578f63c9c53c034078a3cddc7c38ab54a1602bf4c227533125f2525b932
README.md9.18 KBa710911ab85fc10fc58f97c1638d2364070e4b4e8749e2ea7b5b8150d1d81017
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2e478770bc pinned now2026-11-15 04:56 UTC24 files · 212 GB

Use it

$ fw get bartowski/Phi-3-medium-4k-instruct-GGUF
# manifest sha256 b1741ee904d1… · 212 GB · 24 files
$ fw verify ./Phi-3-medium-4k-instruct-GGUF bartowski/Phi-3-medium-4k-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/Phi-3-medium-4k-instruct-GGUF.json --dir ./Phi-3-medium-4k-instruct-GGUF $ python3 fw.py verify ./Phi-3-medium-4k-instruct-GGUF ./bartowski__Phi-3-medium-4k-instruct-GGUF.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/Phi-3-medium-4k-instruct-GGUF --revision 2e478770bcb73c17668a4f9fa028e8c8228f6fb4 --local-dir ./Phi-3-medium-4k-instruct-GGUF
llama.cppDownload one GGUF variant (Phi-3-medium-4k-instruct-IQ2_M, 4.72 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/Phi-3-medium-4k-instruct-GGUF --include "Phi-3-medium-4k-instruct-IQ2_M*" --local-dir ./Phi-3-medium-4k-instruct-GGUF $ llama-server -m ./Phi-3-medium-4k-instruct-GGUF/Phi-3-medium-4k-instruct-IQ2_M.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./Phi-3-medium-4k-instruct-GGUF/Phi-3-medium-4k-instruct-IQ2_M.gguf\n' > Modelfile $ ollama create phi-3-medium-4k-instruct-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
a710911ab85fc10fc58f97c1638d2364070e4b4e8749e2ea7b5b8150d1d81017
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: Phi-3-medium-4k-instruct-GGUFDate: 2026-11-15Commit: 2e47877Signed: 2DC28CC7B26A283B ✓
Upstream
bartowski/Phi-3-medium-4k-instruct-GGUF
Pinned commit
2e478770bcb73c17668a4f9fa028e8c8228f6fb4
Manifest
Phi-3-medium-4k-instruct-GGUF.json · .minisig
Manifest sha256
b1741ee904d1ff52cbe1a5a1ab70a05c2929beed4898fd600ff801e70caa3901
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:56 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/bartowski/Phi-3-medium-4k-instruct-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/Phi-3-medium-4k-instruct-GGUF.json.minisig $ minisign -Vm Phi-3-medium-4k-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-3-medium-4k-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/Phi-3-medium-4k-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. Phi-3-medium-4k-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