Downloads · 30 days
0
kingabzpro/gpt-oss-20b-medical-qa
gpt-oss-20b-medical-qa is a text generation model from kingabzpro. 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 model is a fine-tuned version of openai/gpt-oss-20b on the FreedomIntelligence/medical-o1-verifiable-problem dataset. It has been trained using TRL.
Downloads · 30 days
0
Access
Public
Updated Aug 24, 2025
Repo size
148 MB
Likes
1
Public
Click a slice to open those files.
.safetensors60.2 MB · 68%
From the Hugging Face model README
This model is a fine-tuned version of openai/gpt-oss-20b on the FreedomIntelligence/medical-o1-verifiable-problem dataset. It has been trained using TRL.
from transformers import pipeline
prompt = """<|start|>developer<|message|># Instructions
You are a medical expert with advanced knowledge in clinical reasoning and diagnostics. Respond with ONLY the final diagnosis/cause in ≤5 words.<|end|><|start|>user<|message|>An 88-year-old woman with osteoarthritis is experiencing mild epigastric discomfort and has vomited material resembling coffee grounds multiple times. Considering her use of naproxen, what is the most likely cause of her gastrointestinal blood loss?<|end|><|start|>assistant<|message|>"""
# Load pipeline
generator = pipeline(
"text-generation",
model="kingabzpro/gpt-oss-20b-medical-qa",
device="cuda" # or device=0
)
# Run inference (passing in chat-style format)
output = generator(
prompt,
max_new_tokens=20,
return_full_text=False
)[0]
print(output["generated_text"])
Output:
NSAID use
This model was trained with SFT.