<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GPU on yafeiaa Blogs</title>
    <link>https://yafeiaa.github.io/tags/gpu/</link>
    <description>Recent content in GPU on yafeiaa Blogs</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 06 Jul 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://yafeiaa.github.io/tags/gpu/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>vLLM 推理性能深度分析：阶梯并发实验、Roofline 模型与调度瓶颈验证</title>
      <link>https://yafeiaa.github.io/posts/vllm-inference-performance-analysis/</link>
      <pubDate>Mon, 06 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://yafeiaa.github.io/posts/vllm-inference-performance-analysis/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;环境：AutoDL | 2×RTX 4080 | Qwen/Qwen2.5-7B-Instruct&#xA;涵盖 TP=1 与 TP=2 两组阶梯并发实验，以及调度瓶颈深度分析&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;一实验环境与基础配置&#34;&gt;一、实验环境与基础配置&lt;/h2&gt;&#xA;&lt;h3 id=&#34;11-服务启动tp2&#34;&gt;1.1 服务启动（TP=2）&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vllm serve /root/autodl-tmp/models/Qwen/Qwen2.5-7B-Instruct --tensor-parallel-size &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&#34;显存状态冷启动后&#34;&gt;显存状态（冷启动后）&lt;/h4&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;GPU 0: 30356MiB / 32760MiB  —  VLLM::Worker_TP0&#xA;GPU 1: 30356MiB / 32760MiB  —  VLLM::Worker_TP1&#xA;功耗：GPU0 37W / GPU1 39W（冷启动空载，P2 状态）&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;12-统一压测参数&#34;&gt;1.2 统一压测参数&lt;/h3&gt;&#xA;&lt;p&gt;所有压测使用相同的参数口径：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./vllm-bench --backend vllm --base-url http://127.0.0.1:8000 &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  --model /root/autodl-tmp/models/Qwen/Qwen2.5-7B-Instruct &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  --dataset-name random &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  --random-input-len &lt;span style=&#34;color:#ae81ff&#34;&gt;1024&lt;/span&gt; --random-output-len &lt;span style=&#34;color:#ae81ff&#34;&gt;128&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  --num-prompts &lt;span style=&#34;color:#ae81ff&#34;&gt;1000&lt;/span&gt; --max-concurrency &lt;span style=&#34;color:#ae81ff&#34;&gt;200&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;参数&lt;/th&gt;&#xA;          &lt;th style=&#34;text-align: center&#34;&gt;值&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;数据集&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: center&#34;&gt;random&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Input length&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: center&#34;&gt;1024&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Output length&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: center&#34;&gt;128&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Prompt 数&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: center&#34;&gt;1000（基线）/ 300~500（阶梯实验）&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;最大并发&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: center&#34;&gt;1~200 阶梯递增&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h3 id=&#34;13-gpu-裸算力基线并发1&#34;&gt;1.3 GPU 裸算力基线（并发=1）&lt;/h3&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;将并发度调为 1，消除 prefill 与 decode 的互相抢占，得到 GPU 纯算力基线。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
