Image-Text-to-Text
PEFT
Safetensors
Sogand Salehi commited on
Commit
ea78f78
·
verified ·
1 Parent(s): bf5e04b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -24,6 +24,9 @@ For install instructions, please see https://github.com/EPFL-VILAB/ViPer.
24
  This model can be loaded from Hugging Face Hub as follows:
25
 
26
  ```python
 
 
 
27
  model = AutoModelForVision2Seq.from_pretrained("HuggingFaceM4/idefics2-8b").to(device)
28
  model = PeftModel.from_pretrained(model, "EPFL-VILAB/VPE-ViPer").to(device)
29
  ```
 
24
  This model can be loaded from Hugging Face Hub as follows:
25
 
26
  ```python
27
+ from transformers import AutoModelForVision2Seq
28
+ from peft import PeftModel
29
+
30
  model = AutoModelForVision2Seq.from_pretrained("HuggingFaceM4/idefics2-8b").to(device)
31
  model = PeftModel.from_pretrained(model, "EPFL-VILAB/VPE-ViPer").to(device)
32
  ```