跳到正文
数字商店
原文
Jerry Liu· @jerryjliu0 · X·· 28 天前AI 评分47
AI 导读

LlamaIndex 团队在单块 B200 上将文档解析模型 OCRia-1 的生成速度提升近 10 倍,从 285 tok/s 提高至 2800 tok/s。团队结合量化、dflash2 投机解码、replaySSM 和算子融合等 17 项工程优化压榨硬件性能,并计划将部分成果回馈给开源 vLLM 项目,用于降低 LlamaParse 的服务延迟。

正文 · AI 翻译

OCRia-1 是有史以来最快的文档解析模型之一。我们在单张 B200 上将 OCRia-1 提速了 10 倍(285 tok/s --> 2800 tok/s)。

对于任何想要优化模型的人来说,这篇极其详细的博客文章里有大量有用的经验!

* 我们采用了成熟的实践方法,比如量化和投机解码(dflash2),在降低内存占用的同时提升了每秒生成的 token 数
* 我们还做了 17 项其他优化——replaySSM、kernel fusion、vLLM 改动等等。

特别感谢我们的研究团队。他们让我们能够大规模地服务数十亿页面。我们会继续进行大规模改进,全面降低 LlamaParse 的延迟。

来看看吧:https://t.co/WTvW4mFMfR

引用LlamaIndex 🦙@llama_index
我们让 OCRia-1 在单张 B200 上的 token 生成速度提升近 10 倍。 实现这一目标的关键在于更好地利用同一块 GPU。我们针对文档解析的需求对 OCRia-1 的运行方式进行了调优,并对每一处改动同时测试速度和准确率。 有些改进只有 2–5%。但经过 17 次小优化之后,“百分之几”的累积效果开始显现。 我们的基础设施团队撰写了文章,介绍了哪些方法有效、他们如何测试这些改动,以及他们在加速文档模型方面的经验。 我们还计划把其中一些优化回馈给开源的 vLLM 项目。阅读完整分析 → https://t.co/mBKLljd5MF 观看下方视频,查看 OCRia-1 在优化前后的 token 生成对比。
原文

We got OCRia-1 generating tokens nearly 10× faster on a single B200. Getting there meant making much better use of the same GPU. We tuned how OCRia-1 runs for the demands of document parsing, testing every change for both speed and accuracy. Some improvements were only 2–5%. Seventeen smaller optimizations later, “just a few percent” starts adding up. Our infrastructure team wrote up what worked, how they tested the changes, and what they learned about making document models run faster. We also plan to contribute some of these optimizations back to the open-source vLLM project. Read the full breakdown → https://t.co/mBKLljd5MF Watch the video below to see OCRia-1’s token generation before and after the optimizations.

在 X 查看被引用的帖子

来源:Jerry Liu · x.com