Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Why Fits in VRAM Does Not Mean Faster GPU Inference

AI summary

A Juejin technical explainer separates GPU memory capacity from inference speed, showing how bandwidth, compute, batching, and arithmetic intensity affect token generation. It uses a 27B BF16 model plus public H20 and H100 SXM specifications to illustrate a Roofline-style analysis. The numerical examples are explicitly hypothetical rather than measured benchmarks, and the H20 specifications still require official verification.

In-depth insight

The article provides a practical framework for diagnosing slow inference: fitting a model in VRAM establishes only part of the capacity requirement, while data delivery, computation, request settings, and runtime overhead determine throughput and latency.

一个 27B 模型已经放进 96GB 显存,服务却没有因此变得更快。用户仍然可能等很久才看到第一个 token,后续文字也可能出来得很慢。

“装得下”和“算得快”是两个问题。显存容量决定模型和请求状态能不能放下;数据能不能及时送到计算单元、计算单元每秒能完成多少运算,则会影响速度。

用一个 27B 模型和两张 GPU 的公开规格分开看这几件事。下面的数字用于说明计算方法,不是实测结果,也不能直接当成部署承诺。

一、模型已经放进显存,为什么还要看其他指标

假设模型有 270 亿个参数,每个参数用 BF16 保存,也就是每个参数占 2 字节:

权重估算 = 270亿 × 2字节 = 54GB

#Qwen3.8-27B#NVIDIA H20#NVIDIA H100 SXM#Roofline model

Original · 10 min readRead the original
Group chat

No comments yet. Start the conversation.