Instructions to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf", filename="gemma2-9b-cpt-sahabatai-v1-instruct-f16.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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16 # Run inference directly in the terminal: llama-cli -hf kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16 # Run inference directly in the terminal: llama-cli -hf kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
Use Docker
docker model run hf.co/kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
- LM Studio
- Jan
- vLLM
How to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-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": "kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
- Ollama
How to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf with Ollama:
ollama run hf.co/kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
- Unsloth Studio
How to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-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 kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf to start chatting
- Docker Model Runner
How to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf with Docker Model Runner:
docker model run hf.co/kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
- Lemonade
How to use kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16
Run and chat with the model
lemonade run user.gemma2-9b-cpt-sahabatai-v1-instruct-gguf-F16
List all available models
lemonade list
Gemma 2 9B Sahabat-AI Instruct (GGUF Versions)
This repository contains GGUF converted and quantized versions of the Sahabat-AI/gemma2-9b-cpt-sahabatai-v1-instruct model, converted using llama.cpp.
This model is an instruction-tuned variant, suitable for chat and following commands.
Available GGUF Files:
1. gemma2-9b-cpt-sahabatai-v1-instruct-f16.gguf
- Format: FP16 (Full Precision)
- Size: ~17.22 GB (approximate, actual size may vary slightly)
- Description: This is the full-precision GGUF conversion. It offers the highest fidelity but requires significant VRAM.
2. gemma2-9b-cpt-sahabatai-v1-instruct-q2k.gguf
- Format: Q2_K (2-bit Quantized)
- Size: ~3.54 GB (approximate, actual size may vary slightly)
- Description: A highly quantized version for maximum compression, suitable for extremely resource-constrained environments. May have noticeable quality degradation.
3. gemma2-9b-cpt-sahabatai-v1-instruct-q3km.gguf
- Format: Q3_K_M (3-bit Quantized)
- Size: ~4.43 GB (approximate, actual size may vary slightly)
- Description: A balance between size and quality, offering better performance than Q2_K with minimal additional VRAM.
4. gemma2-9b-cpt-sahabatai-v1-instruct-q4km.gguf
- Format: Q4_K_M (4-bit Quantized)
- Size: ~5.37 GB (approximate, actual size may vary slightly)
- Description: This is a highly optimized 4-bit quantized version, suitable for devices with limited VRAM. It offers a good balance between model size, performance, and minimal quality loss.
Original Model:
How to Use:
Download the desired .gguf file and use it with llama.cpp, LM Studio, Ollama, or any other GGUF-compatible inference tool.
For llama.cpp CLI, you might use:
./main -m gemma2-9b-cpt-sahabatai-v1-instruct-q4km.gguf -p "Write a story about a futuristic city." -n 128
- Downloads last month
- 1
16-bit
docker model run hf.co/kanrishaurus/gemma2-9b-cpt-sahabatai-v1-instruct-gguf:F16