Skip to content
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

dynamo + torchdeploy bug #265

Open
wants to merge 3 commits into
base: gh/PaliC/87/base
Choose a base branch
from
Open

dynamo + torchdeploy bug #265

wants to merge 3 commits into from

Conversation

PaliC
Copy link
Contributor

@PaliC PaliC commented Nov 11, 2022

Stack from ghstack (oldest at bottom):

I ran into a few bugs when trying to use deploy + dynamo. This PR adds some torchdynamo unit tests to create a minimal repro for these bugs. So far there are 2 bugs

  1. Outputs of using dynamo + torchscript + deploy is inconsistent with using just torchscript.
  2. Multithreading models which use dynamo run into errors with prims.

The output of building and running test_deploy_compat.cpp (which contain single and multithreaded dynamo+torchscript+deploy tests using resnet) are here.

One can run these tests again by running

cd multipy
python multipy/runtime/example/generate_examples.py
python -m pip install -e .
./multipy/runtime/build/test_deploy_compat 

Differential Revision: D41349350

[ghstack-poisoned]
PaliC added a commit that referenced this pull request Nov 11, 2022
ghstack-source-id: 902145d48118591188d0f0b72e1043152e8a6d2f
Pull Request resolved: #265
@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 Nov 11, 2022
@PaliC PaliC changed the title dynamo benchmarking dynamo + torchdeploy bug Nov 11, 2022
I ran into a few bugs when trying to use deploy + dynamo. This PR adds some torchdynamo unit tests to create a minimal repro for these bugs. So far there are 2 bugs 

1. Outputs of using dynamo + torchscript + deploy is inconsistent with using just torchscript.
2. Multithreading models which use dynamo run into errors with prims.

The output of building and running `test_deploy_compat.cpp` (which contain single and multithreaded dynamo+torchscript+deploy tests using resnet) are [here](https://pastebin.com/vZxNsFJj).

One can run these tests again by running
```
cd multipy
python multipy/runtime/example/generate_examples.py
python -m pip install -e .
./multipy/runtime/build/test_deploy_compat 
```

[ghstack-poisoned]
PaliC added a commit that referenced this pull request Nov 12, 2022
ghstack-source-id: 9242e6a7129f0eaf761c98b89a012f5d8367fcc1
Pull Request resolved: #265
I ran into a few bugs when trying to use deploy + dynamo. This PR adds some torchdynamo unit tests to create a minimal repro for these bugs. So far there are 2 bugs 

1. Outputs of using dynamo + torchscript + deploy is inconsistent with using just torchscript.
2. Multithreading models which use dynamo run into errors with prims.

The output of building and running `test_deploy_compat.cpp` (which contain single and multithreaded dynamo+torchscript+deploy tests using resnet) are [here](https://pastebin.com/vZxNsFJj).

One can run these tests again by running
```
cd multipy
python multipy/runtime/example/generate_examples.py
python -m pip install -e .
./multipy/runtime/build/test_deploy_compat 
```

[ghstack-poisoned]
PaliC added a commit that referenced this pull request Nov 15, 2022
ghstack-source-id: 7ea1be26e094c152e9e2f4e329c8717e00bf46d3
Pull Request resolved: #265
@PaliC
Copy link
Contributor Author

PaliC commented Nov 16, 2022

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

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants