Skip to content

[rocm6.3] Update triton requirements and conditionalize python_version < '3.13' only for PyTorch <= 2.5#68

Merged
jithunnair-amd merged 3 commits intorocm6.3from
rocm6.3_py3.13
Feb 13, 2025
Merged

[rocm6.3] Update triton requirements and conditionalize python_version < '3.13' only for PyTorch <= 2.5#68
jithunnair-amd merged 3 commits intorocm6.3from
rocm6.3_py3.13

Conversation

@ethanwee1
Copy link

@ethanwee1 ethanwee1 commented Feb 12, 2025

conditionalize and python_version < '3.13'" only for PyTorch 2.5 and older

Tested via: http://ml-ci-internal.amd.com:8080/job/pytorch/job/manylinux_rocm_wheels/541/

[2025-02-13T16:14:17.115Z] + export 'PYTORCH_EXTRA_INSTALL_REQUIREMENTS=pytorch-triton-rocm==3.2.0+rocm6.3.2.git6da9e660; platform_system == '\''Linux'\'' and platform_machine == '\''x86_64'\'''

image

@jithunnair-amd jithunnair-amd changed the title [rocm6.3] Conditionalize python_version < '3.13'" only for PyTorch 2.5 [rocm6.3] Conditionalize python_version < '3.13' only for PyTorch < 2.5 Feb 12, 2025
@jithunnair-amd jithunnair-amd changed the title [rocm6.3] Conditionalize python_version < '3.13' only for PyTorch < 2.5 [rocm6.3] Conditionalize python_version < '3.13' only for PyTorch <= 2.5 Feb 12, 2025
if [[ $(uname) == "Linux" ]] && [[ "$DESIRED_PYTHON" != "3.12" || $(ver $PYTORCH_VERSION) -ge $(ver 2.4) ]]; then
# Triton commit got unified in PyTorch 2.5
if [[ $(ver $PYTORCH_VERSION) -ge $(ver 2.5) ]]; then
if [[ $(ver $PYTORCH_VERSION) -ge $(ver 2.5) && $(ver "$DESIRED_PYTHON") -lt $(ver "3.13")]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not where the condition needs to go. The py3.13 condition is basically to decide whether pytorch should have a python dependency on triton or not. For PyTorch2.5 and older, py3.13 was not supported for triton, so pytorch shouldn't have a py3.13 dependency on triton, but for PyTorch2.6 and newer, it can.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the line that needs to conditionally add the and python_version < '3.13' part only for PyTorch2.5 and older: https://github.com/ROCm/builder/pull/68/files#diff-7096082d567b603ade9f800a8aad99eb4ec57ee15802d9dd4b4457f3a6609942R321

@jithunnair-amd jithunnair-amd changed the title [rocm6.3] Conditionalize python_version < '3.13' only for PyTorch <= 2.5 [rocm6.3] Update triton requirements and conditionalize python_version < '3.13' only for PyTorch <= 2.5 Feb 13, 2025
jithunnair-amd added a commit to ROCm/pytorch that referenced this pull request Feb 13, 2025
@jithunnair-amd jithunnair-amd merged commit 931728e into rocm6.3 Feb 13, 2025
1 check failed
@jithunnair-amd jithunnair-amd deleted the rocm6.3_py3.13 branch February 13, 2025 23:45
ethanwee1 added a commit that referenced this pull request Feb 13, 2025
…n < '3.13' only for PyTorch <= 2.5 (#68)

* conditionalize and python_version < '3.13'" only for PyTorch 2.5 and older

* Limit TRITON_CONSTRAINT

* Change triton wheel name to .git with 8 characters
jithunnair-amd added a commit to ROCm/pytorch that referenced this pull request Feb 15, 2025
Relates to:
https://github.com/ROCm/rocAutomation/pull/660/files
ROCm/builder#68

Validation:

http://ml-ci-internal.amd.com:8080/job/pytorch/job/manylinux_rocm_wheels/550/

---------

Co-authored-by: Jithun Nair <jithun.nair@amd.com>
Co-authored-by: Jithun Nair <37884920+jithunnair-amd@users.noreply.github.com>
ethanwee1 added a commit to ROCm/pytorch that referenced this pull request Feb 17, 2025
Relates to:
https://github.com/ROCm/rocAutomation/pull/660/files
ROCm/builder#68

---------

Co-authored-by: Jithun Nair <jithun.nair@amd.com>
Co-authored-by: Jithun Nair <37884920+jithunnair-amd@users.noreply.github.com>
jithunnair-amd pushed a commit that referenced this pull request Feb 17, 2025
…n < '3.13' only for PyTorch <= 2.5 (#68) AND add in conda to dockerfile for torchvision (#70)

* Append torch commit to wheel name (#67)

* Append torch commit if it is set

* Remove git

* Rename wheels

* lint

* refactor

* [rocm6.3] Update triton requirements and conditionalize python_version < '3.13' only for PyTorch <= 2.5 (#68)

* conditionalize and python_version < '3.13'" only for PyTorch 2.5 and older

* Limit TRITON_CONSTRAINT

* Change triton wheel name to .git with 8 characters

* Create install_conda_docker.sh

* Add conda in dockerfile
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.

2 participants