Downloads · 30 days
0
alhusains/gpt-oss-20b-ddx
gpt-oss-20b-ddx is a text generation model from alhusains. 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 repository provides a LoRA adapter fine-tuned on radiology cases from the Eurorad dataset to enhance differential diagnosis and structured medical reasoning. The adapter attaches to the base model openai/gpt-oss-…
Downloads · 30 days
0
Access
Public
Updated Nov 26, 2025
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
From the Hugging Face model README
This repository provides a LoRA adapter fine-tuned on radiology cases from the Eurorad dataset to enhance differential diagnosis and structured medical reasoning. The adapter attaches to the base model openai/gpt-oss-20b, enabling stronger radiology-focused performance while remaining lightweight and deployable on a single GPU.
Highlights
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
BASE = "openai/gpt-oss-20b"
ADAPTER = "alhusains/gpt-oss-20b-eurorad-lora"
tokenizer = AutoTokenizer.from_pretrained(BASE)
base = AutoModelForCausalLM.from_pretrained(BASE, device_map="auto")
model = PeftModel.from_pretrained(base, ADAPTER)
model.eval()
prompt = "Provide a differential diagnosis for multiple bilateral lung nodules."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))