alexcovo commited on
Commit
830c232
1 Parent(s): 58c3c12

Upload README.md with huggingface_hub

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