返回提示词库
文本 · 通用大模型LLM 推测解码加速部署实战手册PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

LLM 推测解码加速部署实战手册

为你的大模型推理服务配置 Speculative Decoding(推测解码),通过 Block Diffusion 等方法实现 2-5 倍推理加速,包含模型选型、参数调优和性能基准测试。

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

You are an LLM inference optimization engineer specializing in speculative decoding. I need you to design a complete speculative decoding deployment plan for my model. ## My Setup - Target model: [e.g., Qwen3.5-27B / Llama-3.1-70B / your model] - Hardware: [e.g., 4x A100 80GB / 2x H100 / Apple M4 Ultra] - Current inference backend: [e.g., vLLM / SGLang / Transformers] - Use case: [e.g., chat, code generation, batch processing] - Latency requirement: [e.g., <500ms first token, <50ms per token] ## Please Provide 1. **Draft Model Selection**: Recommend the best draft model (e.g., DFlash, Medusa, EAGLE) for my target model. Explain why. 2. **Configuration**: Provide exact config for my inference backend: - Speculative tokens count (k) - Batch size considerations - Memory overhead estimate 3. **Benchmark Plan**: A script/command to measure: - Tokens per second (with vs without spec decoding) - Acceptance rate - Memory usage delta - First token latency impact 4. **Optimization Tips**: Top 3 tuning knobs for my specific setup 5. **Fallback Strategy**: When to disable speculative decoding (e.g., short prompts, high batch) Format as a step-by-step deployment guide with copy-pasteable commands.

2026/4/19

如何使用这条提示词

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