Skip to content
Agentmart
Submit a tool

bertviz

Route BertViz Transformer attention visualization, neuron-view, notebook, and HTML export workflows.

Skill by VectorSpaceLab

IndexedApache-2.0★ 341
Write a review

Chalk Labs

Need help deploying bertviz?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vectorspacelab-bertviz

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Route BertViz Transformer attention visualization, neuron-view, notebook, and HTML export workflows.

Use cases: frontend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/bertviz

What's inside

Skill name
bertviz
Description
Route BertViz Transformer attention visualization, neuron-view, notebook, and HTML export workflows.
License
Apache-2.0
Metadata
disco-role: operating
Instructions
81 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (17)

  • SKILL.md
  • environment-and-install.md · references/
  • repo-provenance.md · references/
  • repo-routing-metadata.json · references/
  • troubleshooting.md · references/
  • check_bertviz_environment.py · scripts/
  • SKILL.md · sub-skills/attention-views/
  • api-reference.md · sub-skills/attention-views/references/
  • troubleshooting.md · sub-skills/attention-views/references/
  • workflows.md · sub-skills/attention-views/references/
  • render_synthetic_attention.py · sub-skills/attention-views/scripts/
  • SKILL.md · sub-skills/neuron-view/
  • api-reference.md · sub-skills/neuron-view/references/
  • model-compatibility.md · sub-skills/neuron-view/references/
  • troubleshooting.md · sub-skills/neuron-view/references/
  • workflows.md · sub-skills/neuron-view/references/
  • validate_toy_bert_attention.py · sub-skills/neuron-view/scripts/

SKILL.md (first lines)

# 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:

```bash
pip install bertviz
```

For interactive notebooks also install and enable a notebook frontend such as
JupyterLab plus widgets:

```bash
pip install jupyterlab ipywidgets
```

Minimal package/API check:

```bash
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
```

For a stronger no-network check, run [`scripts/check_bertviz_environment.py`](scripts/check_bertviz_environment.py).

## Route by task

| User need | Read next |
| --- | --- |
| Visualize standard self-attention tensors from Hugging Face or another Transformer model. | [`sub-skills/attention-views/SKILL.md`](sub-skills/attention-views/SKILL.md) |
| Render sentence-pair head/model views with `sentence_b_start`. | [`sub-skills/attention-views/SKILL.md`](sub-skills/attention-views/SKILL.md) |
| Render encoder, decoder, or cross-attention for sequence-to-sequence models. | [`sub-skills/attention-views/SKILL.md`](sub-skills/attention-views/SKILL.md) |
| Save BertViz output as standalone HTML or use it outside a notebook display call. | [`sub-skills/attention-views/SKILL.md`](sub-skills/attention-views/SKILL.md), or [`sub-skills/neuron-view/SKILL.md`](sub-skills/neuron-view/SKILL.md) for neuron view |
| Inspect query/key neuron contributions using BertViz's modified model classes. | [`sub-skills/neuron-view/SKILL.md`](sub-skills/neuron-view/SKILL.md) |
| Diagnose package installation, notebook display, PyTorch/IPython dependency, or JS asset issues. | [`references/troubleshooting.md`](references/troubleshooting.md) |
| Check whether this skill matches the current BertViz checkout/version. | [`references/repo-provenance.md`](references/repo-provenance.md) |

## Core distinctions

- `head_view` and `model_view` consume attention tensors. They are the right
  choice when the model can return Hugging Face-style attention weights with
  `output_attentions=True`.
- `neuron_view.show` computes a visualization payload from BertViz's modified
  BERT/GPT-2/RoBERTa/XLNet classes because neuron view needs query and key
  vectors, not only attention probabilities.
- BertViz is a visualization tool, not a model explanation guarantee. It helps
  inspect attention patterns but should not be presented as proving causal
  feature attribution.

## Repo-level references and scripts

- [`references/environment-and-install.md`](references/environment-and-install.md)
  explains dependencies, notebook frontend expectations, backend assumptions,
  and offline validation strategy.
- [`references/troubleshooting.md`](references/troubleshooting.md) covers
  cross-cutting install/import/display/runtime symptoms.
- [`references/repo-provenance.md`](references/repo-provenance.md) records the
  source snapshot and evidence paths used to build this skill.
- [`scripts/check_bertviz_environment.py`](scripts/check_bertviz_environment.py)
  checks imports, function signatures, packaged JavaScript assets, and optional
  neuron-view imports without downloading models.

## Safety defaults

- Do not run public notebooks or `from_pretrained(...)` examples automatically
  when network/model downloads are not explicitly allowed.
- Prefer bundled no-network helpers for validation: the root environment check,
  `attention-views/scripts/render_synthetic_attention.py`, and
  `neuron-view/scripts/validate_toy_bert_attention.py`.
- Keep generated outputs and saved HTML in user-chosen working directories;
  BertViz does not require modifying its installed package files.

From VectorSpaceLab/AREX-Skill, Apache-2.0.

More from VectorSpaceLab/AREX-Skill

Signals

Stars
341
Forks
26
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)
Last release
Sep 2, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from VectorSpaceLab

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get bertviz running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying bertviz?

CallGet help
Cite this page

bertviz skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-bertviz (last updated 2026-10-24)