Instructions to use rafkus/gemma4-cs-q8_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use rafkus/gemma4-cs-q8_0 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="rafkus/gemma4-cs-q8_0", filename="gemma4_cs_q8_0.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 rafkus/gemma4-cs-q8_0 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 rafkus/gemma4-cs-q8_0:Q8_0 # Run inference directly in the terminal: llama cli -hf rafkus/gemma4-cs-q8_0:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf rafkus/gemma4-cs-q8_0:Q8_0 # Run inference directly in the terminal: llama cli -hf rafkus/gemma4-cs-q8_0:Q8_0
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 rafkus/gemma4-cs-q8_0:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf rafkus/gemma4-cs-q8_0:Q8_0
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 rafkus/gemma4-cs-q8_0:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf rafkus/gemma4-cs-q8_0:Q8_0
Use Docker
docker model run hf.co/rafkus/gemma4-cs-q8_0:Q8_0
- LM Studio
- Jan
- vLLM
How to use rafkus/gemma4-cs-q8_0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rafkus/gemma4-cs-q8_0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rafkus/gemma4-cs-q8_0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rafkus/gemma4-cs-q8_0:Q8_0
- Ollama
How to use rafkus/gemma4-cs-q8_0 with Ollama:
ollama run hf.co/rafkus/gemma4-cs-q8_0:Q8_0
- Unsloth Studio
How to use rafkus/gemma4-cs-q8_0 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 rafkus/gemma4-cs-q8_0 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 rafkus/gemma4-cs-q8_0 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rafkus/gemma4-cs-q8_0 to start chatting
- Atomic Chat new
- Docker Model Runner
How to use rafkus/gemma4-cs-q8_0 with Docker Model Runner:
docker model run hf.co/rafkus/gemma4-cs-q8_0:Q8_0
- Lemonade
How to use rafkus/gemma4-cs-q8_0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rafkus/gemma4-cs-q8_0:Q8_0
Run and chat with the model
lemonade run user.gemma4-cs-q8_0-Q8_0
List all available models
lemonade list
Cakap โ Indonesian CS Conversational Model
Fine-tuned Gemma 4 e4B for natural Indonesian customer service conversations.
Intended Use
Automating Indonesian-language CS interactions โ product inquiries, complaints, order tracking, and returns.
Model Details
- Base model: Gemma 4 e4B
- Quantization: Q8_0 (GGUF)
- Fine-tuning: Supervised fine-tuning on 200 synthetic CS conversations
- Language: Bahasa Indonesia
Training Data
200 synthetic conversations generated with Claude Opus covering common e-commerce CS scenarios. Dataset: https://www.kaggle.com/datasets/rafikusuma/cs-dataset
How to Use
With Unsloth
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "rafkus/gemma4-cs-q8_0",
max_seq_length = 2048,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
messages = [
{"role": "system", "content": "Kamu adalah asisten customer service yang profesional dan ramah bernama Purwa."},
{"role": "user", "content": "Halo, saya mau tanya status pesanan saya nomor #INV20240115"},
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
With Ollama (GGUF)
ollama run rafkus/gemma4-cs-q8_0
Limitations
- Trained on synthetic data only
- Domain specific: e-commerce CS
- Not tested on production traffic
- Downloads last month
- 3
Hardware compatibility
Log In to add your hardware
8-bit