legraphista commited on
Commit
9bffc08
β€’
1 Parent(s): 6f9b2a4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +101 -0
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/Phi-3-medium-4k-instruct
3
+ inference: false
4
+ language:
5
+ - multilingual
6
+ library_name: gguf
7
+ license: mit
8
+ license_link: https://huggingface.co/microsoft/Phi-3-medium-4k-instruct/resolve/main/LICENSE
9
+ pipeline_tag: text-generation
10
+ quantized_by: legraphista
11
+ tags:
12
+ - quantized
13
+ - GGUF
14
+ - imatrix
15
+ - quantization
16
+ - imat
17
+ - imatrix
18
+ - static
19
+ ---
20
+
21
+ # Phi-3-medium-4k-instruct-IMat-GGUF
22
+ _Llama.cpp imatrix quantization of microsoft/Phi-3-medium-4k-instruct_
23
+
24
+ Original Model: [microsoft/Phi-3-medium-4k-instruct](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct)
25
+ Original dtype: `BF16` (`bfloat16`)
26
+ Quantized by: llama.cpp [b2998](https://github.com/ggerganov/llama.cpp/releases/tag/b2998)
27
+ IMatrix dataset: [here](https://gist.githubusercontent.com/legraphista/d6d93f1a254bcfc58e0af3777eaec41e/raw/d380e7002cea4a51c33fffd47db851942754e7cc/imatrix.calibration.medium.raw)
28
+
29
+ ## Files
30
+
31
+ ### IMatrix
32
+ Status: ⏳ Processing
33
+ Link: [here](https://huggingface.co/legraphista/Phi-3-medium-4k-instruct-IMat-GGUF/blob/main/imatrix.dat)
34
+
35
+ ### Common Quants
36
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
37
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
38
+ | Phi-3-medium-4k-instruct.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ No | -
39
+ | Phi-3-medium-4k-instruct.Q6_K | Q6_K | - | ⏳ Processing | βšͺ No | -
40
+ | Phi-3-medium-4k-instruct.Q4_K | Q4_K | - | ⏳ Processing | 🟒 Yes | -
41
+ | Phi-3-medium-4k-instruct.Q3_K | Q3_K | - | ⏳ Processing | 🟒 Yes | -
42
+ | Phi-3-medium-4k-instruct.Q2_K | Q2_K | - | ⏳ Processing | 🟒 Yes | -
43
+
44
+
45
+ ### All Quants
46
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
47
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
48
+ | Phi-3-medium-4k-instruct.FP16 | F16 | - | ⏳ Processing | βšͺ No | -
49
+ | Phi-3-medium-4k-instruct.BF16 | BF16 | - | ⏳ Processing | βšͺ No | -
50
+ | Phi-3-medium-4k-instruct.Q5_K | Q5_K | - | ⏳ Processing | βšͺ No | -
51
+ | Phi-3-medium-4k-instruct.Q5_K_S | Q5_K_S | - | ⏳ Processing | βšͺ No | -
52
+ | Phi-3-medium-4k-instruct.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟒 Yes | -
53
+ | Phi-3-medium-4k-instruct.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟒 Yes | -
54
+ | Phi-3-medium-4k-instruct.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟒 Yes | -
55
+ | Phi-3-medium-4k-instruct.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟒 Yes | -
56
+ | Phi-3-medium-4k-instruct.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟒 Yes | -
57
+ | Phi-3-medium-4k-instruct.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟒 Yes | -
58
+ | Phi-3-medium-4k-instruct.IQ3_M | IQ3_M | - | ⏳ Processing | 🟒 Yes | -
59
+ | Phi-3-medium-4k-instruct.IQ3_S | IQ3_S | - | ⏳ Processing | 🟒 Yes | -
60
+ | Phi-3-medium-4k-instruct.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟒 Yes | -
61
+ | Phi-3-medium-4k-instruct.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟒 Yes | -
62
+ | Phi-3-medium-4k-instruct.IQ2_M | IQ2_M | - | ⏳ Processing | 🟒 Yes | -
63
+ | Phi-3-medium-4k-instruct.IQ2_S | IQ2_S | - | ⏳ Processing | 🟒 Yes | -
64
+ | Phi-3-medium-4k-instruct.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟒 Yes | -
65
+ | Phi-3-medium-4k-instruct.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟒 Yes | -
66
+ | Phi-3-medium-4k-instruct.IQ1_M | IQ1_M | - | ⏳ Processing | 🟒 Yes | -
67
+ | Phi-3-medium-4k-instruct.IQ1_S | IQ1_S | - | ⏳ Processing | 🟒 Yes | -
68
+
69
+
70
+ ## Downloading using huggingface-cli
71
+ First, make sure you have hugginface-cli installed:
72
+ ```
73
+ pip install -U "huggingface_hub[cli]"
74
+ ```
75
+ Then, you can target the specific file you want:
76
+ ```
77
+ huggingface-cli download legraphista/Phi-3-medium-4k-instruct-IMat-GGUF --include "Phi-3-medium-4k-instruct.Q8_0.gguf" --local-dir ./
78
+ ```
79
+ 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:
80
+ ```
81
+ huggingface-cli download legraphista/Phi-3-medium-4k-instruct-IMat-GGUF --include "Phi-3-medium-4k-instruct.Q8_0/*" --local-dir Phi-3-medium-4k-instruct.Q8_0
82
+ # see FAQ for merging GGUF's
83
+ ```
84
+
85
+ ## FAQ
86
+
87
+ ### Why is the IMatrix not applied everywhere?
88
+ According to [this investigation](https://www.reddit.com/r/LocalLLaMA/comments/1993iro/ggufs_quants_can_punch_above_their_weights_now/), it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).
89
+
90
+ ### How do I merge a split GGUF?
91
+ 1. Make sure you have `gguf-split` available
92
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
93
+ - Download the appropriate zip for your system from the latest release
94
+ - Unzip the archive and you should be able to find `gguf-split`
95
+ 2. Locate your GGUF chunks folder (ex: `Phi-3-medium-4k-instruct.Q8_0`)
96
+ 3. Run `gguf-split --merge Phi-3-medium-4k-instruct.Q8_0/Phi-3-medium-4k-instruct.Q8_0-00001-of-XXXXX.gguf Phi-3-medium-4k-instruct.Q8_0.gguf`
97
+ - Make sure to point `gguf-split` to the first chunk of the split.
98
+
99
+ ---
100
+
101
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!