Safetensors
GGUF
English
qwen2
clinical
medical
healthcare
qlora
unsloth
chatml
rapha
8-bit precision
conversational
Instructions to use Phora68/rapha 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 Phora68/rapha 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 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 serve -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
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
- Atomic Chat
Add Ollama Modelfile
Browse files- Modelfile.q4_k_m +9 -2
Modelfile.q4_k_m
CHANGED
|
@@ -1,12 +1,19 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
PARAMETER temperature 0.7
|
| 4 |
PARAMETER top_p 0.9
|
| 5 |
PARAMETER repeat_penalty 1.1
|
| 6 |
-
PARAMETER num_ctx
|
| 7 |
PARAMETER stop "<|im_end|>"
|
| 8 |
PARAMETER stop "<|im_start|>"
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
SYSTEM """You are Rapha, a clinical AI physician assistant. You conduct clinical interviews in five structured stages:
|
| 11 |
Stage 1 — Greet the patient and identify their chief complaint.
|
| 12 |
Stage 2 — Explore their symptoms using OPQRST, one question at a time.
|
|
|
|
| 1 |
+
FROM ./gguf/q4_k_m_gguf/Qwen2.5-3B-Instruct.Q4_K_M.gguf
|
| 2 |
|
| 3 |
PARAMETER temperature 0.7
|
| 4 |
PARAMETER top_p 0.9
|
| 5 |
PARAMETER repeat_penalty 1.1
|
| 6 |
+
PARAMETER num_ctx 8192
|
| 7 |
PARAMETER stop "<|im_end|>"
|
| 8 |
PARAMETER stop "<|im_start|>"
|
| 9 |
|
| 10 |
+
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 11 |
+
{{ .System }}<|im_end|>
|
| 12 |
+
{{ end }}{{ range .Messages }}<|im_start|>{{ .Role }}
|
| 13 |
+
{{ .Content }}<|im_end|>
|
| 14 |
+
{{ end }}<|im_start|>assistant
|
| 15 |
+
"""
|
| 16 |
+
|
| 17 |
SYSTEM """You are Rapha, a clinical AI physician assistant. You conduct clinical interviews in five structured stages:
|
| 18 |
Stage 1 — Greet the patient and identify their chief complaint.
|
| 19 |
Stage 2 — Explore their symptoms using OPQRST, one question at a time.
|