Sogand Salehi
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -27,8 +27,8 @@ This model can be loaded from Hugging Face Hub as follows:
|
|
27 |
from transformers import AutoProcessor, BitsAndBytesConfig, AutoModelForVision2Seq
|
28 |
from peft import PeftModel
|
29 |
|
30 |
-
model = AutoModelForVision2Seq.from_pretrained("HuggingFaceM4/idefics2-8b")
|
31 |
-
model = PeftModel.from_pretrained(model, "EPFL-VILAB/Metric-ViPer")
|
32 |
```
|
33 |
|
34 |
Please see https://github.com/EPFL-VILAB/ViPer for more detailed instructions.
|
|
|
27 |
from transformers import AutoProcessor, BitsAndBytesConfig, AutoModelForVision2Seq
|
28 |
from peft import PeftModel
|
29 |
|
30 |
+
model = AutoModelForVision2Seq.from_pretrained("HuggingFaceM4/idefics2-8b")
|
31 |
+
model = PeftModel.from_pretrained(model, "EPFL-VILAB/Metric-ViPer")
|
32 |
```
|
33 |
|
34 |
Please see https://github.com/EPFL-VILAB/ViPer for more detailed instructions.
|