Open Ai-feier opened 1 year ago
have you specified the path to the weights?
have you specified the path to the weights?
Can you tell me how
have you specified the path to the weights?
Can you tell me how
Follow the read me file, in installation step 2 & 3
set the path to the vicuna weight in the model config file minigpt4/configs/models/minigpt4.yaml at Line 16.
set the path to the pretrained checkpoint in the evaluation config file in eval_configs/minigpt4_eval.yaml at Line 11.
(minigpt4) C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4>python demo.py --cfg-path eval_configs/minigpt4_eval.yaml Initializing Chat Loading VIT Loading VIT Done Loading Q-Former Loading Q-Former Done Loading LLAMA Traceback (most recent call last): File "C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4\demo.py", line 57, in
model = model_cls.from_config(model_config).to('cuda:0')
File "C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4\minigpt4\models\mini_gpt4.py", line 241, in from_config
model = cls(
File "C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4\minigpt4\models\mini_gpt4.py", line 85, in init
self.llama_tokenizer = LlamaTokenizer.from_pretrained(llama_model, use_fast=False)
File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\transformers\tokenization_utils_base.py", line 1770, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\transformers\utils\hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\huggingface_hub\utils_validators.py", line 112, in _inner_fn
validate_repo_id(arg_value)
File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\huggingface_hub\utils_validators.py", line 162, in validate_repo_id
f" '{repo_id}'. Use
repo_type
argument if needed." NameError: name 'repo_type' is not defined