genpark-speculative-decoding-draft-verifier-skill

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • 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 Gecti
  • Code scan — Scanned 4 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

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

Yorumlar (0)

Sonuc bulunamadi