多 GPU 部署该选分片还是副本:长上下文与短对话混合负载如何规划显存
Sharding vs replicas across multiple GPUs, just trying to plan this right [R]
一位用户为两台机器的小型多 GPU 环境做规划,混合长上下文与短对话负载,纠结大模型应跨所有卡分片,还是每卡跑独立小实例再做负载均衡。他倾向认为分片改善单请求延迟、副本提升并发,但不清楚两者的交叉点是否只取决于模型大小与 VRAM,并指出池化 GPU 调度并不能把多卡显存合并成一块。他还想先算清权重、KV cache 与加载过程各自需要多少 RAM/VRAM,再评估 GPUStack。
Hey all, I’m planning a small multi-GPU setup across two boxes, with a mix of long-context and short-chat workloads. Should a bigger model be sharded across all the cards, or is it better to run smaller independent instances per card and load-balance?
My gut says sharding helps single-request latency and replicas help concurrency. But where’s the crossover? Is it just model size vs VRAM?Also, pooled GPU scheduling isn’t magic VRAM merging managing multiple cards doesn’t automatically turn them into one big VRAM block any model can use. i was wondering Is the usual answer “only shard when it won’t fit, otherwise replicas behind a router”? I’m curious about GPUStack, but first I want to get the memory budget straight: how much RAM/VRAM do weights, KV cache, and the loading process each actually need?
submitted by /u/hulakrtahukhula
[link] [留言]
来源:r/MachineLearning · reddit.com