Triangle104
commited on
Commit
•
01c8be7
1
Parent(s):
8536f77
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-generation
|
3 |
+
inference: false
|
4 |
+
license: apache-2.0
|
5 |
+
library_name: transformers
|
6 |
+
tags:
|
7 |
+
- language
|
8 |
+
- granite-3.0
|
9 |
+
- llama-cpp
|
10 |
+
- gguf-my-repo
|
11 |
+
base_model: ibm-granite/granite-3.0-1b-a400m-instruct
|
12 |
+
model-index:
|
13 |
+
- name: granite-3.0-2b-instruct
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
type: text-generation
|
17 |
+
dataset:
|
18 |
+
name: IFEval
|
19 |
+
type: instruction-following
|
20 |
+
metrics:
|
21 |
+
- type: pass@1
|
22 |
+
value: 32.39
|
23 |
+
name: pass@1
|
24 |
+
- type: pass@1
|
25 |
+
value: 6.17
|
26 |
+
name: pass@1
|
27 |
+
- task:
|
28 |
+
type: text-generation
|
29 |
+
dataset:
|
30 |
+
name: AGI-Eval
|
31 |
+
type: human-exams
|
32 |
+
metrics:
|
33 |
+
- type: pass@1
|
34 |
+
value: 20.35
|
35 |
+
name: pass@1
|
36 |
+
- type: pass@1
|
37 |
+
value: 32.0
|
38 |
+
name: pass@1
|
39 |
+
- type: pass@1
|
40 |
+
value: 12.21
|
41 |
+
name: pass@1
|
42 |
+
- task:
|
43 |
+
type: text-generation
|
44 |
+
dataset:
|
45 |
+
name: OBQA
|
46 |
+
type: commonsense
|
47 |
+
metrics:
|
48 |
+
- type: pass@1
|
49 |
+
value: 38.4
|
50 |
+
name: pass@1
|
51 |
+
- type: pass@1
|
52 |
+
value: 47.55
|
53 |
+
name: pass@1
|
54 |
+
- type: pass@1
|
55 |
+
value: 65.59
|
56 |
+
name: pass@1
|
57 |
+
- type: pass@1
|
58 |
+
value: 61.17
|
59 |
+
name: pass@1
|
60 |
+
- type: pass@1
|
61 |
+
value: 49.11
|
62 |
+
name: pass@1
|
63 |
+
- task:
|
64 |
+
type: text-generation
|
65 |
+
dataset:
|
66 |
+
name: BoolQ
|
67 |
+
type: reading-comprehension
|
68 |
+
metrics:
|
69 |
+
- type: pass@1
|
70 |
+
value: 70.12
|
71 |
+
name: pass@1
|
72 |
+
- type: pass@1
|
73 |
+
value: 1.27
|
74 |
+
name: pass@1
|
75 |
+
- task:
|
76 |
+
type: text-generation
|
77 |
+
dataset:
|
78 |
+
name: ARC-C
|
79 |
+
type: reasoning
|
80 |
+
metrics:
|
81 |
+
- type: pass@1
|
82 |
+
value: 41.21
|
83 |
+
name: pass@1
|
84 |
+
- type: pass@1
|
85 |
+
value: 23.07
|
86 |
+
name: pass@1
|
87 |
+
- type: pass@1
|
88 |
+
value: 31.77
|
89 |
+
name: pass@1
|
90 |
+
- task:
|
91 |
+
type: text-generation
|
92 |
+
dataset:
|
93 |
+
name: HumanEvalSynthesis
|
94 |
+
type: code
|
95 |
+
metrics:
|
96 |
+
- type: pass@1
|
97 |
+
value: 30.18
|
98 |
+
name: pass@1
|
99 |
+
- type: pass@1
|
100 |
+
value: 26.22
|
101 |
+
name: pass@1
|
102 |
+
- type: pass@1
|
103 |
+
value: 21.95
|
104 |
+
name: pass@1
|
105 |
+
- type: pass@1
|
106 |
+
value: 15.4
|
107 |
+
name: pass@1
|
108 |
+
- task:
|
109 |
+
type: text-generation
|
110 |
+
dataset:
|
111 |
+
name: GSM8K
|
112 |
+
type: math
|
113 |
+
metrics:
|
114 |
+
- type: pass@1
|
115 |
+
value: 26.31
|
116 |
+
name: pass@1
|
117 |
+
- type: pass@1
|
118 |
+
value: 10.88
|
119 |
+
name: pass@1
|
120 |
+
- task:
|
121 |
+
type: text-generation
|
122 |
+
dataset:
|
123 |
+
name: PAWS-X (7 langs)
|
124 |
+
type: multilingual
|
125 |
+
metrics:
|
126 |
+
- type: pass@1
|
127 |
+
value: 45.84
|
128 |
+
name: pass@1
|
129 |
+
- type: pass@1
|
130 |
+
value: 11.8
|
131 |
+
name: pass@1
|
132 |
+
---
|
133 |
+
|
134 |
+
# Triangle104/granite-3.0-1b-a400m-instruct-Q5_K_S-GGUF
|
135 |
+
This model was converted to GGUF format from [`ibm-granite/granite-3.0-1b-a400m-instruct`](https://huggingface.co/ibm-granite/granite-3.0-1b-a400m-instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
136 |
+
Refer to the [original model card](https://huggingface.co/ibm-granite/granite-3.0-1b-a400m-instruct) for more details on the model.
|
137 |
+
|
138 |
+
## Use with llama.cpp
|
139 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
140 |
+
|
141 |
+
```bash
|
142 |
+
brew install llama.cpp
|
143 |
+
|
144 |
+
```
|
145 |
+
Invoke the llama.cpp server or the CLI.
|
146 |
+
|
147 |
+
### CLI:
|
148 |
+
```bash
|
149 |
+
llama-cli --hf-repo Triangle104/granite-3.0-1b-a400m-instruct-Q5_K_S-GGUF --hf-file granite-3.0-1b-a400m-instruct-q5_k_s.gguf -p "The meaning to life and the universe is"
|
150 |
+
```
|
151 |
+
|
152 |
+
### Server:
|
153 |
+
```bash
|
154 |
+
llama-server --hf-repo Triangle104/granite-3.0-1b-a400m-instruct-Q5_K_S-GGUF --hf-file granite-3.0-1b-a400m-instruct-q5_k_s.gguf -c 2048
|
155 |
+
```
|
156 |
+
|
157 |
+
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.
|
158 |
+
|
159 |
+
Step 1: Clone llama.cpp from GitHub.
|
160 |
+
```
|
161 |
+
git clone https://github.com/ggerganov/llama.cpp
|
162 |
+
```
|
163 |
+
|
164 |
+
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).
|
165 |
+
```
|
166 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
167 |
+
```
|
168 |
+
|
169 |
+
Step 3: Run inference through the main binary.
|
170 |
+
```
|
171 |
+
./llama-cli --hf-repo Triangle104/granite-3.0-1b-a400m-instruct-Q5_K_S-GGUF --hf-file granite-3.0-1b-a400m-instruct-q5_k_s.gguf -p "The meaning to life and the universe is"
|
172 |
+
```
|
173 |
+
or
|
174 |
+
```
|
175 |
+
./llama-server --hf-repo Triangle104/granite-3.0-1b-a400m-instruct-Q5_K_S-GGUF --hf-file granite-3.0-1b-a400m-instruct-q5_k_s.gguf -c 2048
|
176 |
+
```
|