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

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

Merged
merged 30 commits into from
Aug 31, 2023

Conversation

Aalanli
Copy link
Collaborator

@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
Collaborator Author

Aalanli commented Aug 26, 2023

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

@yaoyaoding
Copy link
Member

Yeah, we can add the dependency.

Copy link
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 !

python/hidet/ir/tools/ir_dumper.py Show resolved Hide resolved
tests/ir/parser/test_parser.py Show resolved Hide resolved
@yaoyaoding
Copy link
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