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

Phi-3-medium-128k-instruct-GGUF

Date: 2026-11-15Commit: 950c815Signed: 2DC28CC7B26A283B ✓

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

phi305GBPhi-3-medium-128k-instruct-GGUFggufpermissive
FactsParamsnot statedSize305 GBFormatsggufTasktext generationLicenseMITFrom sourcepermissive
$ fw get bartowski/Phi-3-medium-128k-instruct-GGUF
# manifest sha256 76e7c68fc959… · 305 GB · 34 files
$ fw verify ./Phi-3-medium-128k-instruct-GGUF bartowski/Phi-3-medium-128k-instruct-GGUF
From sourceHosted (signed)bartowski/Phi-3-medium-128k-instruct-GGUFLast check: 2026-11-15 04:52 UTC

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

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

Works with

Convert with

Overview

Size
305 GB
Weights
2.96 GB (smallest of 29 GGUF variants)
Parameters
not stated
Formats
gguf
Task
text generation
License
MIT (permissive)
Files
34, 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-128k-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:52 UTCpassed

Model card

From the publisher at commit 950c815. Shown as plain text with links; images open at the publisher.

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

Using llama.cpp release b3561 for quantization.

Original model: https://huggingface.co/microsoft/Phi-3-medium-128k-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:#

Updating to latest llama.cpp for rope fixes (thanks Niluayuk)

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

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

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

