Instructions to use qnixsynapse/Gemma-V2-9B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use qnixsynapse/Gemma-V2-9B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="qnixsynapse/Gemma-V2-9B-Instruct-GGUF", filename="Gemma-9B-IT-Q4_K_S.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use qnixsynapse/Gemma-V2-9B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
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 qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
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 qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
Use Docker
docker model run hf.co/qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
- LM Studio
- Jan
- Ollama
How to use qnixsynapse/Gemma-V2-9B-Instruct-GGUF with Ollama:
ollama run hf.co/qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
- Unsloth Studio
How to use qnixsynapse/Gemma-V2-9B-Instruct-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 qnixsynapse/Gemma-V2-9B-Instruct-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 qnixsynapse/Gemma-V2-9B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for qnixsynapse/Gemma-V2-9B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use qnixsynapse/Gemma-V2-9B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
- Lemonade
How to use qnixsynapse/Gemma-V2-9B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull qnixsynapse/Gemma-V2-9B-Instruct-GGUF:Q4_K_S
Run and chat with the model
lemonade run user.Gemma-V2-9B-Instruct-GGUF-Q4_K_S
List all available models
lemonade list
Llamacpp Quantizations of official gguf of gemma-2-9b-it from kaggle repo
Using llama.cpp PR 8156 for quantization.
Original model: https://huggingface.co/google/gemma-2-9b-it
Downloading using huggingface-cli
First, make sure you have hugginface-cli installed:
pip install -U "huggingface_hub[cli]"
Then, you can target the specific file you want:
huggingface-cli download qnixsynapse/Gemma-V2-9B-Instruct-GGUF --include "<desired model file name>" --local-dir ./
or you can download directly.
Prompt format
The prompt format is same as Gemma v1 however not included with gguf file. This can be edited with gguf script to add a new key chat_template later.
<bos><start_of_turn>user
{prompt}<end_of_turn>
<start_of_turn>model
The model should stop either at <eos> or <end_of_turn>. If it doesn't then stop tokens needs to be added to the gguf metadata.
Quants
Currently only two quants are available:
| quant | size |
|---|---|
| Q4_K_S | 5.5GB |
| Q3_K_M | 4.8GB |
If Q4_K_S is causing OOM when offloading all the layers to the GPU, consider decreasing batch size or use Q3_K_M.
Minimum VRAM needed: 8GB
- Downloads last month
- 45
4-bit