Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change compile for pipeline module torch.compile
We have encountered and issue with torch.compile and the pipeline module. modifying a member of the module duing the run will cause torch compile to restart the analysis and treat the module as dynamic. this happens because the fwd function will modify the micro_offset attribute of the pipeline module. in order to bypass this issue without significantly changing the way the pipeline module works we propose to compile only the layers in the pipeline module instead of the pipeline module itslef. this will bypass the issue, and should still give most of the benefit of torch compiling the pipeline module while avoiding the issue.
- Loading branch information