Skip to content

fix(pyproject): remove Python 3.13 support from intelgputorch210 extra - #4341

Closed
BillionClaw wants to merge 1 commit into
unslothai:mainfrom
BillionClaw:clawoss/fix-intelgputorch210-python313
Closed

BillionClaw wants to merge 1 commit into
unslothai:mainfrom
BillionClaw:clawoss/fix-intelgputorch210-python313

Conversation

@BillionClaw

Copy link
Copy Markdown

Problem

Installing unsloth[intelgputorch210] on Python 3.13 fails with:

ERROR: Could not find a version that satisfies the requirement triton-xpu==3.6.0 (from torch)
ERROR: No matching distribution found for triton-xpu==3.6.0

Root Cause

The torch-2.10.0+xpu wheel for Python 3.13 has a dependency on triton-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 intelgputorch210 extra 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

  • Verified pyproject.toml is valid TOML
  • This is a dependency metadata change only

Fixes #4319

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
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 intelgputorch210 extra on Python 3.13. The problem stemmed from a missing triton-xpu distribution for Python 3.13 on PyPI, which caused dependency resolution failures. The fix involves explicitly removing Python 3.13 support for the intelgputorch210 extra within the pyproject.toml file, thereby preventing these errors and providing clearer guidance on supported Python versions.

Highlights

  • Problem Resolution: Addressed an installation failure for unsloth[intelgputorch210] on Python 3.13.
  • Dependency Management: Removed Python 3.13 specific dependency entries for pytorch_triton_xpu, torch, and torchvision from the intelgputorch210 extra.
  • User Experience: Prevents confusing dependency resolution errors and clarifies that Python 3.13 is not supported for this specific extra.
Changelog
  • pyproject.toml
    • Removed Python 3.13 specific dependency entries for pytorch_triton_xpu.
    • Removed Python 3.13 specific dependency entries for torch.
    • Removed Python 3.13 specific dependency entries for torchvision.
Activity
  • Identified an installation failure for unsloth[intelgputorch210] on Python 3.13 due to a missing triton-xpu distribution.
  • Implemented a fix by updating dependency metadata in pyproject.toml.
  • Verified pyproject.toml validity.
  • Confirmed that changes are limited to dependency metadata.
  • Addressed issue [Bug] Install from git -> python3.13 #4319.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 danielhanchen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 MB
  • triton_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.

@BillionClaw

Copy link
Copy Markdown
Author

Closing this PR as requested. The fix in #4337 is the correct approach.

@danielhanchen

Copy link
Copy Markdown
Member

Sorry on the delay, we fixed it in #5484. Appreciate the PR again!

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 this pull request may close these issues.

[Bug] Install from git -> python3.13

2 participants