# Seq2Seq Trainer plot attention maps

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fseq2seq-trainer-plot-attention-maps%2F20537%3E%5C
**Category:** 🤗Transformers\
**Created:** [July 18, 2022, 9:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fseq2seq-trainer-plot-attention-maps%2F20537 "2022-07-18T21:36:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hadidev](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hadidev](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fhadidev)%5C
**Post date:** [July 18, 2022, 9:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fseq2seq-trainer-plot-attention-maps%2F20537%2F1 "2022-07-18T21:36:12Z")

</div>

I’ve trained Vit+GPT2 image caption generation model. Now I want to plot the attention maps to see what the model is looking at based upon attention. But Seems like there is no way with seq2seq trainer API to deal with that or is there any?
