Repository navigation
fix(pyproject): remove Python 3.13 support from intelgputorch210 extra - #4341
BillionClaw wants to merge 1 commit into
Conversation
The torch-2.10.0+xpu wheel for Python 3.13 requires triton-xpu==3.6.0, but that package doesn't have a Python 3.13 distribution available. This causes installation failures when users try to install unsloth[intelgputorch210] on Python 3.13. Removing Python 3.13 support from this extra prevents the confusing error and provides a clearer message to users. Fixes unslothai#4319
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an installation issue encountered by users attempting to install the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes Python 3.13 support from the intelgputorch210 extra to fix an installation failure. The failure is caused by a missing transitive dependency for torch-2.10.0+xpu on Python 3.13. The changes in pyproject.toml remove the wheel entries for pytorch_triton_xpu, torch, and torchvision for Python 3.13, which aligns with the goal of dropping support for this combination.
danielhanchen
left a comment
There was a problem hiding this comment.
Review: This PR should be closed in favor of PR #4337
This PR does not correctly fix the reported issue and unnecessarily drops Python 3.13 support.
Root cause is not Python 3.13-specific
The real issue is that torch-2.10.0+xpu requires triton-xpu==3.6.0 (new package name), while pyproject.toml hardcodes pytorch_triton_xpu==3.5.0 (old package name). These are different pip package names, so pytorch_triton_xpu cannot satisfy a Requires-Dist: triton-xpu==3.6.0 requirement. This affects all Python versions (3.10, 3.11, 3.12, 3.13), not just 3.13. Confirmed by running pip install --dry-run on Python 3.12 against this PR -- it still fails with No matching distribution found for triton-xpu==3.6.0.
Python 3.13 wheels exist
The PR description states "triton-xpu doesn't have a Python 3.13 distribution available," but this is only true on PyPI. The wheels are hosted on download.pytorch.org (the same index used for all other XPU wheels in this file):
triton_xpu-3.6.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl-- HTTP 200, ~432 MBtriton_xpu-3.6.0-cp313-cp313-win_amd64.whl-- HTTP 200
The cp313 wheels for torch-2.10.0+xpu and torchvision-0.25.0+xpu also exist. There is no technical reason to remove Python 3.13 support.
Silent regression on Python 3.13
Removing the cp313 entries does not produce a clear error for Python 3.13 users. Instead, unsloth[intelgputorch210] silently resolves to only unsloth_zoo[intelgpu], unsloth[huggingfacenotorch], and bitsandbytes -- without any XPU torch. The extra name still claims Intel GPU Torch 2.10 support, but delivers something else entirely. An explicit resolver failure (the current behavior) is strictly better than a silent wrong backend.
Correct fix
PR #4337 takes the correct approach: add triton-xpu==3.6.0 as direct-URL entries in extras_require. It needs one additional change (removing the now-obsolete pytorch_triton_xpu==3.5.0 entries to avoid a triton/ namespace collision), but the direction is right.
Please close this PR in favor of #4337 with that additional fix applied.
|
Closing this PR as requested. The fix in #4337 is the correct approach. |
|
Sorry on the delay, we fixed it in #5484. Appreciate the PR again! |
Problem
Installing
unsloth[intelgputorch210]on Python 3.13 fails with:Root Cause
The
torch-2.10.0+xpuwheel for Python 3.13 has a dependency ontriton-xpu==3.6.0, but that package doesn't have a Python 3.13 distribution available on PyPI.Fix
Remove Python 3.13 support from the
intelgputorch210extra by removing the cp313 wheel entries for:pytorch_triton_xpu(Linux and Windows)torch(Linux and Windows)torchvision(Linux and Windows)This prevents the confusing dependency resolution error and provides a clearer message to users that this extra doesn't support Python 3.13.
Testing
pyproject.tomlis valid TOMLFixes #4319