DAMO-NLP-SG / DAMO-NLP-SG/multilingual_analysis

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

Open
#5 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
52
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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

I was running the file neuron_detection.py and encountered this error
![image](https://github.com/user-attachments/assets/ec407510-602e-4876-823a-a9b40d147408)

I investigated a bit and found that the error was originating from utils.py file present in the generation folder in Transformer.
![image](https://github.com/user-attachments/assets/2de82cc6-e3b3-4d87-a4c1-b1bbd1baaabb)
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running neuron_detection.py and tracing the call into generation/utils.py, especially greedy_search and its self() invocation. Compare the arguments passed there with the relevant forward() signature; done means the script no longer raises the unexpected early_exit_layers TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.