legraphista commited on
Commit
d082f48
β€’
1 Parent(s): d050e88

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +140 -0
README.md ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: nvidia/Llama3-ChatQA-1.5-8B
3
+ inference: false
4
+ language:
5
+ - en
6
+ library_name: gguf
7
+ license: llama3
8
+ pipeline_tag: text-generation
9
+ quantized_by: legraphista
10
+ tags:
11
+ - quantized
12
+ - GGUF
13
+ - imatrix
14
+ - quantization
15
+ - imat
16
+ - imatrix
17
+ - static
18
+ ---
19
+
20
+ # Llama3-ChatQA-1.5-8B-IMat-GGUF
21
+ _Llama.cpp imatrix quantization of nvidia/Llama3-ChatQA-1.5-8B_
22
+
23
+ Original Model: [nvidia/Llama3-ChatQA-1.5-8B](https://huggingface.co/nvidia/Llama3-ChatQA-1.5-8B)
24
+ Original dtype: `FP16` (`float16`)
25
+ Quantized by: llama.cpp [b3003](https://github.com/ggerganov/llama.cpp/releases/tag/b3003)
26
+ IMatrix dataset: [here](https://gist.githubusercontent.com/legraphista/d6d93f1a254bcfc58e0af3777eaec41e/raw/d380e7002cea4a51c33fffd47db851942754e7cc/imatrix.calibration.medium.raw)
27
+
28
+ - [Llama3-ChatQA-1.5-8B-IMat-GGUF](#llama3-chatqa-1-5-8b-imat-gguf)
29
+ - [Files](#files)
30
+ - [IMatrix](#imatrix)
31
+ - [Common Quants](#common-quants)
32
+ - [All Quants](#all-quants)
33
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
34
+ - [Inference](#inference)
35
+ - [Simple chat template](#simple-chat-template)
36
+ - [Llama.cpp](#llama-cpp)
37
+ - [FAQ](#faq)
38
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
39
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
40
+
41
+ ---
42
+
43
+ ## Files
44
+
45
+ ### IMatrix
46
+ Status: ⏳ Processing
47
+ Link: [here](https://huggingface.co/legraphista/Llama3-ChatQA-1.5-8B-IMat-GGUF/blob/main/imatrix.dat)
48
+
49
+ ### Common Quants
50
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
51
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
52
+ | Llama3-ChatQA-1.5-8B.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ No | -
53
+ | Llama3-ChatQA-1.5-8B.Q6_K | Q6_K | - | ⏳ Processing | βšͺ No | -
54
+ | Llama3-ChatQA-1.5-8B.Q4_K | Q4_K | - | ⏳ Processing | 🟒 Yes | -
55
+ | Llama3-ChatQA-1.5-8B.Q3_K | Q3_K | - | ⏳ Processing | 🟒 Yes | -
56
+ | Llama3-ChatQA-1.5-8B.Q2_K | Q2_K | - | ⏳ Processing | 🟒 Yes | -
57
+
58
+
59
+ ### All Quants
60
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
61
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
62
+ | Llama3-ChatQA-1.5-8B.FP16 | F16 | - | ⏳ Processing | βšͺ No | -
63
+ | Llama3-ChatQA-1.5-8B.Q5_K | Q5_K | - | ⏳ Processing | βšͺ No | -
64
+ | Llama3-ChatQA-1.5-8B.Q5_K_S | Q5_K_S | - | ⏳ Processing | βšͺ No | -
65
+ | Llama3-ChatQA-1.5-8B.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟒 Yes | -
66
+ | Llama3-ChatQA-1.5-8B.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟒 Yes | -
67
+ | Llama3-ChatQA-1.5-8B.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟒 Yes | -
68
+ | Llama3-ChatQA-1.5-8B.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟒 Yes | -
69
+ | Llama3-ChatQA-1.5-8B.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟒 Yes | -
70
+ | Llama3-ChatQA-1.5-8B.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟒 Yes | -
71
+ | Llama3-ChatQA-1.5-8B.IQ3_M | IQ3_M | - | ⏳ Processing | 🟒 Yes | -
72
+ | Llama3-ChatQA-1.5-8B.IQ3_S | IQ3_S | - | ⏳ Processing | 🟒 Yes | -
73
+ | Llama3-ChatQA-1.5-8B.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟒 Yes | -
74
+ | Llama3-ChatQA-1.5-8B.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟒 Yes | -
75
+ | Llama3-ChatQA-1.5-8B.IQ2_M | IQ2_M | - | ⏳ Processing | 🟒 Yes | -
76
+ | Llama3-ChatQA-1.5-8B.IQ2_S | IQ2_S | - | ⏳ Processing | 🟒 Yes | -
77
+ | Llama3-ChatQA-1.5-8B.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟒 Yes | -
78
+ | Llama3-ChatQA-1.5-8B.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟒 Yes | -
79
+ | Llama3-ChatQA-1.5-8B.IQ1_M | IQ1_M | - | ⏳ Processing | 🟒 Yes | -
80
+ | Llama3-ChatQA-1.5-8B.IQ1_S | IQ1_S | - | ⏳ Processing | 🟒 Yes | -
81
+
82
+
83
+ ## Downloading using huggingface-cli
84
+ If you do not have hugginface-cli installed:
85
+ ```
86
+ pip install -U "huggingface_hub[cli]"
87
+ ```
88
+ Download the specific file you want:
89
+ ```
90
+ huggingface-cli download legraphista/Llama3-ChatQA-1.5-8B-IMat-GGUF --include "Llama3-ChatQA-1.5-8B.Q8_0.gguf" --local-dir ./
91
+ ```
92
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
93
+ ```
94
+ huggingface-cli download legraphista/Llama3-ChatQA-1.5-8B-IMat-GGUF --include "Llama3-ChatQA-1.5-8B.Q8_0/*" --local-dir Llama3-ChatQA-1.5-8B.Q8_0
95
+ # see FAQ for merging GGUF's
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Inference
101
+
102
+ ### Simple chat template
103
+ ```
104
+ <|begin_of_text|>System: This is a chat between a user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions based on the context. The assistant should also indicate when the answer cannot be found in the context.
105
+
106
+ User: Can you provide ways to eat combinations of bananas and dragonfruits?
107
+
108
+ Assistant: Sure! Here are some ways to eat bananas and dragonfruits together:
109
+ 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey.
110
+ 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey.
111
+
112
+ User: What about solving an 2x + 3 = 7 equation?
113
+
114
+ Assistant:
115
+ ```
116
+
117
+ ### Llama.cpp
118
+ ```
119
+ llama.cpp/main -m Llama3-ChatQA-1.5-8B.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
120
+ ```
121
+
122
+ ---
123
+
124
+ ## FAQ
125
+
126
+ ### Why is the IMatrix not applied everywhere?
127
+ 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).
128
+
129
+ ### How do I merge a split GGUF?
130
+ 1. Make sure you have `gguf-split` available
131
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
132
+ - Download the appropriate zip for your system from the latest release
133
+ - Unzip the archive and you should be able to find `gguf-split`
134
+ 2. Locate your GGUF chunks folder (ex: `Llama3-ChatQA-1.5-8B.Q8_0`)
135
+ 3. Run `gguf-split --merge Llama3-ChatQA-1.5-8B.Q8_0/Llama3-ChatQA-1.5-8B.Q8_0-00001-of-XXXXX.gguf Llama3-ChatQA-1.5-8B.Q8_0.gguf`
136
+ - Make sure to point `gguf-split` to the first chunk of the split.
137
+
138
+ ---
139
+
140
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!