计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
neuron-view【效率与协作】Route BertViz neuron_view query/key neuron inspection workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a BertViz task needs the neuron view: per-head attention plus the query and key vectors that produced each attention score.
bertviz.neuron_view.show to render the interactive neuron view in a notebook, Colab, or saved HTML workflow.bertviz.neuron_view.get_attention to compute the serialized attention/query/key payload for validation, custom inspection, or debugging.bertviz.transformers_neuron_view because ordinary Hugging Face models do not expose query/key vectors in the schema expected by neuron view.../attention-views/SKILL.md.../attention-views/SKILL.md.references/api-reference.md for signatures, model_type values, output schema, and token partition behavior.references/workflows.md for BERT, GPT-2, RoBERTa, toy validation, HTML export, and offline/cache-first recipes.references/model-compatibility.md for vendored class choices, sentence-pair support, optional dependencies, and CPU expectations.references/troubleshooting.md for common errors and recovery steps.scripts/validate_toy_bert_attention.py for no-network local validation of get_attention behavior.show(...) for display/export; it calls get_attention(..., include_queries_and_keys=True) internally and injects the payload into BertViz HTML/JavaScript.get_attention(...) for assertions, schema inspection, and non-display workflows.model_type strings are exactly bert, gpt2, xlnet, and roberta; they are not inferred from the model class.all, aa, ab, ba, bb); GPT-2 sentence pairs raise ValueError; XLNet sentence pairs raise NotImplementedError.from_pretrained(...) calls.../attention-views/SKILL.md instead of forcing vendored neuron-view models.