Instructions to use mshz88/FADA-Mobile-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use mshz88/FADA-Mobile-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mshz88/FADA-Mobile-GGUF", filename="gguf/fada-skd-0.8b-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mshz88/FADA-Mobile-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mshz88/FADA-Mobile-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mshz88/FADA-Mobile-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mshz88/FADA-Mobile-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mshz88/FADA-Mobile-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 mshz88/FADA-Mobile-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mshz88/FADA-Mobile-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 mshz88/FADA-Mobile-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mshz88/FADA-Mobile-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mshz88/FADA-Mobile-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use mshz88/FADA-Mobile-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mshz88/FADA-Mobile-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": "mshz88/FADA-Mobile-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/mshz88/FADA-Mobile-GGUF:Q4_K_M
- Ollama
How to use mshz88/FADA-Mobile-GGUF with Ollama:
ollama run hf.co/mshz88/FADA-Mobile-GGUF:Q4_K_M
- Unsloth Studio
How to use mshz88/FADA-Mobile-GGUF 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 mshz88/FADA-Mobile-GGUF 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 mshz88/FADA-Mobile-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mshz88/FADA-Mobile-GGUF to start chatting
- Pi
How to use mshz88/FADA-Mobile-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf mshz88/FADA-Mobile-GGUF:Q4_K_M
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": "mshz88/FADA-Mobile-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use mshz88/FADA-Mobile-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf mshz88/FADA-Mobile-GGUF:Q4_K_M
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 mshz88/FADA-Mobile-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use mshz88/FADA-Mobile-GGUF with Docker Model Runner:
docker model run hf.co/mshz88/FADA-Mobile-GGUF:Q4_K_M
- Lemonade
How to use mshz88/FADA-Mobile-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mshz88/FADA-Mobile-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.FADA-Mobile-GGUF-Q4_K_M
List all available models
lemonade list
FADA-SKD 0.8B (GGUF)
Fetal Anatomy Delineation and Analysis - Selective Knowledge Distillation
On-device vision-language model for fetal ultrasound image analysis, optimized for mobile deployment via llama.cpp.
Model Overview
| Property | Value |
|---|---|
| Base Model | Qwen3.5-VL 0.8B (via Unsloth) |
| Fine-tuning | LoRA (rank 16, alpha 32) via Unsloth SKD |
| Training Strategy | Offline Selective Knowledge Distillation |
| Architecture | Qwen3.5 (text) + Qwen3-VL Merger (vision) |
| Context Length | 4096 tokens |
| Text Model | Q4_K_M quantized (~517 MB) |
| Vision Encoder | FP16 (~196 MB) |
| Format | GGUF v3 |
| Total Size | ~713 MB |
Teacher Models (SKD)
| Teacher | Weight | Role |
|---|---|---|
| FetalCLIP | 0.40 | Fetal anatomy representation alignment |
| UltraSAM | 0.25 | Ultrasound segmentation knowledge |
| USF-MAE | 0.20 | Self-supervised ultrasound features |
| UltraFedFM | 0.15 | Federated foundation model knowledge |
Training: 21,144 steps, 3 epochs, fusion MSE loss, 19,000+ images across 32+ anatomical classes.
Files
| File | Description | Size |
|---|---|---|
gguf/fada-skd-0.8b-Q4_K_M.gguf |
Text model (Q4_K_M quantized) | 517 MB |
gguf/fada-skd-0.8b-mmproj-f16.gguf |
Vision encoder (FP16 mmproj) | 196 MB |
tokenizer.json |
Tokenizer vocabulary | - |
tokenizer_config.json |
Tokenizer configuration | - |
chat_template.jinja |
Chat template for inference | - |
Usage with llama.cpp
Text + Vision Inference
# Using llama-mtmd-cli from llama.cpp
./llama-mtmd-cli \
-m fada-skd-0.8b-Q4_K_M.gguf \
--mmproj fada-skd-0.8b-mmproj-f16.gguf \
-p "Analyze this fetal ultrasound image" \
--image ultrasound.jpg
Mobile Deployment
This model is designed for on-device mobile deployment using the FADA Android app with llama.cpp's multimodal (mtmd) library for native inference without cloud connectivity.
Capabilities
FADA-SKD performs 5-phase fetal ultrasound analysis:
- Interpretation: Structured clinical report (imaging plane, anatomical structures, gestational age, image quality, normality assessment)
- Classification: Anatomical view identification (BPD plane, four-chamber, Doppler, etc.)
- Mapping: Intelligent routing to relevant detection/segmentation classes
- Detection: Bounding box localization of anatomical structures (normalized 0-1000 coordinates)
- Segmentation: Polygon mask delineation of anatomical regions
Supported Anatomy (32+ classes)
- Brain: BPD, CSP, lateral ventricle, brain parenchyma
- Cardiac: Heart chambers, thorax
- First Trimester: CRL, NT, nasal bone/skin/tip
- Doppler: Arteries, veins, liver, stomach
- Pelvimetry: Fetal head, pubic symphysis
- Body/Pose: Abdomen, limbs, head
- Keypoints: CRL endpoints, NT caliper points, scale bar
Citation
If you use this model in your research, please cite:
@article{fada2026,
title={FADA: Knowledge-Distilled Vision-Language Models for Accessible Fetal
Ultrasound Interpretation in Low-Resource Obstetric Settings},
author={Alzubaidi, Mahmood and Agus, Marco},
journal={Arxiv},
year={2026},
note={Submitted to the "Digital Health in Low-Resource Settings" Collection}
} year={2026}
}
License
Apache 2.0
Disclaimer
This is a research prototype. Not for clinical diagnostic use. All outputs should be reviewed by qualified medical professionals.
- Downloads last month
- 561
4-bit