BertViz
Use this repo skill when a task involves BertViz, Transformer attention
visualization, head/model view rendering, neuron-level query/key inspection, or
saving BertViz notebook visualizations as HTML.
Install and quick check
For ordinary use:
pip install bertviz
For interactive notebooks also install and enable a notebook frontend such as
JupyterLab plus widgets:
pip install jupyterlab ipywidgets
Minimal package/API check:
python - <<'PY'
from bertviz import head_view, model_view
from bertviz.neuron_view import get_attention
print("bertviz import ok", head_view.__name__, model_view.__name__, get_attention.__name__)
PY