Downloads · 30 days
9
7% of all-time downloads
bockhealthbharath/Eira-0.2
Eira-0.2 is a image-text-to-text model from bockhealthbharath. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Bridging Text and Medical Imagery for Accurate Multimodal QA
Downloads · 30 days
9
7% of all-time downloads
All-time downloads
125
Public
Parameters
247M
990 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
Bridging Text and Medical Imagery for Accurate Multimodal QA
This model integrates a Llama‑2 text backbone with a BLIP vision backbone to perform context‑aware question answering over medical images and text.
EIRA‑0.2 is a multimodal model designed to answer free‑form questions about medical images (e.g., radiographs, histology slides) in conjunction with accompanying text. Internally, it uses:
A text encoder/decoder based on meta‑llama/Llama‑2‑7b‑hf, fine‑tuned for medical QA.
A vision encoder based on Salesforce/blip-image-captioning-base, that extract descriptive features from medical imagery.
A fusion module that cross‑attends between vision features and text embeddings to generate coherent, context‑aware answers.
Developed by: BockBharath
Shared by: Shashidhar Sarvi and Sharvary H H
Model type: Multimodal Sequence‑to‑Sequence QA
Language(s): English
License: MIT
Finetuned from: meta‑llama/Llama‑2‑7b‑hf, Salesforce/blip-image-captioning-base
EIRA‑0.2 can be used out‑of‑the‑box as a Hugging Face pipeline for image‑text-to-text question answering. It is intended for:
EIRA‑0.2 was trained on a curated set of medical textbooks and annotated imaging cases; it may underperform on rare pathologies or demographic groups under‑represented in the training data. Hallucination risk exists if the image context is ambiguous or incomplete.
from transformers import pipeline
# Load the multimodal QA pipeline
eira = pipeline(
task="image-text-to-text",
model="BockBharath/EIRA-0.2",
device=0 # set to -1 for CPU
)
# Example inputs
image_path = "chest_xray.png"
question = "What abnormality is visible in the left lung?"
# Run inference
answer = eira({
"image": image_path,
"text": question
})
print("Answer:", answer[0]["generated_text"])
Input shapes:
image: file path or PIL.Image of variable size (automatically resized to 224×224).text: string question.Output: List of dicts with key "generated_text" containing the answer string.
| Metric | Score |
|---|---|
| Exact Match | 72.4% |
| BLEU‑4 | 0.38 |
| ROUGE‑L | 0.46 |
Performance on chest X‑rays vs. histology slides:
If you use this model, please cite:
@misc{bockbharath2025eira02,
title={EIRA-0.2: Multimodal Medical QA with Llama-2 and BLIP},
author={BockBharath},
year={2025},
howpublished={\url{https://huggingface.co/BockBharath/EIRA-0.2}}
}
BockBharath. (2025). EIRA-0.2: Multimodal Medical QA with Llama-2 and BLIP. Retrieved from https://huggingface.co/BockBharath/EIRA-0.2
For questions or feedback, please open an issue on the GitHub repository.