Skip to content

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: 902145d
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: 9242e6a
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: 7ea1be2
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.

@meta-cla
Copy link

meta-cla bot commented Oct 16, 2025

Hi @PaliC!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

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.

3 participants