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][Refactor] Support dynamic shape #17351

Merged
merged 3 commits into from
Sep 15, 2024
Merged

[MSC][Refactor] Support dynamic shape #17351

merged 3 commits into from
Sep 15, 2024

Conversation

Archermmt
Copy link
Contributor

@Archermmt Archermmt commented Sep 9, 2024

Dynamic shapes are recorded as tir.Var + IntImm in relax. This PR create MSCPrim to map the PrimNode in tvm to MSC. The MSCPrim can be codegen to different frameworks to support dynamic shapes, such as dynamic batch in training and dynamic dims in LLM.
MSC records the PrimNode and the relations between PrimNodes as MSCPrims in DAG format, so that the dynamic dim can be described (e.g res_0.shape[0]*2) during codegen.

cc @Hzfengsy

@github-actions github-actions bot requested a review from Hzfengsy September 12, 2024 00:13
@Archermmt
Copy link
Contributor Author

@tvm-bot rerun

@mshr-h
Copy link
Contributor

mshr-h commented Sep 14, 2024

@Archermmt
wasm ci was failing due to the usage of deprecated API. The issue was solved with #17371
Need to rebase.

@tqchen tqchen merged commit 11198f6 into apache:main Sep 15, 2024
14 checks passed
@Archermmt Archermmt deleted the msc_prim branch December 1, 2024 09:27
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.

4 participants