Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf package version #1

Open
cipy opened this issue Jan 25, 2024 · 1 comment
Open

protobuf package version #1

cipy opened this issue Jan 25, 2024 · 1 comment

Comments

@cipy
Copy link

cipy commented Jan 25, 2024

RuntimeError: Failed to import transformers.models.vision_encoder_decoder.modeling_vision_encoder_decoder because of the following error (look up to see its traceback):
Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
@vegaluisjose
Copy link
Owner

did you install requirements.txt?

These are the versions of transformers and protobuf that requirements.txt installed in a new venv when I run it:

vega@fox mlx-rag % python3 -V
Python 3.11.7

vega@fox mlx-rag % source .venv/bin/activate

(.venv) vega@fox mlx-rag % pip show protobuf
Name: protobuf
Version: 4.25.2
Summary:
Home-page: https://developers.google.com/protocol-buffers/
Author: [email protected]
Author-email: [email protected]
License: 3-Clause BSD License
Location: /Users/vega/z/explore/mlx-rag/.venv/lib/python3.11/site-packages
Requires:
Required-by: mlx-lm, onnx, onnxruntime

(.venv) vega@fox mlx-rag % pip show transformers
Name: transformers
Version: 4.37.0
Summary: State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow
Home-page: https://github.com/huggingface/transformers
Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)
Author-email: [email protected]
License: Apache 2.0 License
Location: /Users/vega/z/explore/mlx-rag/.venv/lib/python3.11/site-packages
Requires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, safetensors, tokenizers, tqdm
Required-by: mlx-lm, unstructured-inference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants