Instructions to use sizzlebop/onca-3.0-12b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sizzlebop/onca-3.0-12b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sizzlebop/onca-3.0-12b-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sizzlebop/onca-3.0-12b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sizzlebop/onca-3.0-12b-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 sizzlebop/onca-3.0-12b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sizzlebop/onca-3.0-12b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
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 sizzlebop/onca-3.0-12b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
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 sizzlebop/onca-3.0-12b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use sizzlebop/onca-3.0-12b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sizzlebop/onca-3.0-12b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sizzlebop/onca-3.0-12b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
- SGLang
How to use sizzlebop/onca-3.0-12b-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 "sizzlebop/onca-3.0-12b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sizzlebop/onca-3.0-12b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "sizzlebop/onca-3.0-12b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sizzlebop/onca-3.0-12b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use sizzlebop/onca-3.0-12b-GGUF with Ollama:
ollama run hf.co/sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use sizzlebop/onca-3.0-12b-GGUF with Docker Model Runner:
docker model run hf.co/sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
- Lemonade
How to use sizzlebop/onca-3.0-12b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sizzlebop/onca-3.0-12b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.onca-3.0-12b-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
ONCA 3.0 (12B) GGUF
This repository provides GGUF quantizations for Joesh1/onca-3.0-12b.
ONCA 3.0 is a specialized 11.95B-parameter oncology research model derived from google/gemma-4-12B. It uses the text-only decoder within Gemma 4's unified architecture and is fine-tuned to generate compact, structured JSON outputs across six oncology tasks: pathological TNM classification (T, N, M staging), clinical trial triage, trial criterion reasoning, and CIViC molecular-evidence classification.
All GGUF files were converted from the original sharded safetensors weights using llama.cpp at native F16 precision, followed by quantization into standard k-quant variants.
ONCA 3.0 is a research model, not a medical device, clinical decision system, or staging authority. It is intended strictly for research evaluation and structured information extraction workflows.
Available Files and Quantizations
| File | Quant Type | Size | Description / Recommendation |
|---|---|---|---|
onca-3.0-12b-F16.gguf |
F16 | 22.20 GB | Full precision base conversion. Highest fidelity reference weights. |
onca-3.0-12b-Q8_0.gguf |
Q8_0 | 11.80 GB | Near-lossless 8-bit quantization. Recommended for rigorous research evaluation. |
onca-3.0-12b-Q6_K.gguf |
Q6_K | 9.11 GB | Excellent retention of structured generation accuracy with reduced VRAM demands. |
onca-3.0-12b-Q5_K_M.gguf |
Q5_K_M | 7.96 GB | Strong balance of memory efficiency and schema adherence. |
onca-3.0-12b-Q4_K_M.gguf |
Q4_K_M | 6.87 GB | Fast 4-bit quant. Recommended default for local workstation inference and desktop GPUs. |
onca-3.0-12b-Q3_K_M.gguf |
Q3_K_M | 5.67 GB | Lower memory footprint when running on constrained devices. |
onca-3.0-12b-Q2_K.gguf |
Q2_K | 4.50 GB | Maximum compression for testing on memory-limited hardware. |
Technical Specifications
- Foundation Architecture: Gemma 4 Unified (
Gemma4UnifiedForConditionalGeneration) - Modality: Text only (multimodal vision/audio heads are not active in this checkpoint)
- Parameter Count: 11.95B parameters
- Context Window: Up to 262,144 tokens (evaluation sequences capped at 4,096 tokens)
- Base Precision: float16
- License: Apache-2.0
Supported Oncology Tasks and Schemas
Every query should specify its task in the prompt. The model outputs compact JSON without conversational filler or hidden chain-of-thought tokens:
Pathological T Staging (
tnm_t):{"task":"tnm_t","label":"T2"}Pathological N Staging (
tnm_n):{"task":"tnm_n","label":"N1"}Pathological M Staging (
tnm_m):{"task":"tnm_m","label":"M0"}Trial-Space Triage (
trial_space):{"task":"trial_space","decision":"CONSIDER"}Trial-Criterion Reasoning (
trial_criterion):{"task":"trial_criterion","criterion_type":"inclusion","native_decision":"included","canonical_decision":"SATISFIED","evidence_sentence_ids":[2,4]}CIViC Molecular Evidence (
civic_evidence):{"task":"civic_evidence","evidence_type":"PREDICTIVE","evidence_level":"A","evidence_direction":"SUPPORTS","clinical_significance":"SENSITIVITY_RESPONSE"}
Prompt Format
This model uses Gemma 4 conversational turn markers:
<bos><start_of_turn>user
You are an oncology research assistant that outputs only valid JSON matching the requested schema.
Task: tnm_t
Cancer type: Pancreatic ductal adenocarcinoma
Pathology excerpt: Tumor measures 3.2 cm in greatest dimension, limited to the pancreas.<end_of_turn>
<start_of_turn>model
{"task":"tnm_t","label":"T2"}<end_of_turn>
Quickstart Guide
Option 1: llama.cpp CLI
Run local inference directly with llama-cli:
llama-cli -m onca-3.0-12b-Q4_K_M.gguf \
-p "<bos><start_of_turn>user\nYou are an oncology research model. Return only JSON.\n\nTask: tnm_t\nCancer type: Lung adenocarcinoma\nReport: Invasive adenocarcinoma measuring 2.4 cm.<end_of_turn>\n<start_of_turn>model\n" \
-n 128 \
--temp 0.0 \
-ngl 99
Option 2: llama.cpp Server
Launch an OpenAI-compatible HTTP server:
llama-server -m onca-3.0-12b-Q4_K_M.gguf \
--port 8080 \
-c 8192 \
-ngl 99
Query the endpoint:
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "onca-3.0-12b",
"messages": [
{"role": "user", "content": "Task: trial_space\nPatient: 62yo male with metastatic CRC.\nTrial space: First-line metastatic colorectal cancer immunotherapy."}
],
"temperature": 0.0
}'
Option 3: Ollama
Create a custom Ollama model using a Modelfile:
FROM ./onca-3.0-12b-Q4_K_M.gguf
TEMPLATE """<bos>{{- range .Messages }}
<start_of_turn>{{ .Role }}
{{ .Content }}<end_of_turn>
{{- end }}
<start_of_turn>model
"""
PARAMETER stop "<end_of_turn>"
PARAMETER temperature 0.0
Build and run:
ollama create onca-12b -f Modelfile
ollama run onca-12b "Task: tnm_m\nCancer type: Breast carcinoma\nReport: No evidence of distant metastasis."
Option 4: LM Studio
- Place
onca-3.0-12b-Q4_K_M.ggufinside your local LM Studio directory. - Select the model from the model dropdown.
- Configure the chat preset for Gemma syntax (
<start_of_turn>user/<start_of_turn>model). - Set temperature to
0.0for deterministic structured JSON output.
Original Model and Citation
- Original Hugging Face Repository: Joesh1/onca-3.0-12b
- Base Foundation Model: google/gemma-4-12B
- Primary Research Focus: Structured clinical NLP, pathological staging extraction, and precision oncology trial screening.
- Downloads last month
- 12
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit