-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
First I cloned the project. After creating a new venv and running pip install -r requirements.txt, I tried using your example with inference.py.
After downloading the pytorch_model-* files, the script failed with this error:
File "/xxx/.venv/lib/python3.11/site-packages/transformers/convert_slow_tokenizer.py", line 546, in __init__
requires_backends(self, "protobuf")
File "/xxx/.venv/lib/python3.11/site-packages/transformers/utils/import_utils.py", line 1828, in requires_backends
raise ImportError("".join(failed))
ImportError:
T5Converter requires the protobuf library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/protocolbuffers/protobuf/tree/master/python#installation and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
Solution: add protobuf to requirements.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels