<?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 R9700 32G 硬体配置分享 + --highvram 显存溢出导致黑屏重启的解决经验]]></title><description><![CDATA[<h2>硬件配置</h2>
<p dir="auto">搞了一套新机器专门跑 ComfyUI 数字人视频，配置如下：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配件</th>
<th>型号</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU</td>
<td>Intel Xeon</td>
</tr>
<tr>
<td>GPU</td>
<td><strong>AMD Radeon AI PRO R9700 32GB</strong> (gfx1201)</td>
</tr>
<tr>
<td>内存</td>
<td>62GB DDR4</td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu 24.04 LTS</td>
</tr>
<tr>
<td>内核</td>
<td>6.8.0-136-generic</td>
</tr>
</tbody>
</table>
<h2>驱动安装</h2>
<ul>
<li><strong>ROCm 7.14</strong> (amdgpu-dkms 6.19.14-2364437.24.04)</li>
<li>PyTorch 2.11.0+rocm7.14.0</li>
<li>ComfyUI 0.28.0</li>
</ul>
<h2>整体感受</h2>
<p dir="auto">装驱动没遇到什么大障碍，ROCm 7.14 对 R9700 支持不错。安装好驱动之后，用了坛子里 work 那个帖子的下载，直接套用工作流就开始跑视频了，开箱即用的感觉。</p>
<h2>遇到的问题：黑屏重启</h2>
<p dir="auto">但是想上<strong>无限时长工作流</strong>的时候，跑了没多久直接黑屏，然后跳到系统登录界面，像是机器重启了一样。</p>
<p dir="auto">用 Hermes 查了系统日志（journalctl + dmesg），找到关键错误链：</p>
<pre><code>amdgpu: Not enough memory for command submission!  (error -12)
amdgpu: Failed to pin framebuffer with error -12
GNOME Shell crashed with signal 6
</code></pre>
<p dir="auto">根本原因是 ComfyUI 启动参数带了 <code>--highvram</code>，这个模式下所有模型焊死在显存里不释放。我的工作流加载了：</p>
<ul>
<li>z_image_turbo_bf16 (12GB)</li>
<li>qwen_3_4b text encoder (7.5GB)</li>
<li>ae VAE (320MB)</li>
<li>各种其他模型 + 中间张量</li>
</ul>
<p dir="auto">加起来超过 32GB 了，VRAM 被打爆 → amdgpu 驱动崩了 → GNOME 显示服务器跟着崩 → 黑屏登录。</p>
<h2>解决方案</h2>
<p dir="auto">去掉 <code>--highvram</code> 启动参数，让 ComfyUI 用默认的 <strong>NORMAL_VRAM</strong> 模式（不加任何 --vram 参数就是默认）。这样每个模型用完就卸载，不会长期占着显存。32GB 显存在 normal 模式下依然非常充裕，速度几乎没区别。</p>
<p dir="auto">启动脚本改前：</p>
<pre><code>python main.py ... --highvram --enable-manager
</code></pre>
<p dir="auto">改后：</p>
<pre><code>python main.py ... --enable-manager
</code></pre>
<p dir="auto">启动日志可以看到：</p>
<pre><code>Set vram state to: NORMAL_VRAM
Using async weight offloading with 2 streams
</code></pre>
<h2>想问问大家</h2>
<p dir="auto">这个方案是不是最优解？还是说有什么更好的办法，比如手动控制模型卸载顺序，或者在 workflow 层面做显存优化？听听各位大佬的意见。</p>
<h2>给新朋友的提醒</h2>
<p dir="auto">如果你的 ComfyUI 启动参数里有 <code>--highvram</code>，加载多个大模型时一定要注意显存总量！<code>--highvram</code> 不会卸载任何已加载的模型，工作流里模型多了很容易爆显存。特别是 R9700/AMD 卡，显存爆了不只是报错，而是整个桌面崩掉回到登录界面。遇到类似黑屏重启的问题，先去查 <code>journalctl -k</code> 看看有没有 amdgpu 报错。</p>
]]></description><link>https://lcz.me/topic/925/amd-r9700-32g-硬体配置分享-highvram-显存溢出导致黑屏重启的解决经验</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Jul 2026 20:02:15 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/925.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jul 2026 04:20:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AMD R9700 32G 硬体配置分享 + --highvram 显存溢出导致黑屏重启的解决经验 on Sun, 26 Jul 2026 08:53:21 GMT]]></title><description><![CDATA[<p dir="auto">比如你要做自动视频的时候，可以做批量化的处理，就是加载一个模型就把这个模型需要弄的工作流全部做完，然后保存中间文件，然后再进行下一步的操作加载下一步用得到的模型就行了。毕竟32g的显存在视频工作流里面也不是太大，肯定还要分批来实施的。我最近也在研究自动化视频方面的东西，一点小小的心得。</p>
]]></description><link>https://lcz.me/post/10582</link><guid isPermaLink="true">https://lcz.me/post/10582</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sun, 26 Jul 2026 08:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to AMD R9700 32G 硬体配置分享 + --highvram 显存溢出导致黑屏重启的解决经验 on Sun, 26 Jul 2026 04:46:25 GMT]]></title><description><![CDATA[<p dir="auto">我虽然已经修改了这个参数，但是刚才还是才一次黑屏了，目前还在做其他调整，后续我再补办法和结果吧</p>
]]></description><link>https://lcz.me/post/10570</link><guid isPermaLink="true">https://lcz.me/post/10570</guid><dc:creator><![CDATA[老白登]]></dc:creator><pubDate>Sun, 26 Jul 2026 04:46:25 GMT</pubDate></item></channel></rss>