Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- README.md +144 -0
- granite-8b-code-instruct-128k-Q2_K.gguf +3 -0
- granite-8b-code-instruct-128k-Q3_K_L.gguf +3 -0
- granite-8b-code-instruct-128k-Q3_K_M.gguf +3 -0
- granite-8b-code-instruct-128k-Q3_K_S.gguf +3 -0
- granite-8b-code-instruct-128k-Q4_0.gguf +3 -0
- granite-8b-code-instruct-128k-Q4_K_M.gguf +3 -0
- granite-8b-code-instruct-128k-Q4_K_S.gguf +3 -0
- granite-8b-code-instruct-128k-Q5_0.gguf +3 -0
- granite-8b-code-instruct-128k-Q5_K_M.gguf +3 -0
- granite-8b-code-instruct-128k-Q5_K_S.gguf +3 -0
- granite-8b-code-instruct-128k-Q6_K.gguf +3 -0
- granite-8b-code-instruct-128k-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-128k-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
granite-8b-code-instruct-128k-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
granite-8b-code-instruct-128k-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
granite-8b-code-instruct-128k-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
granite-8b-code-instruct-128k-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
granite-8b-code-instruct-128k-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
granite-8b-code-instruct-128k-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
granite-8b-code-instruct-128k-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
granite-8b-code-instruct-128k-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
granite-8b-code-instruct-128k-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
granite-8b-code-instruct-128k-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
granite-8b-code-instruct-128k-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-generation
|
3 |
+
inference: false
|
4 |
+
license: apache-2.0
|
5 |
+
datasets:
|
6 |
+
- bigcode/commitpackft
|
7 |
+
- TIGER-Lab/MathInstruct
|
8 |
+
- meta-math/MetaMathQA
|
9 |
+
- glaiveai/glaive-code-assistant-v3
|
10 |
+
- glaive-function-calling-v2
|
11 |
+
- bugdaryan/sql-create-context-instruction
|
12 |
+
- garage-bAInd/Open-Platypus
|
13 |
+
- nvidia/HelpSteer
|
14 |
+
- bigcode/self-oss-instruct-sc2-exec-filter-50k
|
15 |
+
metrics:
|
16 |
+
- code_eval
|
17 |
+
library_name: transformers
|
18 |
+
tags:
|
19 |
+
- code
|
20 |
+
- granite
|
21 |
+
- TensorBlock
|
22 |
+
- GGUF
|
23 |
+
base_model: ibm-granite/granite-8b-code-instruct-128k
|
24 |
+
model-index:
|
25 |
+
- name: granite-8B-Code-instruct-128k
|
26 |
+
results:
|
27 |
+
- task:
|
28 |
+
type: text-generation
|
29 |
+
dataset:
|
30 |
+
name: HumanEvalSynthesis (Python)
|
31 |
+
type: bigcode/humanevalpack
|
32 |
+
metrics:
|
33 |
+
- type: pass@1
|
34 |
+
value: 62.2
|
35 |
+
name: pass@1
|
36 |
+
verified: false
|
37 |
+
- type: pass@1
|
38 |
+
value: 51.4
|
39 |
+
name: pass@1
|
40 |
+
verified: false
|
41 |
+
- type: pass@1
|
42 |
+
value: 38.9
|
43 |
+
name: pass@1
|
44 |
+
verified: false
|
45 |
+
- type: pass@1
|
46 |
+
value: 38.3
|
47 |
+
name: pass@1
|
48 |
+
verified: false
|
49 |
+
- task:
|
50 |
+
type: text-generation
|
51 |
+
dataset:
|
52 |
+
name: RepoQA (Python@16K)
|
53 |
+
type: repoqa
|
54 |
+
metrics:
|
55 |
+
- type: pass@1 (thresh=0.5)
|
56 |
+
value: 73.0
|
57 |
+
name: pass@1 (thresh=0.5)
|
58 |
+
verified: false
|
59 |
+
- type: pass@1 (thresh=0.5)
|
60 |
+
value: 37.0
|
61 |
+
name: pass@1 (thresh=0.5)
|
62 |
+
verified: false
|
63 |
+
- type: pass@1 (thresh=0.5)
|
64 |
+
value: 73.0
|
65 |
+
name: pass@1 (thresh=0.5)
|
66 |
+
verified: false
|
67 |
+
- type: pass@1 (thresh=0.5)
|
68 |
+
value: 62.0
|
69 |
+
name: pass@1 (thresh=0.5)
|
70 |
+
verified: false
|
71 |
+
- type: pass@1 (thresh=0.5)
|
72 |
+
value: 63.0
|
73 |
+
name: pass@1 (thresh=0.5)
|
74 |
+
verified: false
|
75 |
+
---
|
76 |
+
|
77 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
78 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
79 |
+
</div>
|
80 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
81 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
82 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
83 |
+
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>
|
84 |
+
</p>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
|
88 |
+
## ibm-granite/granite-8b-code-instruct-128k - GGUF
|
89 |
+
|
90 |
+
This repo contains GGUF format model files for [ibm-granite/granite-8b-code-instruct-128k](https://huggingface.co/ibm-granite/granite-8b-code-instruct-128k).
|
91 |
+
|
92 |
+
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).
|
93 |
+
|
94 |
+
## Prompt template
|
95 |
+
|
96 |
+
```
|
97 |
+
System:
|
98 |
+
{system_prompt}
|
99 |
+
|
100 |
+
Question:
|
101 |
+
{prompt}
|
102 |
+
|
103 |
+
Answer:
|
104 |
+
```
|
105 |
+
|
106 |
+
## Model file specification
|
107 |
+
|
108 |
+
| Filename | Quant type | File Size | Description |
|
109 |
+
| -------- | ---------- | --------- | ----------- |
|
110 |
+
| [granite-8b-code-instruct-128k-Q2_K.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q2_K.gguf) | Q2_K | 2.852 GB | smallest, significant quality loss - not recommended for most purposes |
|
111 |
+
| [granite-8b-code-instruct-128k-Q3_K_S.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q3_K_S.gguf) | Q3_K_S | 3.304 GB | very small, high quality loss |
|
112 |
+
| [granite-8b-code-instruct-128k-Q3_K_M.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q3_K_M.gguf) | Q3_K_M | 3.674 GB | very small, high quality loss |
|
113 |
+
| [granite-8b-code-instruct-128k-Q3_K_L.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q3_K_L.gguf) | Q3_K_L | 3.993 GB | small, substantial quality loss |
|
114 |
+
| [granite-8b-code-instruct-128k-Q4_0.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q4_0.gguf) | Q4_0 | 4.276 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
115 |
+
| [granite-8b-code-instruct-128k-Q4_K_S.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q4_K_S.gguf) | Q4_K_S | 4.305 GB | small, greater quality loss |
|
116 |
+
| [granite-8b-code-instruct-128k-Q4_K_M.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q4_K_M.gguf) | Q4_K_M | 4.548 GB | medium, balanced quality - recommended |
|
117 |
+
| [granite-8b-code-instruct-128k-Q5_0.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q5_0.gguf) | Q5_0 | 5.190 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
118 |
+
| [granite-8b-code-instruct-128k-Q5_K_S.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q5_K_S.gguf) | Q5_K_S | 5.190 GB | large, low quality loss - recommended |
|
119 |
+
| [granite-8b-code-instruct-128k-Q5_K_M.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q5_K_M.gguf) | Q5_K_M | 5.330 GB | large, very low quality loss - recommended |
|
120 |
+
| [granite-8b-code-instruct-128k-Q6_K.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q6_K.gguf) | Q6_K | 6.161 GB | very large, extremely low quality loss |
|
121 |
+
| [granite-8b-code-instruct-128k-Q8_0.gguf](https://huggingface.co/tensorblock/granite-8b-code-instruct-128k-GGUF/tree/main/granite-8b-code-instruct-128k-Q8_0.gguf) | Q8_0 | 7.977 GB | very large, extremely low quality loss - not recommended |
|
122 |
+
|
123 |
+
|
124 |
+
## Downloading instruction
|
125 |
+
|
126 |
+
### Command line
|
127 |
+
|
128 |
+
Firstly, install Huggingface Client
|
129 |
+
|
130 |
+
```shell
|
131 |
+
pip install -U "huggingface_hub[cli]"
|
132 |
+
```
|
133 |
+
|
134 |
+
Then, downoad the individual model file the a local directory
|
135 |
+
|
136 |
+
```shell
|
137 |
+
huggingface-cli download tensorblock/granite-8b-code-instruct-128k-GGUF --include "granite-8b-code-instruct-128k-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
138 |
+
```
|
139 |
+
|
140 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
141 |
+
|
142 |
+
```shell
|
143 |
+
huggingface-cli download tensorblock/granite-8b-code-instruct-128k-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
144 |
+
```
|
granite-8b-code-instruct-128k-Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15e2417c0c8e2e515aed0ef0ce0a5cf21b6fd81c023d17c993ab6c59e4cf8061
|
3 |
+
size 3062071168
|
granite-8b-code-instruct-128k-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1382114244aa9dea149436cae98eeb91e707475dc364f61f519b22d7faa2f76b
|
3 |
+
size 4287725440
|
granite-8b-code-instruct-128k-Q3_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3b8d8cdba311586998eadbfb0e1dd924d69d63dbfc27994360b4031d235379c
|
3 |
+
size 3944841088
|
granite-8b-code-instruct-128k-Q3_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f598a0fbf47c7c45a3aa05b113d77ad0f5b3a68642c6135c5e987ec9e5023427
|
3 |
+
size 3548086144
|
granite-8b-code-instruct-128k-Q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8d51547840cc28a6d8a5c261769bff2767d6c515de5d1c1e2ebfd64915057cb
|
3 |
+
size 4590894976
|
granite-8b-code-instruct-128k-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04680b9c3770f0e76b3399613cb16054211d92d9d43ce395fc94919cfcf638b1
|
3 |
+
size 4882857856
|
granite-8b-code-instruct-128k-Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a759447e056556dbe0ff721194677b2d91db8289f015f54724964af56ed51cc4
|
3 |
+
size 4622352256
|
granite-8b-code-instruct-128k-Q5_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6cea2eec37b73a126536989b3d1f11e2c8c25af6bc6ea6ff3e971e646511748
|
3 |
+
size 5572362112
|
granite-8b-code-instruct-128k-Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37c4493d6f184275e654ebdd2ea5a0e8d93dcd2af5f149cd79270eb5d8c381d0
|
3 |
+
size 5722767232
|
granite-8b-code-instruct-128k-Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:979e66fd59ebec2f8d86dc7c7a08ff636b9608b7169c469c925ca2358e3b0cda
|
3 |
+
size 5572362112
|
granite-8b-code-instruct-128k-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:109497efa8560c94aaf68fffb599918258e4b246ffba97020a91719f0c644897
|
3 |
+
size 6615170944
|
granite-8b-code-instruct-128k-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4e301355a06a653fd7b27508abfe91abfce707c479bda0b7b21c345bafc0f370
|
3 |
+
size 8565522304
|