請問有人試過 Zagitta 的 gpu-unlock 嗎?
-
官方網址: https://github.com/Zagitta/gpu-unlock
我有一片 3090, 因爲顯存就24GB, 自然不會用 BF16.
現在在strata 上面, 要麼就用 int8 要麼就用 iq3 (system DRAM 有128GB).
請問: 既然我用的是量化版本, 這是不是意味著gpu-unlock這針對BF16的優化對我來說不會有任何幫助?
先謝了
Harv
-
很明显平时不跟帖的
有帮助 部分prefill 是用bf16 来算
-
有帮助,但不是全部。gpu-unlock 这类补丁主要优化 BF16/FP16 的 GEMM 与 attention 内核路径;量化模型里权重虽然是 IQ3/INT8,prefill 的激活、attention、norm/softmax 以及 decode 的矩阵乘通常仍走 BF16/FP16。所以:
- prefill 段更可能受益,尤其长 prompt 或 batch>1;
- decode 段主要受 24G 显存带宽限制,补丁能省一些 kernel 开销,但不会有数量级提升;
- 如果补丁只对「BF16 权重常驻」的路径生效,对 IQ3/INT8 权重不一定有用。
建议同一模型、同一 ctx,在开/关补丁下分别测 pp(prefill)和 tg(decode),别只看总 t/s;同时确认 Strata 的 IQ3 后端是否已经用自定义 dequant + FP16 GEMM,若已经走这条路径,补丁收益会更小。
-
很明显平时不跟帖的
有帮助 部分prefill 是用bf16 来算
@applejuice 多謝! 我回頭叫驛神試試
-
此主題已被删除!
-
嘗試了. 在我系統上面, 幫助非常有限
a//scratch/output/gpu-unlock-AB-headline.md → b//scratch/output/gpu-unlock-AB-headline.md
@@ -0,0 +1,19 @@
+### gpu-unlock A/B — Strata prefill on RTX 3090 (dell7810)
+
+| prompt | arm | median (t/s) | min .. max | stdev | CV% | decode (t/s) |
+|---:|---|---:|---|---:|---:|---:|
+| 21,656 | A — stock | 1653.7 | 1608.2 .. 1712.8 | 40.8 | 2.5% | 25.4 |
+| 21,656 | B — unlocked | 1819.6 | 1698.7 .. 1825.6 | 54.4 | 3.0% | 27.1 |
+| 108,059 | A — stock | 1231.8 | 1208.7 .. 1246.6 | 15.0 | 1.2% | 24.3 |
+| 108,059 | B — unlocked | 1313.1 | 1291.6 .. 1329.3 | 15.4 | 1.2% | 25.1 |
+
+Δ B vs A: +10.0% @ 21.6k · +6.6% @ 108k — the 108k arms are fully disjoint
+(A max 1246.6 < B min 1291.6).
+
+n=5 per arm per size · every sample started at 55.0 °C die temperature · fresh engine
+restart per sample · GPU sampled every 2 s during the request · temperature 0, reasoning
+off,cache_n=0asserted on every row · A = stock, B = gpu-unlock v2.0.0 active
+
+caveat: production starts warm rather than at 55 °C, so the real-world gain is likely
+smaller than these controlled figures. Absolute throughput is limited by this card's
+74 °C thermal wall, not by tensor throughput. -
所以我说部分

-
其實我壓根就抱著有棗沒棗打三竿的心態: 我的機器是PCIe-3 / DDR4. 所以不管是Prefill 還是 decode, GPU 都沒跑滿. 本來期待的奇蹟沒出現, 正常.
Strata 能讓我跑125B的模型, 已經讓我喜出望外. 當然, 貪心的我是希望能多跑幾個線程, 但是從速度方面, 我其實已經蠻滿足了