Xin Liu commited on
Commit
67598f3
·
1 Parent(s): ec990e5

Signed-off-by: Xin Liu <sam@secondstate.io>

Files changed (1) hide show
  1. README.md +77 -1
README.md CHANGED
@@ -1,3 +1,79 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model: google/codegemma-7b-it
3
+ inference: false
4
+ library_name: transformers
5
+ license: gemma
6
+ model_creator: Google
7
+ model_name: CodeGemma 7B (IT)
8
+ quantized_by: Second State Inc.
9
+ pipeline_tag: text-generation
10
  ---
11
+
12
+ <!-- header start -->
13
+ <!-- 200823 -->
14
+ <div style="width: auto; margin-left: auto; margin-right: auto">
15
+ <img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
16
+ </div>
17
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
18
+ <!-- header end -->
19
+
20
+ # CodeGemma-7b-it-GGUF
21
+
22
+ ## Original Model
23
+
24
+ [google/codegemma-7b-it](https://huggingface.co/google/codegemma-7b-it)
25
+
26
+ ## Run with LlamaEdge
27
+
28
+ - LlamaEdge version: coming soon
29
+
30
+ - Prompt template
31
+
32
+ - Prompt type: `gemma-instruct`
33
+
34
+ - Prompt string
35
+
36
+ ```text
37
+ <bos><start_of_turn>user
38
+ {user_message}<end_of_turn>
39
+ <start_of_turn>model
40
+ {model_message}<end_of_turn>model
41
+ ```
42
+
43
+ - Context size: `3072`
44
+
45
+ - Run as LlamaEdge service
46
+
47
+ ```bash
48
+ wasmedge --dir .:. --nn-preload default:GGML:AUTO:codegemma-7b-it-Q5_K_M.gguf \
49
+ llama-api-server.wasm \
50
+ --prompt-template gemma-instruct \
51
+ --ctx-size 3072 \
52
+ --model-name codegemma-7b
53
+ ```
54
+
55
+ <!-- - Run as LlamaEdge command app
56
+
57
+ ```bash
58
+ wasmedge --dir .:. --nn-preload default:GGML:AUTO:gemma-7b-it-Q5_K_M.gguf llama-chat.wasm -p gemma-instruct -c 4096
59
+ ``` -->
60
+
61
+ ## Quantized GGUF Models
62
+
63
+ | Name | Quant method | Bits | Size | Use case |
64
+ | ---- | ---- | ---- | ---- | ----- |
65
+ | [codegemma-7b-it-Q2_K.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q2_K.gguf) | Q2_K | 2 | 3.48 GB| smallest, significant quality loss - not recommended for most purposes |
66
+ | [codegemma-7b-it-Q3_K_L.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q3_K_L.gguf) | Q3_K_L | 3 | 4.71 GB| small, substantial quality loss |
67
+ | [codegemma-7b-it-Q3_K_M.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q3_K_M.gguf) | Q3_K_M | 3 | 4.37 GB| very small, high quality loss |
68
+ | [codegemma-7b-it-Q3_K_S.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q3_K_S.gguf) | Q3_K_S | 3 | 3.98 GB| very small, high quality loss |
69
+ | [codegemma-7b-it-Q4_0.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q4_0.gguf) | Q4_0 | 4 | 5.01 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
70
+ | [codegemma-7b-it-Q4_K_M.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q4_K_M.gguf) | Q4_K_M | 4 | 5.33 GB| medium, balanced quality - recommended |
71
+ | [codegemma-7b-it-Q4_K_S.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q4_K_S.gguf) | Q4_K_S | 4 | 5.05 GB| small, greater quality loss |
72
+ | [codegemma-7b-it-Q5_0.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q5_0.gguf) | Q5_0 | 5 | 5.98 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
73
+ | [codegemma-7b-it-Q5_K_M.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q5_K_M.gguf) | Q5_K_M | 5 | 6.14 GB| large, very low quality loss - recommended |
74
+ | [codegemma-7b-it-Q5_K_S.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q5_K_S.gguf) | Q5_K_S | 5 | 5.98 GB| large, low quality loss - recommended |
75
+ | [codegemma-7b-it-Q6_K.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q6_K.gguf) | Q6_K | 6 | 7.01 GB| very large, extremely low quality loss |
76
+ | [codegemma-7b-it-Q8_0.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-Q8_0.gguf) | Q8_0 | 8 | 9.08 GB| very large, extremely low quality loss - not recommended |
77
+ | [codegemma-7b-it-f16.gguf](https://huggingface.co/second-state/CodeGemma-7b-it-GGUF/blob/main/codegemma-7b-it-f16.gguf) | f16 | 16 | 17.1 GB| |
78
+
79
+ *Quantized with llama.cpp b2589*