ValueError: You have to specify either decoder_input_ids or decoder_inputs_embeds
Traceback (most recent call last):
File "", line 1, in
File "/home/alvyn/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvyn/.local/lib/python3.11/site-packages/transformers/models/longt5/modeling_longt5.py", line 2046, in forward
decoder_outputs = self.decoder(
^^^^^^^^^^^^^
File "/home/alvyn/.local/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvyn/.local/lib/python3.11/site-packages/transformers/models/longt5/modeling_longt5.py", line 1442, in forward
raise ValueError(f"You have to specify either {err_msg_prefix}input_ids or {err_msg_prefix}inputs_embeds")
ValueError: You have to specify either decoder_input_ids or decoder_inputs_embeds