Downloads Β· 30 days
346
27% of all-time downloads
TachyHealth/Gazal-R1-32B-GRPO-preview
Gazal-R1-32B-GRPO-preview is a text generation model from TachyHealth. 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.
The model was presented in the paper Gazal-R1: Achieving State-of-the-Art Medical Reasoning with Parameter-Efficient Two-Stage Training.
Downloads Β· 30 days
346
27% of all-time downloads
All-time downloads
1.3K
Public
Parameters
32.8B
1.2 TB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors65.5 GB Β· 100%
From the Hugging Face model README
The model was presented in the paper Gazal-R1: Achieving State-of-the-Art Medical Reasoning with Parameter-Efficient Two-Stage Training.
<a href="https://gazal.ai/" target="_blank" style="margin: 0px;"> <img alt="Gazal AI" src="./logo.png" style=" width: 70%;" /> </a>Gazal-R1 is a state-of-the-art 32-billion-parameter language model specifically designed for medical reasoning and clinical decision-making. Built upon Qwen 3 32B, Gazal-R1 demonstrates that strategic training can enable mid-sized models to outperform significantly larger counterparts in specialized medical domains.
Key features include:
<think></think> tags, following established clinical reasoning frameworksGazal-R1-32B has the following characteristics:
For detailed methodology, training insights, and comprehensive evaluation, please refer to our technical report.
Gazal-R1 achieves exceptional performance across standard medical benchmarks:
| Model | Size | MMLU Pro (Medical) | MedMCQA | MedQA | PubMedQA |
|---|---|---|---|---|---|
| Gazal-R1 (Final) | 32B | 81.6 | 71.9 | 87.1 | 79.6 |
| Gazal-R1 (SFT-only) | 32B | 79.3 | 72.3 | 86.9 | 77.6 |
| Llama 3.1 405B Instruct | 405B | 70.2 | 75.8 | 81.9 | 74.6 |
| Qwen 2.5 72B Instruct | 72B | 72.1 | 66.2 | 72.7 | 71.7 |
| Med42-Llama3.1-70B | 70B | 66.1 | 72.4 | 80.4 | 77.6 |
| Llama 3.1 70B Instruct | 70B | 74.5 | 72.5 | 78.4 | 78.5 |
| QwQ 32B | 32B | 70.1 | 65.6 | 72.3 | 73.7 |
| Qwen 3 32B | 32B | 78.4 | 71.6 | 84.4 | 76.7 |
Key Achievements:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "TachyHealth/Gazal-R1-32B-GRPO-preview"
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# Medical reasoning prompt
prompt = """A 65-year-old male presents with chest pain, shortness of breath, and elevated troponin levels.
ECG shows ST-segment elevation in leads II, III, and aVF. What is the most likely diagnosis and immediate management?"""
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# Generate response with medical reasoning
generated_ids = model.generate(
**model_inputs,
max_new_tokens=2048,
temperature=0.7,
top_p=0.8,
top_k=20
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
response = tokenizer.decode(output_ids, skip_special_tokens=True)
print("Medical Assessment:", response)
Gazal-R1 is trained to provide structured medical reasoning in the following format:
<think>
Step 1: Analyze presenting symptoms - chest pain, dyspnea, troponin elevation
Step 2: Interpret ECG findings - ST elevation in inferior leads
Step 3: Consider differential diagnoses - STEMI vs NSTEMI vs unstable angina
Step 4: Identify culprit vessel - likely RCA given inferior lead changes
Step 5: Assess urgency - emergent intervention required
Step 6: Plan immediate management - dual antiplatelet, anticoagulation, cath lab
</think>
## Clinical Assessment
**Primary Diagnosis**: ST-Elevation Myocardial Infarction (STEMI), inferior wall
**Reasoning**: The combination of chest pain, elevated troponin, and ST-elevation in leads II, III, and aVF is pathognomonic for inferior STEMI, likely involving the right coronary artery (RCA).
**Immediate Management**:
1. **Reperfusion therapy**: Emergency cardiac catheterization with primary PCI
2. **Antiplatelet therapy**: Aspirin 325mg + P2Y12 inhibitor (clopidogrel/ticagrelor)
3. **Anticoagulation**: Heparin or bivalirudin
4. **Supportive care**: O2 if hypoxic, nitroglycerin for pain (avoid if hypotensive)
**Follow-up**: Post-PCI monitoring, echocardiogram, cardiac rehabilitation referral
If you find Gazal-R1 helpful in your research, please cite our work:
@article{gazal-r1-2025,
title={Gazal-R1: Achieving State-of-the-Art Medical Reasoning with Parameter-Efficient Two-Stage Training},
author={Ahmed M. Adly and Mostafa Samy and Amr Fawzy},
journal={arXiv preprint arXiv:2506.21594},
year={2025},
url={https://arxiv.org/abs/2506.21594}
}
This model is released under the Apache 2.0 License. Please review the license terms before use.
For questions about Gazal-R1, please contact:
Developed by TachyHealth Research Team. This model represents a significant advancement in medical AI reasoning while emphasizing the critical importance of professional medical oversight.