Skip to content

[dynamo] Test for using torch.nn when replay_records are enabled#116215

Closed
peterbell10 wants to merge 15 commits intogh/peterbell10/674/basefrom
gh/peterbell10/674/head
Closed

[dynamo] Test for using torch.nn when replay_records are enabled#116215
peterbell10 wants to merge 15 commits intogh/peterbell10/674/basefrom
gh/peterbell10/674/head

Conversation

@peterbell10
Copy link
Copy Markdown
Collaborator

@peterbell10 peterbell10 commented Dec 20, 2023

The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Dec 20, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 8a2d7b3 with merge base 5ec2d79 (image):
💚 Looks good so far! There are no failures yet. 💚

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

The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Dec 21, 2023
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

ghstack-source-id: de04e95
Pull Request resolved: #116215
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Dec 21, 2023
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

ghstack-source-id: 753e40b
Pull Request resolved: #116215
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Dec 22, 2023
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

ghstack-source-id: b4859fe
Pull Request resolved: #116215
…ing torch.nn when replay_records are enabled"

The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Dec 22, 2023
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

ghstack-source-id: 6e4e316
Pull Request resolved: #116215
@peterbell10 peterbell10 marked this pull request as ready for review December 22, 2023 19:32
@peterbell10 peterbell10 requested a review from jansel December 22, 2023 19:34
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
…ds are enabled"

The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
peterbell10 added a commit to peterbell10/pytorch that referenced this pull request Jan 24, 2024
The top level `torch` module is ignored, and so anything underneath it will fail
when accessed with the error:
```python
File ~/git/pytorch/torch/_dynamo/replay_record.py:80, in ExecutionRecorder.record_module_access(self, mod, name, val)
     78     return
     79 if isinstance(val, ModuleType):
---> 80     self.name_to_modrec[mod.__name__].accessed_attrs[name] = self._add_mod(val)
     81     return
     83 if mod.__name__ in self.name_to_modrec:

InternalTorchDynamoError: torch.nn
```

ghstack-source-id: 3b4ae11
Pull Request resolved: pytorch#116215
…nabled"

This adds a reproducer for a failure that has since been fixed in main.

[ghstack-poisoned]
@peterbell10 peterbell10 changed the title [dynamo] Fix using torch.nn when replay_records are enabled [dynamo] Test for using torch.nn when replay_records are enabled Jan 24, 2024
@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Jan 24, 2024
peterbell10 added a commit that referenced this pull request Jan 24, 2024
This adds a reproducer for a failure that has since been fixed in main.

ghstack-source-id: 356760d
Pull Request resolved: #116215
…nabled"

This adds a reproducer for a failure that has since been fixed in main.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Jan 24, 2024
This adds a reproducer for a failure that has since been fixed in main.

ghstack-source-id: 8d9de16
Pull Request resolved: #116215
@peterbell10
Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 24, 2024
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot facebook-github-bot deleted the gh/peterbell10/674/head branch January 28, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants