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
dpo_sequence_logprob_accountingCompute response-only sequence log probabilities for DPO by masking prompts and padding before summing token log probabilities.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when converting model token scores into the log pi(y|x) values consumed by DPO. It is appropriate for full model recovery and for deterministic tests of the DPO objective. Do not use it to normalize preference records or to compute the DPO loss itself.
-100 for prompt and padding tokens.average flag.-100 so prompt and padding positions do not affect the response probability.Run:
python scripts/logprob_accounting.py --self-test
python tests/test_logprob_accounting.py
The script uses standard-library math and expects log-probability inputs for reduced tests. Full tensor implementations should preserve the same mask semantics.