Skip to content

Conversation

@hlky
Copy link
Contributor

@hlky hlky commented Jan 8, 2025

What does this PR do?

#10132

Tokenizers Installation

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@sayakpaul @DN6

@hlky
Copy link
Contributor Author

hlky commented Jan 8, 2025

https://github.com/huggingface/diffusers/actions/runs/12670063594/job/35308957154?pr=10494#step:6:236

/opt/venv/src/transformers/src/transformers/utils/versions.py:44: in _compare_versions
    raise ImportError(
E   ImportError: tokenizers>=0.21,<0.22 is required for a normal functioning of this module, but found tokenizers==0.21.0.dev0.

Seems transformers doesn't work with dev versions of tokenizers.

Maybe just revert this.

pip install -e git+https://github.com/huggingface/transformers.git#egg=transformers --no-deps
python -m uv pip install -U tokenizers@git+https://github.com/huggingface/tokenizers.git#subdirectory=bindings/python --no-deps
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
python -m uv pip install -U tokenizers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hlky hlky merged commit 4df9d49 into huggingface:main Jan 8, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants