Instructions to use eltorio/IDEFICS3_ROCO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use eltorio/IDEFICS3_ROCO with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceM4/Idefics3-8B-Llama3") model = PeftModel.from_pretrained(base_model, "eltorio/IDEFICS3_ROCO") - Notebooks
- Google Colab
- Kaggle
æLtorio commited on
update tl;dr
Browse files
README.md
CHANGED
|
@@ -30,8 +30,10 @@ This repository contains a fine-tuned version of the Hugging Face [Idefics3-8B-L
|
|
| 30 |
For immediate use, you can load the model directly from Hugging Face:
|
| 31 |
|
| 32 |
```python
|
|
|
|
| 33 |
from transformers import AutoModelForImageTextToText
|
| 34 |
-
|
|
|
|
| 35 |
```
|
| 36 |
|
| 37 |
### Model Information
|
|
|
|
| 30 |
For immediate use, you can load the model directly from Hugging Face:
|
| 31 |
|
| 32 |
```python
|
| 33 |
+
import torch
|
| 34 |
from transformers import AutoModelForImageTextToText
|
| 35 |
+
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 36 |
+
model = AutoModelForImageTextToText.from_pretrained("eltorio/IDEFICS3_ROCO").to(device)
|
| 37 |
```
|
| 38 |
|
| 39 |
### Model Information
|