Skip to content

enable back jetpack build #3720

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

Open
wants to merge 4 commits into
base: release/2.8
Choose a base branch
from
Open

Conversation

lanluo-nvidia
Copy link
Collaborator

  1. no longer publish jetpack build to pytorch nightly,
    only publish jetpack build to pypi.jetson-ai-lab for each release manually
  2. no longer use --plat-name=linux_tegra_aarch64 for jetson wheel
    user need to download the wheel from pypi/pytorch index for Thor
    and download the wheel from pypi.jetson-ai-lab for Orin

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant and/or add your own.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have added the relevant labels to my PR in so that relevant reviewers are notified

1) no longer publish jetpack build to pytorch nightly
2) publish jetpack build to pypi.jetson-ai-lab only for each release
3) no longer use --plat-name=linux_tegra_aarch64 for jetson wheel
   user need to download the wheel from pypi/pytorch index for Thor
   and download the wheel from pypi.jetson-ai-lab for Orin
@github-actions github-actions bot added documentation Improvements or additions to documentation component: build system Issues re: Build system labels Jul 25, 2025
@github-actions github-actions bot requested a review from narendasan July 25, 2025 16:20
@github-actions github-actions bot added component: conversion Issues re: Conversion stage component: converters Issues re: Specific op converters component: api [Python] Issues re: Python API component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths labels Jul 25, 2025
@lanluo-nvidia lanluo-nvidia marked this pull request as ready for review July 25, 2025 18:29

"tensorrt>=10.12.0,<10.13.0; platform_machine != 'aarch64' or (platform_machine == 'aarch64' and 'tegra' not in platform_release)",
"tensorrt-cu12>=10.12.0,<10.13.0; platform_machine != 'aarch64' or (platform_machine == 'aarch64' and 'tegra' not in platform_release)",
"tensorrt-cu12-bindings>=10.12.0,<10.13.0; platform_machine != 'aarch64' or (platform_machine == 'aarch64' and 'tegra' not in platform_release)",
"tensorrt-cu12-libs>=10.12.0,<10.13.0; platform_machine != 'aarch64' or (platform_machine == 'aarch64' and 'tegra' not in platform_release)",

"tensorrt>=10.3.0,<10.4.0;platform_machine == 'aarch64' and 'tegra' in platform_release",
"tensorrt-cu12>=10.3.0,<10.4.0; platform_machine == 'aarch64' and 'tegra' in platform_release",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why dont we need these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in orin, there is no more tensorrt-cu12 /tensorrt-cu12-bindings/tensorrt-cu12-libs, got the following error:

ubuntu@ubuntu:~/Desktop/lan/TensorRT/dist$ python -m pip install torch_tensorrt-2.8.0.dev0+74e6da439-cp310-cp310-linux_aarch64.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./torch_tensorrt-2.8.0.dev0+74e6da439-cp310-cp310-linux_aarch64.whl
Requirement already satisfied: torch<2.9.0,>=2.8.0 in /home/ubuntu/.local/lib/python3.10/site-packages (from torch-tensorrt==2.8.0.dev0+74e6da439) (2.8.0)
Requirement already satisfied: tensorrt<10.4.0,>=10.3.0 in /usr/lib/python3.10/dist-packages (from torch-tensorrt==2.8.0.dev0+74e6da439) (10.3.0)
INFO: pip is looking at multiple versions of torch-tensorrt to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement tensorrt-cu12-bindings<10.4.0,>=10.3.0; platform_machine == "aarch64" and "tegra" in platform_release (from torch-tensorrt) (from versions: 10.5.0, 10.6.0, 10.6.0.post1, 10.6.0.post2, 10.7.0, 10.7.0.post1, 10.8.0.43, 10.9.0.34, 10.10.0.31, 10.11.0.33, 10.12.0.36, 10.13.0.35)
ERROR: No matching distribution found for tensorrt-cu12-bindings<10.4.0,>=10.3.0; platform_machine == "aarch64" and "tegra" in platform_release

I removed those three and verified, it is still working in orin.

@lanluo-nvidia lanluo-nvidia added the ciflow/binaries/all Build for all Python Versions label Jul 28, 2025
Copy link

pytorch-bot bot commented Jul 28, 2025

No ciflow labels are configured for this repo.
For information on how to enable CIFlow bot see this wiki

@github-actions github-actions bot requested a review from gs-olive July 28, 2025 20:54
@lanluo-nvidia lanluo-nvidia removed the ciflow/binaries/all Build for all Python Versions label Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed component: api [Python] Issues re: Python API component: build system Issues re: Build system component: conversion Issues re: Conversion stage component: converters Issues re: Specific op converters component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants