Skip to content

Change training pybind extension_module linkage to static #9809

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

larryliu0820
Copy link
Contributor

@larryliu0820 larryliu0820 commented Apr 1, 2025

Summary: Fixes #9576. Use extension_module_static in building _training_lib.

Test Plan: Rely on unit test, also did a manual install in editable mode:

./install_executorch.sh --pybind training -e
python -c "from executorch.extension.training.pybindings._training_lib import get_sgd_optimizer"

Reviewers:

Subscribers:

Tasks:

Tags:

Summary: Fixes #9576. Use `extension_module_static` in building `_training_lib`.

Test Plan: Rely on unit test, also did a manual install in editable
mode:

```bash
./install_executorch.sh --pybind training
python -c "from executorch.extension.training.pybindings._training_lib import get_sgd_optimizer"
```

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Apr 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9809

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Pending

As of commit 817b14e with merge base b66c319 (image):

NEW FAILURE - The following job has failed:

  • pull / unittest-arm / linux-job (gh)
    RuntimeError: Command docker exec -t 1edb81746dba8b2510d4ac0a99b9d72b97658aba325e328e538370caf5e46e5b /exec failed with exit code 1

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 1, 2025
@larryliu0820 larryliu0820 merged commit d0bf832 into main Apr 1, 2025
87 of 90 checks passed
@larryliu0820 larryliu0820 deleted the fix_training branch April 1, 2025 22:09
@facebook-github-bot
Copy link
Contributor

@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@larryliu0820
Copy link
Contributor Author

@pytorchbot cherry-pick —onto release/0.6 -c bugfix

Copy link

pytorch-bot bot commented Apr 8, 2025

❌ 🤖 pytorchbot command failed:

@pytorchbot cherry-pick: error: argument -c/--classification: invalid choice: 'bugfix' (choose from 'regression', 'critical', 'fixnewfeature', 'docs', 'release')

usage: @pytorchbot cherry-pick --onto ONTO [--fixes FIXES] -c
                               {regression,critical,fixnewfeature,docs,release}

Try @pytorchbot --help for more info.

@larryliu0820
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/0.6 --fixes #9576 -c fixnewfeature

pytorchbot pushed a commit that referenced this pull request Apr 8, 2025
Summary: Fixes #9576. Use `extension_module_static` in building
`_training_lib`.

Test Plan: Rely on unit test, also did a manual install in editable
mode:

```bash
./install_executorch.sh --pybind training -e
python -c "from executorch.extension.training.pybindings._training_lib import get_sgd_optimizer"
```

Reviewers:

Subscribers:

Tasks:

Tags:
(cherry picked from commit d0bf832)
@pytorchbot
Copy link
Collaborator

Cherry picking #9809

The cherry pick PR is at #9961 and it is linked with issue #9576. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
Summary: Fixes #9576. Use `extension_module_static` in building
`_training_lib`.

Test Plan: Rely on unit test, also did a manual install in editable
mode:

```bash
./install_executorch.sh --pybind training -e
python -c "from executorch.extension.training.pybindings._training_lib import get_sgd_optimizer"
```

Reviewers:

Subscribers:

Tasks:

Tags:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing .so lib for training pybinding
4 participants