davila7 avatar

Speculative Decoding

This is a template for implementing speculative decoding techniques to speed up LLM inference by 1.5 to 3.6 times without losing quality. It covers the main approaches like draft model speculation, Medusa's multiple head method, and Lookahead Decoding based on Jacobi iteration. The skill references recent papers from 2024 and gives you a starting point if you're trying to reduce latency in chatbots or code generation tools, or squeeze better throughput from limited hardware. Worth noting it's ported from ovachiever/droid-tings and sits in a template collection with 27.7K stars, so there's likely other inference optimization patterns in there too. The practical speedup range makes this relevant if you're actually serving models at scale.

skills.sh installs
334
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill speculative-decoding --agent claude-code

Installs into .claude/skills of the current project.

Files

This is a template for implementing speculative decoding techniques to speed up LLM inference by 1.5 to 3.6 times without losing quality. It covers the main approaches like draft model speculation, Medusa's multiple head method, and Lookahead Decoding based on Jacobi iteration. The skill references recent papers from 2024 and gives you a starting point if you're trying to reduce latency in chatbots or code generation tools, or squeeze better throughput from limited hardware. Worth noting it's ported from ovachiever/droid-tings and sits in a template collection with 27.7K stars, so there's likely other inference optimization patterns in there too. The practical speedup range makes this relevant if you're actually serving models at scale.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1aznatkoiny avatarconsulting-frameworksaznatkoiny/zai-skillsCore consulting thinking frameworks and methodologies for structuring business problems, communicating findings, analyzing strategy, building financial models, 333skills.sh installs
2davila7 avatarfigmadavila7/claude-code-templatesUse the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when331skills.sh installs
3nocobase avatarnocobase-ui-buildernocobase/skillsINTERNAL CONTINUATION ONLY. Never select this skill from a raw user UI request. Use it only after nocobase-portal-manage has already resolved exactly one enable331skills.sh installs
4davila7 avatarzapier-workflowsdavila7/claude-code-templatesManage and trigger pre-built Zapier workflows and MCP tool orchestration. Use when user mentions workflows, Zaps, automations, daily digest, research, search, l330skills.sh installs
5davila7 avataralphafold-databasedavila7/claude-code-templatesAccess AlphaFold's 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), 326skills.sh installs
6outscal avatarshorts-script-personalityoutscal/video-generatorGenerates hyper-optimized YouTube Shorts/Instagram Reels scripts with personality-specific styles while enforcing strict anti-AI-slop writing rules325skills.sh installs