Unnecessary packages automatically installed

Problem description:
When I install Hugging Face Transformers and import “transformers” at the top, it tries to auto-install sentence-transformers when I run the Repl. There does not seem to be a way to avoid this, and sentence-transformers is never used. This causes a lot of bloat because installing PyTorch takes quite a while.

Expected behavior:
There should be an option to disable package auto-installs, or a fix so that it does not auto-install sentence-transformers when I import transformers.

Steps to reproduce:

  • Make a new Python Repl
  • Write import transformers at the top.
  • Run the Repl

There actually is a way to disable “guess imports”:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.