Akarshan Biswas
commited on
Commit
•
b1a5e09
1
Parent(s):
8b2a4d3
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
library_name: transformers
|
4 |
+
tags:
|
5 |
+
- llama-cpp
|
6 |
+
- gguf-my-repo
|
7 |
+
widget:
|
8 |
+
- messages:
|
9 |
+
- role: user
|
10 |
+
content: How does the brain work?
|
11 |
+
inference:
|
12 |
+
parameters:
|
13 |
+
max_new_tokens: 200
|
14 |
+
extra_gated_heading: Access Gemma on Hugging Face
|
15 |
+
extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
|
16 |
+
agree to Google’s usage license. To do this, please ensure you’re logged-in to Hugging
|
17 |
+
Face and click below. Requests are processed immediately.
|
18 |
+
extra_gated_button_content: Acknowledge license
|
19 |
+
---
|
20 |
+
|
21 |
+
# akarshanbiswas/gemma-1.1-2b-it-Q4_K_S-GGUF
|
22 |
+
This model was converted to GGUF format from [`google/gemma-1.1-2b-it`](https://huggingface.co/google/gemma-1.1-2b-it) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
23 |
+
Refer to the [original model card](https://huggingface.co/google/gemma-1.1-2b-it) for more details on the model.
|
24 |
+
## Use with llama.cpp
|
25 |
+
|
26 |
+
Install llama.cpp through brew.
|
27 |
+
|
28 |
+
```bash
|
29 |
+
brew install ggerganov/ggerganov/llama.cpp
|
30 |
+
```
|
31 |
+
Invoke the llama.cpp server or the CLI.
|
32 |
+
|
33 |
+
CLI:
|
34 |
+
|
35 |
+
```bash
|
36 |
+
llama-cli --hf-repo akarshanbiswas/gemma-1.1-2b-it-Q4_K_S-GGUF --model gemma-1.1-2b-it.Q4_K_S.gguf -p "The meaning to life and the universe is"
|
37 |
+
```
|
38 |
+
|
39 |
+
Server:
|
40 |
+
|
41 |
+
```bash
|
42 |
+
llama-server --hf-repo akarshanbiswas/gemma-1.1-2b-it-Q4_K_S-GGUF --model gemma-1.1-2b-it.Q4_K_S.gguf -c 2048
|
43 |
+
```
|
44 |
+
|
45 |
+
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.
|
46 |
+
|
47 |
+
```
|
48 |
+
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m gemma-1.1-2b-it.Q4_K_S.gguf -n 128
|
49 |
+
```
|