Upload v2 memory tiers (default and forced row-parallel) with path counters
Browse files- README.md +37 -19
- bench.sh +2 -1
- flint-epq.patch +28 -9
- results/logs/common/v2_mem_summary.txt +30 -0
- results/logs/v1/kl_decode_ub1_t16_modec_1g_vs_native.log +69 -0
- results/logs/v2/kl_decode_ub1_t16_forced_rowpar_1g_vs_native.log +69 -0
- results/logs/v2/mem_default_16g_run1.log +56 -0
- results/logs/v2/mem_default_16g_run2.log +56 -0
- results/logs/v2/mem_default_16g_run3.log +56 -0
- results/logs/v2/mem_default_2g_run1.log +56 -0
- results/logs/v2/mem_default_2g_run2.log +56 -0
- results/logs/v2/mem_default_2g_run3.log +56 -0
- results/logs/v2/mem_default_32g_run1.log +58 -0
- results/logs/v2/mem_default_32g_run2.log +58 -0
- results/logs/v2/mem_default_32g_run3.log +58 -0
- results/logs/v2/mem_default_4g_run1.log +56 -0
- results/logs/v2/mem_default_4g_run2.log +56 -0
- results/logs/v2/mem_default_4g_run3.log +56 -0
- results/logs/v2/mem_default_8g_run1.log +56 -0
- results/logs/v2/mem_default_8g_run2.log +56 -0
- results/logs/v2/mem_default_8g_run3.log +56 -0
- results/logs/v2/mem_forced_16g_run1.log +56 -0
- results/logs/v2/mem_forced_16g_run2.log +56 -0
- results/logs/v2/mem_forced_16g_run3.log +56 -0
- results/logs/v2/mem_forced_2g_run1.log +56 -0
- results/logs/v2/mem_forced_2g_run2.log +56 -0
- results/logs/v2/mem_forced_2g_run3.log +56 -0
- results/logs/v2/mem_forced_32g_run1.log +56 -0
- results/logs/v2/mem_forced_32g_run2.log +56 -0
- results/logs/v2/mem_forced_32g_run3.log +56 -0
- results/logs/v2/mem_forced_4g_run1.log +56 -0
- results/logs/v2/mem_forced_4g_run2.log +56 -0
- results/logs/v2/mem_forced_4g_run3.log +56 -0
- results/logs/v2/mem_forced_8g_run1.log +56 -0
- results/logs/v2/mem_forced_8g_run2.log +56 -0
- results/logs/v2/mem_forced_8g_run3.log +56 -0
- results/test-status.md +8 -2
- src/sdq_moe.cpp +14 -0
- src/sdq_pager.cpp +1 -0
- src/sdq_pager.h +3 -0
README.md
CHANGED
|
@@ -101,30 +101,48 @@ Findings:
|
|
| 101 |
- **EPQ is not bit-identical to native.** Float summation order differs, and 8-bit activation quantization amplifies the difference through the layers. The native `-ub 1` vs `-ub 64` control gives a KL divergence of the same magnitude (0.034 vs 0.044). The deviation is in the range of ordinary reordering sensitivity for this checkpoint; it is a measured conclusion from these runs, not a proof of exact equivalence.
|
| 102 |
- **Greedy text identity is fragile.** At 8 threads the 24-token output matches native exactly; at 16 threads it diverges after 12 characters, for v1 and v2 alike. The divergence is a near-tie argmax flip caused by the reordering above.
|
| 103 |
|
| 104 |
-
## Memory benchmark
|
| 105 |
|
| 106 |
`bench.sh <GiB> <pager 0|1>` runs a fixed prompt and samples process-tree RSS every 20 ms. If sampled RSS exceeds the requested limit, the watchdog kills the run. This is a sampled RSS watchdog, not a kernel/cgroup hard limit: RSS may briefly exceed the threshold between samples, and it counts file-backed pages as reported by `/proc`. `tools/runmem_cgroup.py` (cgroup-v2 `MemoryMax`) is included but **untested in this environment**; it requires a host with writable cgroup v2 and systemd.
|
| 107 |
|
| 108 |
-
|
| 109 |
-
for cap in 2 4 8 16 32; do ./bench.sh "$cap" 1; done # THREADS defaults to 16
|
| 110 |
-
```
|
| 111 |
-
|
| 112 |
-
Override with `MODEL`, `ARENA_MB`, `THREADS`. Workload: context 128, batch 32, ubatch 16, 8 generated tokens, prefetch off.
|
| 113 |
|
| 114 |
-
|
|
|
|
|
|
|
| 115 |
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
| 2 GiB | v1 | 256 MiB (105) | 2.014 GiB | 6.9 t/s | 3.9 t/s |
|
| 121 |
-
| 4 GiB | v1 | 1 GiB (420) | 2.765 GiB | 7.1 t/s | 4.4 t/s |
|
| 122 |
-
| 8 GiB | v1 | 3 GiB (1,260) | 4.766 GiB | 9.4 t/s | 4.4 t/s |
|
| 123 |
-
| 16 GiB | v1 | 10 GiB (4,201) | 11.767 GiB | 12.5 t/s | 5.2 t/s |
|
| 124 |
-
| 32 GiB | v1 | 18 GiB (7,561 of 12,032) | 19.766 GiB | 12.0 t/s | 5.2 t/s |
|
| 125 |
-
| 32 GiB | v2 | 28.7 GiB (12,061, all experts) | 30.473 GiB | 33.7 t/s | 13.8 t/s |
|
| 126 |
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
## Throughput (v1, v2, native)
|
| 130 |
|
|
@@ -145,7 +163,7 @@ v2 generates about 2.9× faster than v1 and about 75 % of native generation spee
|
|
| 145 |
|---|---|---|
|
| 146 |
| Expert paging, SSD→arena, per-expert custom op ("mode C") | v1 | Active in all v1 and v2 runs (prefill always uses it) |
|
| 147 |
| Preload all experts into the arena | v2 | Active when the arena holds all 12,032 experts (≥ 28.6 GiB) |
|
| 148 |
-
| Row-parallel MoE, decode (16-row blocks shared across threads) | v2 | Active for gated Flint experts when the thread count exceeds the number of needed experts (decode, ≥ 7 threads). Ported in this version. |
|
| 149 |
| Nemotron no-gate / ReLU² path | v1, v2 | Not used by Flint |
|
| 150 |
|
| 151 |
The Flint hook routes gated SiLU experts through the pager. The v2 row-parallel gated path computes gate and up for the same row block and applies the same SwiGLU function as the mode C path.
|
|
|
|
| 101 |
- **EPQ is not bit-identical to native.** Float summation order differs, and 8-bit activation quantization amplifies the difference through the layers. The native `-ub 1` vs `-ub 64` control gives a KL divergence of the same magnitude (0.034 vs 0.044). The deviation is in the range of ordinary reordering sensitivity for this checkpoint; it is a measured conclusion from these runs, not a proof of exact equivalence.
|
| 102 |
- **Greedy text identity is fragile.** At 8 threads the 24-token output matches native exactly; at 16 threads it diverges after 12 characters, for v1 and v2 alike. The divergence is a near-tie argmax flip caused by the reordering above.
|
| 103 |
|
| 104 |
+
## Memory benchmark: v1 and v2 at each tier
|
| 105 |
|
| 106 |
`bench.sh <GiB> <pager 0|1>` runs a fixed prompt and samples process-tree RSS every 20 ms. If sampled RSS exceeds the requested limit, the watchdog kills the run. This is a sampled RSS watchdog, not a kernel/cgroup hard limit: RSS may briefly exceed the threshold between samples, and it counts file-backed pages as reported by `/proc`. `tools/runmem_cgroup.py` (cgroup-v2 `MemoryMax`) is included but **untested in this environment**; it requires a host with writable cgroup v2 and systemd.
|
| 107 |
|
| 108 |
+
Version is selected with environment variables:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
+
- **v1**: `SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0` (the `bench.sh` defaults)
|
| 111 |
+
- **v2 as designed**: `SDQ_PRELOAD=1 SDQ_ROW_PARALLEL=1`
|
| 112 |
+
- **v2 forced (ablation)**: as v2, plus `SDQ_ROWPAR_MAX_MISS=100000`, which lets row-parallel run even when some needed experts are not resident
|
| 113 |
|
| 114 |
+
```bash
|
| 115 |
+
for cap in 2 4 8 16 32; do ./bench.sh "$cap" 1; done # v1, 16 threads
|
| 116 |
+
SDQ_PRELOAD=1 SDQ_ROW_PARALLEL=1 ARENA_MB=29400 ./bench.sh 32 1 # v2 at 32 GiB
|
| 117 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
+
Workload: context 128, batch 32, ubatch 16, 8 generated tokens, 16 threads, prefetch off. Each row is the median of 3 runs, with all runs exited 0, swap 0 and below their threshold. The path counter (`MoE op 路徑計數`) is printed at exit and shows how many MoE ops used row-parallel (RP) and mode C.
|
| 120 |
+
|
| 121 |
+
| Tier | Version | Arena (slots) | Peak RSS | Prompt | Generation | RP / mode C ops |
|
| 122 |
+
|---:|---|---:|---:|---:|---:|---:|
|
| 123 |
+
| 2 GiB | v1 | 256 MiB (105) | 2.014 GiB | 6.9 t/s | 3.9 t/s | 0 / 516 |
|
| 124 |
+
| 2 GiB | v2 as designed | 256 MiB (105) | 2.014 GiB | 6.9 t/s | 3.9 t/s | 0 / 516 |
|
| 125 |
+
| 2 GiB | v2 forced | 256 MiB (105) | 2.009 GiB | 6.9 t/s | 3.9 t/s | 425 / 91 |
|
| 126 |
+
| 4 GiB | v1 | 1 GiB (420) | 2.765 GiB | 7.1 t/s | 4.4 t/s | 0 / 516 |
|
| 127 |
+
| 4 GiB | v2 as designed | 1 GiB (420) | 2.765 GiB | 7.1 t/s | 4.6 t/s | 0 / 516 |
|
| 128 |
+
| 4 GiB | v2 forced | 1 GiB (420) | 2.759 GiB | 7.2 t/s | 4.8 t/s | 425 / 91 |
|
| 129 |
+
| 8 GiB | v1 | 3 GiB (1,260) | 4.766 GiB | 9.4 t/s | 4.4 t/s | 0 / 516 |
|
| 130 |
+
| 8 GiB | v2 as designed | 3 GiB (1,260) | 4.766 GiB | 9.6 t/s | 4.7 t/s | 0 / 516 |
|
| 131 |
+
| 8 GiB | v2 forced | 3 GiB (1,260) | 4.759 GiB | 9.6 t/s | 5.0 t/s | 425 / 91 |
|
| 132 |
+
| 16 GiB | v1 | 10 GiB (4,201) | 11.767 GiB | 12.5 t/s | 5.2 t/s | 0 / 516 |
|
| 133 |
+
| 16 GiB | v2 as designed | 10 GiB (4,201) | 11.767 GiB | 13.0 t/s | 5.3 t/s | 12 / 504 |
|
| 134 |
+
| 16 GiB | v2 forced | 10 GiB (4,201) | 11.760 GiB | 12.6 t/s | 5.3 t/s | 425 / 91 |
|
| 135 |
+
| 32 GiB | v1 | 18 GiB (7,561 of 12,032) | 19.766 GiB | 12.0 t/s | 5.2 t/s | 0 / 516 |
|
| 136 |
+
| 32 GiB | v2 as designed | 28.7 GiB (12,061, all experts) | 30.473 GiB | 35.0 t/s | 14.2 t/s | 425 / 91 |
|
| 137 |
+
| 32 GiB | v2 forced | 18 GiB (7,561 of 12,032) | 19.759 GiB | 11.1 t/s | 5.8 t/s | 425 / 91 |
|
| 138 |
+
|
| 139 |
+
What this shows:
|
| 140 |
+
|
| 141 |
+
- **v2 as designed only activates at the 32 GiB tier with a full arena.** The preload and the row-parallel guard need every needed expert resident. At 2–8 GiB no layer ever has all its experts resident, so v2 runs the same mode C path as v1 (0 RP ops). The 4 and 8 GiB rows differ from v1 only by run-to-run noise (about ±10 %). At 16 GiB, 12 of 516 ops happened to find their experts resident and took the row-parallel path; the effect on speed is within noise.
|
| 142 |
+
- **v2 at 32 GiB with the full arena: generation 14.2 t/s vs 5.2 t/s for v1 at the same tier (about 2.7×).** Peak RSS 30.5 GiB, under the 32 GiB watchdog. This is the only v2 configuration that the design targets.
|
| 143 |
+
- **Forced row-parallel (ablation):** generation rises about 9–14 % at 4, 8 and 32 GiB (4.8, 5.0, 5.8 t/s vs 4.4, 4.4, 5.2). These gains are at the edge of the run-to-run noise and need more runs before they are claimed. Output is numerically unchanged: decode-mode KL at a 1 GiB forced arena is 0.044057, identical at reported precision to v1 with a full arena (see `results/logs/v2/kl_decode_ub1_t16_forced_rowpar_1g_vs_native.log`).
|
| 144 |
+
|
| 145 |
+
Raw logs: v1 `results/logs/v1/mem_v1_*.log`; v2 `results/logs/v2/mem_default_*.log` and `results/logs/v2/mem_forced_*.log`; summaries `results/logs/common/v2_mem_summary.txt` and `results/logs/common/mem_summary.txt`. The earlier `results/logs/v2/v2_32g_run*.log` are the same 32 GiB configuration from an earlier command and are superseded by `mem_default_32g_*`.
|
| 146 |
|
| 147 |
## Throughput (v1, v2, native)
|
| 148 |
|
|
|
|
| 163 |
|---|---|---|
|
| 164 |
| Expert paging, SSD→arena, per-expert custom op ("mode C") | v1 | Active in all v1 and v2 runs (prefill always uses it) |
|
| 165 |
| Preload all experts into the arena | v2 | Active when the arena holds all 12,032 experts (≥ 28.6 GiB) |
|
| 166 |
+
| Row-parallel MoE, decode (16-row blocks shared across threads) | v2 | Active for gated Flint experts when every needed expert is resident (default guard) and the thread count exceeds the number of needed experts (decode, ≥ 7 threads). `SDQ_ROWPAR_MAX_MISS` relaxes the residency guard (ablation only). Ported in this version. |
|
| 167 |
| Nemotron no-gate / ReLU² path | v1, v2 | Not used by Flint |
|
| 168 |
|
| 169 |
The Flint hook routes gated SiLU experts through the pager. The v2 row-parallel gated path computes gate and up for the same row block and applies the same SwiGLU function as the mode C path.
|
bench.sh
CHANGED
|
@@ -30,7 +30,8 @@ if [[ ! -r "$model" ]]; then
|
|
| 30 |
echo "GGUF not readable: $model" >&2
|
| 31 |
exit 2
|
| 32 |
fi
|
| 33 |
-
|
|
|
|
| 34 |
"$root/build/bin/llama-cli" -m "$model" -c 128 -b 32 -ub 16
|
| 35 |
-p "Explain in one sentence why the sky is blue." -n 8 -t "$threads" --temp 0 -st --simple-io)
|
| 36 |
|
|
|
|
| 30 |
echo "GGUF not readable: $model" >&2
|
| 31 |
exit 2
|
| 32 |
fi
|
| 33 |
+
# 版本選擇:預設 v1(SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0);v2 請設 SDQ_PRELOAD=1 SDQ_ROW_PARALLEL=1
|
| 34 |
+
cmd=(env SDQ_PAGER="$pager" SDQ_PREFETCH=0 SDQ_ARENA_MB="$arena_mb" SDQ_PRELOAD="${SDQ_PRELOAD:-0}" SDQ_ROW_PARALLEL="${SDQ_ROW_PARALLEL:-0}"
|
| 35 |
"$root/build/bin/llama-cli" -m "$model" -c 128 -b 32 -ub 16
|
| 36 |
-p "Explain in one sentence why the sky is blue." -n 8 -t "$threads" --temp 0 -st --simple-io)
|
| 37 |
|
flint-epq.patch
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
diff --git a/bench.sh b/bench.sh
|
| 2 |
new file mode 100755
|
| 3 |
-
index 0000000..
|
| 4 |
--- /dev/null
|
| 5 |
+++ b/bench.sh
|
| 6 |
-
@@ -0,0 +1,
|
| 7 |
+#!/usr/bin/env bash
|
| 8 |
+set -euo pipefail
|
| 9 |
+
|
|
@@ -36,7 +36,8 @@ index 0000000..541daff
|
|
| 36 |
+ echo "GGUF not readable: $model" >&2
|
| 37 |
+ exit 2
|
| 38 |
+fi
|
| 39 |
-
+
|
|
|
|
| 40 |
+ "$root/build/bin/llama-cli" -m "$model" -c 128 -b 32 -ub 16
|
| 41 |
+ -p "Explain in one sentence why the sky is blue." -n 8 -t "$threads" --temp 0 -st --simple-io)
|
| 42 |
+
|
|
@@ -463,10 +464,10 @@ index 0000000..11c6bc5
|
|
| 463 |
+} // namespace sdq
|
| 464 |
diff --git a/src/sdq_moe.cpp b/src/sdq_moe.cpp
|
| 465 |
new file mode 100644
|
| 466 |
-
index 0000000..
|
| 467 |
--- /dev/null
|
| 468 |
+++ b/src/sdq_moe.cpp
|
| 469 |
-
@@ -0,0 +1,
|
| 470 |
+// SDQ 被分頁的 MoE FFN(自訂 ggml op)
|
| 471 |
+//
|
| 472 |
+// 為什麼要自己算:上游 build_moe_ffn() 用 ggml_mul_mat_id 直接對
|
|
@@ -1222,6 +1223,10 @@ index 0000000..14cc23e
|
|
| 1222 |
+ }
|
| 1223 |
+}
|
| 1224 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1225 |
+static void moe_custom_op(ggml_tensor * dst, int ith, int nth, void * userdata) {
|
| 1226 |
+ layer_rec * R = (layer_rec *) userdata;
|
| 1227 |
+ pager & P = pager::instance();
|
|
@@ -1357,6 +1362,10 @@ index 0000000..14cc23e
|
|
| 1357 |
+ }
|
| 1358 |
+ if (nth > 1) { R->bar.sync(nth); }
|
| 1359 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1360 |
+ if (R->use_rowpar) {
|
| 1361 |
+ moe_row_parallel(dst, ith, nth, R, L, cur, wts, wts_nb0, wts_nb1, n_embd, n_tok);
|
| 1362 |
+ }
|
|
@@ -1529,6 +1538,12 @@ index 0000000..14cc23e
|
|
| 1529 |
+ PROF_ADD(op_ns, _tg);
|
| 1530 |
+}
|
| 1531 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1532 |
+// 輸出計時結果(sdq_shutdown 呼叫)
|
| 1533 |
+void sdq_print_time_profile() {
|
| 1534 |
+ if (!prof_on()) {
|
|
@@ -1651,10 +1666,10 @@ index 0000000..14cc23e
|
|
| 1651 |
+} // namespace sdq
|
| 1652 |
diff --git a/src/sdq_pager.cpp b/src/sdq_pager.cpp
|
| 1653 |
new file mode 100644
|
| 1654 |
-
index 0000000..
|
| 1655 |
--- /dev/null
|
| 1656 |
+++ b/src/sdq_pager.cpp
|
| 1657 |
-
@@ -0,0 +1,
|
| 1658 |
+// SDQ expert pager 實作:見 sdq_pager.h 的設計說明
|
| 1659 |
+#include "sdq_pager.h"
|
| 1660 |
+
|
|
@@ -4148,6 +4163,7 @@ index 0000000..6de65a3
|
|
| 4148 |
+void sdq_shutdown() {
|
| 4149 |
+ pager & P = pager::instance();
|
| 4150 |
+ sdq_print_time_profile();
|
|
|
|
| 4151 |
+ P.dump_stats("shutdown");
|
| 4152 |
+ P.print_summary();
|
| 4153 |
+ P.shutdown();
|
|
@@ -4155,10 +4171,10 @@ index 0000000..6de65a3
|
|
| 4155 |
+} // namespace sdq
|
| 4156 |
diff --git a/src/sdq_pager.h b/src/sdq_pager.h
|
| 4157 |
new file mode 100644
|
| 4158 |
-
index 0000000..
|
| 4159 |
--- /dev/null
|
| 4160 |
+++ b/src/sdq_pager.h
|
| 4161 |
-
@@ -0,0 +1,
|
| 4162 |
+// SDQ expert pager:SSD → RAM → CPU 的 MoE 專家分層快取
|
| 4163 |
+//
|
| 4164 |
+// 設計要點
|
|
@@ -4637,6 +4653,9 @@ index 0000000..8e2d34a
|
|
| 4637 |
+// 效能計時探針的結果(SDQ_PROFILE_TIME=1)
|
| 4638 |
+void sdq_print_time_profile();
|
| 4639 |
+
|
|
|
|
|
|
|
|
|
|
| 4640 |
+// 自我測試:算一次指定 expert 的 MoE 輸出(給 NumPy 對照用)
|
| 4641 |
+int sdq_moe_selftest(int il, int ie, const float * x, float * out_io,
|
| 4642 |
+ int64_t n_embd, int64_t n_ff, int n_tok);
|
|
|
|
| 1 |
diff --git a/bench.sh b/bench.sh
|
| 2 |
new file mode 100755
|
| 3 |
+
index 0000000..cb1cce1
|
| 4 |
--- /dev/null
|
| 5 |
+++ b/bench.sh
|
| 6 |
+
@@ -0,0 +1,38 @@
|
| 7 |
+#!/usr/bin/env bash
|
| 8 |
+set -euo pipefail
|
| 9 |
+
|
|
|
|
| 36 |
+ echo "GGUF not readable: $model" >&2
|
| 37 |
+ exit 2
|
| 38 |
+fi
|
| 39 |
+
+# 版本選擇:預設 v1(SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0);v2 請設 SDQ_PRELOAD=1 SDQ_ROW_PARALLEL=1
|
| 40 |
+
+cmd=(env SDQ_PAGER="$pager" SDQ_PREFETCH=0 SDQ_ARENA_MB="$arena_mb" SDQ_PRELOAD="${SDQ_PRELOAD:-0}" SDQ_ROW_PARALLEL="${SDQ_ROW_PARALLEL:-0}"
|
| 41 |
+ "$root/build/bin/llama-cli" -m "$model" -c 128 -b 32 -ub 16
|
| 42 |
+ -p "Explain in one sentence why the sky is blue." -n 8 -t "$threads" --temp 0 -st --simple-io)
|
| 43 |
+
|
|
|
|
| 464 |
+} // namespace sdq
|
| 465 |
diff --git a/src/sdq_moe.cpp b/src/sdq_moe.cpp
|
| 466 |
new file mode 100644
|
| 467 |
+
index 0000000..c1bbe6e
|
| 468 |
--- /dev/null
|
| 469 |
+++ b/src/sdq_moe.cpp
|
| 470 |
+
@@ -0,0 +1,1196 @@
|
| 471 |
+// SDQ 被分頁的 MoE FFN(自訂 ggml op)
|
| 472 |
+//
|
| 473 |
+// 為什麼要自己算:上游 build_moe_ffn() 用 ggml_mul_mat_id 直接對
|
|
|
|
| 1223 |
+ }
|
| 1224 |
+}
|
| 1225 |
+
|
| 1226 |
+
+// 每次 MoE op 實際走的路徑計數(v2 row-parallel vs v1 mode C),結束時印出
|
| 1227 |
+
+static std::atomic<uint64_t> g_ops_rowpar{0};
|
| 1228 |
+
+static std::atomic<uint64_t> g_ops_modec{0};
|
| 1229 |
+
+
|
| 1230 |
+static void moe_custom_op(ggml_tensor * dst, int ith, int nth, void * userdata) {
|
| 1231 |
+ layer_rec * R = (layer_rec *) userdata;
|
| 1232 |
+ pager & P = pager::instance();
|
|
|
|
| 1362 |
+ }
|
| 1363 |
+ if (nth > 1) { R->bar.sync(nth); }
|
| 1364 |
+
|
| 1365 |
+
+ // 計數:每次 op 實際走哪條路徑(ith==0 記一次;barrier 之後 use_rowpar 已確定)
|
| 1366 |
+
+ if (ith == 0) {
|
| 1367 |
+
+ (R->use_rowpar ? g_ops_rowpar : g_ops_modec).fetch_add(1, std::memory_order_relaxed);
|
| 1368 |
+
+ }
|
| 1369 |
+ if (R->use_rowpar) {
|
| 1370 |
+ moe_row_parallel(dst, ith, nth, R, L, cur, wts, wts_nb0, wts_nb1, n_embd, n_tok);
|
| 1371 |
+ }
|
|
|
|
| 1538 |
+ PROF_ADD(op_ns, _tg);
|
| 1539 |
+}
|
| 1540 |
+
|
| 1541 |
+
+// 輸出路徑計數(sdq_shutdown 呼叫)
|
| 1542 |
+
+void sdq_print_op_counts() {
|
| 1543 |
+
+ fprintf(stderr, "[sdq] MoE op 路徑計數:row-parallel %llu 次,mode C %llu 次\n",
|
| 1544 |
+
+ (unsigned long long) g_ops_rowpar.load(), (unsigned long long) g_ops_modec.load());
|
| 1545 |
+
+}
|
| 1546 |
+
+
|
| 1547 |
+// 輸出計時結果(sdq_shutdown 呼叫)
|
| 1548 |
+void sdq_print_time_profile() {
|
| 1549 |
+ if (!prof_on()) {
|
|
|
|
| 1666 |
+} // namespace sdq
|
| 1667 |
diff --git a/src/sdq_pager.cpp b/src/sdq_pager.cpp
|
| 1668 |
new file mode 100644
|
| 1669 |
+
index 0000000..11c9331
|
| 1670 |
--- /dev/null
|
| 1671 |
+++ b/src/sdq_pager.cpp
|
| 1672 |
+
@@ -0,0 +1,2499 @@
|
| 1673 |
+// SDQ expert pager 實作:見 sdq_pager.h 的設計說明
|
| 1674 |
+#include "sdq_pager.h"
|
| 1675 |
+
|
|
|
|
| 4163 |
+void sdq_shutdown() {
|
| 4164 |
+ pager & P = pager::instance();
|
| 4165 |
+ sdq_print_time_profile();
|
| 4166 |
+
+ sdq_print_op_counts();
|
| 4167 |
+ P.dump_stats("shutdown");
|
| 4168 |
+ P.print_summary();
|
| 4169 |
+ P.shutdown();
|
|
|
|
| 4171 |
+} // namespace sdq
|
| 4172 |
diff --git a/src/sdq_pager.h b/src/sdq_pager.h
|
| 4173 |
new file mode 100644
|
| 4174 |
+
index 0000000..b109f33
|
| 4175 |
--- /dev/null
|
| 4176 |
+++ b/src/sdq_pager.h
|
| 4177 |
+
@@ -0,0 +1,510 @@
|
| 4178 |
+// SDQ expert pager:SSD → RAM → CPU 的 MoE 專家分層快取
|
| 4179 |
+//
|
| 4180 |
+// 設計要點
|
|
|
|
| 4653 |
+// 效能計時探針的結果(SDQ_PROFILE_TIME=1)
|
| 4654 |
+void sdq_print_time_profile();
|
| 4655 |
+
|
| 4656 |
+
+// MoE op 路徑計數(row-parallel / mode C),sdq_shutdown 時印出
|
| 4657 |
+
+void sdq_print_op_counts();
|
| 4658 |
+
+
|
| 4659 |
+// 自我測試:算一次指定 expert 的 MoE 輸出(給 NumPy 對照用)
|
| 4660 |
+int sdq_moe_selftest(int il, int ie, const float * x, float * out_io,
|
| 4661 |
+ int64_t n_embd, int64_t n_ff, int n_tok);
|
results/logs/common/v2_mem_summary.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
default 2 GiB run1 | Prompt: 7.1 t/s | Generation: 3.9 | "peak_gib": 2.013 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 2 |
+
default 2 GiB run2 | Prompt: 6.6 t/s | Generation: 3.9 | "peak_gib": 2.015 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 3 |
+
default 2 GiB run3 | Prompt: 6.9 t/s | Generation: 3.9 | "peak_gib": 2.014 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 4 |
+
default 4 GiB run1 | Prompt: 7.1 t/s | Generation: 4.5 | "peak_gib": 2.765 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 5 |
+
default 4 GiB run2 | Prompt: 7.0 t/s | Generation: 4.6 | "peak_gib": 2.766 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 6 |
+
default 4 GiB run3 | Prompt: 7.1 t/s | Generation: 4.6 | "peak_gib": 2.765 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 7 |
+
default 8 GiB run1 | Prompt: 9.3 t/s | Generation: 4.6 | "peak_gib": 4.766 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 8 |
+
default 8 GiB run2 | Prompt: 9.7 t/s | Generation: 4.7 | "peak_gib": 4.766 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 9 |
+
default 8 GiB run3 | Prompt: 9.6 t/s | Generation: 5.0 | "peak_gib": 4.766 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 0 次,mode C 516
|
| 10 |
+
default 16 GiB run1 | Prompt: 13.0 t/s | Generation: 5.3 | "peak_gib": 11.767 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 12 次,mode C 504
|
| 11 |
+
default 16 GiB run2 | Prompt: 12.4 t/s | Generation: 5.0 | "peak_gib": 11.768 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 12 次,mode C 504
|
| 12 |
+
default 16 GiB run3 | Prompt: 13.2 t/s | Generation: 5.3 | "peak_gib": 11.767 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 12 次,mode C 504
|
| 13 |
+
default 32 GiB run1 | Prompt: 35.1 t/s | Generation: 13.4 | "peak_gib": 30.473 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 14 |
+
default 32 GiB run2 | Prompt: 33.8 t/s | Generation: 14.7 | "peak_gib": 30.473 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 15 |
+
default 32 GiB run3 | Prompt: 35.0 t/s | Generation: 14.2 | "peak_gib": 30.473 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 16 |
+
forced 2 GiB run1 | Prompt: 5.0 t/s | Generation: 3.9 | "peak_gib": 2.01 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 17 |
+
forced 2 GiB run2 | Prompt: 6.9 t/s | Generation: 3.9 | "peak_gib": 2.009 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 18 |
+
forced 2 GiB run3 | Prompt: 6.9 t/s | Generation: 3.9 | "peak_gib": 2.009 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 19 |
+
forced 4 GiB run1 | Prompt: 7.2 t/s | Generation: 4.7 | "peak_gib": 2.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 20 |
+
forced 4 GiB run2 | Prompt: 6.8 t/s | Generation: 4.8 | "peak_gib": 2.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 21 |
+
forced 4 GiB run3 | Prompt: 7.2 t/s | Generation: 4.8 | "peak_gib": 2.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 22 |
+
forced 8 GiB run1 | Prompt: 8.5 t/s | Generation: 5.0 | "peak_gib": 4.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 23 |
+
forced 8 GiB run2 | Prompt: 9.8 t/s | Generation: 5.0 | "peak_gib": 4.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 24 |
+
forced 8 GiB run3 | Prompt: 9.6 t/s | Generation: 5.2 | "peak_gib": 4.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 25 |
+
forced 16 GiB run1 | Prompt: 12.6 t/s | Generation: 5.3 | "peak_gib": 11.761 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 26 |
+
forced 16 GiB run2 | Prompt: 11.9 t/s | Generation: 5.2 | "peak_gib": 11.76 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 27 |
+
forced 16 GiB run3 | Prompt: 12.7 t/s | Generation: 5.6 | "peak_gib": 11.76 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 28 |
+
forced 32 GiB run1 | Prompt: 9.8 t/s | Generation: 5.9 | "peak_gib": 19.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 29 |
+
forced 32 GiB run2 | Prompt: 12.4 t/s | Generation: 5.6 | "peak_gib": 19.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
| 30 |
+
forced 32 GiB run3 | Prompt: 11.1 t/s | Generation: 5.8 | "peak_gib": 19.759 | "swap_kb": 0 | "limit_exceeded": false | "exit": 0 | row-parallel 425 次,mode C 91
|
results/logs/v1/kl_decode_ub1_t16_modec_1g_vs_native.log
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.05 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
0.01.081.608 I cmn init: llama threadpool init, n_threads = 16
|
| 13 |
+
0.01.600.639 I
|
| 14 |
+
0.01.600.765 I system_info: n_threads = 16 (n_threads_batch = 16) / 192 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | AVX512_BF16 = 1 | LLAMAFILE = 1 | OPENMP = 1 | REPACK = 1 |
|
| 15 |
+
0.01.622.353 I kl_divergence: computing over 2 chunks, n_ctx=256, batch_size=256, n_seq=1
|
| 16 |
+
0.56.420.568 I kl_divergence: 54.80 seconds per pass - ETA 1.82 minutes
|
| 17 |
+
|
| 18 |
+
chunk PPL ln(PPL(Q)/PPL(base)) KL Divergence Δp RMS Same top p
|
| 19 |
+
1 13.7740 ± 4.6245 0.02254 ± 0.03440 0.03177 ± 0.01493 4.997 ± 2.174 % 95.276 ± 1.890 %
|
| 20 |
+
2 14.8027 ± 3.1804 0.01283 ± 0.02276 0.04406 ± 0.01523 4.051 ± 1.350 % 92.520 ± 1.654 %
|
| 21 |
+
|
| 22 |
+
====== Perplexity statistics ======
|
| 23 |
+
Mean PPL(Q) : 14.802734 ± 3.180425
|
| 24 |
+
Mean PPL(base) : 14.614086 ± 3.091134
|
| 25 |
+
Cor(ln(PPL(Q)), ln(PPL(base))): 99.44%
|
| 26 |
+
Mean ln(PPL(Q)/PPL(base)) : 0.012826 ± 0.022762
|
| 27 |
+
Mean PPL(Q)/PPL(base) : 1.012909 ± 0.023056
|
| 28 |
+
Mean PPL(Q)-PPL(base) : 0.188648 ± 0.342994
|
| 29 |
+
|
| 30 |
+
====== KL divergence statistics ======
|
| 31 |
+
Mean KLD: 0.044057 ± 0.015234
|
| 32 |
+
Maximum KLD: 3.161583
|
| 33 |
+
99.9% KLD: 2.810790
|
| 34 |
+
99.0% KLD: 0.854633
|
| 35 |
+
95.0% KLD: 0.086102
|
| 36 |
+
90.0% KLD: 0.048945
|
| 37 |
+
Median KLD: 0.005596
|
| 38 |
+
10.0% KLD: 0.000030
|
| 39 |
+
5.0% KLD: 0.000006
|
| 40 |
+
1.0% KLD: 0.000000
|
| 41 |
+
0.1% KLD: -0.000003
|
| 42 |
+
Minimum KLD: -0.000004
|
| 43 |
+
|
| 44 |
+
====== Token probability statistics ======
|
| 45 |
+
Mean Δp: -0.309 ± 0.254 %
|
| 46 |
+
Maximum Δp: 12.097%
|
| 47 |
+
99.9% Δp: 11.854%
|
| 48 |
+
99.0% Δp: 7.841%
|
| 49 |
+
95.0% Δp: 2.800%
|
| 50 |
+
90.0% Δp: 1.211%
|
| 51 |
+
75.0% Δp: 0.182%
|
| 52 |
+
Median Δp: 0.000%
|
| 53 |
+
25.0% Δp: -0.223%
|
| 54 |
+
10.0% Δp: -2.155%
|
| 55 |
+
5.0% Δp: -3.443%
|
| 56 |
+
1.0% Δp: -9.554%
|
| 57 |
+
0.1% Δp: -43.359%
|
| 58 |
+
Minimum Δp: -52.532%
|
| 59 |
+
RMS Δp : 4.051 ± 1.350 %
|
| 60 |
+
Same top p: 92.520 ± 1.654 %
|
| 61 |
+
|
| 62 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 23901 次
|
| 63 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 64 |
+
[sdq] expert pager ready: models/flint-UD-Q4_K_XL.gguf
|
| 65 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 66 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.11 GiB)
|
| 67 |
+
[sdq] evict_policy=lru stale_window=640
|
| 68 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 69 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
results/logs/v2/kl_decode_ub1_t16_forced_rowpar_1g_vs_native.log
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.05 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
0.01.046.862 I cmn init: llama threadpool init, n_threads = 16
|
| 13 |
+
0.01.511.234 I
|
| 14 |
+
0.01.511.344 I system_info: n_threads = 16 (n_threads_batch = 16) / 192 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | AVX512_BF16 = 1 | LLAMAFILE = 1 | OPENMP = 1 | REPACK = 1 |
|
| 15 |
+
0.01.528.746 I kl_divergence: computing over 2 chunks, n_ctx=256, batch_size=256, n_seq=1
|
| 16 |
+
0.53.459.418 I kl_divergence: 51.93 seconds per pass - ETA 1.72 minutes
|
| 17 |
+
|
| 18 |
+
chunk PPL ln(PPL(Q)/PPL(base)) KL Divergence Δp RMS Same top p
|
| 19 |
+
1 13.7740 ± 4.6245 0.02254 ± 0.03440 0.03177 ± 0.01493 4.997 ± 2.174 % 95.276 ± 1.890 %
|
| 20 |
+
2 14.8027 ± 3.1804 0.01283 ± 0.02276 0.04406 ± 0.01523 4.051 ± 1.350 % 92.520 ± 1.654 %
|
| 21 |
+
|
| 22 |
+
====== Perplexity statistics ======
|
| 23 |
+
Mean PPL(Q) : 14.802734 ± 3.180425
|
| 24 |
+
Mean PPL(base) : 14.614086 ± 3.091134
|
| 25 |
+
Cor(ln(PPL(Q)), ln(PPL(base))): 99.44%
|
| 26 |
+
Mean ln(PPL(Q)/PPL(base)) : 0.012826 ± 0.022762
|
| 27 |
+
Mean PPL(Q)/PPL(base) : 1.012909 ± 0.023056
|
| 28 |
+
Mean PPL(Q)-PPL(base) : 0.188648 ± 0.342994
|
| 29 |
+
|
| 30 |
+
====== KL divergence statistics ======
|
| 31 |
+
Mean KLD: 0.044057 ± 0.015234
|
| 32 |
+
Maximum KLD: 3.161583
|
| 33 |
+
99.9% KLD: 2.810790
|
| 34 |
+
99.0% KLD: 0.854633
|
| 35 |
+
95.0% KLD: 0.086102
|
| 36 |
+
90.0% KLD: 0.048945
|
| 37 |
+
Median KLD: 0.005596
|
| 38 |
+
10.0% KLD: 0.000030
|
| 39 |
+
5.0% KLD: 0.000006
|
| 40 |
+
1.0% KLD: 0.000000
|
| 41 |
+
0.1% KLD: -0.000003
|
| 42 |
+
Minimum KLD: -0.000004
|
| 43 |
+
|
| 44 |
+
====== Token probability statistics ======
|
| 45 |
+
Mean Δp: -0.309 ± 0.254 %
|
| 46 |
+
Maximum Δp: 12.097%
|
| 47 |
+
99.9% Δp: 11.854%
|
| 48 |
+
99.0% Δp: 7.841%
|
| 49 |
+
95.0% Δp: 2.800%
|
| 50 |
+
90.0% Δp: 1.211%
|
| 51 |
+
75.0% Δp: 0.182%
|
| 52 |
+
Median Δp: 0.000%
|
| 53 |
+
25.0% Δp: -0.223%
|
| 54 |
+
10.0% Δp: -2.155%
|
| 55 |
+
5.0% Δp: -3.443%
|
| 56 |
+
1.0% Δp: -9.554%
|
| 57 |
+
0.1% Δp: -43.359%
|
| 58 |
+
Minimum Δp: -52.532%
|
| 59 |
+
RMS Δp : 4.051 ± 1.350 %
|
| 60 |
+
Same top p: 92.520 ± 1.654 %
|
| 61 |
+
|
| 62 |
+
[sdq] MoE op 路徑計數:row-parallel 23901 次,mode C 0 次
|
| 63 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 64 |
+
[sdq] expert pager ready: models/flint-UD-Q4_K_XL.gguf
|
| 65 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 66 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.11 GiB)
|
| 67 |
+
[sdq] evict_policy=lru stale_window=640
|
| 68 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 69 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
results/logs/v2/mem_default_16g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 12 次,mode C 504 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 13.0 t/s | Generation: 5.3 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 12338760, "peak_gib": 11.767, "limit_gib": 16.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 9.96, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=10240", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_16g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 12 次,mode C 504 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 12.4 t/s | Generation: 5.0 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 12339660, "peak_gib": 11.768, "limit_gib": 16.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 10.83, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=10240", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_16g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 12 次,mode C 504 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 13.2 t/s | Generation: 5.3 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 12338264, "peak_gib": 11.767, "limit_gib": 16.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 10.19, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=10240", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_2g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.31 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.42 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 7.1 t/s | Generation: 3.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2111144, "peak_gib": 2.013, "limit_gib": 2.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.03, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=256", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_2g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.31 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.42 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 6.6 t/s | Generation: 3.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2112376, "peak_gib": 2.015, "limit_gib": 2.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.18, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=256", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_2g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.31 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.42 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 6.9 t/s | Generation: 3.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2111368, "peak_gib": 2.014, "limit_gib": 2.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.07, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=256", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_32g_run1.log
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=12061 arena=28.71 GiB (RAM 實測 RSS=28.77 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 12061
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
[sdq] 已預載全部 expert(12061 slots)→ 之後 row-parallel 可用
|
| 13 |
+
[sdq] 已預載全部 expert(12061 slots)→ 之後 row-parallel 可用
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
Loading model...
|
| 17 |
+
|
| 18 |
+
▄▄ ▄▄
|
| 19 |
+
██ ██
|
| 20 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 21 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 22 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 23 |
+
██ ██
|
| 24 |
+
▀▀ ▀▀
|
| 25 |
+
|
| 26 |
+
build : b1-970b51c
|
| 27 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 28 |
+
ftype : Q4_K - Medium
|
| 29 |
+
modalities : text
|
| 30 |
+
|
| 31 |
+
available commands:
|
| 32 |
+
/exit or Ctrl+C stop or exit
|
| 33 |
+
/regen regenerate the last response
|
| 34 |
+
/clear clear the chat history
|
| 35 |
+
/read <file> add a text file
|
| 36 |
+
/glob <pattern> add text files using globbing pattern
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
> Explain in one sentence why the sky is blue.
|
| 41 |
+
|
| 42 |
+
[Start thinking]
|
| 43 |
+
|
| 44 |
+
The user is asking for a one
|
| 45 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 46 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 47 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 48 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 49 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=12061 arena=28.71 GiB (RAM 實測 RSS=28.88 GiB)
|
| 50 |
+
[sdq] evict_policy=lru stale_window=640
|
| 51 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 12061
|
| 52 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 53 |
+
|
| 54 |
+
[ Prompt: 35.1 t/s | Generation: 13.4 t/s ]
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
Exiting...
|
| 58 |
+
RUNMEM {"peak_kb": 31953180, "peak_gib": 30.473, "limit_gib": 32.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 30.04, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=29400", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_32g_run2.log
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=12061 arena=28.71 GiB (RAM 實測 RSS=28.77 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 12061
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
[sdq] 已預載全部 expert(12061 slots)→ 之後 row-parallel 可用
|
| 13 |
+
[sdq] 已預載全部 expert(12061 slots)→ 之後 row-parallel 可用
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
Loading model...
|
| 17 |
+
|
| 18 |
+
▄▄ ▄▄
|
| 19 |
+
██ ██
|
| 20 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 21 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 22 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 23 |
+
██ ██
|
| 24 |
+
▀▀ ▀▀
|
| 25 |
+
|
| 26 |
+
build : b1-970b51c
|
| 27 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 28 |
+
ftype : Q4_K - Medium
|
| 29 |
+
modalities : text
|
| 30 |
+
|
| 31 |
+
available commands:
|
| 32 |
+
/exit or Ctrl+C stop or exit
|
| 33 |
+
/regen regenerate the last response
|
| 34 |
+
/clear clear the chat history
|
| 35 |
+
/read <file> add a text file
|
| 36 |
+
/glob <pattern> add text files using globbing pattern
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
> Explain in one sentence why the sky is blue.
|
| 41 |
+
|
| 42 |
+
[Start thinking]
|
| 43 |
+
|
| 44 |
+
The user is asking for a one
|
| 45 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 46 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 47 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 48 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 49 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=12061 arena=28.71 GiB (RAM 實測 RSS=28.88 GiB)
|
| 50 |
+
[sdq] evict_policy=lru stale_window=640
|
| 51 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 12061
|
| 52 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 53 |
+
|
| 54 |
+
[ Prompt: 33.8 t/s | Generation: 14.7 t/s ]
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
Exiting...
|
| 58 |
+
RUNMEM {"peak_kb": 31953220, "peak_gib": 30.473, "limit_gib": 32.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 30.18, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=29400", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_32g_run3.log
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=12061 arena=28.71 GiB (RAM 實測 RSS=28.77 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 12061
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
[sdq] 已預載全部 expert(12061 slots)→ 之後 row-parallel 可用
|
| 13 |
+
[sdq] 已預載全部 expert(12061 slots)→ 之後 row-parallel 可用
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
Loading model...
|
| 17 |
+
|
| 18 |
+
▄▄ ▄▄
|
| 19 |
+
██ ██
|
| 20 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 21 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 22 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 23 |
+
██ ██
|
| 24 |
+
▀▀ ▀▀
|
| 25 |
+
|
| 26 |
+
build : b1-970b51c
|
| 27 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 28 |
+
ftype : Q4_K - Medium
|
| 29 |
+
modalities : text
|
| 30 |
+
|
| 31 |
+
available commands:
|
| 32 |
+
/exit or Ctrl+C stop or exit
|
| 33 |
+
/regen regenerate the last response
|
| 34 |
+
/clear clear the chat history
|
| 35 |
+
/read <file> add a text file
|
| 36 |
+
/glob <pattern> add text files using globbing pattern
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
> Explain in one sentence why the sky is blue.
|
| 41 |
+
|
| 42 |
+
[Start thinking]
|
| 43 |
+
|
| 44 |
+
The user is asking for a one
|
| 45 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 46 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 47 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 48 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 49 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=12061 arena=28.71 GiB (RAM 實測 RSS=28.88 GiB)
|
| 50 |
+
[sdq] evict_policy=lru stale_window=640
|
| 51 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 12061
|
| 52 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 53 |
+
|
| 54 |
+
[ Prompt: 35.0 t/s | Generation: 14.2 t/s ]
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
Exiting...
|
| 58 |
+
RUNMEM {"peak_kb": 31953520, "peak_gib": 30.473, "limit_gib": 32.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 33.12, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=29400", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_4g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 7.1 t/s | Generation: 4.5 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2899568, "peak_gib": 2.765, "limit_gib": 4.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.23, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=1024", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_4g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 7.0 t/s | Generation: 4.6 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2900056, "peak_gib": 2.766, "limit_gib": 4.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.25, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=1024", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_4g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 7.1 t/s | Generation: 4.6 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2899544, "peak_gib": 2.765, "limit_gib": 4.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.22, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=1024", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_8g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 9.3 t/s | Generation: 4.6 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 4997304, "peak_gib": 4.766, "limit_gib": 8.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 6.41, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=3072", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_8g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 9.7 t/s | Generation: 4.7 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 4997308, "peak_gib": 4.766, "limit_gib": 8.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 6.1, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=3072", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_default_8g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 0 次,mode C 516 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.17 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 9.6 t/s | Generation: 5.0 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 4997116, "peak_gib": 4.766, "limit_gib": 8.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 6.2, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=3072", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_16g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 12.6 t/s | Generation: 5.3 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 12331924, "peak_gib": 11.761, "limit_gib": 16.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 10.09, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=10240", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_16g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 11.9 t/s | Generation: 5.2 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 12331460, "peak_gib": 11.76, "limit_gib": 16.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 10.57, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=10240", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_16g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=4201 arena=10.00 GiB (RAM 實測 RSS=10.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 4201
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 12.7 t/s | Generation: 5.6 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 12331484, "peak_gib": 11.76, "limit_gib": 16.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 10.02, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=10240", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_2g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.31 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.41 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 5.0 t/s | Generation: 3.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2107488, "peak_gib": 2.01, "limit_gib": 2.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.96, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=256", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_2g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.31 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.41 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 6.9 t/s | Generation: 3.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2106848, "peak_gib": 2.009, "limit_gib": 2.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.1, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=256", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_2g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.31 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=105 arena=0.25 GiB (RAM 實測 RSS=0.41 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 105
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 6.9 t/s | Generation: 3.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2107108, "peak_gib": 2.009, "limit_gib": 2.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.11, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=256", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_32g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=7561 arena=18.00 GiB (RAM 實測 RSS=18.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 7561
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=7561 arena=18.00 GiB (RAM 實測 RSS=18.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 7561
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 9.8 t/s | Generation: 5.9 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 20719296, "peak_gib": 19.759, "limit_gib": 32.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 15.01, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=18432", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_32g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=7561 arena=18.00 GiB (RAM 實測 RSS=18.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 7561
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=7561 arena=18.00 GiB (RAM 實測 RSS=18.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 7561
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 12.4 t/s | Generation: 5.6 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 20718896, "peak_gib": 19.759, "limit_gib": 32.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 15.15, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=18432", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_32g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=7561 arena=18.00 GiB (RAM 實測 RSS=18.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 7561
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=7561 arena=18.00 GiB (RAM 實測 RSS=18.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 7561
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 11.1 t/s | Generation: 5.8 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 20718744, "peak_gib": 19.759, "limit_gib": 32.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 14.65, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=18432", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_4g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 7.2 t/s | Generation: 4.7 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2893544, "peak_gib": 2.759, "limit_gib": 4.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.15, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=1024", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_4g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 6.8 t/s | Generation: 4.8 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2893232, "peak_gib": 2.759, "limit_gib": 4.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.21, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=1024", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_4g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=420 arena=1.00 GiB (RAM 實測 RSS=1.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 420
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 7.2 t/s | Generation: 4.8 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 2893348, "peak_gib": 2.759, "limit_gib": 4.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 5.13, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=1024", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_8g_run1.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 8.5 t/s | Generation: 5.0 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 4990524, "peak_gib": 4.759, "limit_gib": 8.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 6.02, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=3072", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_8g_run2.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 9.8 t/s | Generation: 5.0 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 4990532, "peak_gib": 4.759, "limit_gib": 8.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 6.05, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=3072", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/logs/v2/mem_forced_8g_run3.log
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[sdq] MoE 層 47 / 共 49 層(dense lead 2):expert 權重合計 21.47 GiB、12032 個 expert
|
| 2 |
+
[sdq] 統一槽位 2555904 B(最大 expert 大小;平均 1915708 B)
|
| 3 |
+
[sdq] 使用 O_DIRECT 讀取模型檔(1 個 shard,不佔用 kernel page cache)
|
| 4 |
+
[sdq] I/O 段平行:24 條讀取執行緒 × 1096 KB 對齊緩衝(gate/up/down 同時讀,每段再切 1 塊)
|
| 5 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 6 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 7 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 8 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.06 GiB)
|
| 9 |
+
[sdq] evict_policy=lru stale_window=640
|
| 10 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 11 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Loading model...
|
| 15 |
+
|
| 16 |
+
▄▄ ▄▄
|
| 17 |
+
██ ██
|
| 18 |
+
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
| 19 |
+
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
| 20 |
+
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
| 21 |
+
██ ██
|
| 22 |
+
▀▀ ▀▀
|
| 23 |
+
|
| 24 |
+
build : b1-970b51c
|
| 25 |
+
model : /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 26 |
+
ftype : Q4_K - Medium
|
| 27 |
+
modalities : text
|
| 28 |
+
|
| 29 |
+
available commands:
|
| 30 |
+
/exit or Ctrl+C stop or exit
|
| 31 |
+
/regen regenerate the last response
|
| 32 |
+
/clear clear the chat history
|
| 33 |
+
/read <file> add a text file
|
| 34 |
+
/glob <pattern> add text files using globbing pattern
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> Explain in one sentence why the sky is blue.
|
| 39 |
+
|
| 40 |
+
[Start thinking]
|
| 41 |
+
|
| 42 |
+
The user is asking for a one
|
| 43 |
+
[sdq] MoE op 路徑計數:row-parallel 425 次,mode C 91 次
|
| 44 |
+
[sdq] page-map: n_layer=49 n_expert=256 n_expert_used=6 n_embd=2048 n_ff_exp=512 | L2E0 gate=986105536/450560 up=1104733888/450560 down=799327936/720896 (off/size) ne0=2048 ne1=512 d_ne0=512 d_ne1=2048
|
| 45 |
+
[sdq] expert pager ready: /tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf
|
| 46 |
+
[sdq] 熱門 expert 釘選:0 個(無剖面,用動態 LRU/LFU)
|
| 47 |
+
[sdq] slot=2.44 MiB (2555904 B) slots=1260 arena=3.00 GiB (RAM 實測 RSS=3.16 GiB)
|
| 48 |
+
[sdq] evict_policy=lru stale_window=640
|
| 49 |
+
[sdq] 槽位:單一尺寸 2.44 MiB × 1260
|
| 50 |
+
[sdq] prefetch=off fadvise_dontneed=1
|
| 51 |
+
|
| 52 |
+
[ Prompt: 9.6 t/s | Generation: 5.2 t/s ]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Exiting...
|
| 56 |
+
RUNMEM {"peak_kb": 4989940, "peak_gib": 4.759, "limit_gib": 8.0, "limit_exceeded": false, "swap_kb": 0, "wall_s": 6.05, "exit": 0, "cmd": ["env", "SDQ_PAGER=1", "SDQ_PREFETCH=0", "SDQ_ARENA_MB=3072", "SDQ_PRELOAD=1", "SDQ_ROW_PARALLEL=1", "/tmp/opencode/flint-work/llama.cpp/build/bin/llama-cli", "-m", "/tmp/opencode/flint-work/llama.cpp/models/flint-UD-Q4_K_XL.gguf", "-c", "128", "-b", "32", "-ub", "16", "-p", "Explain in one sentence why the sky is blue.", "-n", "8", "-t", "16", "--temp", "0", "-st", "--simple-io"], "method": "procfs-rss-watchdog"}
|
results/test-status.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
Environment: Intel Xeon Platinum 8559C, container quota 16 CPUs, cgroup v2 `memory.max` 104,000,000,000 bytes (~96.9 GiB), `memory.swap.max` 2,936,848,384 bytes (~2.74 GiB), Amazon Linux 2023, kernel 6.18.48, CPU only. The container's cgroup v2 mount is read-only and there is no systemd manager, so no cgroup-enforced memory limit could be applied.
|
| 4 |
|
| 5 |
-
llama.cpp base: `970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc` plus `flint-epq.patch` (sha256 `
|
| 6 |
|
| 7 |
Versions: **v1** = expert paging, mode C (`SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0`). **v2** = v1 + preload + row-parallel for gated experts (`SDQ_PRELOAD=1 SDQ_ROW_PARALLEL=1`, arena ≥ 28.6 GiB). **native** = `SDQ_PAGER=0`.
|
| 8 |
|
|
@@ -28,6 +28,12 @@ Versions: **v1** = expert paging, mode C (`SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0`). *
|
|
| 28 |
| Preload check | v2 | "已預載全部 expert(12061 slots)" with a 28.7 GiB arena |
|
| 29 |
| Throughput, context 512, batch 128, ubatch 32, 32 tokens, 16 threads (3 runs, median) | native / v1 / v2 | Generation 21.5 / 5.6 / 16.2 t/s; prompt 54.4 / 13.0 / 32.4 t/s. Peak RSS 24.3 / 19.8 / 30.5 GiB |
|
| 30 |
| Memory tiers 2 / 4 / 8 / 16 / 32 GiB, 16 threads (3 runs each) | v1 | PASS: all 15 runs exit 0, swap 0, never over threshold; peaks 2.014 / 2.765 / 4.766 / 11.767 / 19.766 GiB |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
| 32 GiB tier, 28.7 GiB arena, 16 threads (3 runs) | v2 | PASS: peak 30.473 GiB, swap 0, never over threshold |
|
| 32 |
| cgroup-v2 `MemoryMax` runs (`tools/runmem_cgroup.py`) | — | NOT RUN: no writable cgroup v2 / systemd here. The script is untested |
|
| 33 |
|
|
@@ -48,7 +54,7 @@ Versions: **v1** = expert paging, mode C (`SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0`). *
|
|
| 48 |
- EPQ output is not bit-identical to native llama.cpp. Float summation order differs, and 8-bit activation quantization amplifies the difference through the layers. Native itself shows a KL divergence of the same magnitude under a ubatch change. No functional mismatch was found.
|
| 49 |
- Greedy identity is fragile: at 16 threads both v1 and v2 diverge from native after 12 characters.
|
| 50 |
- The memory tiers use an RSS watchdog that samples every 20 ms and counts file-backed pages as reported by `/proc`. They are not kernel-enforced limits. A true cgroup-enforced test requires a host with a writable cgroup v2 hierarchy and systemd (`tools/runmem_cgroup.py`, untested).
|
| 51 |
-
- v2 only
|
| 52 |
- Accuracy tests use about 1,000 scored tokens from one text sample. They do not cover long-context behavior or other prompts beyond the greedy checks.
|
| 53 |
- The v2 prompt-phase speedup is likely due to preload removing SSD reads during prefill; this was not isolated by a separate measurement.
|
| 54 |
|
|
|
|
| 2 |
|
| 3 |
Environment: Intel Xeon Platinum 8559C, container quota 16 CPUs, cgroup v2 `memory.max` 104,000,000,000 bytes (~96.9 GiB), `memory.swap.max` 2,936,848,384 bytes (~2.74 GiB), Amazon Linux 2023, kernel 6.18.48, CPU only. The container's cgroup v2 mount is read-only and there is no systemd manager, so no cgroup-enforced memory limit could be applied.
|
| 4 |
|
| 5 |
+
llama.cpp base: `970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc` plus `flint-epq.patch` (sha256 `f6ae3fd33dcd29a132e37bfebacc6c452778e752266bb963718f8ec6f9522572`).
|
| 6 |
|
| 7 |
Versions: **v1** = expert paging, mode C (`SDQ_PRELOAD=0 SDQ_ROW_PARALLEL=0`). **v2** = v1 + preload + row-parallel for gated experts (`SDQ_PRELOAD=1 SDQ_ROW_PARALLEL=1`, arena ≥ 28.6 GiB). **native** = `SDQ_PAGER=0`.
|
| 8 |
|
|
|
|
| 28 |
| Preload check | v2 | "已預載全部 expert(12061 slots)" with a 28.7 GiB arena |
|
| 29 |
| Throughput, context 512, batch 128, ubatch 32, 32 tokens, 16 threads (3 runs, median) | native / v1 / v2 | Generation 21.5 / 5.6 / 16.2 t/s; prompt 54.4 / 13.0 / 32.4 t/s. Peak RSS 24.3 / 19.8 / 30.5 GiB |
|
| 30 |
| Memory tiers 2 / 4 / 8 / 16 / 32 GiB, 16 threads (3 runs each) | v1 | PASS: all 15 runs exit 0, swap 0, never over threshold; peaks 2.014 / 2.765 / 4.766 / 11.767 / 19.766 GiB |
|
| 31 |
+
| Memory tiers 2 / 4 / 8 / 16 / 32 GiB, v2 as designed, 16 threads (3 runs each) | v2 | PASS: all 15 runs exit 0, swap 0. Peaks 2.014 / 2.765 / 4.766 / 11.767 / 30.473 GiB. RP / mode C ops: 0/516, 0/516, 0/516, 12/504, 425/91 |
|
| 32 |
+
| Memory tiers 2 / 4 / 8 / 16 / 32 GiB, v2 forced row-parallel (`SDQ_ROWPAR_MAX_MISS=100000`), 16 threads (3 runs each) | v2 forced | PASS: all 15 runs exit 0, swap 0. Peaks 2.009 / 2.759 / 4.759 / 11.760 / 19.759 GiB; 425 RP ops at every tier |
|
| 33 |
+
| Forced row-parallel with 1 GiB arena, decode `-ub 1`, KL vs native | v2 forced | mean 0.044057; top-1 92.52 %; identical to v1 full-arena at reported precision (0.044057) |
|
| 34 |
+
| Mode C with 1 GiB arena, decode `-ub 1`, KL vs native | v1 | mean 0.044057; identical to full-arena v1 (eviction does not change results) |
|
| 35 |
+
| v2 path counter at 32 GiB (full arena) | v2 | row-parallel 425, mode C 91 (prefill) |
|
| 36 |
+
| Fresh checkout of new patch (sha `f6ae3fd…`): build and path counter | v2 | PASS: 425 RP / 91 mode C reproduced |
|
| 37 |
| 32 GiB tier, 28.7 GiB arena, 16 threads (3 runs) | v2 | PASS: peak 30.473 GiB, swap 0, never over threshold |
|
| 38 |
| cgroup-v2 `MemoryMax` runs (`tools/runmem_cgroup.py`) | — | NOT RUN: no writable cgroup v2 / systemd here. The script is untested |
|
| 39 |
|
|
|
|
| 54 |
- EPQ output is not bit-identical to native llama.cpp. Float summation order differs, and 8-bit activation quantization amplifies the difference through the layers. Native itself shows a KL divergence of the same magnitude under a ubatch change. No functional mismatch was found.
|
| 55 |
- Greedy identity is fragile: at 16 threads both v1 and v2 diverge from native after 12 characters.
|
| 56 |
- The memory tiers use an RSS watchdog that samples every 20 ms and counts file-backed pages as reported by `/proc`. They are not kernel-enforced limits. A true cgroup-enforced test requires a host with a writable cgroup v2 hierarchy and systemd (`tools/runmem_cgroup.py`, untested).
|
| 57 |
+
- v2 as designed activates only with a full arena (32 GiB tier). At 2–8 GiB it runs the same mode C path as v1 (0 row-parallel ops); at 16 GiB 12 of 516 ops are row-parallel. Forced row-parallel (`SDQ_ROWPAR_MAX_MISS`) is an ablation: its generation gains (about 9–14 %) are at the edge of run-to-run noise.
|
| 58 |
- Accuracy tests use about 1,000 scored tokens from one text sample. They do not cover long-context behavior or other prompts beyond the greedy checks.
|
| 59 |
- The v2 prompt-phase speedup is likely due to preload removing SSD reads during prefill; this was not isolated by a separate measurement.
|
| 60 |
|
src/sdq_moe.cpp
CHANGED
|
@@ -753,6 +753,10 @@ static void moe_row_parallel(ggml_tensor * dst, int ith, int nth, layer_rec * R,
|
|
| 753 |
}
|
| 754 |
}
|
| 755 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 756 |
static void moe_custom_op(ggml_tensor * dst, int ith, int nth, void * userdata) {
|
| 757 |
layer_rec * R = (layer_rec *) userdata;
|
| 758 |
pager & P = pager::instance();
|
|
@@ -888,6 +892,10 @@ static void moe_custom_op(ggml_tensor * dst, int ith, int nth, void * userdata)
|
|
| 888 |
}
|
| 889 |
if (nth > 1) { R->bar.sync(nth); }
|
| 890 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 891 |
if (R->use_rowpar) {
|
| 892 |
moe_row_parallel(dst, ith, nth, R, L, cur, wts, wts_nb0, wts_nb1, n_embd, n_tok);
|
| 893 |
}
|
|
@@ -1060,6 +1068,12 @@ static void moe_custom_op(ggml_tensor * dst, int ith, int nth, void * userdata)
|
|
| 1060 |
PROF_ADD(op_ns, _tg);
|
| 1061 |
}
|
| 1062 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1063 |
// 輸出計時結果(sdq_shutdown 呼叫)
|
| 1064 |
void sdq_print_time_profile() {
|
| 1065 |
if (!prof_on()) {
|
|
|
|
| 753 |
}
|
| 754 |
}
|
| 755 |
|
| 756 |
+
// 每次 MoE op 實際走的路徑計數(v2 row-parallel vs v1 mode C),結束時印出
|
| 757 |
+
static std::atomic<uint64_t> g_ops_rowpar{0};
|
| 758 |
+
static std::atomic<uint64_t> g_ops_modec{0};
|
| 759 |
+
|
| 760 |
static void moe_custom_op(ggml_tensor * dst, int ith, int nth, void * userdata) {
|
| 761 |
layer_rec * R = (layer_rec *) userdata;
|
| 762 |
pager & P = pager::instance();
|
|
|
|
| 892 |
}
|
| 893 |
if (nth > 1) { R->bar.sync(nth); }
|
| 894 |
|
| 895 |
+
// 計數:每次 op 實際走哪條路徑(ith==0 記一次;barrier 之後 use_rowpar 已確定)
|
| 896 |
+
if (ith == 0) {
|
| 897 |
+
(R->use_rowpar ? g_ops_rowpar : g_ops_modec).fetch_add(1, std::memory_order_relaxed);
|
| 898 |
+
}
|
| 899 |
if (R->use_rowpar) {
|
| 900 |
moe_row_parallel(dst, ith, nth, R, L, cur, wts, wts_nb0, wts_nb1, n_embd, n_tok);
|
| 901 |
}
|
|
|
|
| 1068 |
PROF_ADD(op_ns, _tg);
|
| 1069 |
}
|
| 1070 |
|
| 1071 |
+
// 輸出路徑計數(sdq_shutdown 呼叫)
|
| 1072 |
+
void sdq_print_op_counts() {
|
| 1073 |
+
fprintf(stderr, "[sdq] MoE op 路徑計數:row-parallel %llu 次,mode C %llu 次\n",
|
| 1074 |
+
(unsigned long long) g_ops_rowpar.load(), (unsigned long long) g_ops_modec.load());
|
| 1075 |
+
}
|
| 1076 |
+
|
| 1077 |
// 輸出計時結果(sdq_shutdown 呼叫)
|
| 1078 |
void sdq_print_time_profile() {
|
| 1079 |
if (!prof_on()) {
|
src/sdq_pager.cpp
CHANGED
|
@@ -2491,6 +2491,7 @@ ggml_tensor * sdq_maybe_dump_tensor(ggml_context * ctx, ggml_tensor * t, int il)
|
|
| 2491 |
void sdq_shutdown() {
|
| 2492 |
pager & P = pager::instance();
|
| 2493 |
sdq_print_time_profile();
|
|
|
|
| 2494 |
P.dump_stats("shutdown");
|
| 2495 |
P.print_summary();
|
| 2496 |
P.shutdown();
|
|
|
|
| 2491 |
void sdq_shutdown() {
|
| 2492 |
pager & P = pager::instance();
|
| 2493 |
sdq_print_time_profile();
|
| 2494 |
+
sdq_print_op_counts();
|
| 2495 |
P.dump_stats("shutdown");
|
| 2496 |
P.print_summary();
|
| 2497 |
P.shutdown();
|
src/sdq_pager.h
CHANGED
|
@@ -476,6 +476,9 @@ void sdq_on_decode(int n_tokens);
|
|
| 476 |
// 效能計時探針的結果(SDQ_PROFILE_TIME=1)
|
| 477 |
void sdq_print_time_profile();
|
| 478 |
|
|
|
|
|
|
|
|
|
|
| 479 |
// 自我測試:算一次指定 expert 的 MoE 輸出(給 NumPy 對照用)
|
| 480 |
int sdq_moe_selftest(int il, int ie, const float * x, float * out_io,
|
| 481 |
int64_t n_embd, int64_t n_ff, int n_tok);
|
|
|
|
| 476 |
// 效能計時探針的結果(SDQ_PROFILE_TIME=1)
|
| 477 |
void sdq_print_time_profile();
|
| 478 |
|
| 479 |
+
// MoE op 路徑計數(row-parallel / mode C),sdq_shutdown 時印出
|
| 480 |
+
void sdq_print_op_counts();
|
| 481 |
+
|
| 482 |
// 自我測試:算一次指定 expert 的 MoE 輸出(給 NumPy 對照用)
|
| 483 |
int sdq_moe_selftest(int il, int ie, const float * x, float * out_io,
|
| 484 |
int64_t n_embd, int64_t n_ff, int n_tok);
|