You can either specify a new local-dir (Phi-3-medium-128k-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

34 files · 305 GBWeights 2.96 GB (smallest of 29 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 34 files with their sha256
FileSizesha256
.gitattributes4.09 KBf95bb109ceb865a73155b22d407311f5c298f14d2a6da1e92e99a2d0d0253ce5
Phi-3-medium-128k-instruct-IQ1_M.gguf3.24 GB998375e6a045031159fbf315160504fdd6f4570ad2dd99235714f5eee9c4ed4c
Phi-3-medium-128k-instruct-IQ1_S.gguf2.96 GB3c3574930aff50056788f80fed9f9873ac808ff01411d12c6d9c4404dcd9c759
Phi-3-medium-128k-instruct-IQ2_M.gguf4.72 GBe4bca6c2b6bc2795200836dd61816e1fdba6ca405197ce6a5959a43a14b1f06d
Phi-3-medium-128k-instruct-IQ2_S.gguf4.34 GBf119217ecda02e04166f9ce1347614ea4299a0450f3c3258f99a3e372e23f5b3
Phi-3-medium-128k-instruct-IQ2_XS.gguf4.13 GB8c769c4137173dd434c070e116e4b0599af2b12752ba4c7188a1bf8bf5372a55
Phi-3-medium-128k-instruct-IQ2_XXS.gguf3.72 GB8acde21414d9bf67d727b6a9c851d3de814084277e03053157df5c6ce34aff44
Phi-3-medium-128k-instruct-IQ3_M.gguf6.47 GB4012fcc9f5d3f1bc74be6197f64e6ff76a03f667d793f6d470ad732753c65b81
Phi-3-medium-128k-instruct-IQ3_S.gguf6.06 GB63e84a0c958c0bca68f6301057795284c79c36dafdc81ae4b2f084e603fd529e
Phi-3-medium-128k-instruct-IQ3_XS.gguf5.81 GBc1eac74568ef60c5377eb9652250ca10e7854611903ce88fca339f2c01ce5d38
Phi-3-medium-128k-instruct-IQ3_XXS.gguf5.45 GB07cdb03e7d491b53fa294c497d109707c15ef612180f5a728e802bc480e9327a
Phi-3-medium-128k-instruct-IQ4_NL.gguf7.90 GB177a001bf59ff2b7dd63393dfee1e53540a56a066ef5321582f8b552ac7218f3
Phi-3-medium-128k-instruct-IQ4_XS.gguf7.47 GB56d050a3b7f7e46a9e704d50d905d96458ee746992da80abae04829d5dd62907
Phi-3-medium-128k-instruct-Q2_K.gguf5.14 GB5b98588e7614999356cbf4870d954462c7919af5618796fa305d392d1ec90d80
Phi-3-medium-128k-instruct-Q2_K_L.gguf5.30 GBb846825b4f9a538de034d883b90fd91b8be102e26cc3ec81c51e286146d54457
Phi-3-medium-128k-instruct-Q3_K_L.gguf7.49 GBcbdedbff19cf9a06a7b3adf6e28f51bbbc75d0099ec55306112949643cd242d6
Phi-3-medium-128k-instruct-Q3_K_M.gguf6.92 GB2fff291dc1f2831d4b4beaf1a41c05cb4cc879ee2abdcc85468f2b6d6e9e4d1d
Phi-3-medium-128k-instruct-Q3_K_S.gguf6.06 GBa5834dd17ba9f837cb17fccaa8ee5e7671db140527778a4f3bb26dad050bc3bd
Phi-3-medium-128k-instruct-Q3_K_XL.gguf7.63 GB8d2563b861c2b419af34a96f0dc26aa5a182cd77624ee7dcebf4b16b1c77d7fb
Phi-3-medium-128k-instruct-Q4_K_L.gguf8.69 GB88633f358967eb7057ef9d95ea44b1362450282d64cb98ba3c8c8a9c5014d67a
Phi-3-medium-128k-instruct-Q4_K_M.gguf8.57 GB6adc92faaf06bca4f706f279a569402b727be5a02ec8600d52fac3dce23ae43d
Phi-3-medium-128k-instruct-Q4_K_S.gguf7.95 GB8dd7fee0b0184a9766bd2e96327773dc22366a342aa908df5ace93dddd0f7c3d
Phi-3-medium-128k-instruct-Q5_K_L.gguf10.2 GB8a64dc50d4aa2a33fddacd7fb58888aa60fe5b99baff292e4e364b4ab534c683
Phi-3-medium-128k-instruct-Q5_K_M.gguf10.1 GBd06da23c184ad7a0e7c2a030a621907816e6efc4c15acf9612e10f8ba7f81d4f
Phi-3-medium-128k-instruct-Q5_K_S.gguf9.62 GBd2289f1c08637e3d2583f4b57c6d1b462f1360a2c8e4bedaba6b06104b7f9383
Phi-3-medium-128k-instruct-Q6_K.gguf11.5 GB806f6fa6b9776843f655a845ce269e208fb4ccb432aa29bc3481281c051543f2
Phi-3-medium-128k-instruct-Q6_K_L.gguf11.5 GBe0cb8b3cd4209825c9917855b8d590f47aaed543f9163fd436799a88c3704a0e
Phi-3-medium-128k-instruct-Q8_0.gguf14.8 GB5b38b0907c2c72c679b847801ffa214f33f08818b835a057af6932690c189157
Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00001-of-00002.gguf32.0 GB658293f962c634fe5e82792f9ed1377659dc696f3242f9fcfa50b4784e4d43d0
Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00002-of-00002.gguf23.8 GB50d896f18ef862d6962ffb8a1d52daf857959dcd023f9295da514c5e13f77a1f
Phi-3-medium-128k-instruct-f32/Phi-3-medium-128k-instruct-f32-00001-of-00002.gguf39.5 GBcccfd7a472e2ee107db900c9fdf3b5ce01b55d3c505d06f749ac5d4dc35bc4ca
Phi-3-medium-128k-instruct-f32/Phi-3-medium-128k-instruct-f32-00002-of-00002.gguf16.4 GB292e6ddb549b091bca18727230bad79b5968412064895282af7efd6e20096544
Phi-3-medium-128k-instruct.imatrix5.33 MB34604d58d7a6b2d3ab9f45abf13961d9180228cd0ec943b1ff655f9422f0a988
README.md9.58 KBd2e479339fc4ce6736951dd4f8931379c3093c5bc48f62e3edd3b72cef7f28e9
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
950c8154e9 pinned now2026-11-15 04:52 UTC34 files · 305 GB

Use it

$ fw get bartowski/Phi-3-medium-128k-instruct-GGUF
# manifest sha256 76e7c68fc959… · 305 GB · 34 files
$ fw verify ./Phi-3-medium-128k-instruct-GGUF bartowski/Phi-3-medium-128k-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-128k-instruct-GGUF.json --dir ./Phi-3-medium-128k-instruct-GGUF $ python3 fw.py verify ./Phi-3-medium-128k-instruct-GGUF ./bartowski__Phi-3-medium-128k-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-128k-instruct-GGUF --revision 950c8154e91f33193217eebf1c26903af44c6e13 --local-dir ./Phi-3-medium-128k-instruct-GGUF
llama.cppDownload one GGUF variant (Phi-3-medium-128k-instruct-IQ1_S, 2.96 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/Phi-3-medium-128k-instruct-GGUF --include "Phi-3-medium-128k-instruct-IQ1_S*" --local-dir ./Phi-3-medium-128k-instruct-GGUF $ llama-server -m ./Phi-3-medium-128k-instruct-GGUF/Phi-3-medium-128k-instruct-IQ1_S.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./Phi-3-medium-128k-instruct-GGUF/Phi-3-medium-128k-instruct-IQ1_S.gguf\n' > Modelfile $ ollama create phi-3-medium-128k-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
d2e479339fc4ce6736951dd4f8931379c3093c5bc48f62e3edd3b72cef7f28e9
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-128k-instruct-GGUFDate: 2026-11-15Commit: 950c815Signed: 2DC28CC7B26A283B ✓
Upstream
bartowski/Phi-3-medium-128k-instruct-GGUF
Pinned commit
950c8154e91f33193217eebf1c26903af44c6e13
Manifest
Phi-3-medium-128k-instruct-GGUF.json · .minisig
Manifest sha256
76e7c68fc95908961e87089225c06e4493919e6b34175d51344f915e04a844b4
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:52 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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