Image-Text-to-Text
PEFT
Safetensors
English
æLtorio commited on
Commit
5cbfb5c
·
unverified ·
1 Parent(s): 6ff184e

update tl;dr

Browse files
Files changed (1) hide show
  1. README.md +3 -1
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
- model =AutoModelForImageTextToText.from_pretrained("eltorio/IDEFICS3_ROCO")
 
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