Unispac / Visual-Adversarial-Examples-Jailbreak-Large-Language-Models

Repository for the Paper (AAAI 2024, Oral) --- Visual Adversarial Examples Jailbreak Large Language Models
183 stars 16 forks source link

HFValidator error while running demo.py #10

Open GnanaRaphaelina opened 11 months ago

GnanaRaphaelina commented 11 months ago

Hi! I cloned the vicuna v0 7b repo given in minigpt4 repository and updated the line 16 in minigpt4.yaml file, then I downloaded the minigpt4(vicuna 7b) and updated the path name in line 11 in minigpt4_eval.yaml file. Finally I tried to execute the demo.py command got this HFValidatorError. can you help me out if I have to correct certain things.

WhatsApp Image 2023-12-17 at 19 28 42_23e51c57

xlnn commented 3 months ago

Hi! I cloned the vicuna v0 7b repo given in minigpt4 repository and updated the line 16 in minigpt4.yaml file, then I downloaded the minigpt4(vicuna 7b) and updated the path name in line 11 in minigpt4_eval.yaml file. Finally I tried to execute the demo.py command got this HFValidatorError. can you help me out if I have to correct certain things.

WhatsApp Image 2023-12-17 at 19 28 42_23e51c57

This may be due to network issues!You can use fllows code in python file:

import os
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'