Closed nas7sou closed 4 months ago
I got the same error. Have you solved this problem?
@nas7sou Find the config.json file of Yi-VL-6B that you downloaded locally, and change the mm_vision_tower in it to an absolute path
Hello @Yimi81, thank you for your response. I did what you say as you can see on the picture below :
But unfortunately I still have the following error :
Traceback (most recent call last):
File "/home/milan/.local/lib/python3.10/site-packages/transformers/utils/hub.py", line 389, in cached_file
resolved_file = hf_hub_download(
File "/home/milan/.local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "/home/milan/.local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/home/milan/Yi/VL/model/home/milan/Yi/VL/model/vit/clip-vit-H-14-laion2B-s32B-b79K-yi-vl-6B-448'. Use repo_type
argument if needed.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/milan/Yi/VL/single_inference.py", line 110, in
@nas7sou I solved this problem. The main problem is that you did not download the models completely.
You need to install a git extension on your linux, please see the following steps:
install Git LFS using apt, run:
sudo apt update
sudo apt install git-lfs
Initialize Git LFS, run:
git lfs install
Navigate to your model directory in your terminal or command prompt, run:
git lfs pull
If still not working well, please redownload the model from hugging face after initializing Git LFS, run:
git clone https://huggingface.co/01-ai/Yi-6B-Chat
Also you can follow the link: https://git-lfs.com/ to see how to install git-lfs. Hope this can help you solving your problems
Reminder
Environment
Current Behavior
Hello I am a beginner in github and coding, so I think it is a easy problem to solve but I don't know how
Expected Behavior
No response
Steps to Reproduce
What I did:
git clone https://github.com/01-ai/Yi.git
cd Yi/VL
export PYTHONPATH=$PYTHONPATH:$(pwd)
pip install -r requirements.txt
Put all the files of Yi-VL-6B (https://huggingface.co/01-ai/Yi-VL-6B) and vit in a new folder "model" inside VL folder![Q](https://github.com/01-ai/Yi/assets/144114493/084a9bd6-f714-4f1a-a037-47045dd77ced)
CUDA_VISIBLE_DEVICES=0 python3 single_inference.py --model-path /home/Yi/VL/model/ --image-file /home/Downloads/Picture/test.jpg --question "Describe the picture."
Error that I had: OSError: Incorrect path_or_model_id: '/home/Yi/VL/model/vit/clip-vit-H-14-laion2B-s32B-b79K-yi-vl-6B-448'. Please provide either the path to a local folder or the repo_id of a model on the Hub.
Anything Else?
No response