Run this model with HF Jobs
Run ECOFRI/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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ECOFRI/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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ECOFRI/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.
Instructions to use ECOFRI/CXR-LLAVA-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ECOFRI/CXR-LLAVA-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ECOFRI/CXR-LLAVA-v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ECOFRI/CXR-LLAVA-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files598 unmodified lines599600601602603604605598 unmodified linesstreamer = TextIteratorStreamer(self.tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=15)if np.array(image).max()>255:raise Exception("WARNING. 16-bit image is not supported.")image = image.convert('L') # convert to grayscaleimage = np.array(image)598 unmodified lines599600601602603604605598 unmodified linesstreamer = TextIteratorStreamer(self.tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=15)if np.array(image).max()>255:raise Exception("16-bit image is not supported.")image = image.convert('L') # convert to grayscaleimage = np.array(image)
CXR_LLAVA_HF.py+1-1