<?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[SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置]]></title><description><![CDATA[<p dir="auto">硬件环境：<br />
CPU：2667v2x2<br />
RAM：DDR3 128G（1066）<br />
GF：RTX4090D-48G<br />
SGlang 上下文：500K，上下文内容100-200k也能保持28t/s的推理速度<br />
模型：Qwen3.6-27B-FP8<br />
SGLANG顶峰值解码速度32/s，平均值28t/s，Prefill速度：1400-1600t/s。<br />
和VLLM、llamacpp对比，快大概百分之30-50%。<br />
吐槽一下llamacpp，15t/s的解码速率，gguf得多差啊！还是只有我这样配置问题？<br />
vllm还在测试中。。</p>
<pre><code>#!/bin/bash
# SGLang 0.5.15 — sglang serve
# Qwen3.6-27B-MTP | RTX 4090D 48G
set -euo pipefail

readonly SGLANG_VENV="/mnt/dataM4/venv_sglang"
readonly MODEL_PATH="/mnt/dataM4/models/Qwen3.6-27B-AEON-Ultimate-Uncensored-FP8-MTP"

export HF_HOME="/root/.cache/huggingface"
export TRITON_CACHE_DIR="/root/sglang_cache/triton/cache"
export TORCHINDUCTOR_CACHE_DIR="/root/sglang_cache/torch_compile"
export FLASH_ATTENTION_CUTE_CACHE_DIR="/root/sglang_cache/flash_attn_cute_cache"

export CUDA_HOME=/usr/local/cuda-12.8
export PATH="$CUDA_HOME/bin:$PATH"
export LD_LIBRARY_PATH="$CUDA_HOME/lib64"
export LD_LIBRARY_PATH="/mnt/dataM4/venv_sglang/lib/python3.11/site-packages/nvidia/cusparselt/lib:$LD_LIBRARY_PATH"
export CUDAHOSTCXX=/usr/bin/gcc-12
export CC=/usr/bin/gcc-12
export CXX=/usr/bin/g++-12

# 🔴 修正拼写
export PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True"
export CUDA_DEVICE_ORDER="PCI_BUS_ID"
export CUDA_VISIBLE_DEVICES="0"
export FLASHINFER_DISABLE_VERSION_CHECK=1
export FLASH_ATTENTION_CUTE_DSL_CACHE_ENABLED=1

source "${SGLANG_VENV}/bin/activate"

SGLANG_ARGS=(
  --model-path "${MODEL_PATH}"
  --host 0.0.0.0
  --port 30000
  --trust-remote-code
  --tp-size 1
  --attention-backend flashinfer
  --mamba-backend flashinfer
  --kv-cache-dtype fp8_e4m3
  --page-size 8
  --mem-fraction-static 0.94
  --max-running-requests 2
  --prefill-max-requests 1
  --schedule-policy lpm
  --schedule-conservativeness 1
  --mamba-radix-cache-strategy extra_buffer
  --mamba-ssm-dtype bfloat16
  --mamba-full-memory-ratio 0.08
  --tool-call-parser qwen3_coder
  --reasoning-parser qwen3
  --preferred-sampling-params '{"temperature": 0.6, "repetition_penalty": 1.2, "frequency_penalty": 0.5, "presence_penalty": 0.3}'
  --chunked-prefill-size 4096
  --max-prefill-tokens 8192
  --context-length 262144
  --radix-eviction-policy lru
  --cuda-graph-max-bs-decode 2
  --cuda-graph-bs-decode 1 2
  #--enable-metrics
  #--enable-streaming-session
  #--enable-request-time-stats-logging
  #--log-requests
  --log-requests-level 0
  --decode-log-interval 300  # 🟡 降低日志频率
  # 🟢 關閉 Uvicorn Access Log (排除所有路徑)
  --uvicorn-access-log-exclude-prefixes /
)

# 🟡 日志改到磁盘，避免占用系统内存
readonly SGLOG="/dev/shm/sglang/sglang.log"
mkdir -p "$(dirname "$SGLOG")"

# 日志轮转
if ! pgrep -f sglang_log_rotate &gt; /dev/null 2&gt;&amp;1; then
    nohup bash /root/sglang_log_rotate.sh &gt;/dev/null 2&gt;&amp;1 &amp;
fi

exec sglang serve "${SGLANG_ARGS[@]}" &gt;&gt;"$SGLOG" 2&gt;&amp;1

</code></pre>
]]></description><link>https://lcz.me/topic/898/sglang跑rtx4090d-48g-qwen3.6-27b-fp8配置</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Jul 2026 20:02:08 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/898.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Jul 2026 00:44:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 09:01:52 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> <a href="/post/10429">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a> 这个我可以参考下，抄作业，有空弄下。awq的还是值得玩的。你Hermes调度时，有思考过程吗？</p>
</blockquote>
<p dir="auto"><img src="https://upload.lcz.me/uploads/fd30c376-f764-46d4-847b-344e46cf5d9b.jpeg" alt="6c677317-ae1b-43f5-a2fd-7ba5ea72e3e3-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">有的.<br />
其实也不是我弄的<br />
ai 全自动搞</p>
]]></description><link>https://lcz.me/post/10432</link><guid isPermaLink="true">https://lcz.me/post/10432</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Fri, 24 Jul 2026 09:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 08:40:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a> 这个我可以参考下，抄作业，有空弄下。awq的还是值得玩的。你Hermes调度时，有思考过程吗？</p>
]]></description><link>https://lcz.me/post/10429</link><guid isPermaLink="true">https://lcz.me/post/10429</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 24 Jul 2026 08:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 08:36:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a> Llama.cpp的参数过往帖子里有很多，你自己随便找。我都很久没用了。我的FP8占用参数发给你看：<br />
容器内部：</p>
<pre><code>#!/bin/bash
ln -sf /host-libs/libcuda.so.1 /usr/lib/x86_64-linux-gnu/libcuda.so.1 2&gt;/dev/null
ldconfig 2&gt;/dev/null
sglang serve --model-path /models/Qwen/Qwen3.6-27B-FP8 --host 0.0.0.0 --port 30000 --trust-remote-code --mem-fraction-static 0.8 --context-length 262144
</code></pre>
<p dir="auto">如果在宿主机上：</p>
<pre><code>#!/bin/bash
docker rm -f sglang 2&gt;/dev/null
docker run --rm --pid=host --privileged busybox pkill -f sglang::scheduler 2&gt;/dev/null
sleep 2
docker run -d --ipc=host --network=host --shm-size 32g   --name sglang --restart unless-stopped   --device /dev/nvidia0:/dev/nvidia0   --device /dev/nvidiactl:/dev/nvidiactl   --device /dev/nvidia-uvm:/dev/nvidia-uvm   --device /dev/nvidia-modeset:/dev/nvidia-modeset   --entrypoint /bin/bash   -v ~/docker/models:/models   -v ~/docker:/scripts   -v /usr/lib/x86_64-linux-gnu:/host-libs:ro   -e LD_LIBRARY_PATH=/host-libs   -e CUDA_VISIBLE_DEVICES=0   -e http_proxy= -e https_proxy= -e HTTP_PROXY= -e HTTPS_PROXY=   -e NO_PROXY='*'   lmsysorg/sglang:v0.5.15.post1   -c '/scripts/run_think.sh'
echo '等待40秒...'
sleep 40
docker logs sglang --tail 3 2&gt;/dev/null | grep -E 'Uvicorn|running on' &amp;&amp; echo '服务就绪!' || echo '检查: docker logs sglang'
~                                                                                                                                     
</code></pre>
<p dir="auto">这都是Hermes自己配置的，我没参与调一个字母，建议你把你的Llama.cpp交给Hermes配置。你这个模型我不想用，有FP8版本的，干嘛换Q8的呢，Q8毫无意义，我希望用AWQ，或者Q4量化的，节约显存。</p>
<p dir="auto">把这个复制给你的AI就能看懂了，当前我运行了22个小时，很稳定。</p>
]]></description><link>https://lcz.me/post/10428</link><guid isPermaLink="true">https://lcz.me/post/10428</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 24 Jul 2026 08:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 07:06:49 GMT]]></title><description><![CDATA[<p dir="auto">请问大家在用本地模型驱动Hermes agent的时候怎么检测/记录/统计模型的pp/tg 速度？ 有特定的工具或者特定的设置吗？</p>
]]></description><link>https://lcz.me/post/10415</link><guid isPermaLink="true">https://lcz.me/post/10415</guid><dc:creator><![CDATA[LearningAI]]></dc:creator><pubDate>Fri, 24 Jul 2026 07:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 07:06:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a> 是的 3090</p>
]]></description><link>https://lcz.me/post/10413</link><guid isPermaLink="true">https://lcz.me/post/10413</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Fri, 24 Jul 2026 07:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 06:57:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a> 你是啥显卡。两张3090？</p>
]]></description><link>https://lcz.me/post/10410</link><guid isPermaLink="true">https://lcz.me/post/10410</guid><dc:creator><![CDATA[用户名违规]]></dc:creator><pubDate>Fri, 24 Jul 2026 06:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 07:06:34 GMT]]></title><description><![CDATA[<p dir="auto">跟着 <a href="https://github.com/mattbucci/2x-3090-GA102-300-A1-sglang-inference" rel="nofollow ugc">https://github.com/mattbucci/2x-3090-GA102-300-A1-sglang-inference</a><br />
我也用起来了 3090x2</p>
<p dir="auto">python -m sglang.launch_server <br />
--model-path /home/ccadmin/AI/models/hf-mattbucci/Qwen3.6-27B-AWQ <br />
--tensor-parallel-size 2 <br />
--dtype float16 <br />
--kv-cache-dtype fp8_e4m3 <br />
--context-length 262144 <br />
--mem-fraction-static 0.85 <br />
--max-running-requests 8 <br />
--chunked-prefill-size 8192 <br />
--num-continuous-decode-steps 32 <br />
--trust-remote-code <br />
--watchdog-timeout 600 <br />
--port 30000 <br />
--host 0.0.0.0 <br />
--enable-metrics <br />
--disable-custom-all-reduce <br />
--served-model-name qwen36-dense <br />
--max-mamba-cache-size 8 <br />
--chat-template …/Qwen3.6-27B-AWQ/chat_template.jinja <br />
--reasoning-parser qwen3 <br />
--sampling-defaults model <br />
--tool-call-parser qwen3_coder <br />
--sampling-backend pytorch</p>
<h3>Prefill (time-to-first-token, <code>max_tokens=1</code>)</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:right">Prompt tokens</th>
<th style="text-align:right">TTFT (s)</th>
<th style="text-align:right">Prefill rate (tok/s)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right">1,344</td>
<td style="text-align:right">1.12</td>
<td style="text-align:right">1,203</td>
</tr>
<tr>
<td style="text-align:right">5,352</td>
<td style="text-align:right">3.83</td>
<td style="text-align:right">1,398</td>
</tr>
<tr>
<td style="text-align:right">10,680</td>
<td style="text-align:right">7.71</td>
<td style="text-align:right">1,386</td>
</tr>
<tr>
<td style="text-align:right">21,336</td>
<td style="text-align:right">15.58</td>
<td style="text-align:right">1,369</td>
</tr>
<tr>
<td style="text-align:right">42,672</td>
<td style="text-align:right">33.41</td>
<td style="text-align:right">1,277</td>
</tr>
<tr>
<td style="text-align:right"><strong>Typical</strong></td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>~1,350</strong></td>
</tr>
</tbody>
</table>
<h3>Decode (steady-state generation)</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Metric</th>
<th style="text-align:right">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Completion tokens</td>
<td style="text-align:right">571</td>
</tr>
<tr>
<td>Time (s)</td>
<td style="text-align:right">9.16</td>
</tr>
<tr>
<td><strong>Decode rate</strong></td>
<td style="text-align:right"><strong>62.3 tok/s</strong></td>
</tr>
<tr>
<td>GPU utilization</td>
<td style="text-align:right">98%</td>
</tr>
<tr>
<td>Power draw</td>
<td style="text-align:right">244 W (cap)</td>
</tr>
<tr>
<td>Repo ref (w/ NVLink)</td>
<td style="text-align:right">69 tok/s</td>
</tr>
</tbody>
</table>
]]></description><link>https://lcz.me/post/10409</link><guid isPermaLink="true">https://lcz.me/post/10409</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Fri, 24 Jul 2026 07:06:34 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 06:25:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a></p>
<pre><code>#!/bin/bash
# Qwen3.6-27B-Fable Q6_K — llama.cpp 启动配置（优化版）
# GPU: RTX 4090D (48G) | 模型: 64 层混合 (16 Full Attention + 48 SSM)
# 目标：全 GPU 卸载，0 层在 CPU
# 优化：Q8_0→Q6_K + KV q4_0 + 线程调优，目标 25-28 t/s

set -e

# ═══════════════════════════════════════════
# 参数说明（每个都加注释）
# ═══════════════════════════════════════════

MODEL="/mnt/dataM4/models/Qwen3.6-27B-Fable-Fus-711-UnHeretic-NM-DAU-NEO-MAX-NEO-Q8_0.gguf"

# --gpu-layers 64: 全部 64 层都加载到 GPU 显存（不卸载到 CPU）
# 如果设 32 就只有前 32 层在 GPU，后 32 层在 CPU，速度减半
GPU_LAYERS=64

# --ctx-size 262144: 上下文窗口 262K tokens（模型原生支持 262144）
# 显存开销：KV Cache ~8GB（q8_0 量化）
CTX_SIZE=262144

# --batch-size 8192: 逻辑 batch（prefill 阶段一次处理多少 token）
# 决定 prompt 阶段的速度，越大 prefilled 越快
BATCH_SIZE=8192

# --ubatch-size 4096: 物理 batch（GPU 计算缓冲大小）
# GPU 内存里同时计算的 token 数，不超过显存
UBATCH_SIZE=4096

# --threads 6: 生成阶段 CPU 线程数（每生成 1 个 token）
# 纯 GPU 时影响不大，设小点省 CPU，避免线程调度开销
THREADS=6

# --threads-batch 8: Prefill 阶段 CPU 线程数（处理 prompt）
# 降低到 8，减少 CPU 竞争，GPU 是瓶颈不是 CPU
THREADS_BATCH=8

