Skip to content

add torch-tensorrt-executorch-delegate wheel build#4398

Draft
lanluo-nvidia wants to merge 3 commits into
mainfrom
lluo/executorch_wheel_build
Draft

add torch-tensorrt-executorch-delegate wheel build#4398
lanluo-nvidia wants to merge 3 commits into
mainfrom
lluo/executorch_wheel_build

Conversation

@lanluo-nvidia

Copy link
Copy Markdown
Collaborator

Description

export EXECUTORCH_SOURCE_DIR=/home/lanl/git/executorch
export EXECUTORCH_ROOT=/home/lanl/git/executorch

build the torch-tensorrt-executorch-delegate.whl

python -m pip wheel
--no-build-isolation
--no-deps
--wheel-dir dist
packaging/executorch_delegate

install the wheel

python -m pip install --no-deps --force-reinstall
dist/torch_tensorrt_executorch_delegate-*.whl

export the pte

python /home/lanl/git/py312/TensorRT/examples/torchtrt_executorch_example/export_static_shape.py

load the pte

python examples/executorch_reference_runner/load_model.py
--model_path=/path/to/model.pte

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

@meta-cla meta-cla Bot added the cla signed label Jul 11, 2026
@github-actions github-actions Bot added component: tests Issues re: Tests component: build system Issues re: Build system component: api [Python] Issues re: Python API labels Jul 11, 2026
@github-actions github-actions Bot requested a review from zewenli98 July 11, 2026 09:49
@narendasan

Copy link
Copy Markdown
Collaborator

@lanluo-nvidia the new package should be in

//py
-> torch-tensorrt
-> torch-tensorrt-executorch-delegate

See: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

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: tests Issues re: Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants