GGUF
conversational
HelloSun commited on
Commit
4e64528
·
verified ·
1 Parent(s): f7898db

Upload report.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. report.md +24 -50
report.md CHANGED
@@ -1,64 +1,38 @@
1
- # Experiment_1: openPangu-VL-7B-Q4_K_M on Intel Xeon 8559C (CPU)
2
 
3
- Model: HelloSun/openPangu-VL-7B-Q4KM-gguf (openPangu-VL-7B-Q4_K_M.gguf, 4.93 GB, 8.03B params)
4
- Device: Intel Xeon Platinum 8559C, 2 sockets x 48 cores (192 threads, HT), AVX-512 VNNI/BF16/FP16, AMX-INT8/TILE/BF16.
5
- Cgroup CPU quota: 16 (the host is shared; 16 threads is the sweet spot).
6
- RAM: ~2 TB host, ~2 GB usable in this container.
7
- Backend: llama.cpp 1268edac5 + openpangu-vl-llama.cpp.patch (pangu_vl RoPE), built with GGML_NATIVE=ON, AMX on.
8
- Build: /root/app/pangu/llama-pinned/build-amx (libggml-cpu with AMX).
9
 
10
- ## Best config (text only)
11
- - 16 threads, pinned to CPUs 0-15 (single NUMA node0)
12
- - flash attention on
13
- - KV cache F16 (faster than Q8_0/Q4_0 on this CPU)
14
- - --no-repack (repack/AMX is slower here; stock AVX-512 VNNI path wins)
15
- - ubatch 512, batch 2048
16
 
17
- ## Results (median of 3-5 runs, llama-bench -o jsonl)
18
- | threads | pp512 t/s | tg128 t/s |
19
  |---|---:|---:|
 
 
 
 
 
 
 
 
 
20
  | 1 | 16.28 | 1.65 |
21
- | 2 | 31.82 | 3.23 |
22
  | 4 | 57.46 | 6.11 |
23
- | 6 | 95.77 | 8.44 |
24
  | 8 | 125.15 | 11.20 |
25
- | 10 | 157.58 | 13.00 |
26
  | 12 | 189.09 | 14.66 |
27
- | 14 | 210.57 | 16.58 |
28
  | 16 | 208.93 | 18.31 |
29
  | 20 | 156.98 | 9.95 |
30
  | 24 | 163.43 | 8.90 |
31
 
32
- Best (16 threads, no-repack): pp512 = 232.70 t/s, tg128 = 19.77 t/s.
33
-
34
- KV cache type (16 threads, repack on): F16 pp 208.93 / tg 18.31; Q8_0 pp 173.87 / tg 19.10; Q4_0 pp 170.14 / tg 18.59. F16 fastest prefill; Q8_0 slightly faster decode.
35
-
36
- Long context decode (16 threads, no-repack, F16 KV): tg64 @ 2048 ctx = 16.63, @ 4096 = 14.88, @ 8192 = 13.44 t/s.
37
-
38
- ubatch sweep (pp512): 64=189.00, 128=206.44, 256=201.25, 512=208.93, 1024=183.61.
39
 
40
- AMX (repack on) vs stock (repack off): AMX pp 208.93 vs stock pp 232.70. Stock AVX-512 path wins on this CPU for Q4_K.
41
 
42
- Memory: model buffer 4701 MiB (mmap), KV 17408 MiB @ 16k ctx (F16).
43
-
44
- ## Files
45
- - results/amx_threads.jsonl: raw llama-bench samples
46
- - build: llama-pinned/build-amx (binaries)
47
-
48
- ## CLI measured (real generation, prompt ~19 tokens + 128 gen, 16 threads, F16 KV, FA on)
49
-
50
- | Build | repack | Prompt t/s (median) | Gen t/s (median) |
51
- |---|---|---:|---:|
52
- | AMX-enabled | on (AMX VNNI) | 141.9 | 18.7 |
53
- | AMX-enabled | off (AVX-512) | 147.4 | 19.4 |
54
- | stock (AMX disabled) | on (CPU_REPACK) | 129.3 | 18.7 |
55
- | stock (AMX disabled) | off | 134.3 | 19.3 |
56
-
57
- Best: AMX-enabled build with repack off → 147.4 t/s prefill, 19.4 t/s decode.
58
-
59
- ## Default vs optimized (CLI, same prompt, 128 gen)
60
- | Config | Prompt t/s | Gen t/s |
61
- |---|---:|---:|
62
- | default (no flags, 96 threads) | 73.4 | 5.6 |
63
- | 16 threads only | 147.7 | 18.3 |
64
- | optimized (16 thr, no-repack, FA on, F16 KV) | 147.4 | 19.4 |
 
1
+ # Experiment_1: openPangu-VL-7B-Q4_K_M, text only, CPU
2
 
3
+ Model file: openPangu-VL-7B-Q4_K_M.gguf (unchanged, no re-quantization)
4
+ CPU: Intel Xeon Platinum 8559C, cgroup quota 16 CPUs, shared host (run-to-run variance about +-15%)
5
+ Runtime: llama.cpp 1268edac5 + openpangu-vl-llama.cpp.patch, CLI, 128 generated tokens, pinned to CPUs 0-15
 
 
 
6
 
7
+ ## Default vs optimized (llama-cli, real generation)
8
+ | Config | Prefill t/s | Decode t/s |
9
+ |---|---:|---:|
10
+ | default (no flags, 96 threads) | 73.4 | 5.6 |
11
+ | optimized (-t 16 -fa on, F16 KV, no-repack) | 147.4 | 19.4 |
12
+ | speedup | ~2.0x | ~3.5x |
13
 
14
+ ## What actually caused the gain
15
+ | Config | Prefill t/s | Decode t/s |
16
  |---|---:|---:|
17
+ | -t 16 only | 147.7 | 18.3 |
18
+ | -t 16 + FA + no-repack | 147.4 | 19.4 |
19
+
20
+ The gain comes from using 16 threads. FA, repack on/off and the AMX build differ within noise
21
+ (same config repeated: prefill 119-148 t/s). AMX gave no reliable speedup.
22
+
23
+ ## Thread scaling (llama-bench, repack on, AMX build)
24
+ | threads | pp512 | tg128 |
25
+ |---:|---:|---:|
26
  | 1 | 16.28 | 1.65 |
 
27
  | 4 | 57.46 | 6.11 |
 
28
  | 8 | 125.15 | 11.20 |
 
29
  | 12 | 189.09 | 14.66 |
 
30
  | 16 | 208.93 | 18.31 |
31
  | 20 | 156.98 | 9.95 |
32
  | 24 | 163.43 | 8.90 |
33
 
34
+ More than 16 threads degrades sharply (CPU quota throttling).
 
 
 
 
 
 
35
 
36
+ Long context decode (tg64): 2048 ctx 16.63, 4096 ctx 14.88, 8192 ctx 13.44 t/s.
37
 
38
+ Raw data: amx_threads.jsonl