CXR-LLaVA: Multimodal Large Language Model for Interpreting Chest X-ray Images
Paper β’ 2310.18341 β’ Published β’ 2
Run jcsagar/CXR-LLAVA-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/jcsagar/CXR-LLAVA-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/jcsagar/CXR-LLAVA-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use jcsagar/CXR-LLAVA-v2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="jcsagar/CXR-LLAVA-v2", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("jcsagar/CXR-LLAVA-v2", trust_remote_code=True, device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("jcsagar/CXR-LLAVA-v2", trust_remote_code=True, device_map="auto")Forked from : https://github.com/ECOFRI/CXR_LLaVA
CXR LLaVA is an innovative open-source, multimodal large language model specifically designed for generating radiologic reports from chest X-ray images.
| Version | Input CXR resolution | Channels | Vision Encoder | Base LLM | Weight |
|---|---|---|---|---|---|
| v1.0 | 512x512 | RGB | RN50 | LLAMA2-13B-CHAT | Deprecated |
| v2.0 (Latest) | 512x512 | Grayscale | ViT-L/16 | LLAMA2-7B-CHAT | Link |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="jcsagar/CXR-LLAVA-v2", trust_remote_code=True)