|
hidden_states, outputs = model.generate(**{'input_ids':inputs.input_ids, 'max_new_tokens':64}) |
I am trying to reproduce the token analysis of layers' hidden embedding. I have done the following:
- Install according to requirements.txt
- Replace the generation and models folder of transformers with the one in the repository
However, the output of the line is just the decoded token ids, no hidden_states (as normal generate).
May I ask is there any thing I am missing? Thank you very much.
multilingual_analysis/layers/test_layer.py
Line 44 in be2b161
I am trying to reproduce the token analysis of layers' hidden embedding. I have done the following:
However, the output of the line is just the decoded token ids, no hidden_states (as normal generate).
May I ask is there any thing I am missing? Thank you very much.