Instructions to use guiopen/gemma-2-9b-it-Q6_K_L-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use guiopen/gemma-2-9b-it-Q6_K_L-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 guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L # Run inference directly in the terminal: llama cli -hf guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L # Run inference directly in the terminal: llama cli -hf guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
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 guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L # Run inference directly in the terminal: ./llama-cli -hf guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
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 guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L # Run inference directly in the terminal: ./build/bin/llama-cli -hf guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
Use Docker
docker model run hf.co/guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
- LM Studio
- Jan
- Ollama
How to use guiopen/gemma-2-9b-it-Q6_K_L-GGUF with Ollama:
ollama run hf.co/guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
- Unsloth Desktop
- Docker Model Runner
How to use guiopen/gemma-2-9b-it-Q6_K_L-GGUF with Docker Model Runner:
docker model run hf.co/guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
- Lemonade
How to use guiopen/gemma-2-9b-it-Q6_K_L-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull guiopen/gemma-2-9b-it-Q6_K_L-GGUF:Q6_K_L
Run and chat with the model
lemonade run user.gemma-2-9b-it-Q6_K_L-GGUF-Q6_K_L
List all available models
lemonade list
- Atomic Chat
This is a Q6_K quantization of google/gemma-2-9b-it with Q8_0 for Output/Embedding weights using LLaMA.cpp version b4617.
Model Quantization Guide for Q6_K_L with Q8_0 Output/Embedding
Requirements
- llama.cpp source code
- The model weights from Hugging Face
- Python 3.x with pip
- C++ build tools
Setup
- Clone repositories:
git clone https://github.com/ggerganov/llama.cpp
git clone https://huggingface.co/{MODEL_REPO}
- Compile llama.cpp following CPU build instructions
Conversion to GGUF
- Install Python dependencies:
pip install -r llama.cpp/requirements.txt
- Convert weights:
python llama.cpp/convert_hf_to_gguf.py \
/path/to/model \
--outtype f32 \
--outfile /output/path/model-f32.gguf
Quantization
From llama.cpp/build/bin directory:
./llama-quantize \
--output-tensor-type Q8_0 \
--token-embedding-type Q8_0 \
/input/path/model-f32.gguf \
/output/path/model-Q6_K_L.gguf \
Q6_K
Usage
The quantized model (model-Q6_K_L.gguf) can be used with:
- llama.cpp's CLI
- llama.cpp's server webui or api
- Other GGUF-compatible tools
Notes
- Replace
/path/to/modelwith your actual model directory path - Replace
{MODEL_REPO}with the Hugging Face repository path of your model - Quantization parameters:
- Q6_K: 6-bit quantization for majority of weights
- Q8_0: 8-bit for output/embedding tensors
- This process works for Hugging Face models compatible with llama.cpp conversion
You can use this template by replacing the placeholder values with your specific model information:
- MODEL_REPO: Your model's Hugging Face repository path
- model: Your model's name in file paths
- Downloads last month
- 19
Hardware compatibility
Log In to add your hardware
6-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support