/bertviz

Tool for visualizing attention in BERT and OpenAI GPT-2

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

BertViz

Tool for visualizing attention in BERT and OpenAI GPT-2. Extends Tensor2Tensor visualization tool and pytorch-pretrained-BERT.

Jupyter Notebooks

OpenAI GPT-2 [new]

Map view:

Original summary view:

BERT

Map view:

Attention detail view:

Original summary view:

Authors

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

Acknowledgments

This project incorporates code from the following repos: