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

TypeError: forward() got an unexpected keyword argument 'early_exit_layers' #5

Open
Lsayan opened this issue Dec 22, 2024 · 2 comments

Comments

@Lsayan
Copy link

Lsayan commented Dec 22, 2024

Hi @zhaoyiran924 , I was going through your work. Thanks for sharing.

I was running the file neuron_detection.py and encountered this error
image

I investigated a bit and found that the error was originating from utils.py file present in the generation folder in Transformer.
image
This function is present within the greedy_search function.

Can you please help me resolve this issue? I want to know which function is being invoked here in the above self() call. Thank you very much.

@thangld201
Copy link

@Lsayan You need to install the modified transformers package in the repo

@Lsayan
Copy link
Author

Lsayan commented Dec 28, 2024

Thanks for the reply @thangld201 . Actually I was using the modified transformer package present in the repo but still I was receiving this error.
Can you please help me resolve this issue? Thank you for the help

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