DAMO-NLP-SG / DAMO-NLP-SG/multilingual_analysis
Error when running layers/test_layer.py
- Dominant language
- Python
- Stars
- 52
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
At line 44:
```bash
hidden_states, outputs = model.generate(**{'input_ids':inputs.input_ids, 'max_new_tokens':64})
```
There's an error: ValueError: not enough values to unpack (expected 2, got 1). I guess it means that model.generate( ) will only have one output, which is `outputs`, and can not get `hidden_states`. I'm wondering how to fix this issue. Thank you very much!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with layers/test_layer.py at line 44 and inspect the return contract of model.generate, focusing on why the assignment expects two values while the call returns one. Run the script after determining the intended outputs; done means the unpacking error is resolved and the layer test completes.
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
- Mostly clear
- Newbie friendliness
- 35/100