Traceback (most recent call last):
Cell In[11], line 1
outputs = encoder_decoder.generate(
File ~\AppData\Local\anaconda3\lib\site-packages\torch\utils\_contextlib.py:115 in decorate_context
return func(*args, **kwargs)
File ~\AppData\Local\anaconda3\lib\site-packages\transformers\generation\utils.py:1593 in generate
model_kwargs = self._prepare_encoder_decoder_kwargs_for_generation(
File ~\AppData\Local\anaconda3\lib\site-packages\transformers\generation\utils.py:742 in _prepare_encoder_decoder_kwargs_for_generation
model_kwargs["encoder_outputs"]: ModelOutput = encoder(**encoder_kwargs)
File ~\AppData\Local\anaconda3\lib\site-packages\torch\nn\modules\module.py:1501 in _call_impl
return forward_call(*args, **kwargs)
File ~\.cache\huggingface\modules\transformers_modules\aehrc\cxrmate\1f014633b98564f21316b32e167b5796381690d8\modelling_longitudinal.py:91 in forward
return ModelOutputWithProjectionEmbedding(
File ~\AppData\Local\anaconda3\lib\site-packages\transformers\utils\generic.py:325 in __init__
raise TypeError(
TypeError: transformers_modules.aehrc.cxrmate.1f014633b98564f21316b32e167b5796381690d8.modelling_longitudinal.ModelOutputWithProjectionEmbedding is not a dataclasss. This is a subclass of ModelOutput and so must use the @dataclass decorator.
Hi, I am trying to run through the example code in cxrmate.ipynb. When I get to this line:
I get the following error: