PathOS
Shipped04.2026 - ∞|7m
An offline AI diagnostic assistant for histopathology that runs on a laptop through Ollama, with no GPU. Winner of the Ollama special track at the Gemma 4 Good Hackathon.
The measurement
19.5KSFT training examples
- Measured on
- H&E histopathology, Gemma 4 E2B, GRPO on 150 samples
What it does
- Team project. A Gemma 4 E2B model fine-tuned for H&E histopathology: supervised fine-tuning on 19.5K examples, then GRPO with format and accuracy rewards.
- Quantized to GGUF (Q8_0 and 4-bit Q4_K_M) so it runs through Ollama and llama.cpp on ordinary hardware.
- Constrained decoding keeps answers inside answer tags, and an agentic mode writes multi-paragraph pathology reports.
- Slide images go in through an API, and the model and adapters are published on Hugging Face and the Ollama registry.
Stack
- Gemma 4
- Ollama
- llama.cpp
- GGUF
- GRPO
- Docker