dhlee347 / pytorchic-bert

Pytorch Implementation of Google BERT
Apache License 2.0
591 stars 179 forks source link

Visualizing the attention weights #31

Open ahof1704 opened 3 years ago

ahof1704 commented 3 years ago

Hi,

First of all, thank you so much for the great work you guys have done in your scripts. I would like to visualize the attention weights obtained after training. I tried to use this visualization tool: https://github.com/jessevig/bertviz#attention-head-view

However, it seems to only work for the pre-trained BERT model, not the fine-tuned one we make ourselves via your script.

What would you recommend for visualization?

Thank you!