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

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

AssertionError: Model 'minigpt4' has not been registered. #17

Open ghLcd9dG opened 2 months ago

ghLcd9dG commented 2 months ago

AssertionError: Model 'minigpt4' has not been registered.

ghLcd9dG commented 2 months ago
>>> Initializing Models
Traceback (most recent call last):
  File "/share/project/liuaofan/ai_sec_research/Visual-Adversarial-Examples-Jailbreak-Large-Language-Models/minigpt_visual_attack.py", line 68, in <module>
    cfg = Config(args)
  File "/share/project/liuaofan/ai_sec_research/Visual-Adversarial-Examples-Jailbreak-Large-Language-Models/minigpt4/common/config.py", line 30, in __init__
    model_config = self.build_model_config(config, **user_config)
  File "/share/project/liuaofan/ai_sec_research/Visual-Adversarial-Examples-Jailbreak-Large-Language-Models/minigpt4/common/config.py", line 62, in build_model_config
    assert model_cls is not None, f"Model '{model.arch}' has not been registered."
AssertionError: Model 'minigpt4' has not been registered.