Instructions to use mradermacher/codegemma-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/codegemma-7b-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/codegemma-7b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/codegemma-7b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf mradermacher/codegemma-7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/codegemma-7b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mradermacher/codegemma-7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/codegemma-7b-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf mradermacher/codegemma-7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/codegemma-7b-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf mradermacher/codegemma-7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/codegemma-7b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/codegemma-7b-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/codegemma-7b-GGUF with Ollama:
ollama run hf.co/mradermacher/codegemma-7b-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/codegemma-7b-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/codegemma-7b-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/codegemma-7b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mradermacher/codegemma-7b-GGUF to start chatting
- Docker Model Runner
How to use mradermacher/codegemma-7b-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/codegemma-7b-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/codegemma-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/codegemma-7b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.codegemma-7b-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
auto-patch README.md
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ quantized_by: mradermacher
|
|
| 22 |
static quants of https://huggingface.co/google/codegemma-7b
|
| 23 |
|
| 24 |
<!-- provided-files -->
|
| 25 |
-
weighted/imatrix quants are available at https://huggingface.co/mradermacher/
|
| 26 |
## Usage
|
| 27 |
|
| 28 |
If you are unsure how to use GGUF files, refer to one of [TheBloke's
|
|
@@ -35,19 +35,19 @@ more details, including on how to concatenate multi-part files.
|
|
| 35 |
|
| 36 |
| Link | Type | Size/GB | Notes |
|
| 37 |
|:-----|:-----|--------:|:------|
|
| 38 |
-
| [GGUF](https://huggingface.co/mradermacher/
|
| 39 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 40 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 41 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 42 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 43 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 44 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 45 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 46 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 47 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 48 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 49 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 50 |
-
| [PART 1](https://huggingface.co/mradermacher/
|
| 51 |
|
| 52 |
Here is a handy graph by ikawrakow comparing some lower-quality quant
|
| 53 |
types (lower is better):
|
|
|
|
| 22 |
static quants of https://huggingface.co/google/codegemma-7b
|
| 23 |
|
| 24 |
<!-- provided-files -->
|
| 25 |
+
weighted/imatrix quants are available at https://huggingface.co/mradermacher/CodeGemma-7b-i1-GGUF
|
| 26 |
## Usage
|
| 27 |
|
| 28 |
If you are unsure how to use GGUF files, refer to one of [TheBloke's
|
|
|
|
| 35 |
|
| 36 |
| Link | Type | Size/GB | Notes |
|
| 37 |
|:-----|:-----|--------:|:------|
|
| 38 |
+
| [GGUF](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q4_0_4_4.gguf) | Q4_0_4_4 | 5.1 | fast on arm, low quality |
|
| 39 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q2_K.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q2_K.gguf) | Q2_K | 7.1 | |
|
| 40 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q3_K_S.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q3_K_S.gguf) | Q3_K_S | 8.1 | |
|
| 41 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q3_K_M.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q3_K_M.gguf) | Q3_K_M | 8.8 | lower quality |
|
| 42 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q3_K_L.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q3_K_L.gguf) | Q3_K_L | 9.5 | |
|
| 43 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.IQ4_XS.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.IQ4_XS.gguf) | IQ4_XS | 9.7 | |
|
| 44 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q4_K_S.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q4_K_S.gguf) | Q4_K_S | 10.2 | fast, recommended |
|
| 45 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q4_K_M.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q4_K_M.gguf) | Q4_K_M | 10.8 | fast, recommended |
|
| 46 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q5_K_S.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q5_K_S.gguf) | Q5_K_S | 12.1 | |
|
| 47 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q5_K_M.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q5_K_M.gguf) | Q5_K_M | 12.4 | |
|
| 48 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q6_K.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q6_K.gguf) | Q6_K | 14.1 | very good quality |
|
| 49 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.Q8_0.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.Q8_0.gguf) | Q8_0 | 18.3 | fast, best quality |
|
| 50 |
+
| [PART 1](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/CodeGemma-7b.f16.gguf) [PART 2](https://huggingface.co/mradermacher/CodeGemma-7b-GGUF/resolve/main/codegemma-7b.f16.gguf) | f16 | 34.3 | 16 bpw, overkill |
|
| 51 |
|
| 52 |
Here is a handy graph by ikawrakow comparing some lower-quality quant
|
| 53 |
types (lower is better):
|