Instructions to use mesaketk/TinyHealth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mesaketk/TinyHealth 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 mesaketk/TinyHealth:Q4_K_M # Run inference directly in the terminal: llama cli -hf mesaketk/TinyHealth:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mesaketk/TinyHealth:Q4_K_M # Run inference directly in the terminal: llama cli -hf mesaketk/TinyHealth:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf mesaketk/TinyHealth:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf mesaketk/TinyHealth:Q4_K_M
Use Docker
docker model run hf.co/mesaketk/TinyHealth:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use mesaketk/TinyHealth with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mesaketk/TinyHealth" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mesaketk/TinyHealth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mesaketk/TinyHealth:Q4_K_M
- Ollama
How to use mesaketk/TinyHealth with Ollama:
ollama run hf.co/mesaketk/TinyHealth:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use mesaketk/TinyHealth with Docker Model Runner:
docker model run hf.co/mesaketk/TinyHealth:Q4_K_M
- Lemonade
How to use mesaketk/TinyHealth with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mesaketk/TinyHealth:Q4_K_M
Run and chat with the model
lemonade run user.TinyHealth-Q4_K_M
List all available models
lemonade list
- Atomic Chat
TinyHealth (v5.1 models, app 3.2)
Model weights, Android APKs and the on-device retriever graph for "TinyHealth: Design, Technical Feasibility, and Clinician Evaluation of an Offline, On-Device Small Language Model for Community Health Workers in India" (Frontiers, Technology and Code; under review). Code, data, evaluation records and reproduction steps: https://github.com/KhushiBaby/TinyHealth-Frontiers.
Research prototype. Not a clinical tool. The models answer questions from India's Accredited Social Health Activists (ASHAs) from retrieved government guideline passages under a fixed answer policy. Clinicians found substantial factual errors in their answers, and they have not been tested in the field. Do not use them for patient care.
Files
| file | bytes | SHA-256 | what |
|---|---|---|---|
tinyhealth-270m-ft-v51-q4_k_m.gguf |
253,114,816 | cbbea180b6ca222d0d4c3e088d7b0ac1cde7cf3ae6272ea7a32c0cacab08b6d9 |
Gemma 3 270M, LoRA fine-tuned, Q4_K_M |
tinyhealth-1b-ft-v51-q4_k_m.gguf |
806,058,112 | 2fc42831ea892282b3fec8c2c6a01a9790d8a26310f8c67dfaae3db156722573 |
Gemma 3 1B, LoRA fine-tuned, Q4_K_M (bundled in the app) |
tinyhealth-4b-ft-v51-q4_k_m.gguf |
2,489,893,856 | 31e9debfcc4f872f3134078d9b328e39c78e814550607a9b2afab925b0dd7ef0 |
Gemma 3 4B, LoRA fine-tuned, Q4_K_M (import in the app; phones with at least 6 GB of RAM) |
TinyHealth-demo-1b-v51-bundled-3.2.apk |
1,067,518,790 | 4be564e4f10b81d5334069d03396654d1cdee08a3f9dba10b1c7b3e9f5688907 |
Android app 3.2 with the 1B model (Android 13+, arm64-v8a / x86_64) |
TinyHealth-demo-v51-3.2.apk |
261,460,511 | f36904e035a07891712ea883429286f54fe403ed69adeef78f760c782944a02c |
Android app 3.2 without a model (import a GGUF on first launch) |
e5_int8.onnx |
118,068,802 | 3f663b7e9893e7db61c01fc2bf04f2e0abd4816e1d131ca918b84474fce11b6e |
multilingual-e5-small int8 encoder for the app's retriever (place in android/app/src/main/assets/rag/) |
The three GGUF checksums equal the model_blob_sha256 recorded with every
evaluated answer in the code repository (tinyhealth/eval/v5_1_final/responses_test.jsonl).
The APKs are signed with a self-signed development key.
How the models are used
Single turn: the policy-rendered system prompt and a user turn containing the top three retrieved passages (each capped at 700 characters), the question and a language directive, in the Gemma 3 chat format; temperature 0.3, top-p 0.95, repetition penalty 1.1, at most 320 new tokens; the answer then passes a deterministic output guard. The prompt builder, retriever and guard are in the code repository; used without them, the models are not the evaluated system.
Training
LoRA (rank 16, alpha 32) on 4,503 answers generated by Gemma 3 27B from 19 official Government of India documents under the TinyHealth answer policy, validator-checked and screened by two judge-model families, mixed with 675 Stanford Alpaca examples (15% general-instruction replay); best development-loss checkpoint (270M 1.472, 1B 1.053, 4B 0.721); merged and quantised to Q4_K_M with llama.cpp release b11461.
Evaluation (summary; see the paper)
On 564 locked synthetic test questions, a panel of five LLM judges scored answer quality (1β3) at 1.58 (270M), 1.95 (1B) and 2.22 (4B). Two clinicians rated 124 answers to 48 historical ASHA questions: the 4B was rated above the 1B (accuracy 2.31 vs 2.04; mean endorsement as safe and within scope 72% vs 53%), and below an earlier cloud system on relevance and reliance in English. Known guard misses: a Hindi milligram/month dose and the intravenous iron "iron sucrose".
Licence
- Gemma: provided under and subject to the Gemma Terms of Use (ai.google.dev/gemma/terms) and the Gemma Prohibited Use Policy (ai.google.dev/gemma/prohibited_use_policy). These models are Model Derivatives of Gemma 3.
- Because the fine-tuning data included Stanford Alpaca examples (CC BY-NC 4.0), the weights are released for non-commercial research use only.
- The app code is Apache-2.0 (code repository). The retriever is derived from intfloat/multilingual-e5-small (MIT).
- Downloads last month
- -
4-bit
docker model run hf.co/mesaketk/TinyHealth:Q4_K_M