<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[雙 AMD Radeon VII 搭配 X99 洋垃圾跑 Qwen3.8-27B]]></title><description><![CDATA[<p dir="auto">我這邊先說結論，我覺得堪用了，不推薦大家折騰。<br />
風扇策略要調整高一點 現在都能壓在85度以內。<br />
沒多少錢，好玩就好，部署直接讓DeepSeek flash 搞，他能搞定的。<br />
我設備是參考斯波圖大大的。</p>
<p dir="auto">避雷的點<br />
1.思考模式一定要關<br />
2.風扇策略要調整高一點（直接叫agent搞）<br />
3.影像識別也一定要關</p>
<p dir="auto">一、硬體架構<br />
CPU<br />
型号：Intel Xeon E5-2678 v3 @ 2.50GHz<br />
核心：12 核心 / 24 线程（单路，Haswell 架构）<br />
指令集：AVX2、FMA、F16C、AES-NI<br />
内存<br />
总量：32 GB RAM<br />
Swap：8 GB<br />
存储<br />
NVMe SSD：915 GB<br />
GPU<br />
型号：2 × AMD Radeon VII（Vega 20，16 GB HBM2/卡，共 32 GB）<br />
驱动：ROCm 5.7（Ubuntu 24.04 自带）<br />
无 NVIDIA 显卡，全部依赖 AMD ROCm 栈<br />
二、运行架构<br />
复制<br />
Ubuntu 24.04.4 LTS (Linux 7.0.0-29-generic, x86_64)<br />
│<br />
├── vLLM 0.9.x（ROCm 版）<br />
│       └── 模型: Qwen3.8-27B-awq-int4<br />
│               ├── TP=2（双卡张量并行，每卡 ~10.5 GB 权重）<br />
│               └── OpenAI 兼容 API: 0.0.0.0:8081<br />
│<br />
└── DeepSeek Harness (dsh)<br />
├── node v24.x<br />
├── Web GUI: 0.0.0.0:3080<br />
└── 推理后端 → 127.0.0.1:8081 (vLLM)<br />
三、装置部署<br />
项目	路径 / 说明<br />
模型根目录	/home/kiwi/models/qwen3.8-27b-awq-int4<br />
权重大小	20 GB（5 个 safetensors 分片）<br />
量化格式	AWQ INT4，group_size=32，mse observer<br />
忽略量化层	所有 linear_attn 层 + embedding + norm 保持原始精度<br />
vLLM 启动命令	见下方"启动参数"<br />
dsh 启动命令	dsh --profile web --port 3080<br />
GUI 地址	<br />
<a href="http://127.0.0.1:3080" rel="nofollow ugc">http://127.0.0.1:3080</a><br />
API 地址	http://&lt;host&gt;:8081/v1（OpenAI 兼容）<br />
四、模型参数<br />
架构（qwen3_5，27B 参数）<br />
参数	值<br />
总层数	64 层<br />
注意力分布	60 层 linear_attention (GDN) + 4 层 full_attention（每 4 层 1 层 full）<br />
hidden_size	5120<br />
intermediate_size	17408（SwiGLU）<br />
full-attention heads	24 Q / 4 KV（GQA）<br />
head_dim	256（partial_rotary_factor = 0.25）<br />
linear-attn heads	16 K / 48 V，head_dim 128<br />
RoPE θ	10,000,000（MRoPE interleaved）<br />
最大上下文	262,144 tokens（本部署限制 65,536）<br />
词表	248,320<br />
原生精度	bfloat16<br />
多模态	支持图像/视频（本部署 --limit-mm-per-prompt image:0 关闭）<br />
MTP	1 层 multi-token prediction（推理未启用）<br />
生成默认值<br />
temperature: 1.0，top_k: 20，top_p: 0.95<br />
Chat template: 自定义 chat_template_no_think.jinja（关闭思考模式）<br />
五、vLLM 启动参数<br />
bash<br />
复制<br />
vllm serve /home/kiwi/models/qwen3.8-27b-awq-int4 <br />
--tensor-parallel-size 2 <br />
--max-model-len 65536 <br />
--served-model-name qwen3.8-27b-awq <br />
--gpu-memory-utilization 0.9 <br />
--max-num-seqs 32 <br />
--max-num-batched-tokens 8192 <br />
--enable-prefix-caching <br />
--trust-remote-code <br />
--limit-mm-per-prompt '{"image": 0}' <br />
--dtype float16 <br />
--enable-auto-tool-choice <br />
--tool-call-parser qwen3_coder <br />
--reasoning-parser qwen3 <br />
--chat-template /home/kiwi/models/qwen3.8-27b-awq-int4/chat_template_no_think.jinja <br />
--host 0.0.0.0 <br />
--port 8081<br />
关键取舍：</p>
<p dir="auto">gpu-memory-utilization=0.9：双卡各吃 ~28 GB，KV cache 空间充足<br />
max-num-batched-tokens=8192：控制单批 decode 的显存峰值<br />
enable-prefix-caching：多轮对话/agent 循环场景下命中率较高<br />
dtype=float16：Vega 20 上 FP16 比 BF16 更快（无原生 BF16 支持）<br />
chat_template_no_think.jinja：去掉 /think 段，强制直接回答，降低延迟</p>
<p dir="auto">六、性能实测</p>
<p dir="auto">单次请求 — Decode 速度<br />
上下文长度	TTFT (首 token)	Decode 速度	256 tokens 总耗时<br />
~50 tok（短）	145 ms	41.1 tok/s	6.36 s<br />
~4K tok	1,470 ms	40.5 tok/s	7.76 s<br />
~16K tok	3,192 ms（中位）	38.3 tok/s	9.84 s<br />
16K 的 TTFT 方差大：第一次 5.67s（冷启动 / page cache 未命中），第二次 0.71s（prefix cache 命中后接近热路径）。</p>
<p dir="auto">并发 — 4 路并行 × 128 tokens<br />
指标	值<br />
单路 decode 速度	~17.4 tok/s<br />
聚合吞吐	51.4 tok/s（4 流）<br />
4 路总耗时	9.96 s（512 tokens）<br />
4 路并发的聚合吞吐（51.4）反而高于单路（41.1）——这是 continuous batching 的收益，GPU 算力没跑满时多路能填满。</p>
<p dir="auto">关键结论<br />
单流 ~41 tok/s，对 27B INT4 在 2× Radeon VII (FP16) 上属于正常水平<br />
TTFT 与上下文长度近似线性：50→4K→16K 对应 145ms→1.5s→5.7s（冷）<br />
Prefix caching 效果显著：16K 上下文命中后 TTFT 从 5.7s 降到 0.7s<br />
4 路并发聚合 51 tok/s，说明 max-num-batched-tokens=8192 的设置对多用户场景是合理的<br />
多模态已关闭（image:0），纯文本推理</p>
]]></description><link>https://lcz.me/topic/1243</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 00:43:32 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1243.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Aug 2026 06:07:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 雙 AMD Radeon VII 搭配 X99 洋垃圾跑 Qwen3.8-27B on Fri, 21 Aug 2026 07:47:41 GMT]]></title><description><![CDATA[<p dir="auto">退役期的设备。发挥余热。项目做起来放更新第一批名单里。</p>
]]></description><link>https://lcz.me/post/13269</link><guid isPermaLink="true">https://lcz.me/post/13269</guid><dc:creator><![CDATA[williamlouis]]></dc:creator><pubDate>Fri, 21 Aug 2026 07:47:41 GMT</pubDate></item><item><title><![CDATA[Reply to 雙 AMD Radeon VII 搭配 X99 洋垃圾跑 Qwen3.8-27B on Fri, 21 Aug 2026 07:45:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/williamlouis" aria-label="Profile: williamlouis">@<bdi>williamlouis</bdi></a></p>
<p dir="auto">我買時 兩張原裝AMD Radeon VII 有視頻端口的 海鮮市場買的 一張800</p>
]]></description><link>https://lcz.me/post/13267</link><guid isPermaLink="true">https://lcz.me/post/13267</guid><dc:creator><![CDATA[kiwi]]></dc:creator><pubDate>Fri, 21 Aug 2026 07:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to 雙 AMD Radeon VII 搭配 X99 洋垃圾跑 Qwen3.8-27B on Fri, 21 Aug 2026 07:40:11 GMT]]></title><description><![CDATA[<p dir="auto">大概3000多人民幣<br />
原先情況是更慘 他死活不能跑qwen 3.6</p>
<p dir="auto">這次qwen3.8好像是採用3.5的架構，最後給我搞起來了，上下文跑長了還是大概能用到30t/s。就堪用吧，拿來驅動我的其他台主機跑comfy ui，改改代碼還是挺好用的。</p>
<p dir="auto">不推薦折騰唷，但是有這樣硬件吃灰的可以拿出來用<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f923.png?v=301515bb865" class="not-responsive emoji emoji-android emoji--rolling_on_the_floor_laughing" style="height:23px;width:auto;vertical-align:middle" title="🤣" alt="🤣" /></p>
]]></description><link>https://lcz.me/post/13266</link><guid isPermaLink="true">https://lcz.me/post/13266</guid><dc:creator><![CDATA[kiwi]]></dc:creator><pubDate>Fri, 21 Aug 2026 07:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to 雙 AMD Radeon VII 搭配 X99 洋垃圾跑 Qwen3.8-27B on Fri, 21 Aug 2026 07:16:33 GMT]]></title><description><![CDATA[<p dir="auto">确实，上下文长度越低，配置不足的情况下，思考模式干冒烟，有时候还不如不思考。</p>
]]></description><link>https://lcz.me/post/13259</link><guid isPermaLink="true">https://lcz.me/post/13259</guid><dc:creator><![CDATA[stxpnet]]></dc:creator><pubDate>Fri, 21 Aug 2026 07:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to 雙 AMD Radeon VII 搭配 X99 洋垃圾跑 Qwen3.8-27B on Fri, 21 Aug 2026 06:46:06 GMT]]></title><description><![CDATA[<p dir="auto">是够折腾的了。一共多少费用攒机成功？<br />
看核心是两张 Instinct MI50 吧？</p>
]]></description><link>https://lcz.me/post/13247</link><guid isPermaLink="true">https://lcz.me/post/13247</guid><dc:creator><![CDATA[williamlouis]]></dc:creator><pubDate>Fri, 21 Aug 2026 06:46:06 GMT</pubDate></item></channel></rss>