Skip to content

[IR][Parser] Hidet IR grammar, parser and ir reconstructor#354

Merged
yaoyaoding merged 30 commits intohidet-org:mainfrom
Aalanli:parser-test
Aug 31, 2023
Merged

[IR][Parser] Hidet IR grammar, parser and ir reconstructor#354
yaoyaoding merged 30 commits intohidet-org:mainfrom
Aalanli:parser-test

Conversation

@Aalanli
Copy link
Copy Markdown
Contributor

@Aalanli Aalanli commented Aug 24, 2023

Currently, all IR roundtrips correctly in the test suite, for all passes. The text is identical except for the attention ir module, which has trivial changes (eg. (0 == wj) -> (wj == 0), or (!false) -> true).

Also fixed inline let stmt pass, so that types of tensors do not change midway.

We need to add a dependency on lark, as the parser it generates is not correct (does not have the same behavior as the original).

@Aalanli
Copy link
Copy Markdown
Contributor Author

Aalanli commented Aug 26, 2023

@yaoyaoding, is it possible to add a dependency on lark?

@yaoyaoding
Copy link
Copy Markdown
Member

Yeah, we can add the dependency.

Copy link
Copy Markdown
Member

@yaoyaoding yaoyaoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Roughly go through the parser and dumper, and they look good to me.

Thanks for the efforts @Aalanli !

@yaoyaoding
Copy link
Copy Markdown
Member

Thanks @Aalanli !

@yaoyaoding yaoyaoding merged commit e6e08e0 into hidet-org:main Aug 31, 2023
@Aalanli Aalanli deleted the parser-test branch August 31, 2023 16:13
vadiklyutiy added a commit that referenced this pull request Jul 22, 2024
Promote nvidia docker container to version 24.4 => Getting pytorch 2.3

Regression passed 
https://github.com/CentML/hidet/actions/runs/9964867474
vadiklyutiy added a commit that referenced this pull request Jul 23, 2024
Promote nvidia docker container to version 24.4 => Getting pytorch 2.3

Regression passed 
https://github.com/CentML/hidet/actions/runs/9964867474
vadiklyutiy added a commit that referenced this pull request Dec 26, 2024
Promote nvidia docker container to version 24.4 => Getting pytorch 2.3

Regression passed 
https://github.com/CentML/hidet/actions/runs/9964867474
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