Instructions to use qaootkcx/qwen35-9b-medical with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use qaootkcx/qwen35-9b-medical with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="qaootkcx/qwen35-9b-medical", filename="qwen35-9b-medical.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use qaootkcx/qwen35-9b-medical 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 qaootkcx/qwen35-9b-medical:Q4_K_M # Run inference directly in the terminal: llama cli -hf qaootkcx/qwen35-9b-medical:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf qaootkcx/qwen35-9b-medical:Q4_K_M # Run inference directly in the terminal: llama cli -hf qaootkcx/qwen35-9b-medical: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 qaootkcx/qwen35-9b-medical:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf qaootkcx/qwen35-9b-medical: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 qaootkcx/qwen35-9b-medical:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf qaootkcx/qwen35-9b-medical:Q4_K_M
Use Docker
docker model run hf.co/qaootkcx/qwen35-9b-medical:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use qaootkcx/qwen35-9b-medical with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "qaootkcx/qwen35-9b-medical" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "qaootkcx/qwen35-9b-medical", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/qaootkcx/qwen35-9b-medical:Q4_K_M
- Ollama
How to use qaootkcx/qwen35-9b-medical with Ollama:
ollama run hf.co/qaootkcx/qwen35-9b-medical:Q4_K_M
- Unsloth Studio
How to use qaootkcx/qwen35-9b-medical 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 qaootkcx/qwen35-9b-medical 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 qaootkcx/qwen35-9b-medical to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for qaootkcx/qwen35-9b-medical to start chatting
- Pi
How to use qaootkcx/qwen35-9b-medical with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qaootkcx/qwen35-9b-medical: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": "qaootkcx/qwen35-9b-medical:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use qaootkcx/qwen35-9b-medical with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qaootkcx/qwen35-9b-medical: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 qaootkcx/qwen35-9b-medical:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use qaootkcx/qwen35-9b-medical with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qaootkcx/qwen35-9b-medical:Q4_K_M
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 "qaootkcx/qwen35-9b-medical:Q4_K_M" \ --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"
- Docker Model Runner
How to use qaootkcx/qwen35-9b-medical with Docker Model Runner:
docker model run hf.co/qaootkcx/qwen35-9b-medical:Q4_K_M
- Lemonade
How to use qaootkcx/qwen35-9b-medical with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull qaootkcx/qwen35-9b-medical:Q4_K_M
Run and chat with the model
lemonade run user.qwen35-9b-medical-Q4_K_M
List all available models
lemonade list
File size: 4,495 Bytes
ec24c52 2ab6b8e ec24c52 2ab6b8e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | ---
license: apache-2.0
base_model: Jackrong/Qwen3.5-9B-Claude-4.6-Opus-Reasoning-Distilled-v2-GGUF
library_name: llama.cpp
pipeline_tag: text-generation
tags:
- qwen
- qwen3.5
- gguf
- ollama
- medical
- russian
- text-generation
language:
- ru
- en
---
# qwen35-9b-medical
`qwen35-9b-medical` is an Ollama/GGUF medical assistant profile based on
`Jackrong/Qwen3.5-9B-Claude-4.6-Opus-Reasoning-Distilled-v2-GGUF`, distributed
locally through the Ollama model
`kwangsuklee/Qwen3.5-9B.Q4_K_M-Claude-4.6-Opus-Reasoning-Distilled-v2`.
This repository contains a quantized GGUF model plus an Ollama `Modelfile` with
a Russian medical-study system prompt and conservative generation parameters.
It is not a formally validated clinical model and is not a substitute for a
licensed clinician.
## Model Details
- Architecture: Qwen3.5
- Parameters: 9B
- Quantization: Q4_K_M
- Runtime target: Ollama / llama.cpp-compatible GGUF runtimes
- Context configured in this profile: 8192 tokens
- Primary language target: Russian medical education
- Secondary language support: English prompts
- Profile type: Ollama instruction/profile customization, not a new full-weight
supervised fine-tune
## Intended Use
This model profile is intended for medical study and structured clinical
reasoning practice:
- pediatrics learning;
- pathogenesis, symptoms, diagnostics, and treatment principles;
- differential diagnosis practice;
- red flags and safety-oriented next steps;
- explaining medical concepts in clear Russian;
- handling incomplete clinical information more carefully.
## Out-of-Scope Use
Do not use this model as the only basis for:
- diagnosis;
- treatment decisions;
- medication dosing;
- emergency triage;
- replacing a physician or local clinical protocol;
- processing private patient data without appropriate consent and safeguards.
## Safety Behavior
The Ollama profile instructs the model to:
- avoid inventing diagnoses, dosages, studies, percentages, and clinical
criteria;
- state when there is not enough information;
- separate facts, hypotheses, likely causes, dangerous conditions, and red
flags;
- consider pediatric factors such as age, body weight, development,
contraindications, and safety;
- suppress visible reasoning traces such as `<think>` blocks.
## Files
- `qwen35-9b-medical.Q4_K_M.gguf` - quantized GGUF weights.
- `Modelfile` - Ollama profile with template, system prompt, and parameters.
- `USAGE.md` - local usage instructions.
- `MODEL_CARD_RU.md` - Russian model card and safety notes.
## Ollama Usage
Download this repository, then create a local Ollama model from the included
`Modelfile`:
```bash
ollama create qwen35-9b-medical -f Modelfile
ollama run qwen35-9b-medical
```
Example prompt:
```text
Ребенок 5 лет: температура 38.8, кашель, одышка, втяжения межреберий.
Разбери по схеме: вероятно, что опасно исключить, диагностика, красные флаги,
что делать сейчас. Без дозировок.
```
## Generation Parameters
```text
temperature: 0.25
top_p: 0.85
top_k: 40
repeat_penalty: 1.1
presence_penalty: 0.2
num_ctx: 8192
```
## Local Smoke Benchmark
A small local comparison against the base profile was run on four medical
prompts. The benchmark checked visible thinking leakage, uncertainty handling,
red-flag behavior, and answer structure. This is a smoke test only, not a
clinical validation benchmark.
| Metric | Base model | Medical profile |
|---|---:|---:|
| Visible thinking leakage | 2/4 prompts | 0/4 prompts |
| Average response time | 31.0s | 36.1s |
| Medical answer structure | weaker | stronger |
| Missing-data handling | weaker | stronger |
| Red-flag behavior | mixed | better |
| Clinical factual reliability | not formally validated | not formally validated |
## Limitations
- The model can hallucinate.
- It can provide incomplete or outdated medical information.
- It can overgeneralize if the prompt lacks age, weight, symptom duration,
exam findings, comorbidities, or medication history.
- Current guidelines and medication information must be verified from
authoritative medical sources.
- The model card does not claim formal clinical validation.
## License
The uploaded artifact is based on the upstream model named above. Reuse must
comply with the Apache-2.0 license and any applicable third-party terms from the
upstream model lineage.
|