Instructions to use towardsinnovationlab/qwen3-medical-gguf 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 towardsinnovationlab/qwen3-medical-gguf 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 towardsinnovationlab/qwen3-medical-gguf # Run inference directly in the terminal: llama cli -hf towardsinnovationlab/qwen3-medical-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf towardsinnovationlab/qwen3-medical-gguf # Run inference directly in the terminal: llama cli -hf towardsinnovationlab/qwen3-medical-gguf
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 towardsinnovationlab/qwen3-medical-gguf # Run inference directly in the terminal: ./llama-cli -hf towardsinnovationlab/qwen3-medical-gguf
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 towardsinnovationlab/qwen3-medical-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf towardsinnovationlab/qwen3-medical-gguf
Use Docker
docker model run hf.co/towardsinnovationlab/qwen3-medical-gguf
- LM Studio
- Jan
- vLLM
How to use towardsinnovationlab/qwen3-medical-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "towardsinnovationlab/qwen3-medical-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": "towardsinnovationlab/qwen3-medical-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/towardsinnovationlab/qwen3-medical-gguf
- Ollama
How to use towardsinnovationlab/qwen3-medical-gguf with Ollama:
ollama run hf.co/towardsinnovationlab/qwen3-medical-gguf
- Unsloth Desktop
- Pi
How to use towardsinnovationlab/qwen3-medical-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf towardsinnovationlab/qwen3-medical-gguf
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "towardsinnovationlab/qwen3-medical-gguf" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use towardsinnovationlab/qwen3-medical-gguf with Docker Model Runner:
docker model run hf.co/towardsinnovationlab/qwen3-medical-gguf
- Lemonade
How to use towardsinnovationlab/qwen3-medical-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull towardsinnovationlab/qwen3-medical-gguf
Run and chat with the model
lemonade run user.qwen3-medical-gguf-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use towardsinnovationlab/qwen3-medical-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf towardsinnovationlab/qwen3-medical-gguf
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 towardsinnovationlab/qwen3-medical-gguf
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use towardsinnovationlab/qwen3-medical-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf towardsinnovationlab/qwen3-medical-gguf
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "towardsinnovationlab/qwen3-medical-gguf" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Use Docker
docker model run hf.co/towardsinnovationlab/qwen3-medical-ggufQwen3-Medical GGUF
This is the GGUF quantized version of towardsinnovationlab/qwen3-medical for use with llama.cpp and compatible tools.
Model Description
This is a merged and quantized version of Qwen/Qwen3-0.6B fine-tuned via a LoRA adapter (towardsinnovationlab/qwen3-medical) using the Unsloth library, converted to GGUF format for faster inference. The process was: Base model (Qwen/Qwen3-0.6B) + LoRA adapter โ merged โ converted to GGUF.
The adapter was trained on:
- OpenMed/Medical-Reasoning-SFT-GPT-OSS-120B - for enhancing medical reasoning skills
Model Details
- Developed by: Claudio Giorgio Giancaterino
- LoRA Adapter: towardsinnovationlab/qwen3-medical
- Base Model: unsloth/Qwen3-0.6B
- Language: English
- License: Apache 2.0
- Format: GGUF (Q8_0 quantization)
Available Files
| Filename | Quantization | Size | Description |
|---|---|---|---|
qwen3-medical.gguf |
Q8_0 | ~600 MB | Best quality, recommended |
Uses
Direct Use
This model can be used as support in healthcare applications, medical research, and clinical text generation.
Downstream Use
It can be integrated into educational chatbots for medical reasoning conversations.
Out-of-Scope Use
It is not suitable for high-level decision-making.
Bias, Risks, and Limitations
- Conversational quality may degrade with complex or multi-turn inputs.
- The model may give inaccurate answers and should be referred to a professional.
- This is not a substitute for professional medical advice.
How to Use
With llama-cpp-python
from llama_cpp import Llama
llm = Llama(
model_path="qwen3-medical.gguf",
n_ctx=2048,
n_gpu_layers=-1, # -1 for GPU, 0 for CPU only
)
response = llm.create_chat_completion(
messages=[
{"role": "system", "content": "You are a helpful medical assistant."},
{"role": "user", "content": "What are the main symptoms of diabetes?"}
],
max_tokens=512,
temperature=0.2,
)
print(response['choices'][0]['message']['content'])
With llama.cpp CLI
llama-cli -m qwen3-medical.gguf -p "What are the symptoms of diabetes?" -n 256
With Ollama
# Create a Modelfile
echo 'FROM ./qwen3-medical.gguf' > Modelfile
ollama create qwen3-medical -f Modelfile
ollama run qwen3-medical
Download with huggingface-hub
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="towardsinnovationlab/qwen3-medical-gguf",
filename="qwen3-medical.gguf"
)
Training Details
See the original model card: towardsinnovationlab/qwen3-medical
Training Data
- OpenMed/Medical-Reasoning-SFT-GPT-OSS-120B with 200,193 synthetic medical conversations.
Training Procedure
- Colab with NVIDIA A100 GPU
- LoRA fine-tuning with Unsloth
- Loss Value: 1.4693
Conversion Details
This GGUF was created by:
- Merging the LoRA adapter with the base model (unsloth/Qwen3-0.6B)
- Converting to GGUF format using llama.cpp's
convert_hf_to_gguf.py - Quantizing to Q8_0 for optimal quality/size balance
- Downloads last month
- 13
We're not able to determine the quantization variants.
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "towardsinnovationlab/qwen3-medical-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": "towardsinnovationlab/qwen3-medical-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'