You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
huggingface_hub.utils._validators.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.
#687
Open
WildLight opened this issue
Apr 9, 2024
· 0 comments
Traceback (most recent call last):
File "blip2_instructed_generation.py", line 30, in <module>
model, vis_processors, _ = load_model_and_preprocess(
File "/public/xx/tvqa_test/LAVIS-main/lavis/models/__init__.py", line 205, in load_model_and_preprocess
model = model_cls.from_pretrained(model_type=model_type)
File "/public/xx/tvqa_test/LAVIS-main/lavis/models/base_model.py", line 70, in from_pretrained
model = cls.from_config(model_cfg)
File "/public/xx/tvqa_test/LAVIS-main/lavis/models/blip2_models/blip2_vicuna_instruct.py", line 715, in from_config
model = cls(
File "/public/xx/tvqa_test/LAVIS-main/lavis/models/blip2_models/blip2_vicuna_instruct.py", line 90, in __init__
self.llm_tokenizer = LlamaTokenizer.from_pretrained(llm_model, use_fast=False, truncation_side="left")
File "/root/anaconda/envs/instructblip/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1813, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
File "/root/anaconda/envs/instructblip/lib/python3.8/site-packages/transformers/utils/hub.py", line 429, in cached_file
resolved_file = hf_hub_download(
File "/root/anaconda/envs/instructblip/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 111, in _inner_fn
validate_repo_id(arg_value)
File "/root/anaconda/envs/instructblip/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 165, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.
hi, I meet the error following:
I use the code following from here: https://github.com/salesforce/LAVIS/tree/main/projects/instructblip
the version of me conda following:
so how can I solve it? please help me, thank you!
The text was updated successfully, but these errors were encountered: