인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
개발 및 엔지니어링 · SKILL.md

cad_decoding_policy

cad_decoding_policy

Select tokens from regular or CAD-adjusted logits using comparable greedy or top-p decoding policies.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: cad_decoding_policy description: Select tokens from regular or CAD-adjusted logits using comparable greedy or top-p decoding policies.

CAD Decoding Policy

Use this skill after CAD logit adjustment when selecting the next token. It preserves the paper's rule that CAD changes the logits while the outer decoding strategy remains comparable to the regular baseline.

Inputs

  • Logit mapping from token to score.
  • mode: greedy or top_p.
  • Optional top_p and random seed.

Outputs

A selection trace containing selected token, probabilities, candidate set, and mode.

Workflow

  1. Convert logits to probabilities with softmax.
  2. Greedy mode chooses the highest-scoring token deterministically.
  3. Top-p mode keeps the minimal nucleus with cumulative mass at least top_p and samples with the supplied seed.
  4. Return the candidate set for audit.

Validation

Run tests/test_decoding_policy.py or Distiller validation.

Limitations

This skill does not compute CAD logits; it consumes whichever logits are supplied.

저장한 Skills