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

[MSC][M5.3] Support torch.dynamo for dynamic models #16772

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

Archermmt
Copy link
Contributor

@Archermmt Archermmt commented Mar 22, 2024

This is a pull request for MSC(Multi-System Compile)
RFC: https://discuss.tvm.apache.org/t/rfc-unity-msc-introduction-to-multi-system-compiler/15251/5
Tracking issue: #15233

This is the Milestone 5 for MSC: Add MSCWrapper as compression toolchain.
To limit each PR in reviewable size, the Milestone 5 will be split into some steps:
[M5.1] Build wrapper to support compression.
[M5.2] Enable quantize && prune with gym by wrapper.
[M5.3] Support torch.dynamo for dynamic models.

JIT Module is designed to support dynamic compiling like torch.dynamo. It compile the model in JIT(Just-in-time) way so that both training and inference can be optimized and compiled.

Test of dynamo is added in test_msc/test_pipeline.py (replace the test_manager.py). And example of using dynamic pipeline is added in gallery/work_with_msc

cc @Hzfengsy

@Archermmt Archermmt changed the title [MSC][M5.3] Support torch.dynamo for dynamic models. [MSC][M5.3] Support torch.dynamo for dynamic models Mar 23, 2024
@github-actions github-actions bot requested a review from Hzfengsy March 26, 2024 03:29
@Hzfengsy Hzfengsy merged commit ee3f7bc into apache:main Apr 5, 2024
19 checks passed
@Archermmt Archermmt deleted the msc branch December 1, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants