技能 编程开发 CoreWeave GPU性能调优指南

CoreWeave GPU性能调优指南

v20260423
coreweave-performance-tuning
本指南提供了在CoreWeave平台上优化GPU推理性能的专家策略。内容涵盖了根据不同工作负载(如LLM推理、图像生成、模型训练)选择最佳GPU、使用vLLM实现连续批处理优化,以及基于指标的HPA自动扩缩容配置。帮助用户最大化GPU利用率,降低推理延迟,提升AI模型部署效率。
获取技能
495 次下载
概览

CoreWeave Performance Tuning

GPU Selection by Workload

WorkloadRecommended GPUWhy
LLM inference (7-13B)A100 80GBGood balance of memory and cost
LLM inference (70B+)8xH100NVLink for tensor parallelism
Image generationL40Good for diffusion models
Training (large models)8xH100 SXM5Fastest interconnect
Batch processingA100 40GBCost-effective

Inference Optimization

# Continuous batching with vLLM
containers:
  - name: vllm
    args:
      - "--model=meta-llama/Llama-3.1-8B-Instruct"
      - "--max-num-batched-tokens=8192"
      - "--max-num-seqs=256"
      - "--gpu-memory-utilization=0.90"
      - "--enable-prefix-caching"
      - "--dtype=float16"

Autoscaling Tuning

# HPA based on GPU utilization
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: inference-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: inference-server
  minReplicas: 2
  maxReplicas: 10
  metrics:
    - type: Pods
      pods:
        metric:
          name: DCGM_FI_DEV_GPU_UTIL
        target:
          type: AverageValue
          averageValue: "70"

Performance Benchmarks

MetricA100-80GBH100-80GB
Llama-8B tokens/sec~2,000~4,500
Llama-70B tokens/sec~200 (4x)~500 (4x)
Cold start (vLLM)30-60s20-40s

Resources

Next Steps

For cost optimization, see coreweave-cost-tuning.

信息
分类 编程开发
名称 coreweave-performance-tuning
版本 v20260423
大小 2.18KB
更新时间 2026-07-13
语言