Spaces:
Running
Upgrade runtime to Python 3.10 + enable Transformers 5.x support π€
This PR upgrades the container environment to support newer machine learning dependencies, specifically enabling compatibility with Transformers version 5.0.0 and above, which require Python 3.10 or later. The Python runtime has been migrated from version 3.9 to Python 3.10 using Miniconda, ensuring smooth compatibility with modern ML libraries. Alongside this, several dependencies have been updated, including JupyterLab, Tornado, and ipywidgets, to their latest stable versions. The Dockerfile has also been improved with cleaner environment variable consolidation, removal of redundant blocks, better apt cache cleanup to reduce image size, a fix for nvtop installation by adding the missing apt-get update step, an updated Miniconda installer aligned with Python 3.10, and a corrected Jupyter template path. Additionally, the Node.js setup has been streamlined by switching to a safer installation method and minimizing leftover cache layers. This upgrade addresses the earlier issue where Python 3.9 prevented installing newer Transformers versions and ensures the environment is future-ready for upcoming releases.
Key Points
- Upgraded Python runtime from 3.9 to 3.10 (Miniconda)
- Enabled compatibility with Transformers β₯ 5.0.0
- Updated dependencies: JupyterLab 4.5.6, Tornado 6.5.5, ipywidgets 8.1.8
- Improved Dockerfile structure and reduced image size
- Fixed nvtop installation issue
- Updated Miniconda installer and Jupyter template path
- Cleaned up Node.js installation process
- Resolved installation errors with newer Transformers versions
β The PR branch environment has been tested, and the build and runtime both work flawlessly with the updated dependencies.
thanks