# --temp 0.7: 采样温度（0=确定性强，1.0=随机性强）
TEMP=0.6

# --top-p 0.95: Nucleus 采样，累积概率到 0.95 截断
TOP_P=0.95

# --top-k 20: 只选概率最高的 20 个 token 参与采样
TOP_K=20

# --flash-attn on: 开启 Flash Attention（RTX 4090D SM89 原生支持）
# 对 Qwen3.5 混合架构的 Full Attention 层有显著加速
FLASH_ATTN=on

# --cache-type-k/v q4_0: KV Cache 用 Q4_0 量化（大幅降低带宽压力）
# 实测：q4_0 KV cache 对生成质量影响&lt;1%，但 decode 速度提升 10-15%
# bf16=16bit(大精度), q8_0=8bit, q4_0=4bit(最佳性价比)
CACHE_TYPE=q8_0

# --port 11434: 默认 Ollama 兼容端口
PORT=11434

# ═══════════════════════════════════════════
# 启动命令 — 全 GPU，无 CPU offload
# ═══════════════════════════════════════════

exec llama-server \
  --model "$MODEL" \
  --port "$PORT" \
  --ctx-size "$CTX_SIZE" \
  --batch-size "$BATCH_SIZE" \
  --ubatch-size "$UBATCH_SIZE" \
  --gpu-layers "$GPU_LAYERS" \
  --threads "$THREADS" \
  --threads-batch "$THREADS_BATCH" \
  --temp "$TEMP" \
  --top-p "$TOP_P" \
  --top-k "$TOP_K" \
  --flash-attn "$FLASH_ATTN" \
  --cache-type-k "$CACHE_TYPE" \
  --cache-type-v "$CACHE_TYPE" \
  --no-mmap \
  --mlock
  -ngl 99
