Llamacpp quants
Browse files- .gitattributes +25 -0
- Phi-3-medium-128k-instruct-IQ1_M.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ1_S.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ2_M.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ2_S.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ2_XS.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ2_XXS.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ3_M.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ3_S.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ3_XS.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ3_XXS.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ4_NL.gguf +3 -0
- Phi-3-medium-128k-instruct-IQ4_XS.gguf +3 -0
- Phi-3-medium-128k-instruct-Q2_K.gguf +3 -0
- Phi-3-medium-128k-instruct-Q3_K_L.gguf +3 -0
- Phi-3-medium-128k-instruct-Q3_K_M.gguf +3 -0
- Phi-3-medium-128k-instruct-Q3_K_S.gguf +3 -0
- Phi-3-medium-128k-instruct-Q4_K_M.gguf +3 -0
- Phi-3-medium-128k-instruct-Q4_K_S.gguf +3 -0
- Phi-3-medium-128k-instruct-Q5_K_M.gguf +3 -0
- Phi-3-medium-128k-instruct-Q5_K_S.gguf +3 -0
- Phi-3-medium-128k-instruct-Q6_K.gguf +3 -0
- Phi-3-medium-128k-instruct-Q8_0.gguf +3 -0
- Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00001-of-00002.gguf +3 -0
- Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00002-of-00002.gguf +3 -0
- Phi-3-medium-128k-instruct.imatrix +3 -0
- README.md +108 -0
.gitattributes
CHANGED
@@ -33,3 +33,28 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
Phi-3-medium-128k-instruct-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
Phi-3-medium-128k-instruct-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
Phi-3-medium-128k-instruct-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
Phi-3-medium-128k-instruct-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
Phi-3-medium-128k-instruct-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
Phi-3-medium-128k-instruct-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
Phi-3-medium-128k-instruct-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
Phi-3-medium-128k-instruct-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
Phi-3-medium-128k-instruct-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
Phi-3-medium-128k-instruct-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
Phi-3-medium-128k-instruct-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
Phi-3-medium-128k-instruct-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
48 |
+
Phi-3-medium-128k-instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
49 |
+
Phi-3-medium-128k-instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
50 |
+
Phi-3-medium-128k-instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
51 |
+
Phi-3-medium-128k-instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
52 |
+
Phi-3-medium-128k-instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
53 |
+
Phi-3-medium-128k-instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
54 |
+
Phi-3-medium-128k-instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
55 |
+
Phi-3-medium-128k-instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
56 |
+
Phi-3-medium-128k-instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
57 |
+
Phi-3-medium-128k-instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
58 |
+
Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
|
59 |
+
Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
|
60 |
+
Phi-3-medium-128k-instruct.imatrix filter=lfs diff=lfs merge=lfs -text
|
Phi-3-medium-128k-instruct-IQ1_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:998375e6a045031159fbf315160504fdd6f4570ad2dd99235714f5eee9c4ed4c
|
3 |
+
size 3242157088
|
Phi-3-medium-128k-instruct-IQ1_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c3574930aff50056788f80fed9f9873ac808ff01411d12c6d9c4404dcd9c759
|
3 |
+
size 2957997088
|
Phi-3-medium-128k-instruct-IQ2_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4ac128777bcf71ddf40d72bfbfdf5c028b15a19d76a2cbc3a0a101560a3f1ff9
|
3 |
+
size 4717006368
|
Phi-3-medium-128k-instruct-IQ2_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f119217ecda02e04166f9ce1347614ea4299a0450f3c3258f99a3e372e23f5b3
|
3 |
+
size 4338126368
|
Phi-3-medium-128k-instruct-IQ2_XS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8c769c4137173dd434c070e116e4b0599af2b12752ba4c7188a1bf8bf5372a55
|
3 |
+
size 4127405088
|
Phi-3-medium-128k-instruct-IQ2_XXS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9dc512a2ddaed5576fe7ca1a981963c83c04079db3c9c8eabf87ea6690fa74f2
|
3 |
+
size 3715757088
|
Phi-3-medium-128k-instruct-IQ3_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4a1df7bac1fe1a9991388bc78e5eb057999e9ade7e96d832cbdc377e4a267a8
|
3 |
+
size 6473977888
|
Phi-3-medium-128k-instruct-IQ3_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63e84a0c958c0bca68f6301057795284c79c36dafdc81ae4b2f084e603fd529e
|
3 |
+
size 6064889888
|
Phi-3-medium-128k-instruct-IQ3_XS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4a79e3eaaf7daf0653a8b8cadd3b6e9d71be71cc0abbce723170cf8ded3acd4
|
3 |
+
size 5806841888
|
Phi-3-medium-128k-instruct-IQ3_XXS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07cdb03e7d491b53fa294c497d109707c15ef612180f5a728e802bc480e9327a
|
3 |
+
size 5453262368
|
Phi-3-medium-128k-instruct-IQ4_NL.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:177a001bf59ff2b7dd63393dfee1e53540a56a066ef5321582f8b552ac7218f3
|
3 |
+
size 7897125408
|
Phi-3-medium-128k-instruct-IQ4_XS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a9098e8e89e69b71592a1f86d06d835652a42e844f0eafad99f71ebbebef379d
|
3 |
+
size 7466011168
|
Phi-3-medium-128k-instruct-Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:902f408660621f211a4cc11387e86754d1e5cbf15341a076a7342b1e9461a30b
|
3 |
+
size 5143000608
|
Phi-3-medium-128k-instruct-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2c7f00f5b2ba6bbd185a9b404f02a2705a8c4709513734372f0d32efc20ab98
|
3 |
+
size 7490297888
|
Phi-3-medium-128k-instruct-Q3_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38b3f72bdd536b163168583ce8deef6ac4966444c67c699b1ee2e51e82d3fc42
|
3 |
+
size 6923411488
|
Phi-3-medium-128k-instruct-Q3_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c323ef2d5a5e9bc2a7bbb90a460301c90e271d9404545b8b1ab134ab228a87d
|
3 |
+
size 6064889888
|
Phi-3-medium-128k-instruct-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8ed734336b8b83977874afc85f11674bf3b49a92e8e02ac4197e6812f10c242
|
3 |
+
size 8566821408
|
Phi-3-medium-128k-instruct-Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d39678f87e2c17fccc545955f5d61cc26f3a592c56d503cfea0d7d0e7ac6cf81
|
3 |
+
size 7954469408
|
Phi-3-medium-128k-instruct-Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5881f155da96899eb0639ae35b8b8f072267b96ca0955926cd5ef8bf6cee9fbd
|
3 |
+
size 10074190368
|
Phi-3-medium-128k-instruct-Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0da98dc6e5f1929e4a4343b4983e345e0202ce5ffdac578ee5947c79fdd01f9
|
3 |
+
size 9621582368
|
Phi-3-medium-128k-instruct-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb6337cbbe910dd9a8eb5078b30e09174853a2b5bbf8cebe0fff97d2e8ab9106
|
3 |
+
size 11453817888
|
Phi-3-medium-128k-instruct-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d344e88ec30ae94b506159a43106ce55126687a2427ff7821f1ebf5dd42a648
|
3 |
+
size 14834712608
|
Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00001-of-00002.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:658293f962c634fe5e82792f9ed1377659dc696f3242f9fcfa50b4784e4d43d0
|
3 |
+
size 32010790752
|
Phi-3-medium-128k-instruct-f32.gguf/Phi-3-medium-128k-instruct-f32-00002-of-00002.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50d896f18ef862d6962ffb8a1d52daf857959dcd023f9295da514c5e13f77a1f
|
3 |
+
size 23830902880
|
Phi-3-medium-128k-instruct.imatrix
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:499a8bb5daebfc977e82ecc53018aa645e92dff3d869c2ef74eddf68f04c858f
|
3 |
+
size 5330287
|
README.md
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
license_link: https://huggingface.co/microsoft/Phi-3-medium-128k-instruct/resolve/main/LICENSE
|
4 |
+
|
5 |
+
language:
|
6 |
+
- multilingual
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
tags:
|
9 |
+
- nlp
|
10 |
+
- code
|
11 |
+
inference:
|
12 |
+
parameters:
|
13 |
+
temperature: 0.7
|
14 |
+
widget:
|
15 |
+
- messages:
|
16 |
+
- role: user
|
17 |
+
content: Can you provide ways to eat combinations of bananas and dragonfruits?
|
18 |
+
quantized_by: bartowski
|
19 |
+
---
|
20 |
+
|
21 |
+
## Llamacpp imatrix Quantizations of Phi-3-medium-128k-instruct
|
22 |
+
|
23 |
+
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> pull request <a href="https://github.com/ggerganov/llama.cpp/pull/7225">7225</a> for quantization.
|
24 |
+
|
25 |
+
Original model: https://huggingface.co/microsoft/Phi-3-medium-128k-instruct
|
26 |
+
|
27 |
+
All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)
|
28 |
+
|
29 |
+
## Prompt format
|
30 |
+
|
31 |
+
```
|
32 |
+
<|user|> {prompt}<|end|><|assistant|><|end|>
|
33 |
+
```
|
34 |
+
|
35 |
+
## Download a file (not the whole branch) from below:
|
36 |
+
|
37 |
+
| Filename | Quant type | File Size | Description |
|
38 |
+
| -------- | ---------- | --------- | ----------- |
|
39 |
+
| [Phi-3-medium-128k-instruct-Q8_0.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q8_0.gguf) | Q8_0 | 14.83GB | Extremely high quality, generally unneeded but max available quant. |
|
40 |
+
| [Phi-3-medium-128k-instruct-Q6_K.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q6_K.gguf) | Q6_K | 11.45GB | Very high quality, near perfect, *recommended*. |
|
41 |
+
| [Phi-3-medium-128k-instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q5_K_M.gguf) | Q5_K_M | 10.07GB | High quality, *recommended*. |
|
42 |
+
| [Phi-3-medium-128k-instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q5_K_S.gguf) | Q5_K_S | 9.62GB | High quality, *recommended*. |
|
43 |
+
| [Phi-3-medium-128k-instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q4_K_M.gguf) | Q4_K_M | 8.56GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
44 |
+
| [Phi-3-medium-128k-instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q4_K_S.gguf) | Q4_K_S | 7.95GB | Slightly lower quality with more space savings, *recommended*. |
|
45 |
+
| [Phi-3-medium-128k-instruct-IQ4_NL.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ4_NL.gguf) | IQ4_NL | 7.89GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
|
46 |
+
| [Phi-3-medium-128k-instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ4_XS.gguf) | IQ4_XS | 7.46GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
47 |
+
| [Phi-3-medium-128k-instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q3_K_L.gguf) | Q3_K_L | 7.49GB | Lower quality but usable, good for low RAM availability. |
|
48 |
+
| [Phi-3-medium-128k-instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q3_K_M.gguf) | Q3_K_M | 6.92GB | Even lower quality. |
|
49 |
+
| [Phi-3-medium-128k-instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ3_M.gguf) | IQ3_M | 6.47GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
50 |
+
| [Phi-3-medium-128k-instruct-IQ3_S.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ3_S.gguf) | IQ3_S | 6.06GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
|
51 |
+
| [Phi-3-medium-128k-instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q3_K_S.gguf) | Q3_K_S | 6.06GB | Low quality, not recommended. |
|
52 |
+
| [Phi-3-medium-128k-instruct-IQ3_XS.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ3_XS.gguf) | IQ3_XS | 5.80GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
53 |
+
| [Phi-3-medium-128k-instruct-IQ3_XXS.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ3_XXS.gguf) | IQ3_XXS | 5.45GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
|
54 |
+
| [Phi-3-medium-128k-instruct-Q2_K.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-Q2_K.gguf) | Q2_K | 5.14GB | Very low quality but surprisingly usable. |
|
55 |
+
| [Phi-3-medium-128k-instruct-IQ2_M.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ2_M.gguf) | IQ2_M | 4.71GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
|
56 |
+
| [Phi-3-medium-128k-instruct-IQ2_S.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ2_S.gguf) | IQ2_S | 4.33GB | Very low quality, uses SOTA techniques to be usable. |
|
57 |
+
| [Phi-3-medium-128k-instruct-IQ2_XS.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ2_XS.gguf) | IQ2_XS | 4.12GB | Very low quality, uses SOTA techniques to be usable. |
|
58 |
+
| [Phi-3-medium-128k-instruct-IQ2_XXS.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ2_XXS.gguf) | IQ2_XXS | 3.71GB | Lower quality, uses SOTA techniques to be usable. |
|
59 |
+
| [Phi-3-medium-128k-instruct-IQ1_M.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ1_M.gguf) | IQ1_M | 3.24GB | Extremely low quality, *not* recommended. |
|
60 |
+
| [Phi-3-medium-128k-instruct-IQ1_S.gguf](https://huggingface.co/bartowski/Phi-3-medium-128k-instruct-GGUF/blob/main/Phi-3-medium-128k-instruct-IQ1_S.gguf) | IQ1_S | 2.95GB | Extremely low quality, *not* recommended. |
|
61 |
+
|
62 |
+
## Downloading using huggingface-cli
|
63 |
+
|
64 |
+
First, make sure you have hugginface-cli installed:
|
65 |
+
|
66 |
+
```
|
67 |
+
pip install -U "huggingface_hub[cli]"
|
68 |
+
```
|
69 |
+
|
70 |
+
Then, you can target the specific file you want:
|
71 |
+
|
72 |
+
```
|
73 |
+
huggingface-cli download bartowski/Phi-3-medium-128k-instruct-GGUF --include "Phi-3-medium-128k-instruct-Q4_K_M.gguf" --local-dir ./
|
74 |
+
```
|
75 |
+
|
76 |
+
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:
|
77 |
+
|
78 |
+
```
|
79 |
+
huggingface-cli download bartowski/Phi-3-medium-128k-instruct-GGUF --include "Phi-3-medium-128k-instruct-Q8_0.gguf/*" --local-dir Phi-3-medium-128k-instruct-Q8_0
|
80 |
+
```
|
81 |
+
|
82 |
+
You can either specify a new local-dir (Phi-3-medium-128k-instruct-Q8_0) or download them all in place (./)
|
83 |
+
|
84 |
+
## Which file should I choose?
|
85 |
+
|
86 |
+
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
87 |
+
|
88 |
+
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.
|
89 |
+
|
90 |
+
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.
|
91 |
+
|
92 |
+
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.
|
93 |
+
|
94 |
+
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
95 |
+
|
96 |
+
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.
|
97 |
+
|
98 |
+
If you want to get more into the weeds, you can check out this extremely useful feature chart:
|
99 |
+
|
100 |
+
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
|
101 |
+
|
102 |
+
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.
|
103 |
+
|
104 |
+
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.
|
105 |
+
|
106 |
+
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.
|
107 |
+
|
108 |
+
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
|