speculative-naming

Installation
SKILL.md

Speculative Decoding — Naming Conventions

Apply this skill when adding, renaming, or reviewing identifiers in speculative decoding code (anything under python/sglang/srt/speculative/, related attention backends, scheduler accumulators, IPC fields, observability metrics, or CLI flags).

Rule 1 — Verb form, drop -ed

Use the verb form accept everywhere. Don't use the past-participle form accepted.

Don't Do
num_accepted_tokens num_accept_tokens
accepted_indices accept_indices
accepted_token_ids accept_tokens (also see Rule 3)

Rule 2 — The extra/bonus token is bonus_token / bonus_tokens

The "+1" token that the target model always emits in addition to verifying drafts is the bonus token. Use bonus_token / bonus_tokens per Rule 7.

Installs
8
GitHub Stars
35.7K
First Seen
Jul 2, 2026
speculative-naming — sgl-project/sglang