Instructions to use bartowski/gemma-2-9b-it-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bartowski/gemma-2-9b-it-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bartowski/gemma-2-9b-it-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bartowski/gemma-2-9b-it-GGUF", dtype="auto") - llama-cpp-python
How to use bartowski/gemma-2-9b-it-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="bartowski/gemma-2-9b-it-GGUF", filename="gemma-2-9b-it-IQ2_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use bartowski/gemma-2-9b-it-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf bartowski/gemma-2-9b-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf bartowski/gemma-2-9b-it-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf bartowski/gemma-2-9b-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf bartowski/gemma-2-9b-it-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 bartowski/gemma-2-9b-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf bartowski/gemma-2-9b-it-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 bartowski/gemma-2-9b-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf bartowski/gemma-2-9b-it-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bartowski/gemma-2-9b-it-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use bartowski/gemma-2-9b-it-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/gemma-2-9b-it-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/gemma-2-9b-it-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bartowski/gemma-2-9b-it-GGUF:Q4_K_M
- SGLang
How to use bartowski/gemma-2-9b-it-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "bartowski/gemma-2-9b-it-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/gemma-2-9b-it-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "bartowski/gemma-2-9b-it-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/gemma-2-9b-it-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use bartowski/gemma-2-9b-it-GGUF with Ollama:
ollama run hf.co/bartowski/gemma-2-9b-it-GGUF:Q4_K_M
- Unsloth Studio
How to use bartowski/gemma-2-9b-it-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 bartowski/gemma-2-9b-it-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 bartowski/gemma-2-9b-it-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bartowski/gemma-2-9b-it-GGUF to start chatting
- Docker Model Runner
How to use bartowski/gemma-2-9b-it-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/gemma-2-9b-it-GGUF:Q4_K_M
- Lemonade
How to use bartowski/gemma-2-9b-it-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bartowski/gemma-2-9b-it-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-2-9b-it-GGUF-Q4_K_M
List all available models
lemonade list
Llamacpp quants
Browse files- README.md +1 -1
- gemma-2-9b-it-IQ2_M.gguf +1 -1
- gemma-2-9b-it-IQ2_S.gguf +1 -1
- gemma-2-9b-it-IQ2_XS.gguf +1 -1
- gemma-2-9b-it-IQ3_M.gguf +1 -1
- gemma-2-9b-it-IQ3_XS.gguf +1 -1
- gemma-2-9b-it-IQ3_XXS.gguf +1 -1
- gemma-2-9b-it-IQ4_XS.gguf +1 -1
- gemma-2-9b-it-Q2_K.gguf +1 -1
- gemma-2-9b-it-Q2_K_L.gguf +1 -1
- gemma-2-9b-it-Q3_K_L.gguf +1 -1
- gemma-2-9b-it-Q3_K_M.gguf +1 -1
- gemma-2-9b-it-Q3_K_S.gguf +1 -1
- gemma-2-9b-it-Q3_K_XL.gguf +1 -1
- gemma-2-9b-it-Q4_K_L.gguf +1 -1
- gemma-2-9b-it-Q4_K_M.gguf +1 -1
- gemma-2-9b-it-Q4_K_S.gguf +1 -1
- gemma-2-9b-it-Q5_K_L.gguf +1 -1
- gemma-2-9b-it-Q5_K_M.gguf +1 -1
- gemma-2-9b-it-Q5_K_S.gguf +1 -1
- gemma-2-9b-it-Q6_K.gguf +1 -1
- gemma-2-9b-it-Q6_K_L.gguf +1 -1
- gemma-2-9b-it-Q8_0.gguf +1 -1
- gemma-2-9b-it-Q8_0_L.gguf +1 -1
- gemma-2-9b-it-f32.gguf +1 -1
- gemma-2-9b-it.imatrix +1 -1
README.md
CHANGED
|
@@ -15,7 +15,7 @@ quantized_by: bartowski
|
|
| 15 |
|
| 16 |
## Llamacpp imatrix Quantizations of gemma-2-9b-it
|
| 17 |
|
| 18 |
-
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/
|
| 19 |
|
| 20 |
Original model: https://huggingface.co/google/gemma-2-9b-it
|
| 21 |
|
|
|
|
| 15 |
|
| 16 |
## Llamacpp imatrix Quantizations of gemma-2-9b-it
|
| 17 |
|
| 18 |
+
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3277">b3277</a> for quantization.
|
| 19 |
|
| 20 |
Original model: https://huggingface.co/google/gemma-2-9b-it
|
| 21 |
|
gemma-2-9b-it-IQ2_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3434669952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db3b6ab5b60cd33b8a864bb94bf4ac848563544e3a2dc45e1707bcd37f57be27
|
| 3 |
size 3434669952
|
gemma-2-9b-it-IQ2_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3211487104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0725ca79e7415d9a23d0cdcd3f2376c1b989777dd07cd8c088af23bb4fc1fa28
|
| 3 |
size 3211487104
|
gemma-2-9b-it-IQ2_XS.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3067381632
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:010fb98c74fd5b413008adb14f62a0a6886883936dbc5693f45fd389b54bfd40
|
| 3 |
size 3067381632
|
gemma-2-9b-it-IQ3_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4494616448
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92a9f2ff1ed14de6a6ae30f062aa64c2299f4d7eefaf5afedd16193128b886c7
|
| 3 |
size 4494616448
|
gemma-2-9b-it-IQ3_XS.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4144990080
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a12f6a1bdff35de65550312309c08a1e4bd46403cc7a93975fa7a5b2812ad546
|
| 3 |
size 4144990080
|
gemma-2-9b-it-IQ3_XXS.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3796739968
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b749312e171137755d7140719de2768805fc93b183f248828c4fa1373b1287e6
|
| 3 |
size 3796739968
|
gemma-2-9b-it-IQ4_XS.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5183031168
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2a4737b6ffa7799fc722c85d1c9a5c49f9c7e9eeb759dfe81ff36682a79a4dd
|
| 3 |
size 5183031168
|
gemma-2-9b-it-Q2_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3805398912
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2de123f64585b1f0f937ea0c7c3f5be2127cd799d7bef1ca4094df75eff2588
|
| 3 |
size 3805398912
|
gemma-2-9b-it-Q2_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4887766912
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb12771d34313003fbffaea4a12a96b5f1f3a61fcb7bfbd9b2b8bb8ebecce72c
|
| 3 |
size 4887766912
|
gemma-2-9b-it-Q3_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5132453760
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad29f86fa78d235ff9a655e5d2d2c3f883456b557f6ab454d5b73c16a68cca80
|
| 3 |
size 5132453760
|
gemma-2-9b-it-Q3_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4761782144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:daf6b3cf23e1e5c31f9d7e58b96aa9311331e1ececbaa8fdd89b2390764950d1
|
| 3 |
size 4761782144
|
gemma-2-9b-it-Q3_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4337665920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03e8889ca0cc5460433d79d1bca616da0e031a79960f6b77beb77cfba0a4faa8
|
| 3 |
size 4337665920
|
gemma-2-9b-it-Q3_K_XL.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6214821760
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d68d8ef9a35e8e46185b4415454aa06c3e1911e5d9da38278e563083eed5f9a9
|
| 3 |
size 6214821760
|
gemma-2-9b-it-Q4_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6843426688
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:845733875d16e1e1d32703d7fa34c8f10afa0f59af0134499e0d66e479d36c30
|
| 3 |
size 6843426688
|
gemma-2-9b-it-Q4_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5761058688
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05390244866abc0e7108a2b1e3db07b82df3cd82f006256a75fc21137054151f
|
| 3 |
size 5761058688
|
gemma-2-9b-it-Q4_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5478926208
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:994bf7d6ee459ec3a277ce5a2c5d2aa532a7260cab85e11d03e005add2c6e3a3
|
| 3 |
size 5478926208
|
gemma-2-9b-it-Q5_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7729735552
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd364f54b7e37823fa8cbb857cfeb2091a9796d2ebbf1c06255040d5e549c851
|
| 3 |
size 7729735552
|
gemma-2-9b-it-Q5_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6647367552
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3da50620fae5b96b20c6a1dbce013c5f007a0926521bad2e64cc15db3044e51
|
| 3 |
size 6647367552
|
gemma-2-9b-it-Q5_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6483593088
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4694dc90b24f8b177b3589c69cee9e17c838beb42f01173dbde400e28f9b07a
|
| 3 |
size 6483593088
|
gemma-2-9b-it-Q6_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7589070720
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:936968f307fa9d705ab050b46a3d3c5a121ef22911d0941ffcd1828750d56244
|
| 3 |
size 7589070720
|
gemma-2-9b-it-Q6_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 8671438720
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79017a2d248eacdd5fef530ceda921077564716c2d42a864832c8a21ac58a5cb
|
| 3 |
size 8671438720
|
gemma-2-9b-it-Q8_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9827149696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:108a675c4ceed14a73dcbf0c43ff1bba273cf2cf515ae20ca667294aff2262a9
|
| 3 |
size 9827149696
|
gemma-2-9b-it-Q8_0_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 10687309696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e19cb326ba857bec47383ada7af3b0fd965605a44e0a3b6ab0b1e080a541597a
|
| 3 |
size 10687309696
|
gemma-2-9b-it-f32.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 36972881536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d57770bc4d9ed34aaffe5e7afaaec79dcebc8ea40d6694f90f7858c577bfb1f6
|
| 3 |
size 36972881536
|
gemma-2-9b-it.imatrix
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6116901
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb2a0732cf3a4b668251a51e7bc6b1338119cde0dd213911bf0cf58bc005261b
|
| 3 |
size 6116901
|