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

Phi-3.1-mini-4k-instruct-GGUF

Date: 2026-11-15Commit: 66a614aSigned: 2DC28CC7B26A283B ✓

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

phi58.7GBPhi-3.1-mini-4k-instruct-GGUFggufpermissive
FactsParamsnot statedSize58.7 GBFormatsggufTasktext generationLicenseMITFrom sourcepermissive
$ fw get bartowski/Phi-3.1-mini-4k-instruct-GGUF
# manifest sha256 20e279225db0… · 58.7 GB · 23 files
$ fw verify ./Phi-3.1-mini-4k-instruct-GGUF bartowski/Phi-3.1-mini-4k-instruct-GGUF
From sourceHosted (signed)bartowski/Phi-3.1-mini-4k-instruct-GGUFLast check: 2026-11-15 04:50 UTC

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

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

Works with

Convert with

Overview

Size
58.7 GB
Weights
1.32 GB (smallest of 20 GGUF variants)
Parameters
not stated
Formats
gguf
Task
text generation
License
MIT (permissive)
Files
23, 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-mini-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:50 UTCpassed

Model card

From the publisher at commit 66a614a. Shown as plain text with links; images open at the publisher.

Llamacpp imatrix Quantizations of Phi-3.1-mini-4k-instruct#

Using llama.cpp release b3460 for quantization.

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

All quants made using imatrix option with dataset from here

Run them in LM Studio

Torrent files#

https://aitorrent.zerroug.de/bartowski-phi-3-1-mini-4k-instruct-gguf-torrent/

Prompt format#

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

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

