返回提示词库
文本 · 通用大模型Speculative Decoding 推理加速方案评估器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

Speculative Decoding 推理加速方案评估器

输入你的LLM推理场景参数,生成一份推测解码加速方案评估报告,包含草稿模型选型、批处理策略、预期加速比和部署建议

11浏览
完整提示词可替换花括号中的变量后直接使用

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.

2026/4/19

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。