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

pplm_fusion_generation

pplm_fusion_generation

Fuse PPLM perturbed and unperturbed token distributions using geometric mixing for fluent controlled decoding.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: pplm_fusion_generation description: Fuse PPLM perturbed and unperturbed token distributions using geometric mixing for fluent controlled decoding.

PPLM Perturbed Distribution Fusion

Use this skill after an attribute perturbation has produced controlled logits and the run needs to combine them with the unperturbed language-model distribution.

Inputs

Base logits or probabilities, perturbed logits or probabilities, gm_scale in [0,1], and a deterministic selection mode.

Outputs

A normalized fused distribution, selected token index, entropy, and endpoint diagnostics.

Workflow

  1. Convert logits to probabilities when needed.
  2. Compute geometric mixture base^(1-gm_scale) * perturbed^gm_scale.
  3. Normalize the fused probabilities.
  4. Select the argmax token for deterministic recovery tests.

Validation

Run python tests/test_fusion_generation.py or Distiller validation.

Limitations

This skill validates the fusion rule and does not implement full top-k or nucleus sampling.

저장한 Skills