Trying to run colpali locally
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
2024-09-30T23:51:20Z
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.huggingface.coDownload files from the HubWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2024-10-01T00:18:49Z
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.
2024-10-01T00:24:19Z
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.