Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Update transformer and tokenizer in setup.py to new versions#23

Open
amit2kesari wants to merge 2 commits into
microsoft:mainfrom
amit2kesari:main
Open

Update transformer and tokenizer in setup.py to new versions#23
amit2kesari wants to merge 2 commits into
microsoft:mainfrom
amit2kesari:main

Conversation

@amit2kesari

Copy link
Copy Markdown

Due to older version of transformer it was facing issues and was asking to install rust in the docker image. When I installed rust still it was giving issues for pyo3 due to network calls.
The newer versions are building the docker image correctly!

Error traceback:

Building wheel for tokenizers (pyproject.toml): started
#12 55.96 Building wheel for tokenizers (pyproject.toml): finished with status 'error'
#12 55.97 error: subprocess-exited-with-error
#12 55.97
#12 55.97 × Building wheel for tokenizers (pyproject.toml) did not run successfully.
#12 55.97 │ exit code: 1
#12 55.97 ╰─> [48 lines of output]
#12 55.97 /tmp/pip-build-env-1s4lt8xo/overlay/lib/python3.9/site-packages/setuptools/dist.py:314: InformationOnly: Normalizing '0.8.0.rc1' to '0.8.0rc1'
#12 55.97 self.metadata.version = self._normalize_version(self.metadata.version)
#12 55.97 running bdist_wheel
#12 55.97 running build
#12 55.97 running build_py
#12 55.97 creating build
#12 55.97 creating build/lib.linux-x86_64-cpython-39
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers
#12 55.97 copying tokenizers/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/models
#12 55.97 copying tokenizers/models/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/models
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/decoders
#12 55.97 copying tokenizers/decoders/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/decoders
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/normalizers
#12 55.97 copying tokenizers/normalizers/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/normalizers
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/pre_tokenizers
#12 55.97 copying tokenizers/pre_tokenizers/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/pre_tokenizers
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/processors
#12 55.97 copying tokenizers/processors/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/processors
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/trainers
#12 55.97 copying tokenizers/trainers/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/trainers
#12 55.97 creating build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/implementations/init.py -> build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/implementations/base_tokenizer.py -> build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/implementations/bert_wordpiece.py -> build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/implementations/byte_level_bpe.py -> build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/implementations/char_level_bpe.py -> build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/implementations/sentencepiece_bpe.py -> build/lib.linux-x86_64-cpython-39/tokenizers/implementations
#12 55.97 copying tokenizers/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers
#12 55.97 copying tokenizers/models/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers/models
#12 55.97 copying tokenizers/decoders/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers/decoders
#12 55.97 copying tokenizers/normalizers/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers/normalizers
#12 55.97 copying tokenizers/pre_tokenizers/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers/pre_tokenizers
#12 55.97 copying tokenizers/processors/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers/processors
#12 55.97 copying tokenizers/trainers/init.pyi -> build/lib.linux-x86_64-cpython-39/tokenizers/trainers
#12 55.97 running build_ext
#12 55.97 running build_rust
#12 55.97 error: can't find Rust compiler
#12 55.97
#12 55.97 If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

@ykim362

ykim362 commented Jan 17, 2024

Copy link
Copy Markdown
Member

Thanks for the PR, @amit2kesari.
Do you know if the models work correctly with the latest transofrmers and tokenizer?

@amit2kesari

amit2kesari commented Jan 17, 2024 via email

Copy link
Copy Markdown
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants