Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- llama-cpp
|
22 |
+
- gguf-my-repo
|
23 |
+
base_model: ibm-granite/granite-3b-code-instruct-128k
|
24 |
+
model-index:
|
25 |
+
- name: granite-3b-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: 53.7
|
35 |
+
name: pass@1
|
36 |
+
verified: false
|
37 |
+
- type: pass@1
|
38 |
+
value: 41.4
|
39 |
+
name: pass@1
|
40 |
+
verified: false
|
41 |
+
- type: pass@1
|
42 |
+
value: 25.1
|
43 |
+
name: pass@1
|
44 |
+
verified: false
|
45 |
+
- type: pass@1
|
46 |
+
value: 26.2
|
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: 48.0
|
57 |
+
name: pass@1 (thresh=0.5)
|
58 |
+
verified: false
|
59 |
+
- type: pass@1 (thresh=0.5)
|
60 |
+
value: 36.0
|
61 |
+
name: pass@1 (thresh=0.5)
|
62 |
+
verified: false
|
63 |
+
- type: pass@1 (thresh=0.5)
|
64 |
+
value: 38.0
|
65 |
+
name: pass@1 (thresh=0.5)
|
66 |
+
verified: false
|
67 |
+
- type: pass@1 (thresh=0.5)
|
68 |
+
value: 39.0
|
69 |
+
name: pass@1 (thresh=0.5)
|
70 |
+
verified: false
|
71 |
+
- type: pass@1 (thresh=0.5)
|
72 |
+
value: 29.0
|
73 |
+
name: pass@1 (thresh=0.5)
|
74 |
+
verified: false
|
75 |
+
---
|
76 |
+
|
77 |
+
# AIronMind/granite-3b-code-instruct-128k-Q4_K_M-GGUF
|
78 |
+
This model was converted to GGUF format from [`ibm-granite/granite-3b-code-instruct-128k`](https://huggingface.co/ibm-granite/granite-3b-code-instruct-128k) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
79 |
+
Refer to the [original model card](https://huggingface.co/ibm-granite/granite-3b-code-instruct-128k) for more details on the model.
|
80 |
+
|
81 |
+
## Use with llama.cpp
|
82 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
83 |
+
|
84 |
+
```bash
|
85 |
+
brew install llama.cpp
|
86 |
+
|
87 |
+
```
|
88 |
+
Invoke the llama.cpp server or the CLI.
|
89 |
+
|
90 |
+
### CLI:
|
91 |
+
```bash
|
92 |
+
llama-cli --hf-repo AIronMind/granite-3b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-3b-code-instruct-128k-q4_k_m.gguf -p "The meaning to life and the universe is"
|
93 |
+
```
|
94 |
+
|
95 |
+
### Server:
|
96 |
+
```bash
|
97 |
+
llama-server --hf-repo AIronMind/granite-3b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-3b-code-instruct-128k-q4_k_m.gguf -c 2048
|
98 |
+
```
|
99 |
+
|
100 |
+
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
101 |
+
|
102 |
+
Step 1: Clone llama.cpp from GitHub.
|
103 |
+
```
|
104 |
+
git clone https://github.com/ggerganov/llama.cpp
|
105 |
+
```
|
106 |
+
|
107 |
+
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
108 |
+
```
|
109 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
110 |
+
```
|
111 |
+
|
112 |
+
Step 3: Run inference through the main binary.
|
113 |
+
```
|
114 |
+
./llama-cli --hf-repo AIronMind/granite-3b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-3b-code-instruct-128k-q4_k_m.gguf -p "The meaning to life and the universe is"
|
115 |
+
```
|
116 |
+
or
|
117 |
+
```
|
118 |
+
./llama-server --hf-repo AIronMind/granite-3b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-3b-code-instruct-128k-q4_k_m.gguf -c 2048
|
119 |
+
```
|