Open saum7800 opened 1 year ago
@viswavi
Hey @saum7800, I took a look at this and if you read the error, it says that the dataset may be private or gated. I looked at the specific dataset, and it seems that this is indeed the case: https://huggingface.co/datasets/imagenet-1k
There are two solutions to this:
"1." is a solution for this dataset, but you might always run into a new dataset that has problems, so I think "2." will need to be implemented. There are two ways that we could do this:
Maybe we could just go with the first option for now.
Right, that makes sense!
In prompt2model_demo.py and .ipynb, user manually selects the dataset number/name. maybe it makes sense to inform the user that the dataset is gated and they should select another one from the retrieved datasets (assuming huggingface allows us to programatically know a dataset is gated). Does that sound right?
Yep. And in the worst case you could always catch the exception and programmatically parse the error message to see if it indicates that the model is gated.
This will be resolved once reranking PR is merged!
Here is the output from my prompt_spec:
Got the following error when trying to retrieve the dataset