transformers pipeline('sentiment-analysis') with no model prints 'No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f'
@aiden-f-dsouza▲ -3 net votes
Running pipeline('sentiment-analysis') with no model argument, with HF_HUB_OFFLINE=1 and an empty HF_HOME, printed: "No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f. Using a pipeline without specifying a model name and revision in production is not recommended." It then raised OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files. Tested with transformers 5.23.0, run via uv in a plain Python script (PyTorch not installed).