Modal Blog· Cathy Zhou·· 2024-09-16AI 评分38
Modal 新增原生动态批处理,Whisper 吞吐量提升 2.8 倍
Boost your throughput with dynamic batching
AI 导读
Modal 新增了原生动态批处理支持,推理函数可通过单个 @modal.batched() 装饰器并配合 max_batch_size 和 wait_ms 参数来对请求进行分组。在 A10G 上运行 OpenAI 的 Whisper large v3 时,max_batch_size 设为 64 使每个容器的吞吐量从约 1.2 提升至约 3.3 请求/秒,并将推理成本降低了 65%。
来源:Modal Blog · modal.com