æ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
|