Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- README.md +155 -0
- granite-8b-code-instruct-4k-Q2_K.gguf +3 -0
- granite-8b-code-instruct-4k-Q3_K_L.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_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_K_M.gguf +3 -0
- granite-8b-code-instruct-4k-Q5_K_S.gguf +3 -0
- granite-8b-code-instruct-4k-Q6_K.gguf +3 -0
- granite-8b-code-instruct-4k-Q8_0.gguf +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,15 @@ 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 |
+
granite-8b-code-instruct-4k-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
granite-8b-code-instruct-4k-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
granite-8b-code-instruct-4k-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
granite-8b-code-instruct-4k-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
granite-8b-code-instruct-4k-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
granite-8b-code-instruct-4k-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
granite-8b-code-instruct-4k-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
granite-8b-code-instruct-4k-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
granite-8b-code-instruct-4k-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
granite-8b-code-instruct-4k-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
granite-8b-code-instruct-4k-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
granite-8b-code-instruct-4k-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-generation
|
3 |
+
base_model: ibm-granite/granite-8b-code-instruct-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 |
+
- TensorBlock
|
22 |
+
- GGUF
|
23 |
+
model-index:
|
24 |
+
- name: granite-8b-code-instruct-4k
|
25 |
+
results:
|
26 |
+
- task:
|
27 |
+
type: text-generation
|
28 |
+
dataset:
|
29 |
+
name: HumanEvalSynthesis(Python)
|
30 |
+
type: bigcode/humanevalpack
|
31 |
+
metrics:
|
32 |
+
- type: pass@1
|
33 |
+
value: 57.9
|
34 |
+
name: pass@1
|
35 |
+
- type: pass@1
|
36 |
+
value: 52.4
|
37 |
+
name: pass@1
|
38 |
+
- type: pass@1
|
39 |
+
value: 58.5
|
40 |
+
name: pass@1
|
41 |
+
- type: pass@1
|
42 |
+
value: 43.3
|
43 |
+
name: pass@1
|
44 |
+
- type: pass@1
|
45 |
+
value: 48.2
|
46 |
+
name: pass@1
|
47 |
+
- type: pass@1
|
48 |
+
value: 37.2
|
49 |
+
name: pass@1
|
50 |
+
- type: pass@1
|
51 |
+
value: 53.0
|
52 |
+
name: pass@1
|
53 |
+
- type: pass@1
|
54 |
+
value: 42.7
|
55 |
+
name: pass@1
|
56 |
+
- type: pass@1
|
57 |
+
value: 52.4
|
58 |
+
name: pass@1
|
59 |
+
- type: pass@1
|
60 |
+
value: 36.6
|
61 |
+
name: pass@1
|
62 |
+
- type: pass@1
|
63 |
+
value: 43.9
|
64 |
+
name: pass@1
|
65 |
+
- type: pass@1
|
66 |
+
value: 16.5
|
67 |
+
name: pass@1
|
68 |
+
- type: pass@1
|
69 |
+
value: 39.6
|
70 |
+
name: pass@1
|
71 |
+
- type: pass@1
|
72 |
+
value: 40.9
|
73 |
+
name: pass@1
|
74 |
+
- type: pass@1
|
75 |
+
value: 48.2
|
76 |
+
name: pass@1
|
77 |
+
- type: pass@1
|
78 |
+
value: 41.5
|
79 |
+
name: pass@1
|
80 |
+
- type: pass@1
|
81 |
+
value: 39.0
|
82 |
+
name: pass@1
|
83 |
+
- type: pass@1
|
84 |
+
value: 32.9
|
85 |
+
name: pass@1
|
86 |
+
---
|
87 |
+
|
88 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
89 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
90 |
+
</div>
|
91 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
92 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
93 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
94 |
+
Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a>
|
95 |
+
</p>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
|
99 |
+
## ibm-granite/granite-8b-code-instruct-4k - GGUF
|
100 |
+
|
101 |
+
This repo contains GGUF format model files for [ibm-granite/granite-8b-code-instruct-4k](https://huggingface.co/ibm-granite/granite-8b-code-instruct-4k).
|
102 |
+
|
103 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
104 |
+
|
105 |
+
## Prompt template
|
106 |
+
|
107 |
+
```
|
108 |
+
System:
|
109 |
+
{system_prompt}
|
110 |
+
|
111 |
+
Question:
|
112 |
+
{prompt}
|
113 |
+
|
114 |
+
Answer:
|
115 |
+
```
|
116 |
+
|
117 |
+
## Model file specification
|
118 |
+
|
119 |
+
| Filename | Quant type | File Size | Description |
|
120 |
+
| -------- | ---------- | --------- | ----------- |
|
121 |
+
| [granite-8b-code-instruct-4k-Q2_K.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q2_K.gguf) | Q2_K | 2.852 GB | smallest, significant quality loss - not recommended for most purposes |
|
122 |
+
| [granite-8b-code-instruct-4k-Q3_K_S.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q3_K_S.gguf) | Q3_K_S | 3.304 GB | very small, high quality loss |
|
123 |
+
| [granite-8b-code-instruct-4k-Q3_K_M.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q3_K_M.gguf) | Q3_K_M | 3.674 GB | very small, high quality loss |
|
124 |
+
| [granite-8b-code-instruct-4k-Q3_K_L.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q3_K_L.gguf) | Q3_K_L | 3.993 GB | small, substantial quality loss |
|
125 |
+
| [granite-8b-code-instruct-4k-Q4_0.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q4_0.gguf) | Q4_0 | 4.276 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
126 |
+
| [granite-8b-code-instruct-4k-Q4_K_S.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q4_K_S.gguf) | Q4_K_S | 4.305 GB | small, greater quality loss |
|
127 |
+
| [granite-8b-code-instruct-4k-Q4_K_M.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q4_K_M.gguf) | Q4_K_M | 4.548 GB | medium, balanced quality - recommended |
|
128 |
+
| [granite-8b-code-instruct-4k-Q5_0.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q5_0.gguf) | Q5_0 | 5.190 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
129 |
+
| [granite-8b-code-instruct-4k-Q5_K_S.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q5_K_S.gguf) | Q5_K_S | 5.190 GB | large, low quality loss - recommended |
|
130 |
+
| [granite-8b-code-instruct-4k-Q5_K_M.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q5_K_M.gguf) | Q5_K_M | 5.330 GB | large, very low quality loss - recommended |
|
131 |
+
| [granite-8b-code-instruct-4k-Q6_K.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q6_K.gguf) | Q6_K | 6.161 GB | very large, extremely low quality loss |
|
132 |
+
| [granite-8b-code-instruct-4k-Q8_0.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-4k-GGUF/tree/main/granite-8b-code-instruct-4k-Q8_0.gguf) | Q8_0 | 7.977 GB | very large, extremely low quality loss - not recommended |
|
133 |
+
|
134 |
+
|
135 |
+
## Downloading instruction
|
136 |
+
|
137 |
+
### Command line
|
138 |
+
|
139 |
+
Firstly, install Huggingface Client
|
140 |
+
|
141 |
+
```shell
|
142 |
+
pip install -U "huggingface_hub[cli]"
|
143 |
+
```
|
144 |
+
|
145 |
+
Then, downoad the individual model file the a local directory
|
146 |
+
|
147 |
+
```shell
|
148 |
+
huggingface-cli download tensorblock/granite-8b-code-instruct-4k-GGUF --include "granite-8b-code-instruct-4k-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
149 |
+
```
|
150 |
+
|
151 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
152 |
+
|
153 |
+
```shell
|
154 |
+
huggingface-cli download tensorblock/granite-8b-code-instruct-4k-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
155 |
+
```
|
granite-8b-code-instruct-4k-Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e1fc6c2fc119ab6199e5cc0d2ad781f018047fd0df3c1275c14d7f592ccfe7f
|
3 |
+
size 3062071392
|
granite-8b-code-instruct-4k-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:245dd62fa9576e82c7493b48ba3856284c1079e09dd5647da95d6728ae9fec3f
|
3 |
+
size 4287725664
|
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:c4331befe0d884fde4f0385fc3e8c054c4c49153b139a9902aa2214c57923eb5
|
3 |
+
size 3944841312
|
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:4414330a9aa964d1a4a95bdda7746b6a4dd6cb6fc502e297e9bb36f04658e493
|
3 |
+
size 3548086368
|
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:cf470ee44e2977d776c753b7f638143250bbe6d5763a2d3eeee8ba4284c526fe
|
3 |
+
size 4590895200
|
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:19ccb90486a0e35ad907ce0c5444e78a02c822236100e51abad8178668f3c753
|
3 |
+
size 4882858080
|
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:f3ca4c3836f95c48ddf300bebc5dbb3fef79f857376e7881c99f3fc4f25f7b6b
|
3 |
+
size 4622352480
|
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:83f7fbcdfe9c22d9c60c5eb77064a46cb06e7037bdce59e7024c98cd4de03fa3
|
3 |
+
size 5572362336
|
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:2f866f08763648b265faccda389088524d3d0cdd24d1b2d6ab9d97dd97a988a2
|
3 |
+
size 5722767456
|
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:43ad42b886f952e8a8e2d55563550690c75b48889b102af44bfd9638d20ffc17
|
3 |
+
size 5572362336
|
granite-8b-code-instruct-4k-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:442f2adbf619c851b72f77377fff9ff7409aebf6308d82e504bea4feb7193dd8
|
3 |
+
size 6615171168
|
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:2b790b05553c8991d376f67c168accaacd8cda28c2e01f7a93d89ff6fe22cbc2
|
3 |
+
size 8565522528
|