Mungert commited on
Commit
dcd79ee
·
verified ·
0 Parent(s):

Super-squash history to reclaim storage

Browse files
.gitattributes ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ granite-3.1-3b-a800m-instruct-f16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ granite-3.1-3b-a800m-instruct-f16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
38
+ granite-3.1-3b-a800m-instruct-bf16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
39
+ granite-3.1-3b-a800m-instruct-f16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
40
+ granite-3.1-3b-a800m-instruct-bf16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
41
+ granite-3.1-3b-a800m-instruct-q2_k_l.gguf filter=lfs diff=lfs merge=lfs -text
42
+ granite-3.1-3b-a800m-instruct-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
43
+ granite-3.1-3b-a800m-instruct-q5_k_l.gguf filter=lfs diff=lfs merge=lfs -text
44
+ granite-3.1-3b-a800m-instruct-q6_k_l.gguf filter=lfs diff=lfs merge=lfs -text
45
+ granite-3.1-3b-a800m-instruct-q2_k_m.gguf filter=lfs diff=lfs merge=lfs -text
46
+ granite-3.1-3b-a800m-instruct-q2_k_s.gguf filter=lfs diff=lfs merge=lfs -text
47
+ granite-3.1-3b-a800m-instruct-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
48
+ granite-3.1-3b-a800m-instruct-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
49
+ granite-3.1-3b-a800m-instruct-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
50
+ granite-3.1-3b-a800m-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
51
+ granite-3.1-3b-a800m-instruct-q6_k_m.gguf filter=lfs diff=lfs merge=lfs -text
52
+ granite-3.1-3b-a800m-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
53
+ granite-3.1-3b-a800m-instruct-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
54
+ granite-3.1-3b-a800m-instruct-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
55
+ granite-3.1-3b-a800m-instruct-q4_0_l.gguf filter=lfs diff=lfs merge=lfs -text
56
+ granite-3.1-3b-a800m-instruct-q4_1_l.gguf filter=lfs diff=lfs merge=lfs -text
57
+ granite-3.1-3b-a800m-instruct-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ granite-3.1-3b-a800m-instruct-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
59
+ granite-3.1-3b-a800m-instruct-q5_0_l.gguf filter=lfs diff=lfs merge=lfs -text
60
+ granite-3.1-3b-a800m-instruct-q5_1_l.gguf filter=lfs diff=lfs merge=lfs -text
61
+ granite-3.1-3b-a800m-instruct-iq3_xs.gguf filter=lfs diff=lfs merge=lfs -text
62
+ granite-3.1-3b-a800m-instruct-iq3_xxs.gguf filter=lfs diff=lfs merge=lfs -text
63
+ granite-3.1-3b-a800m-instruct-iq3_s.gguf filter=lfs diff=lfs merge=lfs -text
64
+ granite-3.1-3b-a800m-instruct-iq3_m.gguf filter=lfs diff=lfs merge=lfs -text
65
+ granite-3.1-3b-a800m-instruct-iq4_xs.gguf filter=lfs diff=lfs merge=lfs -text
66
+ granite-3.1-3b-a800m-instruct-iq4_nl.gguf filter=lfs diff=lfs merge=lfs -text
67
+ granite-3.1-3b-a800m-instruct.imatrix filter=lfs diff=lfs merge=lfs -text
68
+ granite-3.1-3b-a800m-instruct-bf16_q4_k.gguf.tmp filter=lfs diff=lfs merge=lfs -text
69
+ granite-3.1-3b-a800m-instruct-bf16.gguf filter=lfs diff=lfs merge=lfs -text
70
+ granite-3.1-3b-a800m-instruct-f16_q4_k.gguf.tmp filter=lfs diff=lfs merge=lfs -text
71
+ granite-3.1-3b-a800m-instruct-q4_k_l.gguf.tmp filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-generation
3
+ inference: false
4
+ license: apache-2.0
5
+ library_name: transformers
6
+ tags:
7
+ - language
8
+ - granite-3.1
9
+ base_model:
10
+ - ibm-granite/granite-3.1-3b-a800m-base
11
+ ---
12
+
13
+ # <span style="color: #7FFF7F;">granite-3.1-3b-a800m-instruct GGUF Models</span>
14
+
15
+
16
+ ## <span style="color: #7F7FFF;">Model Generation Details</span>
17
+
18
+ This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`0a5a3b5c`](https://github.com/ggerganov/llama.cpp/commit/0a5a3b5cdfd887cf0f8e09d9ff89dee130cfcdde).
19
+
20
+
21
+
22
+
23
+
24
+
25
+ ---
26
+
27
+ <a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
28
+ Click here to get info on choosing the right GGUF model format
29
+ </a>
30
+
31
+ ---
32
+
33
+
34
+
35
+ <!--Begin Original Model Card-->
36
+
37
+
38
+ # Granite-3.1-3B-A800M-Instruct
39
+
40
+ **Model Summary:**
41
+ Granite-3.1-3B-A800M-Instruct is a 3B parameter long-context instruct model finetuned from Granite-3.1-3B-A800M-Base using a combination of open source instruction datasets with permissive license and internally collected synthetic datasets tailored for solving long context problems. This model is developed using a diverse set of techniques with a structured chat format, including supervised finetuning, model alignment using reinforcement learning, and model merging.
42
+
43
+ - **Developers:** Granite Team, IBM
44
+ - **GitHub Repository:** [ibm-granite/granite-3.1-language-models](https://github.com/ibm-granite/granite-3.1-language-models)
45
+ - **Website**: [Granite Docs](https://www.ibm.com/granite/docs/)
46
+ - **Paper:** [Granite 3.1 Language Models (coming soon)](https://huggingface.co/collections/ibm-granite/granite-31-language-models-6751dbbf2f3389bec5c6f02d)
47
+ - **Release Date**: December 18th, 2024
48
+ - **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
49
+
50
+ **Supported Languages:**
51
+ English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 3.1 models for languages beyond these 12 languages.
52
+
53
+ **Intended Use:**
54
+ The model is designed to respond to general instructions and can be used to build AI assistants for multiple domains, including business applications.
55
+
56
+ *Capabilities*
57
+ * Summarization
58
+ * Text classification
59
+ * Text extraction
60
+ * Question-answering
61
+ * Retrieval Augmented Generation (RAG)
62
+ * Code related tasks
63
+ * Function-calling tasks
64
+ * Multilingual dialog use cases
65
+ * Long-context tasks including long document/meeting summarization, long document QA, etc.
66
+
67
+ **Generation:**
68
+ This is a simple example of how to use Granite-3.1-3B-A800M-Instruct model.
69
+
70
+ Install the following libraries:
71
+
72
+ ```shell
73
+ pip install torch torchvision torchaudio
74
+ pip install accelerate
75
+ pip install transformers
76
+ ```
77
+ Then, copy the snippet from the section that is relevant for your use case.
78
+
79
+ ```python
80
+ import torch
81
+ from transformers import AutoModelForCausalLM, AutoTokenizer
82
+
83
+ device = "auto"
84
+ model_path = "ibm-granite/granite-3.1-3b-a800m-Instruct"
85
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
86
+ # drop device_map if running on CPU
87
+ model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
88
+ model.eval()
89
+ # change input text as desired
90
+ chat = [
91
+ { "role": "user", "content": "Please list one IBM Research laboratory located in the United States. You should only output its name and location." },
92
+ ]
93
+ chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
94
+ # tokenize the text
95
+ input_tokens = tokenizer(chat, return_tensors="pt").to(device)
96
+ # generate output tokens
97
+ output = model.generate(**input_tokens,
98
+ max_new_tokens=100)
99
+ # decode output tokens into text
100
+ output = tokenizer.batch_decode(output)
101
+ # print output
102
+ print(output)
103
+ ```
104
+ **Evaluation Results:**
105
+ <table>
106
+ <caption><b>HuggingFace Open LLM Leaderboard V1</b></caption>
107
+ <thead>
108
+ <tr>
109
+ <th style="text-align:left; background-color: #001d6c; color: white;">Models</th>
110
+ <th style="text-align:center; background-color: #001d6c; color: white;">ARC-Challenge</th>
111
+ <th style="text-align:center; background-color: #001d6c; color: white;">Hellaswag</th>
112
+ <th style="text-align:center; background-color: #001d6c; color: white;">MMLU</th>
113
+ <th style="text-align:center; background-color: #001d6c; color: white;">TruthfulQA</th>
114
+ <th style="text-align:center; background-color: #001d6c; color: white;">Winogrande</th>
115
+ <th style="text-align:center; background-color: #001d6c; color: white;">GSM8K</th>
116
+ <th style="text-align:center; background-color: #001d6c; color: white;">Avg</th>
117
+ </tr></thead>
118
+ <tbody>
119
+ <tr>
120
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Granite-3.1-8B-Instruct</td>
121
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">62.62</td>
122
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">84.48</td>
123
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">65.34</td>
124
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">66.23</td>
125
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">75.37</td>
126
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">73.84</td>
127
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">71.31</td>
128
+ </tr>
129
+ <tr>
130
+ <td style="text-align:left; background-color: #FFFFFF; color: #2D2D2D;">Granite-3.1-2B-Instruct</td>
131
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">54.61</td>
132
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">75.14</td>
133
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">55.31</td>
134
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">59.42</td>
135
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">67.48</td>
136
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">52.76</td>
137
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">60.79</td>
138
+ </tr>
139
+ <tr>
140
+ <td style="text-align:left; background-color: #DAE8FF; color: #2D2D2D;">Granite-3.1-3B-A800M-Instruct</td>
141
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">50.42</td>
142
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">73.01</td>
143
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">52.19</td>
144
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">49.71</td>
145
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">64.87</td>
146
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">48.97</td>
147
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">56.53</td>
148
+ </tr>
149
+ <tr>
150
+ <td style="text-align:left; background-color: #FFFFFF; color: #2D2D2D;">Granite-3.1-1B-A400M-Instruct</td>
151
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">42.66</td>
152
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">65.97</td>
153
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">26.13</td>
154
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">46.77</td>
155
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">62.35</td>
156
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">33.88</td>
157
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">46.29</td>
158
+ </tr>
159
+ </tbody></table>
160
+
161
+ <table>
162
+ <caption><b>HuggingFace Open LLM Leaderboard V2</b></caption>
163
+ <thead>
164
+ <tr>
165
+ <th style="text-align:left; background-color: #001d6c; color: white;">Models</th>
166
+ <th style="text-align:center; background-color: #001d6c; color: white;">IFEval</th>
167
+ <th style="text-align:center; background-color: #001d6c; color: white;">BBH</th>
168
+ <th style="text-align:center; background-color: #001d6c; color: white;">MATH Lvl 5</th>
169
+ <th style="text-align:center; background-color: #001d6c; color: white;">GPQA</th>
170
+ <th style="text-align:center; background-color: #001d6c; color: white;">MUSR</th>
171
+ <th style="text-align:center; background-color: #001d6c; color: white;">MMLU-Pro</th>
172
+ <th style="text-align:center; background-color: #001d6c; color: white;">Avg</th>
173
+ </tr></thead>
174
+ <tbody>
175
+ <tr>
176
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Granite-3.1-8B-Instruct</td>
177
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">72.08</td>
178
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">34.09</td>
179
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">21.68</td>
180
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8.28</td>
181
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">19.01</td>
182
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">28.19</td>
183
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">30.55</td>
184
+ </tr>
185
+ <tr>
186
+ <td style="text-align:left; background-color: #FFFFFF; color: #2D2D2D;">Granite-3.1-2B-Instruct</td>
187
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">62.86</td>
188
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">21.82</td>
189
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">11.33</td>
190
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">5.26</td>
191
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">4.87</td>
192
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">20.21</td>
193
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">21.06</td>
194
+ </tr>
195
+ <tr>
196
+ <td style="text-align:left; background-color: #DAE8FF; color: #2D2D2D;">Granite-3.1-3B-A800M-Instruct</td>
197
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">55.16</td>
198
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">16.69</td>
199
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">10.35</td>
200
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">5.15</td>
201
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">2.51</td>
202
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">12.75</td>
203
+ <td style="text-align:center; background-color: #DAE8FF; color: #2D2D2D;">17.1</td>
204
+ </tr>
205
+ <tr>
206
+ <td style="text-align:left; background-color: #FFFFFF; color: #2D2D2D;">Granite-3.1-1B-A400M-Instruct</td>
207
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">46.86</td>
208
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">6.18</td>
209
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">4.08</td>
210
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">0</td>
211
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">0.78</td>
212
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">2.41</td>
213
+ <td style="text-align:center; background-color: #FFFFFF; color: #2D2D2D;">10.05</td>
214
+ </tr>
215
+ </tbody></table>
216
+
217
+ **Model Architecture:**
218
+ Granite-3.1-3B-A800M-Instruct is based on a decoder-only dense transformer architecture. Core components of this architecture are: GQA and RoPE, MLP with SwiGLU, RMSNorm, and shared input/output embeddings.
219
+ <table>
220
+ <thead>
221
+ <tr>
222
+ <th style="text-align:left; background-color: #001d6c; color: white;">Model</th>
223
+ <th style="text-align:center; background-color: #001d6c; color: white;">2B Dense</th>
224
+ <th style="text-align:center; background-color: #001d6c; color: white;">8B Dense</th>
225
+ <th style="text-align:center; background-color: #001d6c; color: white;">1B MoE</th>
226
+ <th style="text-align:center; background-color: #001d6c; color: white;">3B MoE</th>
227
+ </tr></thead>
228
+ <tbody>
229
+ <tr>
230
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Embedding size</td>
231
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">2048</td>
232
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">4096</td>
233
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">1024</td>
234
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">1536</td>
235
+ </tr>
236
+ <tr>
237
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Number of layers</td>
238
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">40</td>
239
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">40</td>
240
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">24</td>
241
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">32</td>
242
+ </tr>
243
+ <tr>
244
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Attention head size</td>
245
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">64</td>
246
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">128</td>
247
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">64</td>
248
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">64</td>
249
+ </tr>
250
+ <tr>
251
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Number of attention heads</td>
252
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">32</td>
253
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">32</td>
254
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">16</td>
255
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">24</td>
256
+ </tr>
257
+ <tr>
258
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Number of KV heads</td>
259
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8</td>
260
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8</td>
261
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8</td>
262
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">8</td>
263
+ </tr>
264
+ <tr>
265
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">MLP hidden size</td>
266
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8192</td>
267
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">12800</td>
268
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">512</td>
269
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">512</td>
270
+ </tr>
271
+ <tr>
272
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">MLP activation</td>
273
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">SwiGLU</td>
274
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">SwiGLU</td>
275
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">SwiGLU</td>
276
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">SwiGLU</td>
277
+ </tr>
278
+ <tr>
279
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Number of experts</td>
280
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">—</td>
281
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">—</td>
282
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">32</td>
283
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">40</td>
284
+ </tr>
285
+ <tr>
286
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">MoE TopK</td>
287
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">—</td>
288
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">—</td>
289
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8</td>
290
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">8</td>
291
+ </tr>
292
+ <tr>
293
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Initialization std</td>
294
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">0.1</td>
295
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">0.1</td>
296
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">0.1</td>
297
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">0.1</td>
298
+ </tr>
299
+ <tr>
300
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Sequence length</td>
301
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">128K</td>
302
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">128K</td>
303
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">128K</td>
304
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">128K</td>
305
+ </tr>
306
+ <tr>
307
+ <td style="text-align:left; background-color: #FFFFFF; color: black;">Position embedding</td>
308
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">RoPE</td>
309
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">RoPE</td>
310
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">RoPE</td>
311
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">RoPE</td>
312
+ </tr>
313
+ <tr>
314
+ <td style="text-align:left; background-color: #FFFFFF; color: black;"># Parameters</td>
315
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">2.5B</td>
316
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8.1B</td>
317
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">1.3B</td>
318
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">3.3B</td>
319
+ </tr>
320
+ <tr>
321
+ <td style="text-align:left; background-color: #FFFFFF; color: black;"># Active parameters</td>
322
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">2.5B</td>
323
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">8.1B</td>
324
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">400M</td>
325
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">800M</td>
326
+ </tr>
327
+ <tr>
328
+ <td style="text-align:left; background-color: #FFFFFF; color: black;"># Training tokens</td>
329
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">12T</td>
330
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">12T</td>
331
+ <td style="text-align:center; background-color: #FFFFFF; color: black;">10T</td>
332
+ <td style="text-align:center; background-color: #DAE8FF; color: black;">10T</td>
333
+ </tr>
334
+ </tbody></table>
335
+
336
+ **Training Data:**
337
+ Overall, our SFT data is largely comprised of three key sources: (1) publicly available datasets with permissive license, (2) internal synthetic data targeting specific capabilities including long-context tasks, and (3) very small amounts of human-curated data. A detailed attribution of datasets can be found in the [Granite 3.0 Technical Report](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/paper.pdf), [Granite 3.1 Technical Report (coming soon)](https://huggingface.co/collections/ibm-granite/granite-31-language-models-6751dbbf2f3389bec5c6f02d), and [Accompanying Author List](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/author-ack.pdf).
338
+
339
+ **Infrastructure:**
340
+ We train Granite 3.1 Language Models using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs.
341
+
342
+ **Ethical Considerations and Limitations:**
343
+ Granite 3.1 Instruct Models are primarily finetuned using instruction-response pairs mostly in English, but also multilingual data covering eleven languages. Although this model can handle multilingual dialog use cases, its performance might not be similar to English tasks. In such case, introducing a small number of examples (few-shot) can help the model in generating more accurate outputs. While this model has been aligned by keeping safety in consideration, the model may in some cases produce inaccurate, biased, or unsafe responses to user prompts. So we urge the community to use this model with proper safety testing and tuning tailored for their specific tasks.
344
+
345
+ **Resources**
346
+ - ⭐️ Learn about the latest updates with Granite: https://www.ibm.com/granite
347
+ - 📄 Get started with tutorials, best practices, and prompt engineering advice: https://www.ibm.com/granite/docs/
348
+ - 💡 Learn about the latest Granite learning resources: https://ibm.biz/granite-learning-resources
349
+
350
+ <!-- ## Citation
351
+ ```
352
+ @misc{granite-models,
353
+ author = {author 1, author2, ...},
354
+ title = {},
355
+ journal = {},
356
+ volume = {},
357
+ year = {2024},
358
+ url = {https://arxiv.org/abs/0000.00000},
359
+ }
360
+ ``` -->
361
+
362
+ <!--End Original Model Card-->
363
+
364
+ ---
365
+
366
+ # <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
367
+
368
+ Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
369
+
370
+ 👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
371
+
372
+
373
+ The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder)
374
+
375
+ 💬 **How to test**:
376
+ Choose an **AI assistant type**:
377
+ - `TurboLLM` (GPT-4.1-mini)
378
+ - `HugLLM` (Hugginface Open-source models)
379
+ - `TestLLM` (Experimental CPU-only)
380
+
381
+ ### **What I’m Testing**
382
+ I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
383
+ - **Function calling** against live network services
384
+ - **How small can a model go** while still handling:
385
+ - Automated **Nmap security scans**
386
+ - **Quantum-readiness checks**
387
+ - **Network Monitoring tasks**
388
+
389
+ 🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
390
+ - ✅ **Zero-configuration setup**
391
+ - ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
392
+ - 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
393
+
394
+ ### **Other Assistants**
395
+ 🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
396
+ - **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
397
+ - **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
398
+ - **Real-time network diagnostics and monitoring**
399
+ - **Security Audits**
400
+ - **Penetration testing** (Nmap/Metasploit)
401
+
402
+ 🔵 **HugLLM** – Latest Open-source models:
403
+ - 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
404
+
405
+ ### 💡 **Example commands you could test**:
406
+ 1. `"Give me info on my websites SSL certificate"`
407
+ 2. `"Check if my server is using quantum safe encyption for communication"`
408
+ 3. `"Run a comprehensive security audit on my server"`
409
+ 4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
410
+
411
+ ### Final Word
412
+
413
+ I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful.
414
+
415
+ If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone.
416
+
417
+ I'm also open to job opportunities or sponsorship.
418
+
419
+ Thank you! 😊
granite-3.1-3b-a800m-instruct-bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:401ab383a5eaa5013d167659ec05004c0e7d42147c95f4e815df989e1d9355f3
3
+ size 6603463648
granite-3.1-3b-a800m-instruct-bf16_q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5bb91a20b39a54e3b498220a037ef01d4c465dcd247d5cba53d817219faf484
3
+ size 3677936608
granite-3.1-3b-a800m-instruct-f16_q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f7b965ba2490ca7e281ecd067a91c5487d4b08cad6a0b6293c265c140841ca5
3
+ size 3677936608
granite-3.1-3b-a800m-instruct-iq3_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05019a5430a4c1787cc4213efeaccb642d04cd51141e5f3fcd75439d1481b420
3
+ size 1450706272
granite-3.1-3b-a800m-instruct-iq3_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84b7063b0de62ff8fc33c1a3423296d84ffa0a4b4042ea0538d8aab2ce156497
3
+ size 1450706272
granite-3.1-3b-a800m-instruct-iq3_xs.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01cd34c78bb5952acad3df1f0090c72b881e60ea810af505e3f15c6b3d39d128
3
+ size 1371178336
granite-3.1-3b-a800m-instruct-iq3_xxs.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70119cd2c9e41cfd41cd3cebe9f4dba893cbee6bf9c54c72af0d008673f2843d
3
+ size 1329497440
granite-3.1-3b-a800m-instruct-iq4_nl.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1cf857b795615bcb1597998b4a24b08090eb9877595eee09340652971630e78
3
+ size 1883883488
granite-3.1-3b-a800m-instruct-iq4_xs.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:110208fd8335469eb574df14adc22dc93eb741f0cd82c4c2d77b5e72134e64b3
3
+ size 1783220192
granite-3.1-3b-a800m-instruct-q2_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96aff7359e99fca18d882cc03db03a717b17caad35e4d82b4e29371c5b99f035
3
+ size 1254442976
granite-3.1-3b-a800m-instruct-q2_k_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0384e949abf527861124e742024c5830cd92d5b71f0ebba1b2118ae97768bff6
3
+ size 1167738208
granite-3.1-3b-a800m-instruct-q3_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fce6f78dd00601669ad940ae05564e2acf279845b64107835b4e2337d97a3a5
3
+ size 1644611552
granite-3.1-3b-a800m-instruct-q3_k_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:980a3bc6abbdf62c520596b81a564e34cc1e130dcea2c1e9f812ff9715ecd536
3
+ size 1534313824
granite-3.1-3b-a800m-instruct-q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:789e082b04ab7646bcfcf788d7f4a184230850e9c2e46582d0cfb80b53216b83
3
+ size 1864418080
granite-3.1-3b-a800m-instruct-q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0896e8d8a8d08c2292895c43417dba690968ef9049f5c806df1399fa3a0eacf3
3
+ size 2070463552
granite-3.1-3b-a800m-instruct-q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a2ee9bb1310eac20d71ded18f5b35ab2000c10dcb1a9bb2ada4a8ac366c1a55
3
+ size 2276509024
granite-3.1-3b-a800m-instruct-q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37fb5677d4997dd73cdef1dfe0d768a5fb71652bbca529507333fbe1ff38d4cb
3
+ size 2482554496
granite-3.1-3b-a800m-instruct-q5_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eec3b3a465cc1aefb3c3fafad335b7da18c89d19388f19fe3a1c09d29893c70c
3
+ size 2424408032
granite-3.1-3b-a800m-instruct-q5_k_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f8a3e04ddfa1eb3b262c211ab334a52be9de2750372f25dc275cb92cef10b8f
3
+ size 2390149088
granite-3.1-3b-a800m-instruct-q6_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f6a76525b14be05320313112dabb3bf059b923c5206a85139af3fb7aad1ae42
3
+ size 2714355680
granite-3.1-3b-a800m-instruct-q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9c1e5fb32397fd44a2b1d9d5469142f1e98d67e2701b9666891c9fc93907d1
3
+ size 3512781568
granite-3.1-3b-a800m-instruct.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fb33a0123fc0055e42be161d5bbbbfc13de561e83bddb9093c94962751a3ab9
3
+ size 18195136