How to use from
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 Rumiii/Qwen3-8B-MedReasonPath:Q8_0
# Run inference directly in the terminal:
llama cli -hf Rumiii/Qwen3-8B-MedReasonPath:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Rumiii/Qwen3-8B-MedReasonPath:Q8_0
# Run inference directly in the terminal:
llama cli -hf Rumiii/Qwen3-8B-MedReasonPath:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf Rumiii/Qwen3-8B-MedReasonPath:Q8_0
# Run inference directly in the terminal:
./build/bin/llama cli -hf Rumiii/Qwen3-8B-MedReasonPath:Q8_0
Use Docker
docker model run hf.co/Rumiii/Qwen3-8B-MedReasonPath:Q8_0
Quick Links

Screenshot 2026-09-06 at 6.30.01โ€ฏPM

Qwen3-8B-MedReasonPath

Qwen3-8B fine-tuned for stronger step-by-step medical reasoning, built to retain its native thinking mode and its existing tool-calling ability.

This is a full standalone model. No PEFT, no Unsloth, no extra libraries required โ€” load it exactly like any other transformers causal LM.

Base model

Qwen/Qwen3-8B โ€” 8.2B parameters, hybrid thinking / non-thinking model with native agentic tool-calling support.

Training data

  • MedReason (5,000 examples) โ€” knowledge-graph grounded medical reasoning, for clinical reasoning quality.
  • xLAM Function-Calling (681 examples) โ€” general tool-calling data, mixed in during training to help preserve agentic behavior.

Method

QLoRA fine-tuning (4-bit, rank 16, alpha 32) on a single T4 GPU, using Unsloth purely as a training-time tool. The resulting adapter was merged into the base model and released here as a full fp16 checkpoint โ€” Unsloth is not needed to use this model, only transformers.

Result

Improved step-by-step reasoning inside Qwen3-8B's native <think>...</think> mode on medical/clinical questions, while keeping thinking mode, non-thinking mode, and tool-calling all functional.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
    "Rumiii/Qwen3-8B-MedReasonPath", torch_dtype="auto", device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Rumiii/Qwen3-8B-MedReasonPath")

messages = [{"role": "user", "content": "What causes aortic dissection?"}]
text = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=True
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=600, temperature=0.6, top_p=0.95, top_k=20)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Set enable_thinking=False for direct, non-reasoning answers.

License

Apache 2.0, matching the base model.

Disclaimer

Research and educational project. Not validated for clinical use โ€” not a substitute for professional medical advice.

GGUF

An 8-bit quantized GGUF version (Qwen3-8B-MedReasonPath-Q8_0.gguf, ~8.7GB) is also available in this repo, for use with llama.cpp, Ollama, or LM Studio.

# llama.cpp
./llama-cli -hf Rumiii/Qwen3-8B-MedReasonPath:Q8_0
Downloads last month
92
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Rumiii/Qwen3-8B-MedReasonPath

Finetuned
Qwen/Qwen3-8B
Quantized
(488)
this model
Quantizations
2 models

Dataset used to train Rumiii/Qwen3-8B-MedReasonPath