DAMO-NLP-SG / DAMO-NLP-SG/multilingual_analysis
TypeError: forward() got an unexpected keyword argument 'early_exit_layers'
- 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

I investigated a bit and found that the error was originating from utils.py file present in the generation folder in Transformer.

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