Instructions to use Phora68/rapha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Phora68/rapha with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Phora68/rapha", filename="rapha-q4_k_m.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Phora68/rapha with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Phora68/rapha:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Phora68/rapha:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Phora68/rapha:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Phora68/rapha: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 Phora68/rapha:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Phora68/rapha: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 Phora68/rapha:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Phora68/rapha:Q4_K_M
Use Docker
docker model run hf.co/Phora68/rapha:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Phora68/rapha with Ollama:
ollama run hf.co/Phora68/rapha:Q4_K_M
- Unsloth Studio new
How to use Phora68/rapha 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 Phora68/rapha 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 Phora68/rapha to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Phora68/rapha to start chatting
- Docker Model Runner
How to use Phora68/rapha with Docker Model Runner:
docker model run hf.co/Phora68/rapha:Q4_K_M
- Lemonade
How to use Phora68/rapha with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Phora68/rapha:Q4_K_M
Run and chat with the model
lemonade run user.rapha-Q4_K_M
List all available models
lemonade list
| language: | |
| - en | |
| license: apache-2.0 | |
| tags: | |
| - medical | |
| - clinical | |
| - mistral | |
| - gguf | |
| - unsloth | |
| - lora | |
| base_model: mistralai/Mistral-Nemo-Base-2407 | |
| # 🩺 Rapha — Clinical AI Physician Assistant (GGUF) | |
| **Rapha** is a clinical AI assistant fine-tuned on **Mistral-Nemo-12B** using Unsloth. | |
| It performs forward-chaining medical reasoning — gathering symptoms conversationally, | |
| reasoning step by step, and escalating structured findings to a physician. | |
| > ⚠️ Rapha is a research prototype. It does not diagnose. All outputs must be reviewed by a qualified medical professional. | |
| --- | |
| ## 🚀 Quickstart | |
| ### Ollama | |
| ```bash | |
| ollama run hf.co/Phora68/rapha | |
| ``` | |
| ### llama.cpp | |
| ```bash | |
| ./llama-cli -m rapha-q4_k_m.gguf \ | |
| --chat-template mistral \ | |
| -p "I've been having chest pain and shortness of breath for two days." \ | |
| -n 512 | |
| ``` | |
| ### Python (llama-cpp-python) | |
| ```python | |
| from llama_cpp import Llama | |
| llm = Llama( | |
| model_path = "rapha-q4_k_m.gguf", | |
| n_ctx = 2048, | |
| n_gpu_layers = -1, # use all GPU layers | |
| ) | |
| response = llm.create_chat_completion(messages=[ | |
| {"role": "user", "content": "I've had a persistent headache for three days and I'm really worried."} | |
| ]) | |
| print(response["choices"][0]["message"]["content"]) | |
| ``` | |
| --- | |
| ## 📊 Model Details | |
| | Property | Value | | |
| |---|---| | |
| | **Base model** | `mistralai/Mistral-Nemo-Base-2407` | | |
| | **Fine-tuning** | QLoRA (r=64, α=16) via Unsloth | | |
| | **Quantisation** | Q4_K_M | | |
| | **Context length** | 2048 tokens | | |
| | **Training format** | ShareGPT | | |
| | **Chat template** | Mistral `[INST]` | | |
| | **Domain** | Clinical / Medical triage | | |
| | **Dataset** | 200,000 samples (170k train / 20k val / 10k test) | | |
| --- | |
| ## ⚠️ Limitations | |
| - Not a medical device | |
| - Does not provide diagnoses | |
| - Must be reviewed by a qualified clinician | |
| - Not validated for clinical deployment | |