postgresml
postgresml copied to clipboard
ImportError: \nDebertaV2Converter requires the protobuf library but it was not found in your environment
Trying to use "MoritzLaurer/mDeBERTa-v3-base-mnli-xnli" for zero-shot-classification and am getting this error:
{"error":"error returned from database: worker error: Traceback (most recent call last):\n File \"\", line 227, in
transform\n File \"\", line 201, in create_pipeline\n File \"\", line 167, in __init__\n File \"/var/lib/postgresml-python/pgml-
venv/lib/python3.10/site-packages/transformers/pipelines/__init__.py\", line 885, in pipeline\n tokenizer =
AutoTokenizer.from_pretrained(\n File \"/var/lib/postgresml-python/pgml-venv/lib/python3.10/site-
packages/transformers/models/auto/tokenization_auto.py\", line 702, in from_pretrained\n return
tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)\n File \"/var/lib/postgresml-
python/pgml-venv/lib/python3.10/site-packages/transformers/tokenization_utils_base.py\", line 1841, in
from_pretrained\n return cls._from_pretrained(\n File \"/var/lib/postgresml-python/pgml-venv/lib/python3.10/site-
packages/transformers/tokenization_utils_base.py\", line 2004, in _from_pretrained\n tokenizer = cls(*init_inputs,
**init_kwargs)\n File \"/var/lib/postgresml-python/pgml-venv/lib/python3.10/site-
packages/transformers/models/deberta_v2/tokenization_deberta_v2_fast.py\", line 133, in __init__\n super().__init__(\n
File \"/var/lib/postgresml-python/pgml-venv/lib/python3.10/site-packages/transformers/tokenization_utils_fast.py\", line
114, in __init__\n fast_tokenizer = convert_slow_tokenizer(slow_tokenizer)\n File \"/var/lib/postgresml-python/pgml-
venv/lib/python3.10/site-packages/transformers/convert_slow_tokenizer.py\", line 1332, in convert_slow_tokenizer\n
return converter_class(transformer_tokenizer).converted()\n File \"/var/lib/postgresml-python/pgml-
venv/lib/python3.10/site-packages/transformers/convert_slow_tokenizer.py\", line 456, in __init__\n
requires_backends(self, \"protobuf\")\n File \"/var/lib/postgresml-python/pgml-venv/lib/python3.10/site-
packages/transformers/utils/import_utils.py\", line 1027, in requires_backends\n raise ImportError(\"\".join(failed))\n
ImportError: \nDebertaV2Converter requires the protobuf library but it was not found in your environment. Checkout the
instructions on the\ninstallation page of its repo:
https://github.com/protocolbuffers/protobuf/tree/master/python#installation and follow the ones\nthat match your
environment. Please note that you may need to restart your runtime after installation.\n"}
I got this error too:
using this docker image image: ghcr.io/postgresml/postgresml:2.7.9