协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
deberta_disentangled_attention【开发与工程】Compute and test DeBERTa style disentangled relative attention terms for bounded recovery experiments without relying on the original repository.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation task needs the core DeBERTa attention mechanism: separate content-to-content, content-to-position, and position-to-content scores gathered by clipped relative-distance indices. Do not use this skill as a full Transformer replacement or as evidence of full DeBERTa model execution; it is a deterministic mechanism helper for module tests, ablations, and reduced recovery.
k.c2c, c2p, and p2c.scripts/disentangled_attention.py to build the clipped relative index matrix.Run:
python3 /share/project/yuyang/workspace/Paper2Skills/Distiller/skills/module-to-skill/scripts/validate_skill_tree.py <skill_dir> --run-tests
The bundled tests check relative-distance clipping, asymmetric c2p/p2c behavior, and ablation sensitivity.
The script uses scalar features so it can run in a bare Python environment. It preserves the DeBERTa attention contract and ablation structure, but it does not execute a pretrained neural model.
For stress tests, record the tested k, sequence length, clipped boundary values, and row-sum range. This makes it clear whether the proxy exercised long relative-distance clipping rather than only a three-token unit case.