Getting Started

setup with Python virtual environment

You can verify the installation by running:

>>> import transformers

I would like to list some common issues:

some more lines

extra lines

there is a bug

line

line

line

line

line

Issues

  • >>> import transformers
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'transformers'

It looks like your installation was not successful or you didn't activate the virtual environment.

  • untimeError: At least one of TensorFlow 2.0 or PyTorch should be installed. To install TensorFlow 2.0, read the instructions at https://www.tensorflow.org/install/ To install PyTorch, read the instructions at https://pytorch.org/.

    To fix the issue install tensorflow with pip install tensorflow==2.14.0 as well.

  • Could not find cuda drivers on your machine, GPU will not be used.
  • This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
    To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
  • TF-TRT Warning: Could not find TensorRT

Previous Post Next Post