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

[fx] Modify solver linearize and add corresponding test #1531

Merged
merged 29 commits into from
Sep 2, 2022

Conversation

Cypher30
Copy link
Contributor

@Cypher30 Cypher30 commented Sep 1, 2022

What's New

In PR #1496, @super-dainiu suggests that we could use more elegant linearize code and node structure, but at that time we still worried about the time overhead for solver to solve the sequence. After some experiments, I'm sure that this old linearize could be left and use the suggested structure. I also add a test to check if the solver's sequence and annotated result is correct. Lastly, I fix a couple of lines of old inefficient code in activation_checkpoint_codgen.py and ckpt_solver_rotor.py.

@Cypher30
Copy link
Contributor Author

Cypher30 commented Sep 1, 2022

Screen Shot 2022-09-01 at 16 35 46

Currently we use MetaTensor implemented by @super-dainiu, which could not be used in torch11, the above is the result of `test_fx`.

@super-dainiu super-dainiu self-requested a review September 2, 2022 02:24
@super-dainiu super-dainiu merged commit 5615904 into hpcaitech:main Sep 2, 2022
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.

3 participants