llm-exp commited on
Commit
50fe36c
1 Parent(s): e75174c

Upload README.md with huggingface_hub

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