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

LDM pruning bug issue #8

Open
KIMGEONUNG opened this issue Mar 9, 2024 · 1 comment
Open

LDM pruning bug issue #8

KIMGEONUNG opened this issue Mar 9, 2024 · 1 comment

Comments

@KIMGEONUNG
Copy link

Hi, thank you for your awesome pruning work.
I have had hard time to fix an issue.

I just followed the sample code you offers in #6.
After pruning, "pruend_macs, pruned_params = tp.utils.count_ops_and_params(model.model.diffusion_model, example_inputs)" results in a error.
I found that the pruning, which is executed by "pruner.step()", omits all layers in BasicTransformerBlock instances, thereby making error in feedforward process.

Please let me know how do I fix it ..

@KIMGEONUNG
Copy link
Author

I found solution.
For some reason, checkpoint wrapper in BasicTransformerBlock results in the aforementioned problem.
By removing the wrapper, I solved the problem.

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

No branches or pull requests

1 participant