计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
pplm_attribute_objectives【效率与协作】Compute PPLM-style bag-of-words or linear-classifier attribute losses and gradients for controlled generation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.