Jetson Speculative Decoding
NVIDIAOfficialCreated by Jetson TeamDistributed by NVIDIA
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a configuration guide for implementing speculative decoding on NVIDIA Jetson devices running vLLM. By using a smaller draft model or an EAGLE-3 head, users can propose multiple tokens for verification in a single forward pass, effectively reducing per-token latency in single-stream workloads. The guide emphasizes the critical balance between VRAM availability and performance gains, specifically tailored for Jetson Thor and AGX Orin hardware.
What it does
- Provides configuration templates for EAGLE-3 and draft-model speculative decoding.
- Defines hardware-specific tuning parameters for Jetson Thor and AGX Orin.
- Outlines memory management adjustments required to accommodate draft models.
- Establishes a benchmarking protocol to validate performance improvements.
- Offers troubleshooting steps for OOM errors and runtime configuration issues.
When to use it
- When TPOT (Time Per Output Token) is the primary bottleneck in your LLM deployment.
- When running single-stream or low-concurrency (≤2) inference workloads.
- When you have sufficient VRAM headroom on Thor or AGX Orin devices.
- When you need to improve token generation throughput for latency-sensitive applications.
Advantages
- Reduces per-token latency by verifying multiple tokens in a single forward pass.
- Provides clear, Jetson-specific tuning rules for speculative token counts.
- Includes a structured verification process to ensure performance gains are real.
- Helps prevent common pitfalls like OOM errors through memory utilization adjustments.
Usage examples
- “How do I enable EAGLE-3 speculative decoding on my Jetson AGX Orin?”
- The agent provides the specific --speculative-config JSON structure with num_speculative_tokens set to 3 and advises on lowering gpu-memory-utilization to prevent OOM.
- “My vLLM server is slow at generating tokens, should I use speculative decoding?”
- The agent guides you to check if your workload is low-concurrency and if you have enough VRAM, then provides the steps to benchmark before and after implementation.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/jetson-speculative-decoding/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip jetson-speculative-decoding.zip -d .agents/skills
Documentation by Jetson Team
Jetson Speculative Decoding (vLLM)
Speculative decoding lets a small "draft" model propose tokens that the target model verifies in a single forward pass, reducing per-token latency. On Jetson, the win/loss is dominated by VRAM headroom, not by the draft quality. This skill encodes the parts an LLM won't already know.
Purpose
Tune an existing Jetson vLLM deployment for faster token generation by appending the right --speculative-config and validating whether it improves single-stream decode speed.
When to use
TPOT/ITL is the bottleneck (TTFT is fine, output is just slow).
Workload is single-stream or low-concurrency (≤2). Speculation usually loses at high concurrency.
Jetson family is Thor or AGX Orin. Do not suggest EAGLE-3 on Orin Nano/NX — there is rarely enough VRAM headroom to host both target and draft, and you'll OOM at startup.
When NOT to use
High-concurrency serving (≥8): batched decode usually beats speculation; the draft model just steals VRAM.
Models without a published EAGLE-3 head — do not train one ad-hoc as a "fix".
After applying
jetson-inference-mem-tuneflags that already pushed--gpu-memory-utilizationnear the ceiling. Free at least ~2 GB first.
Prerequisites
A working vLLM server recipe from
jetson-llm-serve.Enough memory headroom for the draft model or EAGLE-3 head in addition to the target model.
A benchmark baseline from
jetson-llm-benchmarkbefore enabling speculation.A target model with a compatible EAGLE-3 head, or a small same-family draft model for the fallback path.
Instructions
Append --speculative-config to the vllm serve command shown in jetson-llm-serve.
EAGLE-3 (preferred when a head is published for the target model):
--speculative-config '{
"method": "eagle3",
"model": "<eagle3-head-repo-id>",
"num_speculative_tokens": 5,
"draft_tensor_parallel_size": 1
}'Draft-model (fallback — pair a small same-family model):
--speculative-config '{
"method": "draft_model",
"model": "<small-draft-model-repo-id>",
"num_speculative_tokens": 4,
"draft_tensor_parallel_size": 1
}'Jetson-specific tuning rules
num_speculative_tokens: start at 5 on Thor, 3 on AGX Orin. Higher values pay off only if the draft acceptance rate is >0.6.Always pair with the same vLLM runtime path used by
jetson-llm-serve: upstream vLLM 0.20+ (vllm/vllm-openai:latest) or validated native vLLM 0.20+ on Thor, upstream vLLM 0.20+ on Orin JetPack 7.2 / L4T r39+, or the NVIDIA-AI-IOT vLLM image on older Orin. Do not use an Orin NVIDIA-AI-IOT vLLM image on Thor. Older runtimes may lack EAGLE-3 or the current--speculative-configshape.Drop
--gpu-memory-utilizationby ~0.05 vs the non-speculative baseline to give the draft model headroom.
How to verify it actually helped
Run
jetson-llm-benchmark(vLLM path) at--concurrency 1before and after enabling speculation.Acceptance: target ≥30% improvement in
throughput_tok_sand ≥20% drop intpot_ms_p50at concurrency 1.If improvement is <10%, or
throughput_tok_sregresses at concurrency 8, disable speculation. The draft model is costing more than it returns.
Limitations
Speculative decoding improves decode-heavy workloads; it does not reduce TTFT-dominated latency.
High concurrency can erase the benefit because continuous batching already keeps the GPU busy.
Orin Nano/NX usually lack enough memory headroom for both target and draft models.
Acceptance rate and draft overhead are model-specific, so benchmark before and after instead of assuming a speedup.
Error handling
If vLLM rejects
--speculative-config, verify that Thor and Orin JetPack 7.2 / L4T r39+ are using vLLM 0.20+ and that older Orin is using a JetPack-matched NVIDIA-AI-IOT vLLM image; then switch back to the non-speculative serving command if the runtime still rejects it.If startup OOMs, lower
--gpu-memory-utilization, use a smaller draft, or disable speculation and hand off tojetson-inference-mem-tune.If benchmark throughput regresses, remove
--speculative-config; a bad draft path is worse than no speculation.
Hand off to
jetson-llm-benchmarkto quantify the change.jetson-inference-mem-tuneif startup OOMs after enabling speculation.
Source
vLLM speculative decoding docs and the Jetson AI Lab GenAI tutorial.
Files
- ATTRIBUTION.mdAdded by AutoGineer944 B
- BENCHMARK.md3.3 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md4.7 KiB
- evals/evals.json6.4 KiB
- skill-card.md3.6 KiB
- skill.oms.sig4.5 KiB
BENCHMARK.md
Evaluation Report
Evaluation of the jetson-speculative-decoding skill before publication through NVSkills-Eval.
This benchmark summarizes 3-Tier Evaluation from NVSkills-Eval results for the skill. The goal is to document whether the skill is safe, discoverable, effective, and useful for agents before it is published for broader workflow use.
Evaluation Summary
Skill:
jetson-speculative-decodingEvaluation date: 2026-06-17
NVSkills-Eval profile:
externalEnvironment:
astra-sandboxDataset: 8 evaluation tasks
Attempts per task: 1
Pass threshold: 50%
Overall verdict: PASS
Agents Used
claude-codecodex
Metrics Used
Reported benchmark dimensions:
Security: checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access.
Correctness: checks whether the agent follows the expected workflow and produces the correct final output.
Discoverability: checks whether the agent loads the skill when relevant and avoids using it when irrelevant.
Effectiveness: checks whether the agent performs measurably better with the skill than without it.
Efficiency: checks whether the agent uses fewer tokens and avoids redundant work.
Underlying evaluation signals used in this run:
security(Security): checks for unsafe operations, secret leakage, and unauthorized access.skill_execution(Skill Execution): verifies that the agent loaded the expected skill and workflow.skill_efficiency(Efficiency): checks routing quality, decoy avoidance, and redundant tool usage.accuracy(Accuracy): grades final-answer correctness against the reference answer.goal_accuracy(Goal Accuracy): checks whether the overall user task completed successfully.behavior_check(Behavior Check): verifies expected behavior steps, including safety expectations.token_efficiency(Token Efficiency): compares token usage with and without the skill.
Test Tasks
The benchmark included 8 recorded Tier 3 trials, but the source evaluation dataset was not available in this report payload.
Results
| Dimension | Num | claude-code | codex |
|---|---|---|---|
| Security | 4 | 100% (+0%) | 100% (+0%) |
| Correctness | 4 | 100% (+50%) | 95% (+28%) |
| Discoverability | 4 | 100% (+75%) | 84% (+31%) |
| Effectiveness | 4 | 94% (+40%) | 88% (+41%) |
| Efficiency | 4 | 94% (+50%) | 79% (+27%) |
Score values show skill-assisted performance. Values in parentheses show uplift versus the no-skill baseline when baseline data is available.
Tier 1: Static Validation Summary
Tier 1 validation passed with observations. NVSkills-Eval ran 1 checks and found 2 total findings.
Top findings:
MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Examples' (
skills/jetson-speculative-decoding/SKILL.md)LOW SCHEMA/author_format: Author must be of the form 'Name <email@host>' (
skills/jetson-speculative-decoding/SKILL.md)
Tier 2: Deduplication Summary
This tier was not run or did not produce findings in this report.
Publication Recommendation
The skill is suitable to proceed toward NVSkills-Eval publication based on this benchmark. Skill owners should keep this file with the skill and refresh it when the evaluation dataset, skill behavior, or target agents materially change.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Jetson Team
- Publisher
- NVIDIA (Official)
- Distributed by
- NVIDIA
- Source
- NVIDIA/skills · skills/jetson-speculative-decoding · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Jetson Team or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download jetson-speculative-decoding.zip