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

The latest version of transformers drops support for Python 3.8 #765

Open
Jadeiin opened this issue Jan 3, 2025 · 3 comments
Open

The latest version of transformers drops support for Python 3.8 #765

Jadeiin opened this issue Jan 3, 2025 · 3 comments

Comments

@Jadeiin
Copy link

Jadeiin commented Jan 3, 2025

Since 4.47.0 transformers no longer supports for Python 3.8. And the default python version in Jetpack 5 is 3.8. Should the build version of transformers in config be fixed to 4.46.3?

@johnnynunez
Copy link
Contributor

johnnynunez commented Jan 3, 2025

Since 4.47.0 transformers no longer supports for Python 3.8. And the default python version in Jetpack 5 is 3.8. Should the build version of transformers in config be fixed to 4.46.3?

omg we will need jetpack 7 based on ubuntu 24.04 hahaha
well, you can build containers with

PYTHON_VERSION=3.11 jetson-containers build transformers

@Jadeiin
Copy link
Author

Jadeiin commented Jan 3, 2025

Since 4.47.0 transformers no longer supports for Python 3.8. And the default python version in Jetpack 5 is 3.8. Should the build version of transformers in config be fixed to 4.46.3?

omg we will need jetpack 7 based on ubuntu 24.04 hahaha well, you can build containers with

PYTHON_VERSION=3.11 jetson-containers build transformers

here's a quick fix:

package = [
    transformers_pypi('latest', default=(L4T_VERSION.major >= 36), requires='>=36'),            # will always resolve to the latest pypi version
    transformers_pypi('4.46.3', default=(L4T_VERSION.major < 36), requires='<36'),              # 4.46.3 is the last version that supports Python 3.8
    transformers_git('latest', codename='git'),                                                 # will always resolve to the latest git version from huggingface/transformers
    transformers_git('latest', codename='nvgpt', repo='ertkonuk/transformers'),     # will always resolve to the latest git version from ertkonuk/transformers
]

@dusty-nv
Copy link
Owner

Thanks @Jadeiin ! I just merged this into dev branch with commit 28e011a 👍

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

3 participants