I am trying to run colpali in an env in firewall. I downloaded the models but can not load from the dir because it is missing config.json. What is the procedure to run a model without config.json ?
Thanks
I am trying to run colpali in an env in firewall. I downloaded the models but can not load from the dir because it is missing config.json. What is the procedure to run a model without config.json ?
Thanks
Think of HF’s HF-style repo model as one model per directory. config.json and even README.md are part of the model in some cases. Simply download and place config.json.
If it is too hard to download them one by one, use a function like snapshot_download.
Thanks . I did download the model using git clone. It has some other configuration files but not config.json. I have worked with some other models and they did have this file when I cloned them locally.
That’s funny, config.json is literally just a json file. It’s supposed to be downloaded…
Worst case, and it happens more often than you might think, is that the model was not converted correctly to HF format, even officially, and the file is missing.
In that case… you can either convert it yourself somehow or find a repo that someone else has converted properly and use it. You might try to find someone else who is having problems with the same model.