Downloads · 30 days
3
6% of all-time downloads
RichardErkhov/Mbilal755_-_Radiology_Bart-8bits
Mbilal755_-_Radiology_Bart-8bits is a text generation model from RichardErkhov. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
48
Public
Parameters
290M
380 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors380 MB · 98%
How the weights are stored.
I8201M · 69%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Radiology_Bart - bnb 8bits
language:
post contrast axial sequence shows enhancing large neoplasm left parietal convexity causing significant amount edema mass effect study somewhat limited due patient motion similar enhancing lesion present inferior aspect right cerebellar hemisphere right temporal encephalomalacia noted mra brain shows patent flow anterior posterior circulation evidence aneurysm vascular malformation
seen hypodensity involving right parietal temporal lobes right cerebellar hemisphere effacement sulci mild mass effect lateral ventricle hemorrhage new region territorial infarction basal cisterns patent mucosal thickening fluid within paranasal sinuses aerosolized secretions likely related intubation mastoid air cells middle ear cavities clear
heart size normal mediastinal hilar contours unchanged widening superior mediastinum likely due combination mediastinal lipomatosis prominent thyroid findings unchanged compared prior ct aortic knob mildly calcified pulmonary vascularity engorged patchy linear opacities lung bases likely reflect atelectasis focal consolidation pleural effusion present multiple old rightsided rib fractures inference: parameters: max_length: 350
This model summarizes radiology findings into accurate, informative impressions to improve radiologist-clinician communication.
This model is a version of pretrained BioBart-v2-base model further finetuned on 70,000 radiology reports to generate radiology impressions. It produces concise, coherent summaries while preserving key findings.
Radiology_Bart is built on the BioBart architecture, a sequence-to-sequence model which is pre-trained on biomedical-text-dataPubMed. The encoder-decoder structure allows it to compress radiology findings into impression statements.
Key components:
The model was trained on 70,000 deidentified radiology reports split into training (52,000), validation (8,000), and test (10,000) sets. The data covers diverse anatomical regions and imaging modalities (X-ray, CT, MRI).
The model was trained to maximize the similarity between generated and reference impressions using ROUGE metrics.
Evaluation Metrics
| ROUGE-1 score | ROUGE-2 score | ROUGE-L score | ROUGELSUM score |
|---|---|---|---|
| 44.857 | 29.015 | 42.032 | 42.038 |
Demonstrating high overlap with human references.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, Pipeline
# Sample findings
findings = "There is a small lung nodule in the right upper lobe measuring 6 mm. The heart size is normal. No pleural effusion or pneumothorax."
# Load model & tokenizer
summarizer = pipeline("summarization", model="Mbilal755/Radiology_Bart")
tokenizer = AutoTokenizer.from_pretrained("Mbilal755/Radiology_Bart")
# Tokenize findings
inputs = tokenizer(findings, return_tensors="pt")
# Generate summary
summary = summarizer(findings)[0]['summary_text']
# Print outputs
print(f"Findings: {findings}")
print(f"Summary: {summary}")
This model is designed solely for radiology report summarization. It should not be used for clinical decision-making or other NLP tasks.