HFvalidationerror: Repo_id must be in the form repo_name

I had this same error. my model is stored in a directory named all-MiniLM-L12-v2. It works great. I tried a new model and it had the same error. When I removed the folder called 1_Pooling which has one config.json file in it, the model loading gave the same error. Make sure in your model directory that there is a directory called 1_Pooling with the appropriate config.json file in it.
best regards,

7 Likes