Downloads · 30 days
17
38% of all-time downloads
surenoobsterIITBHU/qwen3-4b-radiology-report-lora
qwen3-4b-radiology-report-lora is a machine learning model from surenoobsterIITBHU. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter for Qwen/Qwen3-4B-Instruct-2507, fine-tuned to edit a normal radiology report template into a final report given a radiologist's dictation - outputting a JSON diff of only the fields that changed, which a…
Downloads · 30 days
17
38% of all-time downloads
All-time downloads
45
Public
Repo size
144 MB
Likes
14
Public
Click a slice to open those files.
.safetensors132 MB · 89%
From the Hugging Face model README
LoRA adapter for Qwen/Qwen3-4B-Instruct-2507, fine-tuned to edit a normal radiology report template into a final report given a radiologist's dictation - outputting a JSON diff of only the fields that changed, which a separate deterministic renderer merges back into the full report.
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
import torch
base_id = "Qwen/Qwen3-4B-Instruct-2507"
tokenizer = AutoTokenizer.from_pretrained("surenoobsterIITBHU/qwen3-4b-radiology-report-lora")
base = AutoModelForCausalLM.from_pretrained(
base_id,
quantization_config=BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16),
device_map="auto",
)
model = PeftModel.from_pretrained(base, "surenoobsterIITBHU/qwen3-4b-radiology-report-lora")
Expects a prompt describing the template's fields, retrieved similar prior cases, and a new
dictation, and returns a strict JSON object: {"changed_fields": {...}, "impression": "...", "preamble": null}.