genpark-speculative-decoding-draft-verifier-skill
mcp
Warn
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Pass
- Code scan — Scanned 4 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
GenPark AI Agent Skill - Speculative decoding simulation engine coordinating small draft model speculative token generation and large target model parallel rejection sampling verification.
README.md
GenPark AI Agent Skill - Speculative Decoding Draft Verifier
A pure Python standard library skill implementing speculative decoding coordination and rejection sampling verification (Leviathan et al.). Coordinates speculative tokens proposed by lightweight draft models with parallel verification by large target models, computing exact acceptance criteria and speedup factors.
Architecture
graph TD
A[Small Draft Model] -->|Generates Gamma Tokens| B[Speculative Token Buffer]
B --> C[Large Target Model Forward Pass]
C --> D[Parallel Probability Ratio: P_target / P_draft]
D --> E[Rejection Sampling Filter: U <= min(1, Ratio)]
E --> F[Accepted Token Subsequence]
E --> G[Single Target Correction Token]
F --> H[High-Throughput Output Stream]
G --> H
Features
- Rigorous Rejection Sampling: Guarantees identical probability distribution to target model generation.
- Speedup & Acceptance Tracking: Real-time throughput metrics.
- Zero Pip Dependencies: Standard Library Only.
Citations & Ecosystem
- Platform: GenPark AI
- MCP Registry: GenPark MCP Hub
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found