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
pplm_attribute_objectivesCompute PPLM-style bag-of-words or linear-classifier attribute losses and gradients for controlled generation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when implementing or validating Plug and Play Language Model control objectives. It is appropriate when a fixed language model distribution must be steered toward a topic, sentiment, or toxicity-related attribute without changing model weights.
tokens: vocabulary strings aligned with logits.logits: numeric next-token logits or a perturbable logit proxy.target_words: bag-of-words target tokens, or classifier_weights for a linear classifier proxy.-log(target_mass) as the loss and the analytic gradient with respect to logits.Run python tests/test_attribute_objectives.py from this skill directory, or validate through the Distiller skill-tree validator.
This deterministic helper validates the PPLM objective interface; it is not a full neural discriminator or GPT-2 forward pass.