计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
qk_ov_circuit_expansion【效率与协作】Expand attention-head QK and OV weights into token-level circuit matrices and copying diagnostics.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when analyzing an attention head as separable query-key and output-value circuits. It is designed for mechanistic interpretability of attention-only or attention-isolated transformer components. Do not use its copying score as definitive proof by itself; pair it with behavioral tests or ablations.
embedding: vocabulary-by-model matrix.unembedding: model-by-vocabulary matrix.w_qk: model-by-model combined query-key matrix, or already-combined equivalent.w_ov: model-by-model combined output-value matrix.The included script uses row-vector convention and computes embedding @ w_qk @ embedding.T and embedding @ w_ov @ unembedding.
Run the tests or the Paper2Skills skill-tree validator with --run-tests.
The script intentionally avoids heavy numerical dependencies. Eigenvalue diagnostics are exact only for one-by-one and two-by-two examples; larger matrices still get diagonal dominance summaries.