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

Document rust compiler as a requirement #495

Closed
ppf2 opened this issue Oct 17, 2022 · 2 comments
Closed

Document rust compiler as a requirement #495

ppf2 opened this issue Oct 17, 2022 · 2 comments

Comments

@ppf2
Copy link
Member

ppf2 commented Oct 17, 2022

OS: MacOS Monterey 12.6

In order for the python -m pip install eland script to install the packages successfully, the rust compiler is required. Let's update our documentation to include this pre-requisite.

@davidkyle
Copy link
Member

davidkyle commented Dec 2, 2022

I have not been able to recreate this on my machine but watching a this video about setting the presenter describes the same problem. The cause is that the fast tokenisers in Hugging Face transformers are written in Rust. The suggested work around is to install Rust.

The relevant section is around 7mins45s.

https://youtu.be/uYas6ysyjgY?t=471

Installing transformers on my mac (macOS Monterey 12.6.1 M1 max) does not require Rust (which is not installed)

This succeeds

/usr/bin/python3 -m pip install transformers

As does using a Miniconda virtual env

~/miniconda3/bin/python -m venv .env
source .env/bin/activate
pip install transformers

@davidkyle
Copy link
Member

The requirement was documented in #507 and recent versions of Transformers tokenizers work with M1 macs. If using a version of Eland where the Transformers requirement is pinned to a version > 4.10 a Rust compiler is not required.

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 a pull request may close this issue.

2 participants