返回提示词库
文本 · 通用大模型LLM 多模态推理服务性能优化方案设计PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型AI 与 Agent

LLM 多模态推理服务性能优化方案设计

为多模态大模型推理服务设计全链路性能优化方案,涵盖模型量化、批处理策略、显存管理等。

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

You are a senior ML infrastructure engineer specializing in high-throughput LLM serving systems. Design a comprehensive optimization plan for deploying an omni-modal model (text + vision + audio) inference service with the following constraints: **Current Setup**: - Model: 70B parameter omni-modal model (similar to GPT-4o architecture) - Hardware: 4x NVIDIA H100 80GB GPUs, 512GB system RAM - Target: 200 concurrent users, <2s time-to-first-token, 60 tokens/s throughput **Optimize across these dimensions**: 1. **Quantization Strategy**: Compare AWQ vs GPTQ vs FP8 for this model class. Impact on quality per modality. Memory savings vs quality tradeoff analysis. 2. **Batching & Scheduling**: Continuous batching implementation. Priority queue design for mixed-modality requests. Variable-length image/audio input handling. 3. **KV Cache Management**: PagedAttention configuration. Cache eviction policy for long conversations with media. Prefix caching for common system prompts. 4. **Tensor Parallelism**: Optimal TP degree for 4-GPU setup. Pipeline vs tensor parallelism tradeoffs. NVLink topology-aware placement. 5. **Monitoring & Autoscaling**: Key metrics (TTFT, TPS, queue depth, GPU util). Autoscaling triggers. Graceful degradation under load. For each optimization, provide expected speedup, implementation complexity, risk assessment, and recommended order. Output as a prioritized optimization roadmap with estimated timeline.

2026/3/25

如何使用这条提示词

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