</code></pre>
<p dir="auto">，你llamacpp 跑45t/s？贴一下参数呗，有点夸张啊，我怎么设置都上不去。我是按照sglang的思路设置的。不开MTP45t/s 很顶啊。prefill cpp确实不快。我用sglang显存很容易到47G。你这个占用只有41.5g，咋配置的。？sglang 频繁上下文 prefill 也解决了。基本上随便浪了。命中率99%</p>
]]></description><link>https://lcz.me/post/10408</link><guid isPermaLink="true">https://lcz.me/post/10408</guid><dc:creator><![CDATA[用户名违规]]></dc:creator><pubDate>Fri, 24 Jul 2026 06:25:06 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 01:43:45 GMT]]></title><description><![CDATA[<pre><code>吐槽一下llamacpp，15t/s的解码速率，gguf得多差啊！还是只有我这样配置问题？
vllm还在测试中。。
</code></pre>
<p dir="auto">VLLM不要测试了，其实高不成低不就，要跑Agent，目前就是SG-Lang+Qwen3.6 27b最好用。Llama.cpp 是你自己的设置问题我，我什么都不优化，不开MTP都45t/s，它的问题就是缓存不行，prefill慢到吐血。我今天明天发两个视频，第二个视频里我录个实际的效果你去对比下，看看速度如何。</p>
<p dir="auto">我这边用AWQ的模型不行，不知道哪里出了问题，你可以贴下参数，我用的是FP8模型。然后上下文是开满了，长期运行之后，占用了41.5G 显存，驱动Herms速度比Llama.cpp和VLLM快多了。</p>
]]></description><link>https://lcz.me/post/10398</link><guid isPermaLink="true">https://lcz.me/post/10398</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 24 Jul 2026 01:43:45 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 01:31:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/566656661" aria-label="Profile: 566656661">@<bdi>566656661</bdi></a> 我直接接入的hermes，肯定不能和DeepSeek V4 Flash比，但总体上速度和在线模型差距不大了，就不会有便秘感觉。</p>
]]></description><link>https://lcz.me/post/10394</link><guid isPermaLink="true">https://lcz.me/post/10394</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 24 Jul 2026 01:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Fri, 24 Jul 2026 00:54:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a></p>
<p dir="auto">我找個時間設立一下SGLang再配合OpenCode使用</p>
]]></description><link>https://lcz.me/post/10393</link><guid isPermaLink="true">https://lcz.me/post/10393</guid><dc:creator><![CDATA[566656661]]></dc:creator><pubDate>Fri, 24 Jul 2026 00:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 15:06:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/566656661" aria-label="Profile: 566656661">@<bdi>566656661</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a><br />
SG-Lang好用，说真的，我今天测试了下，确实很好。</p>
]]></description><link>https://lcz.me/post/10379</link><guid isPermaLink="true">https://lcz.me/post/10379</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 23 Jul 2026 15:06:09 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 15:07:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a> 你不需要最能顶跑多少，主要还是它prefill够快，然后就是4090 48G能多开，就是说实话，就它能可玩性高，其他的只能挂机。你的数据应该算很好的了，我今天测试是AWQ不稳定，FP8稳定的很，速度反正够用了，没详细看，就是驱动Agent很丝滑。</p>
]]></description><link>https://lcz.me/post/10378</link><guid isPermaLink="true">https://lcz.me/post/10378</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 23 Jul 2026 15:07:27 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 08:02:41 GMT]]></title><description><![CDATA[<p dir="auto">ai要是搞不定那我们这种普通玩家也很难了，你给你的AI配个好点的搜索引擎吧。</p>
]]></description><link>https://lcz.me/post/10357</link><guid isPermaLink="true">https://lcz.me/post/10357</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 23 Jul 2026 08:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 07:16:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/566656661" aria-label="Profile: 566656661">@<bdi>566656661</bdi></a> 这个不知道，我起手就用的sglang。vllm和llamacpp速度太慢了，用了sglang回不去了。</p>
]]></description><link>https://lcz.me/post/10355</link><guid isPermaLink="true">https://lcz.me/post/10355</guid><dc:creator><![CDATA[用户名违规]]></dc:creator><pubDate>Thu, 23 Jul 2026 07:16:16 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 06:50:23 GMT]]></title><description><![CDATA[<p dir="auto">SGLang相對比較少個人用戶吧...應該</p>
]]></description><link>https://lcz.me/post/10353</link><guid isPermaLink="true">https://lcz.me/post/10353</guid><dc:creator><![CDATA[566656661]]></dc:creator><pubDate>Thu, 23 Jul 2026 06:50:23 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 06:48:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 基本上没找到。。没有可信信息。</p>
]]></description><link>https://lcz.me/post/10352</link><guid isPermaLink="true">https://lcz.me/post/10352</guid><dc:creator><![CDATA[用户名违规]]></dc:creator><pubDate>Thu, 23 Jul 2026 06:48:28 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 05:53:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a><br />
这个简单，你让你的AI助手联网扒一下就可以了，让他回答的时候带上信源，你顺便去核实一下</p>
]]></description><link>https://lcz.me/post/10346</link><guid isPermaLink="true">https://lcz.me/post/10346</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 23 Jul 2026 05:53:31 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 05:50:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 其实我想知道，别人的4090最顶的能跑多少，不知道是不是我的参数不太对。</p>
]]></description><link>https://lcz.me/post/10345</link><guid isPermaLink="true">https://lcz.me/post/10345</guid><dc:creator><![CDATA[用户名违规]]></dc:creator><pubDate>Thu, 23 Jul 2026 05:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 03:34:44 GMT]]></title><description><![CDATA[<p dir="auto">大大相當可以了，我的環境 llama.cpp +rpc 顯卡 RTX 5060 ti 16G + RTX 3060 12G相當丐版的設備及環境跑27B，18 tok/s</p>
]]></description><link>https://lcz.me/post/10327</link><guid isPermaLink="true">https://lcz.me/post/10327</guid><dc:creator><![CDATA[Abel T.P. Han]]></dc:creator><pubDate>Thu, 23 Jul 2026 03:34:44 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 03:26:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a><br />
27b稠密模型跑这个速度相当可以了呀，1500左右就算是比较可以接受了，在agent场景底下。要是又只有几百的话，那会等冒烟的。</p>
]]></description><link>https://lcz.me/post/10322</link><guid isPermaLink="true">https://lcz.me/post/10322</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Thu, 23 Jul 2026 03:26:31 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 02:51:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> prefill 1800-1400平均值。但是这个值我就是不清楚在4090D上面属于什么水平。cpp跑只有几百，vllm好像也不太行。</p>
]]></description><link>https://lcz.me/post/10321</link><guid isPermaLink="true">https://lcz.me/post/10321</guid><dc:creator><![CDATA[用户名违规]]></dc:creator><pubDate>Thu, 23 Jul 2026 02:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 01:33:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E7%94%A8%E6%88%B7%E5%90%8D%E8%BF%9D%E8%A7%84" aria-label="Profile: 用户名违规">@<bdi>用户名违规</bdi></a> prefill快很多吧，sg-lang最主要是缓存啊。</p>
]]></description><link>https://lcz.me/post/10317</link><guid isPermaLink="true">https://lcz.me/post/10317</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 23 Jul 2026 01:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to SGLANG跑RTX4090D-48G-QWEN3.6-27B-FP8配置 on Thu, 23 Jul 2026 01:30:50 GMT]]></title><description><![CDATA[<p dir="auto">你这配置跑15t/s是正常的，不是配置问题。原因主要有几个：</p>
<ol>
<li>
<p dir="auto">llama.cpp 的 GGUF 格式本身有量化开销 — FP8 在 SGLang 里是原生支持的，llama.cpp 这边要跑 Q4_K_M 或 Q5_K_M 才能接近 SGLang 的速度，但精度有损失。而你跑的是 FP8，llama.cpp 对 FP8 支持不如 SGLang 直接。</p>
</li>
<li>
<p dir="auto">内存带宽瓶颈 — 你的 DDR3 1066 是主要原因。llama.cpp 的 prompt processing 阶段要频繁读模型权重，DDR3 1066 的四通道也就约 68GB/s 带宽。SGLang 的 RadixAttention 和 prefix caching 能大幅减少 KV cache 读写，所以对系统内存带宽的依赖比 llama.cpp 小很多。</p>
</li>
<li>
<p dir="auto">对比数据：4090D 48G 跑 27B FP8 在 llama.cpp 上，如果开 --no-mmap 把模型完全加载到 GPU，应该能到 20-25t/s。你现在只有 15t/s，很可能是系统内存瓶颈导致 GPU 没吃满。</p>
</li>
</ol>
<p dir="auto">建议：</p>
<ul>
<li>如果要用 llama.cpp，加 --no-mmap 确保模型驻留 GPU VRAM（你的 48G 完全够装 27B FP8，约 27GB）</li>
<li>设置 --ctx-size 8192 避免 context 膨胀拖慢 decode</li>
<li>SGLang 28t/s 对 4090D 来说已经是很好的成绩了，说明你配置没问题</li>
</ul>
<p dir="auto">总的来说：SGLang 的 28t/s 是合理的，llama.cpp 15t/s 也正常（受平台和量化格式限制）。不是你的配置有问题。</p>
]]></description><link>https://lcz.me/post/10316</link><guid isPermaLink="true">https://lcz.me/post/10316</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 23 Jul 2026 01:30:50 GMT</pubDate></item></channel></rss>