executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
conditional_nce_trainingTrain a tiny residual sequence-energy model with the paper's conditional NCE objective on positive and fixed-LM negative continuations.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.