bartowski commited on
Commit
b161d9d
1 Parent(s): c46525f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -70
README.md CHANGED
@@ -18,96 +18,58 @@ inference:
18
  license: gemma
19
  license_link: https://ai.google.dev/gemma/terms
20
  quantized_by: bartowski
 
 
 
 
 
 
 
 
 
21
  ---
22
 
23
- ## Llamacpp imatrix Quantizations of codegemma-1.1-7b-it
24
 
25
- Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2777">b2777</a> for quantization.
26
 
27
- Original model: https://huggingface.co/google/codegemma-1.1-7b-it
 
 
28
 
29
- All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
 
 
30
 
31
- ## Prompt format
32
 
 
 
 
33
 
34
  ```
35
- <bos><start_of_turn>user
36
  {prompt}<end_of_turn>
37
  <start_of_turn>model
38
  ```
39
 
40
- ## Download a file (not the whole branch) from below:
41
-
42
- | Filename | Quant type | File Size | Description |
43
- | -------- | ---------- | --------- | ----------- |
44
- | [codegemma-1.1-7b-it-Q8_0.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q8_0.gguf) | Q8_0 | 9.07GB | Extremely high quality, generally unneeded but max available quant. |
45
- | [codegemma-1.1-7b-it-Q6_K.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q6_K.gguf) | Q6_K | 7.01GB | Very high quality, near perfect, *recommended*. |
46
- | [codegemma-1.1-7b-it-Q5_K_M.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q5_K_M.gguf) | Q5_K_M | 6.14GB | High quality, *recommended*. |
47
- | [codegemma-1.1-7b-it-Q5_K_S.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q5_K_S.gguf) | Q5_K_S | 5.98GB | High quality, *recommended*. |
48
- | [codegemma-1.1-7b-it-Q4_K_M.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q4_K_M.gguf) | Q4_K_M | 5.32GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
49
- | [codegemma-1.1-7b-it-Q4_K_S.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q4_K_S.gguf) | Q4_K_S | 5.04GB | Slightly lower quality with more space savings, *recommended*. |
50
- | [codegemma-1.1-7b-it-IQ4_NL.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ4_NL.gguf) | IQ4_NL | 5.01GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
51
- | [codegemma-1.1-7b-it-IQ4_XS.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ4_XS.gguf) | IQ4_XS | 4.76GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
52
- | [codegemma-1.1-7b-it-Q3_K_L.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q3_K_L.gguf) | Q3_K_L | 4.70GB | Lower quality but usable, good for low RAM availability. |
53
- | [codegemma-1.1-7b-it-Q3_K_M.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q3_K_M.gguf) | Q3_K_M | 4.36GB | Even lower quality. |
54
- | [codegemma-1.1-7b-it-IQ3_M.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ3_M.gguf) | IQ3_M | 4.10GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
55
- | [codegemma-1.1-7b-it-IQ3_S.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ3_S.gguf) | IQ3_S | 3.98GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
56
- | [codegemma-1.1-7b-it-Q3_K_S.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q3_K_S.gguf) | Q3_K_S | 3.98GB | Low quality, not recommended. |
57
- | [codegemma-1.1-7b-it-IQ3_XS.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ3_XS.gguf) | IQ3_XS | 3.80GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
58
- | [codegemma-1.1-7b-it-IQ3_XXS.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ3_XXS.gguf) | IQ3_XXS | 3.48GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
59
- | [codegemma-1.1-7b-it-Q2_K.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-Q2_K.gguf) | Q2_K | 3.48GB | Very low quality but surprisingly usable. |
60
- | [codegemma-1.1-7b-it-IQ2_M.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ2_M.gguf) | IQ2_M | 3.13GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
61
- | [codegemma-1.1-7b-it-IQ2_S.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ2_S.gguf) | IQ2_S | 2.91GB | Very low quality, uses SOTA techniques to be usable. |
62
- | [codegemma-1.1-7b-it-IQ2_XS.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ2_XS.gguf) | IQ2_XS | 2.81GB | Very low quality, uses SOTA techniques to be usable. |
63
- | [codegemma-1.1-7b-it-IQ2_XXS.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ2_XXS.gguf) | IQ2_XXS | 2.58GB | Lower quality, uses SOTA techniques to be usable. |
64
- | [codegemma-1.1-7b-it-IQ1_M.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ1_M.gguf) | IQ1_M | 2.32GB | Extremely low quality, *not* recommended. |
65
- | [codegemma-1.1-7b-it-IQ1_S.gguf](https://huggingface.co/bartowski/codegemma-1.1-7b-it-GGUF/blob/main/codegemma-1.1-7b-it-IQ1_S.gguf) | IQ1_S | 2.16GB | Extremely low quality, *not* recommended. |
66
-
67
- ## Downloading using huggingface-cli
68
-
69
- First, make sure you have hugginface-cli installed:
70
-
71
- ```
72
- pip install -U "huggingface_hub[cli]"
73
- ```
74
-
75
- Then, you can target the specific file you want:
76
-
77
- ```
78
- huggingface-cli download bartowski/codegemma-1.1-7b-it-GGUF --include "codegemma-1.1-7b-it-Q4_K_M.gguf" --local-dir ./ --local-dir-use-symlinks False
79
- ```
80
-
81
- If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
82
-
83
- ```
84
- huggingface-cli download bartowski/codegemma-1.1-7b-it-GGUF --include "codegemma-1.1-7b-it-Q8_0.gguf/*" --local-dir codegemma-1.1-7b-it-Q8_0 --local-dir-use-symlinks False
85
- ```
86
-
87
- You can either specify a new local-dir (codegemma-1.1-7b-it-Q8_0) or download them all in place (./)
88
-
89
- ## Which file should I choose?
90
-
91
- A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
92
-
93
- The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
94
 
95
- If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
96
 
97
- If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
98
 
99
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
100
 
101
- If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
102
 
103
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
104
 
105
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
106
 
107
- But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
108
 
109
- These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
110
 
111
- The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
112
 
113
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
 
18
  license: gemma
19
  license_link: https://ai.google.dev/gemma/terms
20
  quantized_by: bartowski
21
+ lm_studio:
22
+ param_count: 8b
23
+ use_case: coding
24
+ release_date: 30-04-2024
25
+ model_creator: google
26
+ prompt_template: Google Gemma Instruct
27
+ system_prompt: none
28
+ base_model: gemma
29
+ original_repo: google/codegemma-1.1-7b-it
30
  ---
31
 
32
+ ## 💫 Community Model> CodeGemma 1.1 7b Instruct by Google
33
 
34
+ *👾 [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.
35
 
36
+ **Model creator:** [Google](https://huggingface.co/google)<br>
37
+ **Original model**: [google/codegemma-1.1-7b-it](https://huggingface.co/google/codegemma-1.1-7b-it)<br>
38
+ **GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2777](https://github.com/ggerganov/llama.cpp/releases/tag/b28777)<br>
39
 
40
+ ## Model Summary:
41
+ CodeGemma 1.1 7b Instruct is an iteration on the initial CodeGemma release. It should come with minor improvements to code generation.<br>
42
+ This model is meant to be used as a coding companion or for code generation.<br>
43
 
44
+ ## Prompt Template:
45
 
46
+ Choose the 'Google Gemma Instruct' preset in your LM Studio.
47
+
48
+ Under the hood, the model will see a prompt that's formatted like so:
49
 
50
  ```
51
+ <start_of_turn>user
52
  {prompt}<end_of_turn>
53
  <start_of_turn>model
54
  ```
55
 
56
+ ## Technical Details
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
+ CodeGemma is based on the Gemma 7b model with additional training on web documents, mathematics, and code, with a mixture of 80% code and 20% natural language.
59
 
60
+ The code used is based on publicly avaialble code repositories.
61
 
62
+ The instruct version was further trained on mathematical datasets in an attempt to improve its mathematical reasoning capabilities, as well as synthetic code generation combined with a second LLM for evaluation and reinforcement feedback.
63
 
64
+ Additional details can be found on Google's official report PDF [here](https://storage.googleapis.com/deepmind-media/gemma/codegemma_report.pdf)
65
 
66
+ ## Special thanks
67
 
68
+ 🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
69
 
70
+ 🙏 Special thanks to [Kalomaze](https://github.com/kalomaze) for his dataset (linked [here](https://github.com/ggerganov/llama.cpp/discussions/5263)) that was used for calculating the imatrix for these quants, which improves the overall quality!
71
 
72
+ ## Disclaimers
73
 
74
+ LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.
75