Instructions to use kth8/gemma-3-270m-it-homeowner-classifier-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kth8/gemma-3-270m-it-homeowner-classifier-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kth8/gemma-3-270m-it-homeowner-classifier-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kth8/gemma-3-270m-it-homeowner-classifier-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use kth8/gemma-3-270m-it-homeowner-classifier-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 kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
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 kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
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 kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
Use Docker
docker model run hf.co/kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use kth8/gemma-3-270m-it-homeowner-classifier-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kth8/gemma-3-270m-it-homeowner-classifier-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": "kth8/gemma-3-270m-it-homeowner-classifier-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
- SGLang
How to use kth8/gemma-3-270m-it-homeowner-classifier-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 "kth8/gemma-3-270m-it-homeowner-classifier-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": "kth8/gemma-3-270m-it-homeowner-classifier-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 "kth8/gemma-3-270m-it-homeowner-classifier-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": "kth8/gemma-3-270m-it-homeowner-classifier-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use kth8/gemma-3-270m-it-homeowner-classifier-GGUF with Ollama:
ollama run hf.co/kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
- Unsloth Desktop
- Docker Model Runner
How to use kth8/gemma-3-270m-it-homeowner-classifier-GGUF with Docker Model Runner:
docker model run hf.co/kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
- Lemonade
How to use kth8/gemma-3-270m-it-homeowner-classifier-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kth8/gemma-3-270m-it-homeowner-classifier-GGUF:BF16
Run and chat with the model
lemonade run user.gemma-3-270m-it-homeowner-classifier-GGUF-BF16
List all available models
lemonade list
- Atomic Chat
A supervised fine-tune of unsloth/gemma-3-270m-it on the kth8/homeowner-classification dataset.
Inspired by https://www.teachmecoolstuff.com/viewarticle/fine-tuning-a-local-llm-to-categorize-questions
Use temperature=0.0 for optimal results.
Usage example
System prompt
Classify the homeowner question into a category from the list below.
The answer must be exactly one category name from the list in JSON format.
Choose the best category based on the meaning of the question.
Valid categories:
- appliances
- brick work
- car
- cooking
- doorbell
- electric
- fence
- fountain
- garden lights
- gutters
- hvac
- irrigation
- mosquito
- painting
- pool
- tree service
- water heater
- window service
User prompt
What is the CYA level supposed to be in the pool water?
Assistant response
{"category": "pool"}
Model Details
- Base Model:
unsloth/gemma-3-270m-it - Parameter Count: 268,098,176
- Precision: torch.bfloat16
Training Settings
PEFT
- Rank: 32
- LoRA alpha: 64
- Modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
- Gradient checkpointing: unsloth
SFT
- Epoch: 1
- Batch size: 8
- Gradient Accumulation steps: 2
- Learning rate: 0.0002
- Optimizer: adamw_torch_fused
- Learning rate scheduler: cosine
- Warmup steps: 10
- Weight decay: 0.01
Training stats
- Date: 2026-06-17T01:06:10.026211
- GPU: NVIDIA L4
- Peak VRAM usage: 2.205 GB
- Global step: 126
- Training runtime (seconds): 334.7612
- Best validation loss: 0.013801434077322483
| Step | Training Loss | Validation Loss |
|---|---|---|
| 0 | No log | 2.182445 |
| 12 | 1.131100 | 0.195152 |
| 24 | 0.122900 | 0.082139 |
| 36 | 0.076800 | 0.034620 |
| 48 | 0.075600 | 0.027673 |
| 60 | 0.039300 | 0.031881 |
| 72 | 0.038300 | 0.020789 |
| 84 | 0.031200 | 0.015834 |
| 96 | 0.018400 | 0.013921 |
| 108 | 0.030300 | 0.014498 |
| 120 | 0.023700 | 0.013801 |
Framework versions
- Unsloth: 2026.6.7
- TRL: 0.22.2
- Transformers: 4.56.2
- Pytorch: 2.11.0+cu128
- Datasets: 5.0.0
- Tokenizers: 0.22.2
License
This model is released under the Gemma license. See the Gemma Terms of Use and Prohibited Use Policy regarding the use of Gemma-generated content.
- Downloads last month
- 7
16-bit