Skip to content
Back to skills

Attention Views

ASecurity

Route BertViz head_view and model_view attention-visualization tasks.

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
dataapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill attention-views --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Attention Views?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Attention Views
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-attention-views/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-attention-views)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: attention-views
description: "Route BertViz head_view and model_view attention-visualization tasks."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# attention-views

Use this sub-skill for BertViz attention visualizations built from `bertviz.head_view.head_view`, `bertviz.model_view.model_view`, and `bertviz.util.format_attention`.

## Route here when
- You need self-attention, sentence-pair, or encoder-decoder/cross-attention visualizations.
- You need `html_action='return'` for saved HTML or non-notebook workflows.
- You need `include_layers`, `include_heads`, `layer`, `heads`, `sentence_b_start`, `display_mode`, or token prettification control.
- You want a quick offline smoke check using synthetic tensors.

## Do not route here when
- The task is about query/key neuron inspection or `get_attention`; use [`../neuron-view/SKILL.md`](../neuron-view/SKILL.md).
- The task is generic Hugging Face training, serving, or model selection.
- The task needs vendored JS assets; BertViz loads its own package data.

## Start with
- [`references/api-reference.md`](references/api-reference.md)
- [`references/workflows.md`](references/workflows.md)
- [`references/troubleshooting.md`](references/troubleshooting.md)
- [`scripts/render_synthetic_attention.py`](scripts/render_synthetic_attention.py)

## Routing shortcuts
- Self-attention: pass `attention` plus `tokens`.
- Sentence pairs: add `sentence_b_start` to split the token list.
- Encoder-decoder: pass `encoder_attention`, `decoder_attention`, `cross_attention`, `encoder_tokens`, and `decoder_tokens`.
- `head_view` uses `layer` and `heads` as default selections.
- `model_view` uses `include_layers` and `include_heads` as filters, plus `display_mode='dark'|'light'`.
- For notebooks and scripts that save HTML, call with `html_action='return'` and write the returned `.data`.
- Use `include_layers` and `include_heads` to keep long inputs responsive.

Files in this skill

  • SKILL.md1.9 KB
  • references/api-reference.md3.8 KB
  • references/troubleshooting.md2.6 KB
  • references/workflows.md4.7 KB
  • scripts/render_synthetic_attention.py6.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.