计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
conditional_nce_training【效率与协作】Train a tiny residual sequence-energy model with the paper's conditional NCE objective on positive and fixed-LM negative continuations.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation needs to exercise the paper's training mechanism: positive human continuations should receive low energy and fixed language-model continuations should receive high energy for the same prefix.
Do not use this skill to update the base language model or to mine negatives from the residual model. The noise distribution is the fixed LM proposal.
softplus(E_positive) + softplus(-E_negative) averaged over examples.Run:
python scripts/nce_train.py --demo
python -m pytest tests
The tests verify loss decrease, parameter changes, positive energy lower than negative energy after a bounded deterministic run, and robustness against an adversarial negative that repeats otherwise positive lexical terms.
This skill can run a small deterministic optimizer for recovery evidence. It does not reproduce the paper's large transformer energy network unless a caller supplies that runtime separately and records the environment evidence.