FilenameQuant typeFile SizeSplitDescription
Phi-3.1-mini-4k-instruct-f32.gguff3215.29GBfalseFull F32 weights.
Phi-3.1-mini-4k-instruct-Q8_0.ggufQ8_04.06GBfalseExtremely high quality, generally unneeded but max available quant.
Phi-3.1-mini-4k-instruct-Q6_K_L.ggufQ6_K_L3.18GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
Phi-3.1-mini-4k-instruct-Q6_K.ggufQ6_K3.14GBfalseVery high quality, near perfect, recommended.
Phi-3.1-mini-4k-instruct-Q5_K_L.ggufQ5_K_L2.88GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
Phi-3.1-mini-4k-instruct-Q5_K_M.ggufQ5_K_M2.82GBfalseHigh quality, recommended.
Phi-3.1-mini-4k-instruct-Q5_K_S.ggufQ5_K_S2.64GBfalseHigh quality, recommended.
Phi-3.1-mini-4k-instruct-Q4_K_L.ggufQ4_K_L2.47GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
Phi-3.1-mini-4k-instruct-Q4_K_M.ggufQ4_K_M2.39GBfalseGood quality, default size for must use cases, recommended.
Phi-3.1-mini-4k-instruct-Q4_K_S.ggufQ4_K_S2.19GBfalseSlightly lower quality with more space savings, recommended.
Phi-3.1-mini-4k-instruct-Q3_K_XL.ggufQ3_K_XL2.17GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
Phi-3.1-mini-4k-instruct-Q3_K_L.ggufQ3_K_L2.09GBfalseLower quality but usable, good for low RAM availability.
Phi-3.1-mini-4k-instruct-IQ4_XS.ggufIQ4_XS2.06GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
Phi-3.1-mini-4k-instruct-Q3_K_M.ggufQ3_K_M1.96GBfalseLow quality.
Phi-3.1-mini-4k-instruct-IQ3_M.ggufIQ3_M1.86GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
Phi-3.1-mini-4k-instruct-Q3_K_S.ggufQ3_K_S1.68GBfalseLow quality, not recommended.
Phi-3.1-mini-4k-instruct-IQ3_XS.ggufIQ3_XS1.63GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
Phi-3.1-mini-4k-instruct-Q2_K_L.ggufQ2_K_L1.51GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
Phi-3.1-mini-4k-instruct-Q2_K.ggufQ2_K1.42GBfalseVery low quality but surprisingly usable.
Phi-3.1-mini-4k-instruct-IQ2_M.ggufIQ2_M1.32GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.

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.1-mini-4k-instruct-GGUF --include "Phi-3.1-mini-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.1-mini-4k-instruct-GGUF --include "Phi-3.1-mini-4k-instruct-Q8_0.gguf/*" --local-dir Phi-3.1-mini-4k-instruct-Q8_0

You can either specify a new local-dir (Phi-3.1-mini-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

23 files · 58.7 GBWeights 1.32 GB (smallest of 20 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 23 files with their sha256
FileSizesha256
.gitattributes3.33 KBf347618a60dda99d1e94eba6a2aa25d51c45786af56836a9adfdb11a45c40efa
Phi-3.1-mini-4k-instruct-IQ2_M.gguf1.32 GB878be0f748808e375c8a0b8f218148c4fa3aafa59b571bcff333f5c956a83067
Phi-3.1-mini-4k-instruct-IQ3_M.gguf1.86 GB37d43807d96a0866d6e3a74d54ea34bb5363c2597acd6c32805c84b5236934e5
Phi-3.1-mini-4k-instruct-IQ3_XS.gguf1.63 GB617d83e097556a68c5e5104b18932b861ecbbce7be60f1932a67e590a2a0d990
Phi-3.1-mini-4k-instruct-IQ4_XS.gguf2.06 GB2e5c2cddeabe4c29aa68a2cbda2ecf5abe52645bc4a06c8f77488ecbb1fd4c1a
Phi-3.1-mini-4k-instruct-Q2_K.gguf1.42 GBe7176974b06cc64cf2b5c8f26e12b0359fb52a6696ddb1e2db0d04a15cc0c870
Phi-3.1-mini-4k-instruct-Q2_K_L.gguf1.51 GB27469c5b6180a3169da307365ec5302186ddd27641bde7314c485ef6fd85159d
Phi-3.1-mini-4k-instruct-Q3_K_L.gguf2.09 GBdf590d9557361d473a8acb0b9d53afafd4f70b496b64c3c471d3b34997ce2833
Phi-3.1-mini-4k-instruct-Q3_K_M.gguf1.96 GB3ed23e600da7d7d49c581ab1c97899ed44282e71a1a3e47840b6533fdd56bca1
Phi-3.1-mini-4k-instruct-Q3_K_S.gguf1.68 GBae427032658763ef6a3e56d55961feed51cad7f9e9e13423f57f515a39997fb9
Phi-3.1-mini-4k-instruct-Q3_K_XL.gguf2.17 GBc79929bbc1bfb5d768cd70105f11ba5b7c0f0bf9f032a7a88939296f7c4825ad
Phi-3.1-mini-4k-instruct-Q4_K_L.gguf2.47 GB94ef14225d5c340b543efb8d012e09b3bdc1bdca928272cf3539b098a9c6d08f
Phi-3.1-mini-4k-instruct-Q4_K_M.gguf2.39 GBd6d25bf078321bea4a079c727b273cb0b5a2e0b4cf3add0f7a2c8e43075c414f
Phi-3.1-mini-4k-instruct-Q4_K_S.gguf2.19 GBe026bff4a566698f52e42598b808a9afe30de2cd59990c86966788c6fd14895a
Phi-3.1-mini-4k-instruct-Q5_K_L.gguf2.88 GB6396c86179ea254f965346977efcc760f602147371f60be9f60e497e9a66f9d3
Phi-3.1-mini-4k-instruct-Q5_K_M.gguf2.82 GB9e6b40db29b0f6d17fe2969a85e6079a8e8f28f1ab549dbb9b3c52dad8189319
Phi-3.1-mini-4k-instruct-Q5_K_S.gguf2.64 GBfb29777024d1f70716268166fa7d33f228c3f172f42303290a0c030ea0a2efe8
Phi-3.1-mini-4k-instruct-Q6_K.gguf3.14 GB33b039925724d156dd62bb0fdd2719b7b6fa9d71e1a56796c8f41bd7d122162d
Phi-3.1-mini-4k-instruct-Q6_K_L.gguf3.18 GBea79ac8d0ad2dfd301814b81ead81b9c888d16b6292a214eba346010978e0d55
Phi-3.1-mini-4k-instruct-Q8_0.gguf4.06 GBec1d9f9bd11ff1b360df7f3d92b11612dfe0dbe7ae66eff9c6f334a22da32952
Phi-3.1-mini-4k-instruct-f32.gguf15.3 GB57d07b1cbd77acc0719527124a7395721490902d9c0262886636e76cf21f0fec
Phi-3.1-mini-4k-instruct.imatrix2.23 MB18452b3c22342f383f5262a89114d702a9c4795ea91ef060fa17840718351d19
README.md8.80 KB891b716b8aa655058e1c85990e265a13a668fd2d07a4e3bd2ef5381ae13c253c
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
66a614ace4 pinned now2026-11-15 04:50 UTC23 files · 58.7 GB

Use it

$ fw get bartowski/Phi-3.1-mini-4k-instruct-GGUF
# manifest sha256 20e279225db0… · 58.7 GB · 23 files
$ fw verify ./Phi-3.1-mini-4k-instruct-GGUF bartowski/Phi-3.1-mini-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.1-mini-4k-instruct-GGUF.json --dir ./Phi-3.1-mini-4k-instruct-GGUF $ python3 fw.py verify ./Phi-3.1-mini-4k-instruct-GGUF ./bartowski__Phi-3.1-mini-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.1-mini-4k-instruct-GGUF --revision 66a614ace4d069a12c2f6043f4ea92621c898d4a --local-dir ./Phi-3.1-mini-4k-instruct-GGUF
llama.cppDownload one GGUF variant (Phi-3.1-mini-4k-instruct-IQ2_M, 1.32 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/Phi-3.1-mini-4k-instruct-GGUF --include "Phi-3.1-mini-4k-instruct-IQ2_M*" --local-dir ./Phi-3.1-mini-4k-instruct-GGUF $ llama-server -m ./Phi-3.1-mini-4k-instruct-GGUF/Phi-3.1-mini-4k-instruct-IQ2_M.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./Phi-3.1-mini-4k-instruct-GGUF/Phi-3.1-mini-4k-instruct-IQ2_M.gguf\n' > Modelfile $ ollama create phi-3.1-mini-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
891b716b8aa655058e1c85990e265a13a668fd2d07a4e3bd2ef5381ae13c253c
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.1-mini-4k-instruct-GGUFDate: 2026-11-15Commit: 66a614aSigned: 2DC28CC7B26A283B ✓
Upstream
bartowski/Phi-3.1-mini-4k-instruct-GGUF
Pinned commit
66a614ace4d069a12c2f6043f4ea92621c898d4a
Manifest
Phi-3.1-mini-4k-instruct-GGUF.json · .minisig
Manifest sha256
20e279225db0f58c780791acb4e919efa4ad4c795b35acbf3d3520e318a4618d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:50 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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