'FlavaModelOutput' object has no attribute 'contrastive_logits_per_image'
Hi, I have used a code of Flava model from this link:
```
https://huggingface.co/docs/transformers/model_doc/flava#transformers.FlavaModel.forward.example
```
But I am getting the following error:
```
'FlavaModelOutput' object has no attribute 'contrastive_logits_per_image'
```
Could you please help me in solving the above question. Thank you.
Hey @ans92! It seems there's an error in the documentation indeed. This code example works with the `FlavaForPreTraining` model, rather than the `FlavaModel.

Would you like to open a Pr to fix this?<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.<|||||>I am experiencing this issue as well and the documentation shows it with the `FlavaModel`. 

There are also a large set of warnings when loading the `FlavaModel`, is this normal?<|||||>This issue needs re-opening <|||||>Yes agreed, I just ran in the same issue and I also think it needs re-opening. Only following the doc here with `FlavaForPreTraining` works
https://huggingface.co/facebook/flava-full

