Skip to content

[Unity][MSC][M1.1] Add translate && codegen for torch#15704

Merged
Hzfengsy merged 3 commits intoapache:unityfrom
Archermmt:msc
Sep 14, 2023
Merged

[Unity][MSC][M1.1] Add translate && codegen for torch#15704
Hzfengsy merged 3 commits intoapache:unityfrom
Archermmt:msc

Conversation

@Archermmt
Copy link
Contributor

@Archermmt Archermmt commented Sep 8, 2023

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 first part of Milestone 1: Finish RuntimeManager for frameworks

To limit each PR in reviewable size, the Milestone 1 will be split into some steps:
M1.1 Add translate && codegen for torch
M1.2 Add translate && codegen for tensorflow
M1.3 Add codegen for tensorrt
M1.4 Add RuntimeManager and test with relax
M1.5 Add RuntimeManager and test with torch
M1.6 Add RuntimeManager and test with tensorflow
M1.7 Add RuntimeManager and test with tensorrt

Torch module will be translate to MSCGraph via relax or relay, both method will be tested. The codegen for torch follow the same principle with relax codegen, thus generate the model define as well as test.
This PR is pre-request for RuntimeManager of torch. The MSCGraph can not only built from torch, but also build to torch. This is essential for using the training ability of torch to optimize the model.

cc @Hzfengsy
cc @junrushao

@Hzfengsy Hzfengsy merged commit 7bf1203 into apache:unity Sep 14, 2023
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