当前位置:首页 > 报告详情

从 EPD 到 SGLang-Omni:图像密集场景推理加速实践与下一代全模态推理架构演进-刘斯宇.pdf

上传人: 表表 编号:1152900 2026-02-14 18页 1.11MB

1、1.Transmission:ZMQ IPC OverheadBottleneck:Serialization and memory copying latency when moving massive vision tensors across process boundaries(Tokenizer Scheduler).Overview:Critical Bottlenecks in the Multimodal Pipeline2.Synchronization:The ViT Scaling ParadoxBottleneck:Communication-to-computatio

2、n ratio is too high for Vision Encoders.Evidence:TP 8(523ms)TP 4(465ms)on Qwen2.5-VL-72B(H20).3.Preprocessing:The Hashing FrictionBottleneck:Synchronous,CPU-bound image hashing blocks the request pipeline before scheduling begins.Tokenizer(Image Processing)Serialization&ZMQ(Copying to Socket)step1st

3、ep2step3DeserializationSchedulerstep4Data TransferThe Scaling Challenge:Highres image=Big Tensors that choke standard IPC pipes.The Technical Cost:ZMQ relies on CPU-bound serialization.Multiple socket-based copies create a massive costCumulative Latency:In high-concurrency scenarios,transmission del

4、ays accumulate across the queue.send_pyobjThe 4-Step Shared Memory HandlerStep 1.Write:Tokenizer writes vision tensors directly to Shared Memory,bypassing Python Pickle serialization.Step 2.Dispatch:ZMQ sends only a Metadata Handle(the Pointer).Step 3.Map:Scheduler attaches to the SHM segment and re

5、constructs the tensor via torch.frombuffer(Zero-Copy).Step 4.Unlink:The memory segment is unlinked immediately after mapping to ensure resource safety and prevent leaks.See more#16402Concurrency=1Concurrency=5IMAGE_COUNT=10IMAGE_RES=720pQwen2.5-VL-7B-InstructWhy Tensor Parallelism(TP)Fails for Visio

6、n EncodersThe Evidence:Performance RegressionBenchmark:Qwen2.5-VL-72B on H20 GPUs.The Paradox:Increasing TP size leads to higher latency.TP 4(Baseline):465.8 msTP 8(Regression):523.8 ms(+12.4%Latency)Observation:Vertical scaling(TP)has reached a negative-return threshold.2.Root Cause:Communication o

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
1. **ZMQ IPC瓶颈**:序列化与内存拷贝延迟导致视觉张量传输开销大,通过共享内存(4步法)实现零拷贝,降低延迟。 2. **ViT缩放悖论**:视觉编码器张量并行(TP)性能反降(TP8 523ms > TP4 465ms),因通信开销占比过高,建议改用水平扩展(Encoder-DP)。 3. **预处理优化**:GPU加速哈希或UUID绕过计算,解决CPU同步阻塞问题。 4. **三级流水线**:视觉编码(独立DP)、预填充(All-Gather)、解码(TP)解耦,EPD支持独立扩展,QPS提升2倍,TTFT降低6-8倍。 5. **资源池化**:编码器与LLM TP组解耦,灵活配置比例(如EPD-8+TP-4),提升资源利用率。
**共享内存如何加速?** **视觉并行为何失效?** **图像哈希如何优化?**
客服
商务合作
小程序
服务号
折叠