Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- README.md +183 -0
- granite-3b-code-base-128k-Q2_K.gguf +3 -0
- granite-3b-code-base-128k-Q3_K_L.gguf +3 -0
- granite-3b-code-base-128k-Q3_K_M.gguf +3 -0
- granite-3b-code-base-128k-Q3_K_S.gguf +3 -0
- granite-3b-code-base-128k-Q4_0.gguf +3 -0
- granite-3b-code-base-128k-Q4_K_M.gguf +3 -0
- granite-3b-code-base-128k-Q4_K_S.gguf +3 -0
- granite-3b-code-base-128k-Q5_0.gguf +3 -0
- granite-3b-code-base-128k-Q5_K_M.gguf +3 -0
- granite-3b-code-base-128k-Q5_K_S.gguf +3 -0
- granite-3b-code-base-128k-Q6_K.gguf +3 -0
- granite-3b-code-base-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-3b-code-base-128k-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
granite-3b-code-base-128k-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
granite-3b-code-base-128k-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
granite-3b-code-base-128k-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
granite-3b-code-base-128k-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
granite-3b-code-base-128k-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
granite-3b-code-base-128k-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
granite-3b-code-base-128k-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
granite-3b-code-base-128k-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
granite-3b-code-base-128k-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
granite-3b-code-base-128k-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
granite-3b-code-base-128k-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-generation
|
3 |
+
inference: false
|
4 |
+
license: apache-2.0
|
5 |
+
datasets:
|
6 |
+
- codeparrot/github-code-clean
|
7 |
+
- bigcode/starcoderdata
|
8 |
+
- open-web-math/open-web-math
|
9 |
+
- math-ai/StackMathQA
|
10 |
+
metrics:
|
11 |
+
- code_eval
|
12 |
+
library_name: transformers
|
13 |
+
tags:
|
14 |
+
- code
|
15 |
+
- granite
|
16 |
+
- TensorBlock
|
17 |
+
- GGUF
|
18 |
+
base_model: ibm-granite/granite-3b-code-base-128k
|
19 |
+
model-index:
|
20 |
+
- name: granite-3b-code-base-128k
|
21 |
+
results:
|
22 |
+
- task:
|
23 |
+
type: text-generation
|
24 |
+
dataset:
|
25 |
+
name: HumanEvalSynthesis (Python)
|
26 |
+
type: bigcode/humanevalpack
|
27 |
+
metrics:
|
28 |
+
- type: pass@1
|
29 |
+
value: 36.0
|
30 |
+
name: pass@1
|
31 |
+
verified: false
|
32 |
+
- type: pass@1
|
33 |
+
value: 30.5
|
34 |
+
name: pass@1
|
35 |
+
verified: false
|
36 |
+
- type: pass@1
|
37 |
+
value: 22.4
|
38 |
+
name: pass@1
|
39 |
+
verified: false
|
40 |
+
- type: pass@1
|
41 |
+
value: 19.9
|
42 |
+
name: pass@1
|
43 |
+
verified: false
|
44 |
+
- task:
|
45 |
+
type: text-generation
|
46 |
+
dataset:
|
47 |
+
name: RepoQA (Python@16K)
|
48 |
+
type: repoqa
|
49 |
+
metrics:
|
50 |
+
- type: pass@1 (thresh=0.5)
|
51 |
+
value: 40.0
|
52 |
+
name: pass@1 (thresh=0.5)
|
53 |
+
verified: false
|
54 |
+
- type: pass@1 (thresh=0.5)
|
55 |
+
value: 36.0
|
56 |
+
name: pass@1 (thresh=0.5)
|
57 |
+
verified: false
|
58 |
+
- type: pass@1 (thresh=0.5)
|
59 |
+
value: 37.0
|
60 |
+
name: pass@1 (thresh=0.5)
|
61 |
+
verified: false
|
62 |
+
- type: pass@1 (thresh=0.5)
|
63 |
+
value: 27.0
|
64 |
+
name: pass@1 (thresh=0.5)
|
65 |
+
verified: false
|
66 |
+
- type: pass@1 (thresh=0.5)
|
67 |
+
value: 29.0
|
68 |
+
name: pass@1 (thresh=0.5)
|
69 |
+
verified: false
|
70 |
+
- task:
|
71 |
+
type: text-generation
|
72 |
+
dataset:
|
73 |
+
name: LCC (Balanced)
|
74 |
+
type: lcc
|
75 |
+
metrics:
|
76 |
+
- type: Exact Match@4K
|
77 |
+
value: 54.6
|
78 |
+
name: Exact Match@4K
|
79 |
+
verified: false
|
80 |
+
- type: Exact Match@8K
|
81 |
+
value: 56.8
|
82 |
+
name: Exact Match@8K
|
83 |
+
verified: false
|
84 |
+
- type: Exact Match@16K
|
85 |
+
value: 52.2
|
86 |
+
name: Exact Match@16K
|
87 |
+
verified: false
|
88 |
+
- type: Exact Match@32K
|
89 |
+
value: 57.8
|
90 |
+
name: Exact Match@32K
|
91 |
+
verified: false
|
92 |
+
- task:
|
93 |
+
type: text-generation
|
94 |
+
dataset:
|
95 |
+
name: RepoBench-P (Balanced)
|
96 |
+
type: repobench
|
97 |
+
metrics:
|
98 |
+
- type: Exact Match@4K
|
99 |
+
value: 39.8
|
100 |
+
name: Exact Match@4K
|
101 |
+
verified: false
|
102 |
+
- type: Exact Match@8K
|
103 |
+
value: 46.8
|
104 |
+
name: Exact Match@8K
|
105 |
+
verified: false
|
106 |
+
- type: Exact Match@16K
|
107 |
+
value: 43.1
|
108 |
+
name: Exact Match@16K
|
109 |
+
verified: false
|
110 |
+
- type: Exact Match@32K
|
111 |
+
value: 45.3
|
112 |
+
name: Exact Match@32K
|
113 |
+
verified: false
|
114 |
+
---
|
115 |
+
|
116 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
117 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
118 |
+
</div>
|
119 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
120 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
121 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
122 |
+
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>
|
123 |
+
</p>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
## ibm-granite/granite-3b-code-base-128k - GGUF
|
128 |
+
|
129 |
+
This repo contains GGUF format model files for [ibm-granite/granite-3b-code-base-128k](https://huggingface.co/ibm-granite/granite-3b-code-base-128k).
|
130 |
+
|
131 |
+
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).
|
132 |
+
|
133 |
+
<div style="text-align: left; margin: 20px 0;">
|
134 |
+
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
135 |
+
Run them on the TensorBlock client using your local machine ↗
|
136 |
+
</a>
|
137 |
+
</div>
|
138 |
+
|
139 |
+
## Prompt template
|
140 |
+
|
141 |
+
```
|
142 |
+
|
143 |
+
```
|
144 |
+
|
145 |
+
## Model file specification
|
146 |
+
|
147 |
+
| Filename | Quant type | File Size | Description |
|
148 |
+
| -------- | ---------- | --------- | ----------- |
|
149 |
+
| [granite-3b-code-base-128k-Q2_K.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q2_K.gguf) | Q2_K | 1.339 GB | smallest, significant quality loss - not recommended for most purposes |
|
150 |
+
| [granite-3b-code-base-128k-Q3_K_S.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q3_K_S.gguf) | Q3_K_S | 1.552 GB | very small, high quality loss |
|
151 |
+
| [granite-3b-code-base-128k-Q3_K_M.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q3_K_M.gguf) | Q3_K_M | 1.727 GB | very small, high quality loss |
|
152 |
+
| [granite-3b-code-base-128k-Q3_K_L.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q3_K_L.gguf) | Q3_K_L | 1.876 GB | small, substantial quality loss |
|
153 |
+
| [granite-3b-code-base-128k-Q4_0.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q4_0.gguf) | Q4_0 | 1.997 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
154 |
+
| [granite-3b-code-base-128k-Q4_K_S.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q4_K_S.gguf) | Q4_K_S | 2.014 GB | small, greater quality loss |
|
155 |
+
| [granite-3b-code-base-128k-Q4_K_M.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q4_K_M.gguf) | Q4_K_M | 2.132 GB | medium, balanced quality - recommended |
|
156 |
+
| [granite-3b-code-base-128k-Q5_0.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q5_0.gguf) | Q5_0 | 2.417 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
157 |
+
| [granite-3b-code-base-128k-Q5_K_S.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q5_K_S.gguf) | Q5_K_S | 2.417 GB | large, low quality loss - recommended |
|
158 |
+
| [granite-3b-code-base-128k-Q5_K_M.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q5_K_M.gguf) | Q5_K_M | 2.486 GB | large, very low quality loss - recommended |
|
159 |
+
| [granite-3b-code-base-128k-Q6_K.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q6_K.gguf) | Q6_K | 2.862 GB | very large, extremely low quality loss |
|
160 |
+
| [granite-3b-code-base-128k-Q8_0.gguf](https://huggingface.co/tensorblock/granite-3b-code-base-128k-GGUF/blob/main/granite-3b-code-base-128k-Q8_0.gguf) | Q8_0 | 3.706 GB | very large, extremely low quality loss - not recommended |
|
161 |
+
|
162 |
+
|
163 |
+
## Downloading instruction
|
164 |
+
|
165 |
+
### Command line
|
166 |
+
|
167 |
+
Firstly, install Huggingface Client
|
168 |
+
|
169 |
+
```shell
|
170 |
+
pip install -U "huggingface_hub[cli]"
|
171 |
+
```
|
172 |
+
|
173 |
+
Then, downoad the individual model file the a local directory
|
174 |
+
|
175 |
+
```shell
|
176 |
+
huggingface-cli download tensorblock/granite-3b-code-base-128k-GGUF --include "granite-3b-code-base-128k-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
177 |
+
```
|
178 |
+
|
179 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
180 |
+
|
181 |
+
```shell
|
182 |
+
huggingface-cli download tensorblock/granite-3b-code-base-128k-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
183 |
+
```
|
granite-3b-code-base-128k-Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0eaaa0e15e5b461715b3b5fcd55dae10721cb61eb8cbce08040cfa6881023bf
|
3 |
+
size 1338693408
|
granite-3b-code-base-128k-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2593bfe983448ce34459a942dd691a787ea97a4f5465f9802fb45ff074719dd
|
3 |
+
size 1876088608
|
granite-3b-code-base-128k-Q3_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ac6732558a5f0b095273975c6dbbb6f429e2ef890976d0da1edfed3772e4c01
|
3 |
+
size 1726994208
|
granite-3b-code-base-128k-Q3_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69826729908620323ae0afba9d308f33e3b0ca503f7d25236ac893f2e2e7349c
|
3 |
+
size 1551685408
|
granite-3b-code-base-128k-Q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:662ca55e79987bd0deefacba6febd58c90d048d79daebe46760e02c32b541b4e
|
3 |
+
size 1997330208
|
granite-3b-code-base-128k-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:faa63add9793ffef2f338a65986b4201bc28e62b0281d88d14f498add4cf3b6b
|
3 |
+
size 2132498208
|
granite-3b-code-base-128k-Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6f16fbe1c05390159ceb4a9f92a83340bb05112f520bd07c917b0b292617303
|
3 |
+
size 2013714208
|
granite-3b-code-base-128k-Q5_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c9665e45abff3b1b2f8b80ddd6f0f5f4d6da5d0b55178fc5fd5d1da40a152c1b
|
3 |
+
size 2416760608
|
granite-3b-code-base-128k-Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c58c3946902bdfcdc603667e111bd331cc0824a751533ee46401e855798b936
|
3 |
+
size 2486392608
|
granite-3b-code-base-128k-Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1748d829ccb0d849c52130e3ccd485d9cdab2e5f858476157fd5c2a315341855
|
3 |
+
size 2416760608
|
granite-3b-code-base-128k-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bf959ab23385688e6335db55ad931699910d994c00f19cea49be31ad3e8d7fa
|
3 |
+
size 2862405408
|
granite-3b-code-base-128k-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65252d2c24566b5252e1f08ff134ac254033be4ad536c934fc6017b0101160d3
|
3 |
+
size 3705526048
|