Instructions to use tensorblock/codegemma-2b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/codegemma-2b-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/codegemma-2b-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/codegemma-2b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/codegemma-2b-GGUF", filename="codegemma-2b-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/codegemma-2b-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/codegemma-2b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/codegemma-2b-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/codegemma-2b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/codegemma-2b-GGUF:Q2_K
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 tensorblock/codegemma-2b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/codegemma-2b-GGUF:Q2_K
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 tensorblock/codegemma-2b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/codegemma-2b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/codegemma-2b-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/codegemma-2b-GGUF with Ollama:
ollama run hf.co/tensorblock/codegemma-2b-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/codegemma-2b-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 tensorblock/codegemma-2b-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 tensorblock/codegemma-2b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/codegemma-2b-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/codegemma-2b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/codegemma-2b-GGUF:Q2_K
- Lemonade
How to use tensorblock/codegemma-2b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/codegemma-2b-GGUF:Q2_K
Run and chat with the model
lemonade run user.codegemma-2b-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- codegemma-2b-Q3_K_L.gguf +0 -3
- codegemma-2b-Q3_K_S.gguf +0 -3
- codegemma-2b-Q4_0.gguf +0 -3
- codegemma-2b-Q4_K_M.gguf +0 -3
- codegemma-2b-Q4_K_S.gguf +0 -3
- codegemma-2b-Q5_0.gguf +0 -3
- codegemma-2b-Q5_K_M.gguf +0 -3
- codegemma-2b-Q5_K_S.gguf +0 -3
- codegemma-2b-Q6_K.gguf +0 -3
- codegemma-2b-Q8_0.gguf +0 -3
codegemma-2b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:996edf1c1afb79a264aa3f5aefa3347fc1c4e742ebf7285a82c5d1fd6173c2eb
|
| 3 |
-
size 1465590336
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:abe3be88a14cdd4413057662685ec44e00a0fadc757e5b01b64770e661122853
|
| 3 |
-
size 1287979584
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:130d67e375934ed380a3f70abcb8587d2189f80d4822d03893366e01e45bd98e
|
| 3 |
-
size 1551188544
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9b5d61b7a3c07a43f477ca4a9a60a0e4f6e2fd9891f1ec14749d370128fc41c2
|
| 3 |
-
size 1630261824
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:da957381b97393749b04cf65c2eb932360b2f95d476e106d3684bb37d1e53981
|
| 3 |
-
size 1559839296
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:40643820af73ed8cd90f58f9914d00067d7d222972475fd58afb5e877d0470f2
|
| 3 |
-
size 1798914624
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5eb96286d9542bc8bc1261a5d211c422b15832bf4403194dc5bf98886f635ed0
|
| 3 |
-
size 1839649344
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c84c85636caf192c0d1832979db47c14c85f69ef7308b2d250df3cb80d7a768d
|
| 3 |
-
size 1798914624
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:386b8821aa78daaaf2d6a217c9adb39cf57c21c5ca800b0fb1f7aec26bbcf208
|
| 3 |
-
size 2062123584
|
|
|
|
|
|
|
|
|
|
|
|
codegemma-2b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2a2b42b922d80a86eadc172845b8416fef63b8d77402ce635a24b94462ee863a
|
| 3 |
-
size 2669068864
|
|
|
|
|
|
|
|
|
|
|
|