Downloads · 30 days
97
10% of all-time downloads
EpistemeAI/Reason-Medical-20b-4bit
Reason-Medical-20b-4bit is a text generation model from EpistemeAI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This EpistemeAI/Reasoning-Medical-20B is designed for advanced medical reasoning in professional medicine, medical genetics, college biology/medicine, and clinical knowledge. The model was fine-tuned on a large-scale…
Downloads · 30 days
97
10% of all-time downloads
All-time downloads
930
Public
Parameters
21.5B
13.8 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors13.8 GB · 100%
How the weights are stored.
U819.7B · 92%
From the Hugging Face model README
This EpistemeAI/Reasoning-Medical-20B is designed for advanced medical reasoning in professional medicine, medical genetics, college biology/medicine, and clinical knowledge. The model was fine-tuned on a large-scale dataset of 370,000 high-quality question-and-answer examples, incorporating Chain-of-Thought reasoning to improve step-by-step problem solving. Training was performed using the SFT (Supervised fine tuning) trainer with the Unsloth optimization method for efficient fine-tuning.
Safety Notice: This model is for benign medical and scientific reasoning only. It must not be used for biological or chemical weapon development, pathogen enhancement, toxin production, hazardous synthesis, or any activity that enables harm. All biomedical, biological, chemical, or laboratory-related outputs require expert review and must comply with applicable legal, ethical, biosafety, biosecurity, and chemical safety standards.
Reasoning-Medical-20B is a medical reasoning language model fine-tuned from openai/gpt-oss-20b. The model is designed for biomedical question answering, medical reasoning research, clinical knowledge evaluation, and safety-aligned medical assistant experiments.
This model is intended for research and development use only. It is not intended to directly provide clinical diagnosis, treatment decisions, medication dosing, patient management instructions, or emergency medical guidance.
This model is a decoder-only Transformer causal language model based on openai/gpt-oss-20b.
The base architecture uses:
model_type: gpt_ossarchitectures: GptOssForCausalLMopenai/gpt-oss-20bThis model may be useful for:
This model should not be used for:
All outputs should be treated as preliminary, require independent verification, and should be reviewed by qualified medical professionals before any real-world clinical application.
The model was fine-tuned from openai/gpt-oss-20b using a medical reasoning dataset containing high-quality question-answer examples.
Training may include one or more of the following stages:
Training Dataset
This model was fine-tuned using:
ReasonMed is a large-scale medical reasoning dataset containing high-quality medical question-answer examples with multi-step reasoning rationales and concise answer summaries. It was generated and curated through a multi-agent pipeline designed to improve correctness, logical coherence, and medical factuality.
This model should be aligned to prefer responses that:
Safety tuning may include DPO-style preference pairs where the chosen answer is safer, more cautious, and more clinically appropriate than the rejected answer.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "EpistemeAI/Reason-Medical-20b-4bit"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto"
)
messages = [
{
"role": "system",
"content": "You are a careful medical reasoning assistant. Provide educational information only. Do not provide definitive diagnosis or treatment."
},
{
"role": "user",
"content": "How can bacterial pneumonia be differentiated from viral pneumonia?"
}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=512,
temperature=0.2,
top_p=0.9,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Reasoning: high.
You are a careful medical reasoning assistant. Your response is for educational and research purposes only. Do not provide a final clinical diagnosis, prescription, dosage, or treatment plan. Explain uncertainty, red flags, and when to seek professional medical care.
Question:
{user_question}
The model should be evaluated on both capability and safety benchmarks.
Suggested evaluation categories:
| Category | Example Benchmarks |
|---|---|
| Medical QA | MedQA, MedMCQA, PubMedQA |
| Biomedical reasoning | MMLU medical subsets, MMLU-Pro biology/medicine |
| Clinical safety | Custom unsafe-medical-advice tests |
| Hallucination | Citation and factuality checks |
| Refusal behavior | Unsafe medical, biosecurity, and self-harm prompts |
| Calibration | Uncertainty and confidence evaluation |
Current reported results:
Current reported results:
| Benchmark | R-M-20B | gpt-20b |
|---|---|---|
| MedQA | 67 | 62 |
| HealthBench | 42.5 | 42.5 |
This model may:
The model is not a substitute for professional medical judgment.
The outputs generated by this model are not intended to directly inform clinical diagnosis, patient management decisions, treatment recommendations, or any other direct clinical practice application. Performance benchmarks highlight baseline capabilities on relevant tasks, but inaccurate model output is possible. All outputs should be considered preliminary and require independent verification, clinical correlation, and further investigation through established research and development methodologies.
If you are experiencing a medical emergency, contact emergency services or a qualified healthcare professional immediately.
Users should carefully consider the risks of deploying medical AI systems in real-world settings. This model should be used with human oversight, transparent limitations, evaluation against clinically relevant safety tests, and appropriate governance.
Developers should avoid using the model in workflows where incorrect outputs could directly harm patients.
If you use this model, please cite the base model and this fine-tuned model.
@misc{reasoningmedical20b,
title = {Reasoning-Medical-20B},
author = {EpistemeAI},
year = {2026},
publisher = {Hugging Face},
note = {Fine-tuned from openai/gpt-oss-20b}
}
This model is released under the Apache-2.0 license unless otherwise specified by the fine-tuning data, adapter weights, or downstream distribution requirements.
Users are responsible for ensuring that their use complies with the base model license, dataset licenses, and applicable laws or regulations.
For questions, issues, or research collaboration, contact:
EpistemeAIThis gpt_oss model was trained 2x faster with Unsloth and Huggingface's TRL library.