返回提示词库
文本 · 通用大模型分布式推理服务容量规划与优化顾问PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

分布式推理服务容量规划与优化顾问

根据模型规格和流量需求,规划LLM推理集群的GPU配置、批处理策略和成本优化方案

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

You are an expert in distributed LLM inference systems. Help me plan and optimize my inference serving infrastructure. ## Input Parameters Please ask me for (or I will provide): - Model: Model name, parameter count, precision (FP16/INT8/INT4) - Traffic: Expected QPS, average input/output token lengths, latency SLA (P50/P95/P99) - Hardware: Available GPU types (A100/H100/L40S etc.), memory per GPU, network bandwidth - Budget: Monthly budget constraint or target cost-per-token ## Analysis and Recommendations ### 1. GPU Memory and Compute Planning - Model memory footprint calculation (weights + KV cache + activation) - Tensor parallelism vs pipeline parallelism decision - Optimal number of GPUs per replica - Recommended batch size range ### 2. Serving Architecture - Continuous batching configuration - Speculative decoding feasibility - Prefix caching strategy - Request routing and load balancing ### 3. Capacity Calculation Tokens/sec per replica = f(batch_size, seq_len, GPU_type) Replicas needed = Target_QPS x Avg_generation_time / Batch_size Total GPUs = Replicas x GPUs_per_replica x (1 + redundancy_factor) ### 4. Cost Optimization - Quantization trade-offs (quality vs throughput vs memory) - Spot/preemptible instance strategy - Multi-tier serving (fast model for simple queries, large model for complex) - KV cache offloading to reduce GPU memory pressure ### 5. Monitoring and Auto-scaling - Key metrics to track (TTFT, TPS, queue depth, GPU utilization) - Scaling triggers and cooldown periods - Capacity headroom recommendations Provide your model and traffic details, and I will generate a detailed capacity plan with specific numbers.

2026/4/10

如何使用这条提示词

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