Titaniumtown
be876204aa
sycl: bind the f16 KV cache in place for the oneDNN SDPA path ( #27468 )
...
Measured at a live KV length of 34816 (32768 depth plus one 2048 ubatch),
on Qwen3.8 27B Q4_K_S:
per tensor 4 * 34816 * 256 * 2 B = 71.3 MB
staged per call K and V, so 2x = 142.6 MB
traffic per call read once, write once = 285.2 MB
traffic per ubatch 285.2 MB * 16 calls = 4.56 GB
One ubatch is one ggml_cgraph submission (llama_context::process_ubatch ->
graph_compute), so that 4.56 GB is the cost of a single 2048-token prefill
chunk, and it scales with the live KV length: the first ubatch of the same run,
at seq = 2048, moves 0.27 GB.
Reproduce the two measured inputs with:
GGML_SCHED_DEBUG=2 llama-bench -m MODEL -p 8 -n 0 -r 1 -ngl 0 \
-fa on -ctk f16 -ctv f16 -v > nd.txt 2>&1
grep -E 'n_layer|n_head_kv|n_embd_head_k' nd.txt
awk '/node # 0 /{g++} g==1 && /\(FLASH_ATTN\)/{n++} END{print n+0}' nd.txt
2026-08-28 11:53:31 +03:00
..
2026-08-21 08:15:40 +03:00
2026-04-09 09:36:48 +03:00
2026-03-25 11:48:37 +02:00
2025-12-15 10:35:15 +08:00
2026-07-31 09:17:53 +03:00
2026-06-22 14:09:02 +03:00
2025-10-12 21:53:35 +08:00
2026-07-27 15:33:11 +03:00
2026-07-07 11:07:46 +03:00
2026-07-07 11:07:46 +03:00
2026-06-18 11:18:26 +03:00
2026-08-13 11:32:36 +03:00
2026-08-13 11:24:28 +03:00
2025-01-10 08:13:03 +08:00
2026-07-15 10:31:10 +03:00
2026-06-18 09:40:03 +03:00
2026-06-18 09:40:03 +03:00
2026-06-18 09:40:03 +03:00
2026-06-18 09:40:03 +03:00
2026-06-18 09:40:03 +03:00
2026-06-25 08:27:58 +03:00
2026-06-17 17:20:01 +03:00
2025-09-12 09:15:12 +08:00
2025-01-10 08:13:03 +08:00
2026-08-22 10:09:26 +03:00
2026-04-22 20:32:56 +08:00
2026-03-08 12:00:07 +08:00
2025-10-12 21:53:35 +08:00
2026-08-17 07:32:16 +03:00
2026-07-31 10:25:16 +03:00
2026-07-07 10:48:50 +03:00
2026-07-07 10:48:50 +03:00
2026-05-07 18:51:33 +03:00
2026-05-07 18:51:33 +03:00
2026-08-22 10:09:26 +03:00
2026-05-07 18:51:33 +03:00
2026-05-07 18:51:33 +03:00
2026-08-22 10:09:26 +03:00
2024-06-26 18:33:02 +03:00
2026-08-07 08:22:23 +03:00
2026-08-07 08:22:23 +03:00
2026-08-21 08:15:40 +03:00
2026-08-14 02:26:23 -04:00
2026-08-22 10:09:26 +03:00
2026-05-09 09:30:39 +03:00
2026-05-09 09:30:39 +03:00
2026-06-01 09:53:53 +03:00
2026-08-21 08:15:40 +03:00
2026-08-28 11:53:31 +03:00
2026-07-15 10:26:53 +03:00
2026-04-09 09:36:48 +03:00
2026-04-09 09:36:48 +03:00
2026-08-07 08:17:56 +03:00
2026-08-04 10:07:23 +08:00
2026-07-31 10:43:16 +03:00
2026-05-07 18:51:33 +03:00
2026-05-07 18:51:33 +03:00
2026-08-14 02:26:23 -04:00
2026-08-13 11:41:38 +03:00
2026-08-18 21:21:25 +08:00
2026-08-18 21:21:25 +08:00
2026-08-14 09:00:36 +03:00
2026-08-14 09:00:36 +03:00
2026-04-22 20:32:56 +08:00
2026-07-15 10:32:28 +03:00
2025-03-31 11:25:24 +02:00
2026-08-25 09:04:58 +03:00
2025-09-12 09:15:12 +08:00
2025-01-15 11:20:17 +08:00
2026-08-21 08:15:40 +03:00
2026-05-11 08:01:47 +03:00
2026-08-07 08:22:23 +03:00
2026-08-07 08:22:23 +03:00
2025-09-12 09:15:12 +08:00
2024-06-26 18:33:02 +03:00
2026-08-25 09:04:58 +03:00
2026-08-14 02:26:23 -04:00
2026-08-21 08:15:40 +03:00
2026-07-31 09:17:53 +03:00
2026-08-17 07:31:29 +03:00
2026-08-17 07:31:29 +03:00
2026-06-18 11:17:37 +03:00
2025-01-10 08:13:03 +08:00
2025-11-28 08:50:56 +08:00
2025-11-28 08:50:56 +08:00
2026-05-09 08:05:22 +08:00
2025-10-12 21:53:35 +08:00
2026-06-15 10:01:07 +03:00
2026-06-15 10:01:07 +03:00
2026-08-07 08:24:40 +03:00
2025-07-28 11:05:53 +01:00
2026-08-22 10:09:26 +03:00
2025-11-03 09:35:33 +08:00
2025-10-27 09:19:50 +08:00
2025-10-27 09:20:24 +08:00
2025-10-27 09:20:24 +08:00
2026-08-21 00:36:57 +02:00
2026-03-11 09:53:34 +08:00
2026-08-25 09:04:58 +03:00
2025-07-10 09:29:38 +01:00
2025-10-17 10:36:40 +08:00
2025-10-17 10:36:40 +08:00
2026-06-26 15:02:42 +08:00
2025-10-09 10:25:11 +03:00
2026-05-07 18:51:33 +03:00
2026-05-07 18:51:33 +03:00
2026-08-07 21:09:32 +03:00
2025-10-28 09:50:33 +08:00
2026-08-14 17:20:40 +03:00
2026-05-07 18:51:33 +03:00
2026-04-25 09:20:14 +03:00
2026-04-25 09:20:14 +03:00
2026-07-13 09:56:41 +03:00
2026-07-13 09:56:41 +03:00
2025-09-16 15:25:57 +02:00
2025-01-10 08:13:03 +08:00
2026-04-01 13:54:15 +03:00
2026-04-13 09:44:58 +08:00
2026-03-17 10:01:52 +08:00
2026-08-22 10:09:26 +03:00
2026-02-02 21:06:21 +08:00
2025-03-18 07:27:50 +08:00