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

build error from tokenizers dependency #340

Open
joprice opened this issue Jan 18, 2025 · 1 comment
Open

build error from tokenizers dependency #340

joprice opened this issue Jan 18, 2025 · 1 comment

Comments

@joprice
Copy link

joprice commented Jan 18, 2025

I'm seeing the same rust build error reported here huggingface/tokenizers#1485, which was fixed in huggingface/tokenizers#1355 (tokenizers-0.14.1). Running pip install --dry-run transformers==4.34.0 shows that the version is the one including the fix. Is it possible to update transformers to a more recent version?

Otherwise, there is this workaround suggested: RUSTUP_TOOLCHAIN=1.72.0 pip install tokenizers==0.13.2, but it another error

  error: package `clap v4.5.26` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.72.0```.

@joprice
Copy link
Author

joprice commented Jan 18, 2025

I was able to build by setting RUSTFLAGS="-A invalid_reference_casting" to ignore the warning, but seems like since it can lead to UB, it should be addressed eventually.

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

1 participant