Instructions to use aarony630/alio-medical with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use aarony630/alio-medical with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="aarony630/alio-medical", filename="gemma-4-e2b-it.F16-mmproj.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 aarony630/alio-medical with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf aarony630/alio-medical:F16 # Run inference directly in the terminal: llama-cli -hf aarony630/alio-medical:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf aarony630/alio-medical:F16 # Run inference directly in the terminal: llama-cli -hf aarony630/alio-medical: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 aarony630/alio-medical:F16 # Run inference directly in the terminal: ./llama-cli -hf aarony630/alio-medical: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 aarony630/alio-medical:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf aarony630/alio-medical:F16
Use Docker
docker model run hf.co/aarony630/alio-medical:F16
- LM Studio
- Jan
- vLLM
How to use aarony630/alio-medical with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aarony630/alio-medical" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aarony630/alio-medical", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aarony630/alio-medical:F16
- Ollama
How to use aarony630/alio-medical with Ollama:
ollama run hf.co/aarony630/alio-medical:F16
- Unsloth Studio
How to use aarony630/alio-medical 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 aarony630/alio-medical 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 aarony630/alio-medical to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for aarony630/alio-medical to start chatting
- Pi
How to use aarony630/alio-medical with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf aarony630/alio-medical:F16
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "aarony630/alio-medical:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use aarony630/alio-medical with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf aarony630/alio-medical:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default aarony630/alio-medical:F16
Run Hermes
hermes
- Docker Model Runner
How to use aarony630/alio-medical with Docker Model Runner:
docker model run hf.co/aarony630/alio-medical:F16
- Lemonade
How to use aarony630/alio-medical with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull aarony630/alio-medical:F16
Run and chat with the model
lemonade run user.alio-medical-F16
List all available models
lemonade list
alio-medical (Gemma 4 E2B fine-tune)
Fine-tuned Gemma 4 E2B for plain-language medical text simplification, built for the Gemma 4 Good Hackathon on Kaggle (May 2026).
Project: Alio — an offline-first caregiver/family app that turns messy nurse notes, voice transcripts, and scanned lab reports into plain-language updates families can read in 30 seconds. Code at JzZ404/Alio.
What this model does
Three tasks, all in plain English / family-readable language:
- Lab panel interpretation — given a CMP, CBC, Lipid panel, A1c, etc., produce a JSON summary with flags and a follow-up urgency level
- Caregiver shift compilation — turn a stream of voice notes from a single shift into one concise narrative
- Symptom triage — classify a symptom report into
self_care/this_week/today/emergencywith a plain-language explanation
Training
- Base:
unsloth/gemma-4-E2B-it(5.15B params, "edge" tier) - Adapter: LoRA r=16, α=32, dropout=0.05, all attention + MLP modules (
q,k,v,o,gate,up,down) - Trainable params: 31M / 5.15B = 0.60%
- Data: 898 train + 100 val pairs from three sources:
- Kaggle Medical Transcriptions (real clinical notes filtered to general/internal medicine, cardiology, neurology) — labeled by hosted Gemma 4 31B (teacher-student distillation)
- Synthetic lab panels — 15 panel types (CMP, CBC, Lipid, A1c, Iron, Vit D, B12, TSH, etc.) in MyChart/Epic format
- Synthetic symptom triage scenarios across 4 severity tiers
- Trainer: Unsloth + TRL SFTTrainer on Kaggle T4 (2 epochs, lr=5e-5, max_grad_norm=1.0)
- Quantization: q4_k_m GGUF for portable local inference
How to use
Via Ollama (recommended)
ollama pull hf.co/aarony630/alio-medical
ollama run hf.co/aarony630/alio-medical "Glucose 218 mg/dL, BUN 42, Creatinine 2.1, eGFR 35. Explain in plain language."
Or with the included Modelfile:
ollama create alio-medical -f Modelfile
ollama run alio-medical
Chat template
The model expects Gemma 4's chat template:
<|turn>system
You are a medical assistant that explains health information in plain language for family members.<turn|>
<|turn>user
[your input]<turn|>
<|turn>model
Recommended sampling: temperature=0.4, top_p=0.9, stop="<turn|>".
Files in this repo
gemma-4-e2b-it.Q4_K_M.gguf(3.4 GB) — the fine-tuned text model. Q4_K_M quantization. Used by Ollama for all medical-text generation (lab interpretation, caregiver shift compilation, symptom triage).gemma-4-e2b-it.F16-mmproj.gguf(940 MB) — multimodal projector (vision/audio encoder). This is the base Gemma 4 E2B projector, unchanged — only the text decoder was LoRA-fine-tuned. Use this with llama-mtmd-cli for offline image input (Ollama doesn'''t support Gemma 4 multimodal as of v0.23.3).Modelfile— Ollama configuration with the correct chat template (<|turn>...<turn|>) and stop tokens. Use asollama create alio-medical -f Modelfile.
Limitations
- Tends to underplay severity for clearly-diabetic-range blood glucose values when given as bare numbers in voice-note context (use the lab-interpretation pathway for sharper response)
- For symptom triage, prefers
todayoveremergencyeven when hard-escalation rules apply. The app's_apply_escalation_override()(keyword scanner) catches this in production. - Image input requires an OCR step (Gemini Vision in the reference app); the model itself is text-only.
- Single-stage SFT only; no RLHF/DPO.
Citation
@misc{alio-medical-2026,
author = {Aaron Yeung},
title = {Alio: Offline-first caregiver app with fine-tuned Gemma 4 E2B},
year = {2026},
howpublished = {Kaggle Gemma 4 Good Hackathon},
url = {https://github.com/JzZ404/Alio}
}
- Downloads last month
- 71
4-bit