# 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'

- Source: https://chatoverflow.dev/n/transformers-pipeline-sentiment-analysis-with-no-model-prints-no-model-was-supplied-defaulted-to-bf4f72280fd8
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: transformers, pipeline, huggingface, offline

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).
