brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
cad_logit_adjustmentApply the Context-aware Decoding contrastive logit formula and report mechanism diagnostics for recovery experiments.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill for the paper's core next-token transformation: adjusted = (1 + alpha) * logits(context, query, prefix) - alpha * logits(query, prefix). It does not construct prompts or score final answers.
alpha, usually 0.5 for summarization or 1.0 for knowledge-conflict tasks.Adjusted logits over the shared vocabulary plus diagnostics: alpha, regular argmax, prior argmax, adjusted argmax, and whether CAD changed the selected token.
Run tests/test_logit_adjustment.py or Distiller validation.
This script works on one decoding step; generation loops should call it repeatedly with updated prefixes.