• CONFIG
  • DATA
  • COST
  • HUMAN

How to find optimal draft length with your agent

Connect your agent to the Speculative Decoding Calculator to stop guessing your draft parameters. It finds the sweet spot where speed meets accuracy.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

What is the best draft length for my AI?

The optimal length is the point where the speed gained from faster draft acceptance is no longer offset by the cost of verifying those drafts. Your agent uses the calculator to find this specific equilibrium. You'll get a data-backed recommendation for your configuration.

Where each result lands.

The outcomes of your optimization

Your agent processes your current performance data to deliver these specific results.

CONFIG

Optimal parameters

Your agent identifies the specific draft length and top-k values that maximize throughput. You get the exact numbers to plug into your inference engine.

DATA

Acceptance curves

The tool maps how acceptance rates drop as draft length increases. This shows you exactly where you hit diminishing returns.

COST

Overhead analysis

Your agent calculates the verification cost for each additional draft token. It ensures you aren't wasting compute on drafts that won't be accepted.

HUMAN

Manual tuning

Your agent provides the mathematical baseline, but you decide if the resulting speed fits your specific latency requirements or budget.

The workflow

What your agent does when the request arrives.

Your agent handles the heavy math so you don't have to run manual simulations.

  1. Analyze current logs

    Your agent pulls your recent inference logs to understand how your current draft model is performing.

    optimize_speculation_parameters
  2. Model the trade-offs

    Your agent runs a simulation to see how changing the draft length affects the acceptance rate versus the verification time.

    optimize_speculation_parameters
  3. Calculate throughput

    It finds the peak of the throughput curve by comparing the speed of the draft against the overhead of the target model.

    optimize_speculation_parameters
  4. Deliver settings

    Your agent presents the final optimized draft length and the expected speedup for your specific setup.

    optimize_speculation_parameters

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Speculative Decoding Calculator tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to kick off the optimization process.

Starting points

These are starting points. Swap out the specific model names or log file paths with your own data.

Speculative Decoding Calculator Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_XYWoPCFlNTCi1nCY0hLcYF1OVsVPSrlw38p6boSh/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Speculative Decoding Calculator capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "speculative-decoding-calculator-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_XYWoPCFlNTCi1nCY0hLcYF1OVsVPSrlw38p6boSh/mcp"
    }
  }
}
Copy into chat04
  • 01

    Use the Speculative Decoding Calculator to find the best draft length for my Llama-3-70B setup using these logs: /logs/inference_01.json

  • 02

    Analyze my current speculative decoding performance and tell me if increasing the draft length will actually improve my throughput.

  • 03

    Based on my current acceptance rates in the production cluster, what is the optimal top-k value for my draft model?

  • 04

    Compare the verification overhead against the acceptance rate for a draft length of 5 versus 8 using my recent telemetry data.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Speculative Decoding Calculator once, then ask.

Link the MCP to your client. Your credentials stay encrypted, and you can immediately start asking your agent to run these optimizations.

Connect Speculative Decoding Calculator to your agent

FAQ

How this task behaves

  • 01

    Can your agent change my inference server settings automatically?

    No. Your agent calculates the optimal parameters, but you must manually apply those changes to your server or deployment configuration.

  • 02

    Does your agent need access to my model weights?

    No. Your agent only needs access to the inference logs or telemetry data that describe the acceptance rates and timing.

  • 03

    Will this work with any speculative decoding setup?

    It works with any setup where you can provide logs or data regarding draft acceptance rates and verification latency.

  • 04

    Can your agent delete my existing configuration files?

    No. Your agent only reads data to perform calculations. It has no capability to write to or delete your local files.

  • 05

    How accurate are the throughput predictions?

    The predictions are based on the mathematical models derived from your specific log data, providing a calculated estimate of the best possible throughput.

  • More questions about Speculative Decoding Calculator? The Connector page answers them. See everything the Speculative Decoding Calculator Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Speculative Decoding Calculator to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Speculative Decoding Calculator plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Speculative Decoding Calculator to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.