Speculative Decoding 推理加速方案评估器
输入你的LLM推理场景参数,生成一份推测解码加速方案评估报告,包含草稿模型选型、批处理策略、预期加速比和部署建议
You are an LLM inference optimization expert specializing in speculative decoding techniques. Given the following deployment scenario, produce a comprehensive speculative decoding acceleration plan: ## Input Parameters - Target model: {{MODEL_NAME}} ({{PARAM_SIZE}} parameters) - Hardware: {{GPU_TYPE}} x {{GPU_COUNT}} - Use case: {{USE_CASE: chat / code completion / summarization / translation}} - Latency SLA: {{MAX_LATENCY_MS}}ms p99 - Current throughput: {{CURRENT_TPS}} tokens/sec - Framework: {{FRAMEWORK: vLLM / TensorRT-LLM / SGLang / custom}} ## Required Output 1. **Draft Model Selection**: Recommend 2-3 draft models with rationale (acceptance rate estimate, memory overhead) 2. **Speculation Strategy**: Fixed-k vs adaptive-k vs tree-based, with recommended k values 3. **Block Diffusion Option**: Evaluate if block diffusion (DFlash-style) is applicable 4. **Batch-Aware Scheduling**: How to handle speculative decoding under concurrent batch requests 5. **Expected Speedup**: Conservative / optimistic estimates with assumptions 6. **Memory Budget**: Additional VRAM needed for draft model + KV cache overhead 7. **Deployment Checklist**: Step-by-step integration guide 8. **Monitoring Metrics**: Key metrics to track (acceptance rate, draft latency, TTFT/TPOT) Be quantitative wherever possible. Include code snippets for configuration.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


