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

Custom Model pruning #72

Open
saidineshpola opened this issue Aug 27, 2024 · 1 comment
Open

Custom Model pruning #72

saidineshpola opened this issue Aug 27, 2024 · 1 comment

Comments

@saidineshpola
Copy link

How to fix this error for custom model pruning? The pruning was done but some layers weren't pruned properly. I got this error at the time of inference

key_states = key_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2) RuntimeError: shape '[1, 7, 4, 128]' is invalid for input of size 2688

@xiaoxuanNLP
Copy link

I have the same error

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

2 participants