Commit
·
d2bf3f1
verified
·
0
Parent(s):
Super-squash history to reclaim storage
Browse files- .gitattributes +77 -0
- README.md +368 -0
- granite-8b-code-instruct-4k-bf16.gguf +3 -0
- granite-8b-code-instruct-4k-bf16_q8_0.gguf +3 -0
- granite-8b-code-instruct-4k-f16_q8_0.gguf +3 -0
- granite-8b-code-instruct-4k-iq2_m.gguf +3 -0
- granite-8b-code-instruct-4k-iq2_s.gguf +3 -0
- granite-8b-code-instruct-4k-iq2_xs.gguf +3 -0
- granite-8b-code-instruct-4k-iq2_xxs.gguf +3 -0
- granite-8b-code-instruct-4k-iq3_m.gguf +3 -0
- granite-8b-code-instruct-4k-iq3_s.gguf +3 -0
- granite-8b-code-instruct-4k-iq3_xs.gguf +3 -0
- granite-8b-code-instruct-4k-iq3_xxs.gguf +3 -0
- granite-8b-code-instruct-4k-iq4_nl.gguf +3 -0
- granite-8b-code-instruct-4k-iq4_xs.gguf +3 -0
- granite-8b-code-instruct-4k-q2_k_m.gguf +3 -0
- granite-8b-code-instruct-4k-q2_k_s.gguf +3 -0
- granite-8b-code-instruct-4k-q3_k_m.gguf +3 -0
- granite-8b-code-instruct-4k-q3_k_s.gguf +3 -0
- granite-8b-code-instruct-4k-q4_0.gguf +3 -0
- granite-8b-code-instruct-4k-q4_1.gguf +3 -0
- granite-8b-code-instruct-4k-q4_k_m.gguf +3 -0
- granite-8b-code-instruct-4k-q4_k_s.gguf +3 -0
- granite-8b-code-instruct-4k-q5_0.gguf +3 -0
- granite-8b-code-instruct-4k-q5_1.gguf +3 -0
- granite-8b-code-instruct-4k-q5_k_m.gguf +3 -0
- granite-8b-code-instruct-4k-q5_k_s.gguf +3 -0
- granite-8b-code-instruct-4k-q6_k_m.gguf +3 -0
- granite-8b-code-instruct-4k-q8_0.gguf +3 -0
- granite-8b-code-instruct-4k.imatrix +3 -0
.gitattributes
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-8b-code-instruct-4k-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
granite-8b-code-instruct-4k-f16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
granite-8b-code-instruct-4k-bf16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
granite-8b-code-instruct-4k-f16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
granite-8b-code-instruct-4k-bf16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
granite-8b-code-instruct-4k-f16_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
granite-8b-code-instruct-4k-bf16_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
granite-8b-code-instruct-4k-q2_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
granite-8b-code-instruct-4k-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
granite-8b-code-instruct-4k-q4_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
granite-8b-code-instruct-4k-q5_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
granite-8b-code-instruct-4k-q6_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
48 |
+
granite-8b-code-instruct-4k-q2_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
49 |
+
granite-8b-code-instruct-4k-q2_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
50 |
+
granite-8b-code-instruct-4k-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
51 |
+
granite-8b-code-instruct-4k-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
52 |
+
granite-8b-code-instruct-4k-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
53 |
+
granite-8b-code-instruct-4k-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
54 |
+
granite-8b-code-instruct-4k-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
55 |
+
granite-8b-code-instruct-4k-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
56 |
+
granite-8b-code-instruct-4k-q6_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
57 |
+
granite-8b-code-instruct-4k-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
58 |
+
granite-8b-code-instruct-4k-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
59 |
+
granite-8b-code-instruct-4k-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
60 |
+
granite-8b-code-instruct-4k-q4_0_l.gguf filter=lfs diff=lfs merge=lfs -text
|
61 |
+
granite-8b-code-instruct-4k-q4_1_l.gguf filter=lfs diff=lfs merge=lfs -text
|
62 |
+
granite-8b-code-instruct-4k-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
63 |
+
granite-8b-code-instruct-4k-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
64 |
+
granite-8b-code-instruct-4k-q5_0_l.gguf filter=lfs diff=lfs merge=lfs -text
|
65 |
+
granite-8b-code-instruct-4k-q5_1_l.gguf filter=lfs diff=lfs merge=lfs -text
|
66 |
+
granite-8b-code-instruct-4k-iq2_xs.gguf filter=lfs diff=lfs merge=lfs -text
|
67 |
+
granite-8b-code-instruct-4k-iq2_xxs.gguf filter=lfs diff=lfs merge=lfs -text
|
68 |
+
granite-8b-code-instruct-4k-iq2_s.gguf filter=lfs diff=lfs merge=lfs -text
|
69 |
+
granite-8b-code-instruct-4k-iq2_m.gguf filter=lfs diff=lfs merge=lfs -text
|
70 |
+
granite-8b-code-instruct-4k-iq3_xs.gguf filter=lfs diff=lfs merge=lfs -text
|
71 |
+
granite-8b-code-instruct-4k-iq3_xxs.gguf filter=lfs diff=lfs merge=lfs -text
|
72 |
+
granite-8b-code-instruct-4k-iq3_s.gguf filter=lfs diff=lfs merge=lfs -text
|
73 |
+
granite-8b-code-instruct-4k-iq3_m.gguf filter=lfs diff=lfs merge=lfs -text
|
74 |
+
granite-8b-code-instruct-4k-iq4_xs.gguf filter=lfs diff=lfs merge=lfs -text
|
75 |
+
granite-8b-code-instruct-4k-iq4_nl.gguf filter=lfs diff=lfs merge=lfs -text
|
76 |
+
granite-8b-code-instruct-4k.imatrix filter=lfs diff=lfs merge=lfs -text
|
77 |
+
granite-8b-code-instruct-4k-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,368 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-generation
|
3 |
+
base_model: ibm-granite/granite-8b-code-base-4k
|
4 |
+
inference: false
|
5 |
+
license: apache-2.0
|
6 |
+
datasets:
|
7 |
+
- bigcode/commitpackft
|
8 |
+
- TIGER-Lab/MathInstruct
|
9 |
+
- meta-math/MetaMathQA
|
10 |
+
- glaiveai/glaive-code-assistant-v3
|
11 |
+
- glaive-function-calling-v2
|
12 |
+
- bugdaryan/sql-create-context-instruction
|
13 |
+
- garage-bAInd/Open-Platypus
|
14 |
+
- nvidia/HelpSteer
|
15 |
+
metrics:
|
16 |
+
- code_eval
|
17 |
+
library_name: transformers
|
18 |
+
tags:
|
19 |
+
- code
|
20 |
+
- granite
|
21 |
+
model-index:
|
22 |
+
- name: granite-8b-code-instruct-4k
|
23 |
+
results:
|
24 |
+
- task:
|
25 |
+
type: text-generation
|
26 |
+
dataset:
|
27 |
+
type: bigcode/humanevalpack
|
28 |
+
name: HumanEvalSynthesis(Python)
|
29 |
+
metrics:
|
30 |
+
- name: pass@1
|
31 |
+
type: pass@1
|
32 |
+
value: 57.9
|
33 |
+
veriefied: false
|
34 |
+
- task:
|
35 |
+
type: text-generation
|
36 |
+
dataset:
|
37 |
+
type: bigcode/humanevalpack
|
38 |
+
name: HumanEvalSynthesis(JavaScript)
|
39 |
+
metrics:
|
40 |
+
- name: pass@1
|
41 |
+
type: pass@1
|
42 |
+
value: 52.4
|
43 |
+
veriefied: false
|
44 |
+
- task:
|
45 |
+
type: text-generation
|
46 |
+
dataset:
|
47 |
+
type: bigcode/humanevalpack
|
48 |
+
name: HumanEvalSynthesis(Java)
|
49 |
+
metrics:
|
50 |
+
- name: pass@1
|
51 |
+
type: pass@1
|
52 |
+
value: 58.5
|
53 |
+
veriefied: false
|
54 |
+
- task:
|
55 |
+
type: text-generation
|
56 |
+
dataset:
|
57 |
+
type: bigcode/humanevalpack
|
58 |
+
name: HumanEvalSynthesis(Go)
|
59 |
+
metrics:
|
60 |
+
- name: pass@1
|
61 |
+
type: pass@1
|
62 |
+
value: 43.3
|
63 |
+
veriefied: false
|
64 |
+
- task:
|
65 |
+
type: text-generation
|
66 |
+
dataset:
|
67 |
+
type: bigcode/humanevalpack
|
68 |
+
name: HumanEvalSynthesis(C++)
|
69 |
+
metrics:
|
70 |
+
- name: pass@1
|
71 |
+
type: pass@1
|
72 |
+
value: 48.2
|
73 |
+
veriefied: false
|
74 |
+
- task:
|
75 |
+
type: text-generation
|
76 |
+
dataset:
|
77 |
+
type: bigcode/humanevalpack
|
78 |
+
name: HumanEvalSynthesis(Rust)
|
79 |
+
metrics:
|
80 |
+
- name: pass@1
|
81 |
+
type: pass@1
|
82 |
+
value: 37.2
|
83 |
+
veriefied: false
|
84 |
+
- task:
|
85 |
+
type: text-generation
|
86 |
+
dataset:
|
87 |
+
type: bigcode/humanevalpack
|
88 |
+
name: HumanEvalExplain(Python)
|
89 |
+
metrics:
|
90 |
+
- name: pass@1
|
91 |
+
type: pass@1
|
92 |
+
value: 53.0
|
93 |
+
veriefied: false
|
94 |
+
- task:
|
95 |
+
type: text-generation
|
96 |
+
dataset:
|
97 |
+
type: bigcode/humanevalpack
|
98 |
+
name: HumanEvalExplain(JavaScript)
|
99 |
+
metrics:
|
100 |
+
- name: pass@1
|
101 |
+
type: pass@1
|
102 |
+
value: 42.7
|
103 |
+
veriefied: false
|
104 |
+
- task:
|
105 |
+
type: text-generation
|
106 |
+
dataset:
|
107 |
+
type: bigcode/humanevalpack
|
108 |
+
name: HumanEvalExplain(Java)
|
109 |
+
metrics:
|
110 |
+
- name: pass@1
|
111 |
+
type: pass@1
|
112 |
+
value: 52.4
|
113 |
+
veriefied: false
|
114 |
+
- task:
|
115 |
+
type: text-generation
|
116 |
+
dataset:
|
117 |
+
type: bigcode/humanevalpack
|
118 |
+
name: HumanEvalExplain(Go)
|
119 |
+
metrics:
|
120 |
+
- name: pass@1
|
121 |
+
type: pass@1
|
122 |
+
value: 36.6
|
123 |
+
veriefied: false
|
124 |
+
- task:
|
125 |
+
type: text-generation
|
126 |
+
dataset:
|
127 |
+
type: bigcode/humanevalpack
|
128 |
+
name: HumanEvalExplain(C++)
|
129 |
+
metrics:
|
130 |
+
- name: pass@1
|
131 |
+
type: pass@1
|
132 |
+
value: 43.9
|
133 |
+
veriefied: false
|
134 |
+
- task:
|
135 |
+
type: text-generation
|
136 |
+
dataset:
|
137 |
+
type: bigcode/humanevalpack
|
138 |
+
name: HumanEvalExplain(Rust)
|
139 |
+
metrics:
|
140 |
+
- name: pass@1
|
141 |
+
type: pass@1
|
142 |
+
value: 16.5
|
143 |
+
veriefied: false
|
144 |
+
- task:
|
145 |
+
type: text-generation
|
146 |
+
dataset:
|
147 |
+
type: bigcode/humanevalpack
|
148 |
+
name: HumanEvalFix(Python)
|
149 |
+
metrics:
|
150 |
+
- name: pass@1
|
151 |
+
type: pass@1
|
152 |
+
value: 39.6
|
153 |
+
veriefied: false
|
154 |
+
- task:
|
155 |
+
type: text-generation
|
156 |
+
dataset:
|
157 |
+
type: bigcode/humanevalpack
|
158 |
+
name: HumanEvalFix(JavaScript)
|
159 |
+
metrics:
|
160 |
+
- name: pass@1
|
161 |
+
type: pass@1
|
162 |
+
value: 40.9
|
163 |
+
veriefied: false
|
164 |
+
- task:
|
165 |
+
type: text-generation
|
166 |
+
dataset:
|
167 |
+
type: bigcode/humanevalpack
|
168 |
+
name: HumanEvalFix(Java)
|
169 |
+
metrics:
|
170 |
+
- name: pass@1
|
171 |
+
type: pass@1
|
172 |
+
value: 48.2
|
173 |
+
veriefied: false
|
174 |
+
- task:
|
175 |
+
type: text-generation
|
176 |
+
dataset:
|
177 |
+
type: bigcode/humanevalpack
|
178 |
+
name: HumanEvalFix(Go)
|
179 |
+
metrics:
|
180 |
+
- name: pass@1
|
181 |
+
type: pass@1
|
182 |
+
value: 41.5
|
183 |
+
veriefied: false
|
184 |
+
- task:
|
185 |
+
type: text-generation
|
186 |
+
dataset:
|
187 |
+
type: bigcode/humanevalpack
|
188 |
+
name: HumanEvalFix(C++)
|
189 |
+
metrics:
|
190 |
+
- name: pass@1
|
191 |
+
type: pass@1
|
192 |
+
value: 39.0
|
193 |
+
veriefied: false
|
194 |
+
- task:
|
195 |
+
type: text-generation
|
196 |
+
dataset:
|
197 |
+
type: bigcode/humanevalpack
|
198 |
+
name: HumanEvalFix(Rust)
|
199 |
+
metrics:
|
200 |
+
- name: pass@1
|
201 |
+
type: pass@1
|
202 |
+
value: 32.9
|
203 |
+
veriefied: false
|
204 |
+
---
|
205 |
+
|
206 |
+
# <span style="color: #7FFF7F;">granite-8b-code-instruct-4k GGUF Models</span>
|
207 |
+
|
208 |
+
|
209 |
+
## <span style="color: #7F7FFF;">Model Generation Details</span>
|
210 |
+
|
211 |
+
This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`0a5a3b5c`](https://github.com/ggerganov/llama.cpp/commit/0a5a3b5cdfd887cf0f8e09d9ff89dee130cfcdde).
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
---
|
218 |
+
|
219 |
+
## <span style="color: #7FFF7F;">Quantization Beyond the IMatrix</span>
|
220 |
+
|
221 |
+
I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
|
222 |
+
|
223 |
+
In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the `--tensor-type` option in `llama.cpp` to manually "bump" important layers to higher precision. You can see the implementation here:
|
224 |
+
👉 [Layer bumping with llama.cpp](https://github.com/Mungert69/GGUFModelBuilder/blob/main/model-converter/tensor_list_builder.py)
|
225 |
+
|
226 |
+
While this does increase model file size, it significantly improves precision for a given quantization level.
|
227 |
+
|
228 |
+
### **I'd love your feedback—have you tried this? How does it perform for you?**
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
|
233 |
+
---
|
234 |
+
|
235 |
+
<a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
|
236 |
+
Click here to get info on choosing the right GGUF model format
|
237 |
+
</a>
|
238 |
+
|
239 |
+
---
|
240 |
+
|
241 |
+
|
242 |
+
|
243 |
+
<!--Begin Original Model Card-->
|
244 |
+
|
245 |
+
|
246 |
+

|
247 |
+
|
248 |
+
# Granite-8B-Code-Instruct-4K
|
249 |
+
|
250 |
+
## Model Summary
|
251 |
+
**Granite-8B-Code-Instruct-4K** is a 8B parameter model fine tuned from *Granite-8B-Code-Base-4K* on a combination of **permissively licensed** instruction data to enhance instruction following capabilities including logical reasoning and problem-solving skills.
|
252 |
+
|
253 |
+
- **Developers:** IBM Research
|
254 |
+
- **GitHub Repository:** [ibm-granite/granite-code-models](https://github.com/ibm-granite/granite-code-models)
|
255 |
+
- **Paper:** [Granite Code Models: A Family of Open Foundation Models for Code Intelligence](https://arxiv.org/abs/2405.04324)
|
256 |
+
- **Release Date**: May 6th, 2024
|
257 |
+
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0).
|
258 |
+
|
259 |
+
## Usage
|
260 |
+
### Intended use
|
261 |
+
The model is designed to respond to coding related instructions and can be used to build coding assistants.
|
262 |
+
|
263 |
+
<!-- TO DO: Check starcoder2 instruct code example that includes the template https://huggingface.co/bigcode/starcoder2-15b-instruct-v0.1 -->
|
264 |
+
|
265 |
+
### Generation
|
266 |
+
This is a simple example of how to use **Granite-8B-Code-Instruct-4K** model.
|
267 |
+
|
268 |
+
```python
|
269 |
+
import torch
|
270 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
271 |
+
device = "cuda" # or "cpu"
|
272 |
+
model_path = "ibm-granite/granite-8b-code-instruct-4k"
|
273 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
274 |
+
# drop device_map if running on CPU
|
275 |
+
model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
|
276 |
+
model.eval()
|
277 |
+
# change input text as desired
|
278 |
+
chat = [
|
279 |
+
{ "role": "user", "content": "Write a code to find the maximum value in a list of numbers." },
|
280 |
+
]
|
281 |
+
chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
|
282 |
+
# tokenize the text
|
283 |
+
input_tokens = tokenizer(chat, return_tensors="pt")
|
284 |
+
# transfer tokenized inputs to the device
|
285 |
+
for i in input_tokens:
|
286 |
+
input_tokens[i] = input_tokens[i].to(device)
|
287 |
+
# generate output tokens
|
288 |
+
output = model.generate(**input_tokens, max_new_tokens=100)
|
289 |
+
# decode output tokens into text
|
290 |
+
output = tokenizer.batch_decode(output)
|
291 |
+
# loop over the batch to print, in this example the batch size is 1
|
292 |
+
for i in output:
|
293 |
+
print(i)
|
294 |
+
```
|
295 |
+
|
296 |
+
<!-- TO DO: Check this part -->
|
297 |
+
## Training Data
|
298 |
+
Granite Code Instruct models are trained on the following types of data.
|
299 |
+
* Code Commits Datasets: we sourced code commits data from the [CommitPackFT](https://huggingface.co/datasets/bigcode/commitpackft) dataset, a filtered version of the full CommitPack dataset. From CommitPackFT dataset, we only consider data for 92 programming languages. Our inclusion criteria boils down to selecting programming languages common across CommitPackFT and the 116 languages that we considered to pretrain the code-base model (*Granite-8B-Code-Base*).
|
300 |
+
* Math Datasets: We consider two high-quality math datasets, [MathInstruct](https://huggingface.co/datasets/TIGER-Lab/MathInstruct) and [MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA). Due to license issues, we filtered out GSM8K-RFT and Camel-Math from MathInstruct dataset.
|
301 |
+
* Code Instruction Datasets: We use [Glaive-Code-Assistant-v3](https://huggingface.co/datasets/glaiveai/glaive-code-assistant-v3), [Glaive-Function-Calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2), [NL2SQL11](https://huggingface.co/datasets/bugdaryan/sql-create-context-instruction) and a small collection of synthetic API calling datasets.
|
302 |
+
* Language Instruction Datasets: We include high-quality datasets such as [HelpSteer](https://huggingface.co/datasets/nvidia/HelpSteer) and an open license-filtered version of [Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus). We also include a collection of hardcoded prompts to ensure our model generates correct outputs given inquiries about its name or developers.
|
303 |
+
|
304 |
+
## Infrastructure
|
305 |
+
We train the Granite Code models using two of IBM's super computing clusters, namely Vela and Blue Vela, both outfitted with NVIDIA A100 and H100 GPUs respectively. These clusters provide a scalable and efficient infrastructure for training our models over thousands of GPUs.
|
306 |
+
|
307 |
+
## Ethical Considerations and Limitations
|
308 |
+
Granite code instruct models are primarily finetuned using instruction-response pairs across a specific set of programming languages. Thus, their performance may be limited with out-of-domain programming languages. In this situation, it is beneficial providing few-shot examples to steer the model's output. Moreover, developers should perform safety testing and target-specific tuning before deploying these models on critical applications. The model also inherits ethical considerations and limitations from its base model. For more information, please refer to *[Granite-8B-Code-Base-4K](https://huggingface.co/ibm-granite/granite-8b-code-base-4k)* model card.
|
309 |
+
|
310 |
+
|
311 |
+
<!--End Original Model Card-->
|
312 |
+
|
313 |
+
---
|
314 |
+
|
315 |
+
# <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
|
316 |
+
|
317 |
+
Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
|
318 |
+
|
319 |
+
👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
|
320 |
+
|
321 |
+
|
322 |
+
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)
|
323 |
+
|
324 |
+
💬 **How to test**:
|
325 |
+
Choose an **AI assistant type**:
|
326 |
+
- `TurboLLM` (GPT-4.1-mini)
|
327 |
+
- `HugLLM` (Hugginface Open-source models)
|
328 |
+
- `TestLLM` (Experimental CPU-only)
|
329 |
+
|
330 |
+
### **What I’m Testing**
|
331 |
+
I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
|
332 |
+
- **Function calling** against live network services
|
333 |
+
- **How small can a model go** while still handling:
|
334 |
+
- Automated **Nmap security scans**
|
335 |
+
- **Quantum-readiness checks**
|
336 |
+
- **Network Monitoring tasks**
|
337 |
+
|
338 |
+
🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
|
339 |
+
- ✅ **Zero-configuration setup**
|
340 |
+
- ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
|
341 |
+
- 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
|
342 |
+
|
343 |
+
### **Other Assistants**
|
344 |
+
🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
|
345 |
+
- **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
|
346 |
+
- **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
|
347 |
+
- **Real-time network diagnostics and monitoring**
|
348 |
+
- **Security Audits**
|
349 |
+
- **Penetration testing** (Nmap/Metasploit)
|
350 |
+
|
351 |
+
🔵 **HugLLM** – Latest Open-source models:
|
352 |
+
- 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
|
353 |
+
|
354 |
+
### 💡 **Example commands you could test**:
|
355 |
+
1. `"Give me info on my websites SSL certificate"`
|
356 |
+
2. `"Check if my server is using quantum safe encyption for communication"`
|
357 |
+
3. `"Run a comprehensive security audit on my server"`
|
358 |
+
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!
|
359 |
+
|
360 |
+
### Final Word
|
361 |
+
|
362 |
+
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.
|
363 |
+
|
364 |
+
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.
|
365 |
+
|
366 |
+
I'm also open to job opportunities or sponsorship.
|
367 |
+
|
368 |
+
Thank you! 😊
|
granite-8b-code-instruct-4k-bf16.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d0f91f3aef42f19ee082ae34b27b78c4529be256632347de5725f6ebf955650c
|
3 |
+
size 16115271232
|
granite-8b-code-instruct-4k-bf16_q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aea6448faaff0ebe2f022b688cd8fe3dbd53d7abe262c263c7b31c5cfb468ca6
|
3 |
+
size 11443865152
|
granite-8b-code-instruct-4k-f16_q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6e9429897d7783daa427ed9b9b5aa61db14015db6341560af3367b474df534c
|
3 |
+
size 11443865152
|
granite-8b-code-instruct-4k-iq2_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1b4c89c90e3de2fd39b6eb19261ff3f16b86f6251bba3bdf5c5298fb9f8f3866
|
3 |
+
size 2904262560
|
granite-8b-code-instruct-4k-iq2_s.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:85cf6584714a8fc1ef3dda0e168434905168ac3ec7e8352a323cc6dd8b2606cb
|
3 |
+
size 2759034784
|
granite-8b-code-instruct-4k-iq2_xs.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:598606b346a7736a67aefc05cc09e0801d7510c79e23d8721b98486cd336317c
|
3 |
+
size 2669250464
|
granite-8b-code-instruct-4k-iq2_xxs.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4bdb53accd9b4d01c43d2c1e4ebc342731e320a27e535d76397d7c2563826cd9
|
3 |
+
size 2441316256
|
granite-8b-code-instruct-4k-iq3_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2f2eff4898216a7681c3afe968b70e4c1127d0b95ab5a91ec53bdc2c40c56c4
|
3 |
+
size 3780741024
|
granite-8b-code-instruct-4k-iq3_s.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fcc29ed16a5b89353a2c4ee8ae797d4c263ac8126387da692dcfc0f947a21d16
|
3 |
+
size 3780741024
|
granite-8b-code-instruct-4k-iq3_xs.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:393eb980e49f6864159b1fdccb3cbba99a27a06dfd1e7cdbfd4329b88006bdad
|
3 |
+
size 3388442528
|
granite-8b-code-instruct-4k-iq3_xxs.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1eabc1c33d4ea3098101a308d7393456f5578223da8060a47c822734d0aee343
|
3 |
+
size 3291711392
|
granite-8b-code-instruct-4k-iq4_nl.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c31316d4b033d4990c90c85fcf320faa2ee1362ab4204411e6c6823b71101994
|
3 |
+
size 4609771424
|
granite-8b-code-instruct-4k-iq4_xs.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bdc232748dc1f152e06876965fb1f2a89c84f2bc3202d26bfc27658d3eaee0dc
|
3 |
+
size 4369123232
|
granite-8b-code-instruct-4k-q2_k_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75d8bea79e99902465803a29365c1a702d87fafc9786a1da3091b6b22095a052
|
3 |
+
size 3019999136
|
granite-8b-code-instruct-4k-q2_k_s.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b97d5c1aa587ad82b9f4c48abe15baf45c93e713af144dc0d4c8e4445706d2cb
|
3 |
+
size 2993260448
|
granite-8b-code-instruct-4k-q3_k_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf7f69fa511dedda19e47161d0619b9f942791e13d974d0031efbb9f491158bf
|
3 |
+
size 3914434464
|
granite-8b-code-instruct-4k-q3_k_s.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6b2c6e7109aaf613a568ddefc627cfaee4dc7a4416eba175955e81fdf20ffd4
|
3 |
+
size 3887695776
|
granite-8b-code-instruct-4k-q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1abf73a89b0c3d2c0d97d68a2b3273e2cd8d9a9d50640140339110c71a2ee2c1
|
3 |
+
size 4538992544
|
granite-8b-code-instruct-4k-q4_1.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70d1da2505f52e2cbcc067306325f3e9b44808e73c3d7b64226de7b4c8214356
|
3 |
+
size 5042309024
|
granite-8b-code-instruct-4k-q4_k_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:945e09c7372f667dd782bd71ecd4cebb7649ffdb325c46dcec2ac002caa5ab65
|
3 |
+
size 4832790432
|
granite-8b-code-instruct-4k-q4_k_s.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:411b8d8a8446f9d3c7c0d16798fa30cc350cc048d53485cc5b783c55c00e7aae
|
3 |
+
size 4670588832
|
granite-8b-code-instruct-4k-q5_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0f9432c6727f39c59cd4eb96148018bbdd8b5db75b22e4847dd045ab2399cc3
|
3 |
+
size 5545625504
|
granite-8b-code-instruct-4k-q5_1.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a9e548226aad5926024641210241f4abe75f4e0a990ea66ec0777eb6fba1030
|
3 |
+
size 6048941984
|
granite-8b-code-instruct-4k-q5_k_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d78204c87424b30b37593ae6bf3d031420a535422413faacfe5d707da3cf4e60
|
3 |
+
size 5740595104
|
granite-8b-code-instruct-4k-q5_k_s.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e84991e51471d1b6022eb44dfd9962cddde1a0751676ad8a7744125be80ce6b
|
3 |
+
size 5657036704
|
granite-8b-code-instruct-4k-q6_k_m.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d6318d6b66eadbbd2442ce7ca41fd2e48e3b095aa52164b5eb9960795733d7b
|
3 |
+
size 6615173024
|
granite-8b-code-instruct-4k-q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:927c2ceced7cf0b227f4f8c8feab2da039d96cb63533ad8cc76d42e9bc2c7871
|
3 |
+
size 8565524032
|
granite-8b-code-instruct-4k.imatrix
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db16e1675f5c2d36640c3408c655277a15b66a6c2f684d87b9a2d54252fed09a
|
3 |
+
size 5611728
|