attention-views
Route BertViz head_view and model_view attention-visualization tasks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- attention-views
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route BertViz head_view and model_view attention-visualization tasks.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md3.8 KB
- 参考文档references/troubleshooting.md2.6 KB
- 参考文档references/workflows.md4.7 KB
03 SKILL.md 正文
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. - 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.mdreferences/workflows.mdreferences/troubleshooting.mdscripts/render_synthetic_attention.py
Routing shortcuts
- Self-attention: pass
attentionplustokens. - Sentence pairs: add
sentence_b_startto split the token list. - Encoder-decoder: pass
encoder_attention,decoder_attention,cross_attention,encoder_tokens, anddecoder_tokens. head_viewuseslayerandheadsas default selections.model_viewusesinclude_layersandinclude_headsas filters, plusdisplay_mode='dark'|'light'.- For notebooks and scripts that save HTML, call with
html_action='return'and write the returned.data. - Use
include_layersandinclude_headsto keep long inputs responsive.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.