Downloads · 30 days
25
1% of all-time downloads
ishro/biogpt-aura
biogpt-aura is a text classification model from ishro. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a fine-tuned version of microsoft/biogpt-large for BI-RADS classification of radiology reports.
Downloads · 30 days
25
1% of all-time downloads
All-time downloads
1.7K
Public
Parameters
347M
9.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/biogpt-large for BI-RADS classification of radiology reports.
| BI-RADS | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| 0 | 0.9946 | 0.9482 | 0.9708 | 193 |
| 1 | 0.9504 | 0.9664 | 0.9583 | 119 |
| 2 | 0.9740 | 0.9943 | 0.9840 | 527 |
| 3 | 1.0000 | 0.8333 | 0.9091 | 18 |
| 4 | 0.9000 | 0.8182 | 0.8571 | 11 |
| 5 | 0.6667 | 0.6667 | 0.6667 | 3 |
| 6 | 1.0000 | 1.0000 | 1.0000 | 1 |
from transformers import AutoTokenizer, BioGptForSequenceClassification
import torch
# Load model and tokenizer
model = BioGptForSequenceClassification.from_pretrained("ishro/biogpt-aura")
tokenizer = AutoTokenizer.from_pretrained("ishro/biogpt-aura")
# Prepare input
report_text = "Your radiology report text here..."
inputs = tokenizer(report_text, return_tensors="pt", padding=True, truncation=True, max_length=512)
# Get prediction
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(predictions, dim=-1).item()
# Map to BI-RADS label
birads_label = model.config.id2label[predicted_class]
print(f"Predicted BI-RADS: {birads_label}")
print(f"Confidence: {predictions[0][predicted_class].item():.4f}")
The model was trained on radiology reports with the following features:
If you use this model, please cite:
@misc{biogpt-birads-classifier,
author = {Your Name},
title = {BioGPT BI-RADS Classifier},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/ishro/biogpt-aura}
}
ishro
For questions or issues, please open an issue on the model repository.