Select tokens from regular or CAD-adjusted logits using comparable greedy or top-p decoding policies.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add VectorSpaceLab/AREX-Skill --skill cad_decoding_policy --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cad Decoding Policy?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vectorspacelab-cad-decoding-policy)More formats (shields.io, HTML) on the badges page.
---
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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则