Sogand Salehi
commited on
Update README.md
Browse files
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 |
```
|