[GH-ISSUE #280] Very slow Deepseek V4.1-flash prefill = 2x of decode #108

Closed
opened 2026-10-29 21:20:55 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @byphilipp on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/280

My config:
2*4090 48Gb (modded)
64-core EPYC 7713P
The prefill is very slow - only 2-2.5x faster then decode !
maya-report.txt

Originally created by @byphilipp on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/280 My config: 2*4090 48Gb (modded) 64-core EPYC 7713P The prefill is very slow - only 2-2.5x faster then decode ! [maya-report.txt](https://github.com/user-attachments/files/33689342/maya-report.txt)
Author
Owner

@jettoblack commented on GitHub (Oct 20, 2026):

Same here.
4x3090 24GB + 1x 5060Ti 16GB (Total 112GB)
56-core EPYC 7663 Zen3 - 512GB DDR4

Maybe a Zen3 thing? Lack of AVX512? Or lack of FP4 on GPU?

prefill only ~100t/s but decode ~40t/s.

maya-bench.txt:

Project Maya v1.1.16 benchmark, 2026-10-19 22:16
GPUs: NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 5060 Ti 16 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB; RAM 499 GB; CPU AMD EPYC 7663 56-Core Processor
setup: maya-ds4.json, context 262144, GPUs [0, 2, 3, 4, 1]
decode (writing the answer): mean 41.1 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
    40.3 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
    36.5 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
    46.3 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 85 tokens/s, 2048 tokens
prefill (reading the prompt): 105 tokens/s, 8192 tokens

engine lines:

maya-report.txt:

## Maya
version 1.1.16, commit abc09c7 2026-10-19, Python 3.14.4, linux

## System
Linux-7.0.0-38-generic-x86_64-with-glibc2.43

## GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], 
temperature.gpu
0, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 35
1, NVIDIA GeForce RTX 5060 Ti, 16311 MiB, 2 MiB, 615.71.09, 4, 8, 16, 150.00 W, 34
2, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 34
3, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 36
4, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 26

## CPU and RAM
AMD EPYC 7663 56-Core Processor, 112 threads, AVX2
RAM 499.2 GB, 488.3 GB available now

## Disks
NAME    MODEL              ROTA TRAN    SIZE
loop0                         0          74M
loop1                         0        20.2M
loop2                         0          74M
loop3                         0        20.2M
loop4                         0        66.8M
loop5                         0        66.8M
loop6                         0        50.3M
loop7                         0        44.7M
nvme1n1 WDS200T1X0E-00AFY0    0 nvme    1.8T
nvme0n1 CT2000P5SSD8          0 nvme    1.8T

## Engine build
{"archs": [86, 120], "nvcc": "/usr/local/cuda/bin/nvcc", "host_compiler": null, "date": "2026-10-19 20:09"}

## Setup maya-ds4.json
model DeepSeek-V4.1-Flash-1017, context 262144, GPUs [0, 2, 3, 4, 1], images off, settings {}

## Engine log maya-ds4.log: the speed and memory lines (last 80 of 0)
(nothing)

## Engine log maya-ds4.log: the last 25 lines
maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 19509 ms (105.0 tok/s), 128 generated in 3340 ms (38.33 tok/s); CPU lane 17.0% of the experts
maya ds4 serve: drafts 62 of 123 kept; per position (kept / reached): 1: 35/52 67% 2: 16/27 59% 3: 6/11 55% 4: 3/4 75% 5: 2/2 100%
maya ds4 serve: prompt 34816 tokens = 0 reused + 34816 read in 284635 ms (122.3 tok/s), 128 generated in 3422 ms (37.40 tok/s); CPU lane 6.5% of the experts
maya ds4 serve: drafts 66 of 130 kept; per position (kept / reached): 1: 38/57 67% 2: 20/33 61% 3: 6/10 60% 4: 1/2 50% 5: 1/1 100%
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: the experts VRAM leaves over (~74.0 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (519.7 GB of RAM free to keep them: the most-routed 74.0 GB read ahead; prompts in chunks of 0)
ds4: CUDA0 layers [0, 42]: weights 2.09 GB, experts 21.65 GB (1604 of 3072 in VRAM), caches 0.05 GB, 600 MiB free
ds4: CUDA1 layers [7, 15]: weights 1.85 GB, experts 22.17 GB (2083 of 3456 in VRAM), caches 0.13 GB, 596 MiB free
ds4: CUDA2 layers [16, 24]: weights 1.67 GB, experts 22.35 GB (2100 of 3456 in VRAM), caches 0.13 GB, 602 MiB free
ds4: CUDA3 layers [25, 34]: weights 1.85 GB, experts 22.19 GB (2084 of 3840 in VRAM), caches 0.10 GB, 592 MiB free
ds4: CUDA4 layers [35, 39] + head: weights 1.76 GB, experts 13.87 GB (1130 of 1920 in VRAM), caches 0.10 GB, 598 MiB free
ds4: 6743 routed experts on the CPU lane (74.4 GB, in place in the model's files), 56 threads
maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT
maya ds4 serve: prompt 52 tokens = 0 reused + 52 read in 1073 ms (48.4 tok/s), 1 generated in 2 ms (476.72 tok/s); CPU lane 20.2% of the experts
maya ds4 serve: prompt 53 tokens = 0 reused + 53 read in 652 ms (81.3 tok/s), 1 generated in 0 ms (3552.85 tok/s); CPU lane 19.1% of the experts
maya ds4 serve: prompt 43 tokens = 0 reused + 43 read in 538 ms (80.0 tok/s), 21 generated in 547 ms (38.40 tok/s); CPU lane 17.3% of the experts
maya ds4 serve: drafts 14 of 23 kept; per position (kept / reached): 1: 6/7 86% 2: 5/5 100% 3: 2/5 40% 4: 1/2 50% 5: 0/1 0%
maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 19074 ms (107.4 tok/s), 128 generated in 3191 ms (40.11 tok/s); CPU lane 5.1% of the experts
maya ds4 serve: drafts 75 of 116 kept; per position (kept / reached): 1: 30/45 67% 2: 20/26 77% 3: 12/12 100% 4: 8/8 100% 5: 5/6 83%
maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 19108 ms (107.2 tok/s), 128 generated in 3416 ms (37.47 tok/s); CPU lane 4.6% of the experts
maya ds4 serve: drafts 60 of 131 kept; per position (kept / reached): 1: 35/59 59% 2: 17/29 59% 3: 5/6 83% 4: 2/2 100% 5: 1/1 100%
maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 17137 ms (119.5 tok/s), 128 generated in 3062 ms (41.81 tok/s); CPU lane 4.2% of the experts
maya ds4 serve: drafts 66 of 122 kept; per position (kept / reached): 1: 36/54 67% 2: 17/25 68% 3: 8/13 62% 4: 4/6 67% 5: 1/1 100%
maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 16814 ms (121.8 tok/s), 128 generated in 3491 ms (36.66 tok/s); CPU lane 4.2% of the experts
maya ds4 serve: drafts 57 of 141 kept; per position (kept / reached): 1: 34/58 59% 2: 16/25 64% 3: 4/9 44% 4: 3/4 75% 5: 0/2 0%

## Benchmark (maya-bench.txt, from --bench)
Project Maya v1.1.16 benchmark, 2026-10-19 22:16
GPUs: NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 5060 Ti 16 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB; RAM 499 GB; CPU AMD EPYC 7663 56-Core Processor
setup: maya-ds4.json, context 262144, GPUs [0, 2, 3, 4, 1]
decode (writing the answer): mean 41.1 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
    40.3 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
    36.5 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
    46.3 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 85 tokens/s, 2048 tokens
prefill (reading the prompt): 105 tokens/s, 8192 tokens

engine lines:

<!-- gh-comment-id:6282265263 --> @jettoblack commented on GitHub (Oct 20, 2026): Same here. 4x3090 24GB + 1x 5060Ti 16GB (Total 112GB) 56-core EPYC 7663 Zen3 - 512GB DDR4 Maybe a Zen3 thing? Lack of AVX512? Or lack of FP4 on GPU? prefill only ~100t/s but decode ~40t/s. maya-bench.txt: ``` Project Maya v1.1.16 benchmark, 2026-10-19 22:16 GPUs: NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 5060 Ti 16 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB; RAM 499 GB; CPU AMD EPYC 7663 56-Core Processor setup: maya-ds4.json, context 262144, GPUs [0, 2, 3, 4, 1] decode (writing the answer): mean 41.1 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 40.3 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 36.5 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 46.3 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 85 tokens/s, 2048 tokens prefill (reading the prompt): 105 tokens/s, 8192 tokens engine lines: ``` maya-report.txt: ``` ## Maya version 1.1.16, commit abc09c7 2026-10-19, Python 3.14.4, linux ## System Linux-7.0.0-38-generic-x86_64-with-glibc2.43 ## GPUs index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu 0, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 35 1, NVIDIA GeForce RTX 5060 Ti, 16311 MiB, 2 MiB, 615.71.09, 4, 8, 16, 150.00 W, 34 2, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 34 3, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 36 4, NVIDIA GeForce RTX 3090, 24576 MiB, 1 MiB, 615.71.09, 4, 16, 16, 250.00 W, 26 ## CPU and RAM AMD EPYC 7663 56-Core Processor, 112 threads, AVX2 RAM 499.2 GB, 488.3 GB available now ## Disks NAME MODEL ROTA TRAN SIZE loop0 0 74M loop1 0 20.2M loop2 0 74M loop3 0 20.2M loop4 0 66.8M loop5 0 66.8M loop6 0 50.3M loop7 0 44.7M nvme1n1 WDS200T1X0E-00AFY0 0 nvme 1.8T nvme0n1 CT2000P5SSD8 0 nvme 1.8T ## Engine build {"archs": [86, 120], "nvcc": "/usr/local/cuda/bin/nvcc", "host_compiler": null, "date": "2026-10-19 20:09"} ## Setup maya-ds4.json model DeepSeek-V4.1-Flash-1017, context 262144, GPUs [0, 2, 3, 4, 1], images off, settings {} ## Engine log maya-ds4.log: the speed and memory lines (last 80 of 0) (nothing) ## Engine log maya-ds4.log: the last 25 lines maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 19509 ms (105.0 tok/s), 128 generated in 3340 ms (38.33 tok/s); CPU lane 17.0% of the experts maya ds4 serve: drafts 62 of 123 kept; per position (kept / reached): 1: 35/52 67% 2: 16/27 59% 3: 6/11 55% 4: 3/4 75% 5: 2/2 100% maya ds4 serve: prompt 34816 tokens = 0 reused + 34816 read in 284635 ms (122.3 tok/s), 128 generated in 3422 ms (37.40 tok/s); CPU lane 6.5% of the experts maya ds4 serve: drafts 66 of 130 kept; per position (kept / reached): 1: 38/57 67% 2: 20/33 61% 3: 6/10 60% 4: 1/2 50% 5: 1/1 100% ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: the experts VRAM leaves over (~74.0 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (519.7 GB of RAM free to keep them: the most-routed 74.0 GB read ahead; prompts in chunks of 0) ds4: CUDA0 layers [0, 42]: weights 2.09 GB, experts 21.65 GB (1604 of 3072 in VRAM), caches 0.05 GB, 600 MiB free ds4: CUDA1 layers [7, 15]: weights 1.85 GB, experts 22.17 GB (2083 of 3456 in VRAM), caches 0.13 GB, 596 MiB free ds4: CUDA2 layers [16, 24]: weights 1.67 GB, experts 22.35 GB (2100 of 3456 in VRAM), caches 0.13 GB, 602 MiB free ds4: CUDA3 layers [25, 34]: weights 1.85 GB, experts 22.19 GB (2084 of 3840 in VRAM), caches 0.10 GB, 592 MiB free ds4: CUDA4 layers [35, 39] + head: weights 1.76 GB, experts 13.87 GB (1130 of 1920 in VRAM), caches 0.10 GB, 598 MiB free ds4: 6743 routed experts on the CPU lane (74.4 GB, in place in the model's files), 56 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT maya ds4 serve: prompt 52 tokens = 0 reused + 52 read in 1073 ms (48.4 tok/s), 1 generated in 2 ms (476.72 tok/s); CPU lane 20.2% of the experts maya ds4 serve: prompt 53 tokens = 0 reused + 53 read in 652 ms (81.3 tok/s), 1 generated in 0 ms (3552.85 tok/s); CPU lane 19.1% of the experts maya ds4 serve: prompt 43 tokens = 0 reused + 43 read in 538 ms (80.0 tok/s), 21 generated in 547 ms (38.40 tok/s); CPU lane 17.3% of the experts maya ds4 serve: drafts 14 of 23 kept; per position (kept / reached): 1: 6/7 86% 2: 5/5 100% 3: 2/5 40% 4: 1/2 50% 5: 0/1 0% maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 19074 ms (107.4 tok/s), 128 generated in 3191 ms (40.11 tok/s); CPU lane 5.1% of the experts maya ds4 serve: drafts 75 of 116 kept; per position (kept / reached): 1: 30/45 67% 2: 20/26 77% 3: 12/12 100% 4: 8/8 100% 5: 5/6 83% maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 19108 ms (107.2 tok/s), 128 generated in 3416 ms (37.47 tok/s); CPU lane 4.6% of the experts maya ds4 serve: drafts 60 of 131 kept; per position (kept / reached): 1: 35/59 59% 2: 17/29 59% 3: 5/6 83% 4: 2/2 100% 5: 1/1 100% maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 17137 ms (119.5 tok/s), 128 generated in 3062 ms (41.81 tok/s); CPU lane 4.2% of the experts maya ds4 serve: drafts 66 of 122 kept; per position (kept / reached): 1: 36/54 67% 2: 17/25 68% 3: 8/13 62% 4: 4/6 67% 5: 1/1 100% maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 16814 ms (121.8 tok/s), 128 generated in 3491 ms (36.66 tok/s); CPU lane 4.2% of the experts maya ds4 serve: drafts 57 of 141 kept; per position (kept / reached): 1: 34/58 59% 2: 16/25 64% 3: 4/9 44% 4: 3/4 75% 5: 0/2 0% ## Benchmark (maya-bench.txt, from --bench) Project Maya v1.1.16 benchmark, 2026-10-19 22:16 GPUs: NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 5060 Ti 16 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB, NVIDIA GeForce RTX 3090 24 GB; RAM 499 GB; CPU AMD EPYC 7663 56-Core Processor setup: maya-ds4.json, context 262144, GPUs [0, 2, 3, 4, 1] decode (writing the answer): mean 41.1 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 40.3 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 36.5 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 46.3 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 85 tokens/s, 2048 tokens prefill (reading the prompt): 105 tokens/s, 8192 tokens engine lines: ```
Author
Owner

@21387A commented on GitHub (Oct 20, 2026):

Having some issues too. The report down below was primarily composed by the agent, my personal insight on this matter is limited:


I have the same picture on a smaller box, and it is not the number of GPUs.

2x RTX 3090 24 GB, Threadripper 3990X, 256 GB DDR4, Windows 11, NVMe. Maya v1.1.16, DeepSeek-V4.1-Flash-1017 in LibertAIDAI's EXL3 2.9 bpw with DeepSeek's Engram tables, context 131072.

  • With --tp 2 --mmap-experts on: a 4,618-token prompt is read in 74 seconds (62 tokens/s); a 700-token answer is written at 18.8 tokens/s. A 553-token prompt takes 52-62 seconds (8-10 tokens/s).
  • With --tp 1 (no chunked prompts): a 4,618-token prompt is read in 97 seconds (47.6 tokens/s); the answer is written at 18.7 tokens/s.
  • For comparison, GLM-5.3-Flash (EXL3 4.05 bpw) on the same PC reads prompts at 500-700 tokens/s and writes answers at about 22 tokens/s.

The two-GPU mode does not start on this PC: maya-ds4: pinning the CPU lane's experts (3974 MiB) failed (with a build that prints the CUDA error: out of memory (2) after 117 GB in 40 maps), with 46 GB of VRAM in use. A small test that pins 160 GB with cudaHostRegister and no VRAM allocated succeeds, so together it is about 165 GB. That is why the two-GPU numbers above are with --mmap-experts on (the --tp 1 numbers need no pinning).

So the prompt path is slow on 2x3090 as well, not only on 4-5 GPUs. Is this the expected speed for now, or is there a setting I am missing?

Logs:

  • --tp 2 --mmap-experts on, the 4,618-token prompt (62.0 tokens/s prefill) and the 700-token answer (18.75 tokens/s decode).
ds4: the experts VRAM leaves over (~160.8 GB) are read in place from the model's files (--mmap-experts on) (260.2 GB of RAM free to keep them: the most-routed 160.8 GB read ahead; prompts in chunks of 8192)
ds4: experts loaded in 58.7 s (160.7 GB of the CPU lane's read ahead)
ds4: CUDA0 layers [0, 39] (tensor parallel 2, part 0) + head: weights 3.05 GB, experts 17.63 GB (2715 of 15360 in VRAM), caches 0.12 GB, 556 MiB free
ds4: CUDA1 layers [0, 39] (tensor parallel 2, part 1): weights 3.05 GB, experts 17.63 GB (2715 of 15360 in VRAM), caches 0.12 GB, 568 MiB free
ds4: 12645 routed experts on the CPU lane (161.4 GB, in place in the model's files), 32 threads
maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT
maya ds4 serve: prompt 46 tokens = 0 reused + 46 read in 5927 ms (7.8 tok/s), 22 generated in 2542 ms (8.66 tok/s); CPU lane 45.5% of the experts
maya ds4 serve: prompt 4618 tokens = 0 reused + 4618 read in 74430 ms (62.0 tok/s), 400 generated in 29816 ms (13.42 tok/s); CPU lane 2.4% of the experts
maya ds4 serve: prompt 60 tokens = 0 reused + 60 read in 2374 ms (25.3 tok/s), 700 generated in 37325 ms (18.75 tok/s); CPU lane 4.9% of the experts
  • the same mode, the 553/557-token prompts (52-62 seconds).
ds4: the experts VRAM leaves over (~160.9 GB) are read in place from the model's files (--mmap-experts on) (258.2 GB of RAM free to keep them: the most-routed 160.9 GB read ahead; prompts in chunks of 8192)
ds4: experts loaded in 42.9 s (160.9 GB of the CPU lane's read ahead)
ds4: CUDA0 layers [0, 39] (tensor parallel 2, part 0) + head: weights 3.05 GB, experts 17.37 GB (2675 of 15360 in VRAM), caches 0.06 GB, 525 MiB free
ds4: CUDA1 layers [0, 39] (tensor parallel 2, part 1): weights 3.05 GB, experts 17.37 GB (2675 of 15360 in VRAM), caches 0.06 GB, 882 MiB free
ds4: 12685 routed experts on the CPU lane (161.9 GB, in place in the model's files), 32 threads
maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT
maya ds4 serve: prompt 557 tokens = 0 reused + 557 read in 61923 ms (9.0 tok/s), 128 generated in 17801 ms (7.19 tok/s); CPU lane 7.3% of the experts
maya ds4 serve: prompt 553 tokens = 0 reused + 553 read in 57578 ms (9.6 tok/s), 384 generated in 27186 ms (14.13 tok/s); CPU lane 8.9% of the experts
maya ds4 serve: prompt 564 tokens = 0 reused + 564 read in 53072 ms (10.6 tok/s), 384 generated in 22750 ms (16.88 tok/s); CPU lane 9.9% of the experts
maya ds4 serve: prompt 562 tokens = 0 reused + 562 read in 51935 ms (10.8 tok/s), 384 generated in 20033 ms (19.17 tok/s); CPU lane 9.8% of the experts
  • --tp 1, the 4,618-token prompt (47.6 tokens/s prefill) and the answer (18.73 tokens/s decode).
ds4: CUDA0 layers [0, 19]: weights 2.43 GB, experts 20.55 GB (1576 of 7680 in VRAM), caches 0.07 GB, 590 MiB free
ds4: CUDA1 layers [20, 39] + head: weights 2.74 GB, experts 20.61 GB (1613 of 7680 in VRAM), caches 0.05 GB, 576 MiB free
ds4: 12171 routed experts on the CPU lane (155.4 GB of RAM, 1 NUMA parts), 32 threads
maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT
maya ds4 serve: prompt 4618 tokens = 0 reused + 4618 read in 97018 ms (47.6 tok/s), 400 generated in 21351 ms (18.73 tok/s); CPU lane 21.6% of the experts
  • the pinning ... failed stop with --tp 2.
maya-ds4: pinning the CPU lane's experts (3974 MiB) failed
maya-ds4: pinning the CPU lane's experts (3974 MiB) failed

Details:

  • Config: --pack <model>\maya-ds4 --max-context 131072 --tp 2 --dspark none --vision off --mmap-experts on; two RTX 3090s, 256 GB of RAM, Windows 11.
  • Model: EXL3 2.9 bpw (LibertAIDAI) with the two Engram tables from DeepSeek's base repo (414 GB in all).
  • Page file: 128 GB. Raising it from 4 GB did not change the pinning result.
  • --mmap-experts on is not a speed setting here: it is what lets the two-GPU mode start, because the engine cannot pin the CPU lane on this PC. The --tp 1 numbers need no pinning.
  • There is no tuning step for DeepSeek in the setup ("the engine balances its own split"), and --calibrate / --speed-calibration report "nothing to tune"; only the DSpark drafter is calibrated, and it is off here.
<!-- gh-comment-id:6284446120 --> @21387A commented on GitHub (Oct 20, 2026): Having some issues too. The report down below was primarily composed by the agent, my personal insight on this matter is limited: --- I have the same picture on a smaller box, and it is not the number of GPUs. 2x RTX 3090 24 GB, Threadripper 3990X, 256 GB DDR4, Windows 11, NVMe. Maya v1.1.16, DeepSeek-V4.1-Flash-1017 in LibertAIDAI's EXL3 2.9 bpw with DeepSeek's Engram tables, context 131072. - With `--tp 2 --mmap-experts on`: a 4,618-token prompt is read in 74 seconds (62 tokens/s); a 700-token answer is written at 18.8 tokens/s. A 553-token prompt takes 52-62 seconds (8-10 tokens/s). - With `--tp 1` (no chunked prompts): a 4,618-token prompt is read in 97 seconds (47.6 tokens/s); the answer is written at 18.7 tokens/s. - For comparison, GLM-5.3-Flash (EXL3 4.05 bpw) on the same PC reads prompts at 500-700 tokens/s and writes answers at about 22 tokens/s. The two-GPU mode does not start on this PC: `maya-ds4: pinning the CPU lane's experts (3974 MiB) failed` (with a build that prints the CUDA error: `out of memory (2)` after 117 GB in 40 maps), with 46 GB of VRAM in use. A small test that pins 160 GB with `cudaHostRegister` and no VRAM allocated succeeds, so together it is about 165 GB. That is why the two-GPU numbers above are with `--mmap-experts on` (the `--tp 1` numbers need no pinning). So the prompt path is slow on 2x3090 as well, not only on 4-5 GPUs. Is this the expected speed for now, or is there a setting I am missing? Logs: - `--tp 2 --mmap-experts on`, the 4,618-token prompt (62.0 tokens/s prefill) and the 700-token answer (18.75 tokens/s decode). ``` ds4: the experts VRAM leaves over (~160.8 GB) are read in place from the model's files (--mmap-experts on) (260.2 GB of RAM free to keep them: the most-routed 160.8 GB read ahead; prompts in chunks of 8192) ds4: experts loaded in 58.7 s (160.7 GB of the CPU lane's read ahead) ds4: CUDA0 layers [0, 39] (tensor parallel 2, part 0) + head: weights 3.05 GB, experts 17.63 GB (2715 of 15360 in VRAM), caches 0.12 GB, 556 MiB free ds4: CUDA1 layers [0, 39] (tensor parallel 2, part 1): weights 3.05 GB, experts 17.63 GB (2715 of 15360 in VRAM), caches 0.12 GB, 568 MiB free ds4: 12645 routed experts on the CPU lane (161.4 GB, in place in the model's files), 32 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT maya ds4 serve: prompt 46 tokens = 0 reused + 46 read in 5927 ms (7.8 tok/s), 22 generated in 2542 ms (8.66 tok/s); CPU lane 45.5% of the experts maya ds4 serve: prompt 4618 tokens = 0 reused + 4618 read in 74430 ms (62.0 tok/s), 400 generated in 29816 ms (13.42 tok/s); CPU lane 2.4% of the experts maya ds4 serve: prompt 60 tokens = 0 reused + 60 read in 2374 ms (25.3 tok/s), 700 generated in 37325 ms (18.75 tok/s); CPU lane 4.9% of the experts ``` - the same mode, the 553/557-token prompts (52-62 seconds). ``` ds4: the experts VRAM leaves over (~160.9 GB) are read in place from the model's files (--mmap-experts on) (258.2 GB of RAM free to keep them: the most-routed 160.9 GB read ahead; prompts in chunks of 8192) ds4: experts loaded in 42.9 s (160.9 GB of the CPU lane's read ahead) ds4: CUDA0 layers [0, 39] (tensor parallel 2, part 0) + head: weights 3.05 GB, experts 17.37 GB (2675 of 15360 in VRAM), caches 0.06 GB, 525 MiB free ds4: CUDA1 layers [0, 39] (tensor parallel 2, part 1): weights 3.05 GB, experts 17.37 GB (2675 of 15360 in VRAM), caches 0.06 GB, 882 MiB free ds4: 12685 routed experts on the CPU lane (161.9 GB, in place in the model's files), 32 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT maya ds4 serve: prompt 557 tokens = 0 reused + 557 read in 61923 ms (9.0 tok/s), 128 generated in 17801 ms (7.19 tok/s); CPU lane 7.3% of the experts maya ds4 serve: prompt 553 tokens = 0 reused + 553 read in 57578 ms (9.6 tok/s), 384 generated in 27186 ms (14.13 tok/s); CPU lane 8.9% of the experts maya ds4 serve: prompt 564 tokens = 0 reused + 564 read in 53072 ms (10.6 tok/s), 384 generated in 22750 ms (16.88 tok/s); CPU lane 9.9% of the experts maya ds4 serve: prompt 562 tokens = 0 reused + 562 read in 51935 ms (10.8 tok/s), 384 generated in 20033 ms (19.17 tok/s); CPU lane 9.8% of the experts ``` - `--tp 1`, the 4,618-token prompt (47.6 tokens/s prefill) and the answer (18.73 tokens/s decode). ``` ds4: CUDA0 layers [0, 19]: weights 2.43 GB, experts 20.55 GB (1576 of 7680 in VRAM), caches 0.07 GB, 590 MiB free ds4: CUDA1 layers [20, 39] + head: weights 2.74 GB, experts 20.61 GB (1613 of 7680 in VRAM), caches 0.05 GB, 576 MiB free ds4: 12171 routed experts on the CPU lane (155.4 GB of RAM, 1 NUMA parts), 32 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT maya ds4 serve: prompt 4618 tokens = 0 reused + 4618 read in 97018 ms (47.6 tok/s), 400 generated in 21351 ms (18.73 tok/s); CPU lane 21.6% of the experts ``` - the `pinning ... failed` stop with `--tp 2`. ``` maya-ds4: pinning the CPU lane's experts (3974 MiB) failed maya-ds4: pinning the CPU lane's experts (3974 MiB) failed ``` Details: - Config: `--pack <model>\maya-ds4 --max-context 131072 --tp 2 --dspark none --vision off --mmap-experts on`; two RTX 3090s, 256 GB of RAM, Windows 11. - Model: EXL3 2.9 bpw (LibertAIDAI) with the two Engram tables from DeepSeek's base repo (414 GB in all). - Page file: 128 GB. Raising it from 4 GB did not change the pinning result. - `--mmap-experts on` is not a speed setting here: it is what lets the two-GPU mode start, because the engine cannot pin the CPU lane on this PC. The `--tp 1` numbers need no pinning. - There is no tuning step for DeepSeek in the setup ("the engine balances its own split"), and `--calibrate` / `--speed-calibration` report "nothing to tune"; only the DSpark drafter is calibrated, and it is off here.
Author
Owner

@21387A commented on GitHub (Oct 20, 2026):

One more data point from the same server, a longer prompt:

maya ds4 serve: prompt 30690 tokens = 0 reused + 30690 read in 287944 ms (106.6 tok/s), 1746 generated in 93902 ms (18.59 tok/s); CPU lane 2.0% of the experts

The prefill rate depends on the prompt length: 8-10 tokens/s at 553 tokens, 62 at 4,618, 106.6 at 30,690. The engine reads prompts in chunks of 8192, and the CPU lane (161 GB) is read in place once per chunk, so short prompts pay the same read for fewer tokens.

...so while it's NOT 2x of decode speed in my case, it is quite slow indeed.


updated 1.1.16 to 1.1.17 --> prefill situation stays roughly the same, and the decode speed is same~ish too, but I'm not sure whether it was this dynamic previously - rising quickly from ~13 t/s to ~18 t/s, and afterwards to consistent 21 - 24 t/s in a few messages;

Prompt (tokens) New tokens read Prefill Answer tokens Decode CPU lane
31,883 31,883 (cold) 291.9 s (109.2 tok/s) 91 13.0 tok/s 0.4%
31,943 61 2.2 s 78 18.9 tok/s 0.5%
31,990 48 1.4 s 101 18.9 tok/s 0.6%
32,073 84 2.1 s 578 19.7 tok/s 1.0%
32,127 55 1.2 s 771 22.0 tok/s 1.4%
32,271 145 2.8 s 879 20.0 tok/s 1.9%
32,393 123 2.5 s 611 23.2 tok/s 2.2%
32,448 56 1.2 s 302 23.7 tok/s 2.4%
32,508 61 1.4 s 443 23.7 tok/s 2.6%
32,616 109 2.3 s 150 21.7 tok/s 2.7%
<!-- gh-comment-id:6284646580 --> @21387A commented on GitHub (Oct 20, 2026): One more data point from the same server, a longer prompt: ``` maya ds4 serve: prompt 30690 tokens = 0 reused + 30690 read in 287944 ms (106.6 tok/s), 1746 generated in 93902 ms (18.59 tok/s); CPU lane 2.0% of the experts ``` The prefill rate depends on the prompt length: 8-10 tokens/s at 553 tokens, 62 at 4,618, 106.6 at 30,690. The engine reads prompts in chunks of 8192, and the CPU lane (161 GB) is read in place once per chunk, so short prompts pay the same read for fewer tokens. ...so while it's NOT 2x of decode speed in my case, it is quite slow indeed. --- **updated 1.1.16 to 1.1.17 -->** **prefill situation stays roughly the same**, and the decode speed is same~ish too, but I'm not sure whether it was this dynamic previously - rising quickly from ~13 t/s to ~18 t/s, and afterwards to consistent 21 - 24 t/s in a few messages; | Prompt (tokens) | New tokens read | Prefill | Answer tokens | Decode | CPU lane | |---|---|---|---|---|---| | 31,883 | 31,883 (cold) | 291.9 s (109.2 tok/s) | 91 | 13.0 tok/s | 0.4% | | 31,943 | 61 | 2.2 s | 78 | 18.9 tok/s | 0.5% | | 31,990 | 48 | 1.4 s | 101 | 18.9 tok/s | 0.6% | | 32,073 | 84 | 2.1 s | 578 | 19.7 tok/s | 1.0% | | 32,127 | 55 | 1.2 s | 771 | 22.0 tok/s | 1.4% | | 32,271 | 145 | 2.8 s | 879 | 20.0 tok/s | 1.9% | | 32,393 | 123 | 2.5 s | 611 | 23.2 tok/s | 2.2% | | 32,448 | 56 | 1.2 s | 302 | 23.7 tok/s | 2.4% | | 32,508 | 61 | 1.4 s | 443 | 23.7 tok/s | 2.6% | | 32,616 | 109 | 2.3 s | 150 | 21.7 tok/s | 2.7% |
Author
Owner

@jerem91150 commented on GitHub (Oct 20, 2026):

One more data point, on a single GPU, with a cause for that case and a workaround.

v1.1.16 (abc09c7), Windows 11, one RX 7900 XTX 24 GB (gfx1100, HIP build from tools\hip\build_maya_windows.bat), Ryzen 9 7900X3D, 64 GB RAM, model files on a PCIe 4 NVMe. DeepSeek-V4.1-Flash-1017 Maya-S, set up with maya.py --setup --backend hip --gpu 1 --model DeepSeek-V4.1-Flash-1017 --ds4-quant maya-s.

The config the setup wrote has --tp 2 and no --threads. On one GPU the engine drops to tp 1, so par = o.threads || tp > 1 is false and chunk stays 0 (ds4_model.cu, around line 1683). The startup line says it:

ds4: the experts VRAM leaves over (~153.1 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (47.4 GB of RAM free to keep them: the most-routed 38.8 GB read ahead; prompts in chunks of 0)

A fresh 26K prompt then read at about 4 tok/s (1,280 of 26,149 tokens after 333 s, I stopped it).

With --threads on added to the config's args, the same line says prompts in chunks of 8192, and the same 26,151-token prompt is read in 224 s (116.7 tok/s), right answer. Second run 116.5 tok/s. Decode is about the same: median 5.4 tok/s without --threads (3 stories of ~480 tokens), 5.15 tok/s with it (6 stories over two runs).

So on a single-GPU box the config from the setup reads prompts about 25x slower than it could. Maybe the setup should write --threads on when there is one GPU, or chunked prefill shouldn't depend on threads/tp. I haven't checked CUDA single-GPU, but it's the same code path.

Short prompts stay slow even with chunks of 8192 (34-99 tokens read at 4-7 tok/s), which fits what @21387A saw: every chunk pays one pass over the CPU-side experts.

Side note in case it's useful: DSpark is slower than no draft on this box. Alternated, two runs each, --threads on:

no DSpark DSpark
decode, 6 stories median 5.15 tok/s median 4.2 tok/s
reasoning question (reasoning_effort high) 229 s, 895 tokens 520 s, 1201 tokens
26K prompt 225.6 s 232.3 s

Drafts were accepted at 64-77%, but with DSpark loaded about 10 GB more of the experts are outside VRAM (163.7 GB against 153.1 GB), and that costs more than the drafts save on one 24 GB card.

<!-- gh-comment-id:6285430382 --> @jerem91150 commented on GitHub (Oct 20, 2026): One more data point, on a single GPU, with a cause for that case and a workaround. v1.1.16 (abc09c7), Windows 11, one RX 7900 XTX 24 GB (gfx1100, HIP build from `tools\hip\build_maya_windows.bat`), Ryzen 9 7900X3D, 64 GB RAM, model files on a PCIe 4 NVMe. DeepSeek-V4.1-Flash-1017 Maya-S, set up with `maya.py --setup --backend hip --gpu 1 --model DeepSeek-V4.1-Flash-1017 --ds4-quant maya-s`. The config the setup wrote has `--tp 2` and no `--threads`. On one GPU the engine drops to tp 1, so `par = o.threads || tp > 1` is false and `chunk` stays 0 (`ds4_model.cu`, around line 1683). The startup line says it: ``` ds4: the experts VRAM leaves over (~153.1 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (47.4 GB of RAM free to keep them: the most-routed 38.8 GB read ahead; prompts in chunks of 0) ``` A fresh 26K prompt then read at about 4 tok/s (1,280 of 26,149 tokens after 333 s, I stopped it). With `--threads on` added to the config's args, the same line says `prompts in chunks of 8192`, and the same 26,151-token prompt is read in 224 s (116.7 tok/s), right answer. Second run 116.5 tok/s. Decode is about the same: median 5.4 tok/s without `--threads` (3 stories of ~480 tokens), 5.15 tok/s with it (6 stories over two runs). So on a single-GPU box the config from the setup reads prompts about 25x slower than it could. Maybe the setup should write `--threads on` when there is one GPU, or chunked prefill shouldn't depend on `threads`/`tp`. I haven't checked CUDA single-GPU, but it's the same code path. Short prompts stay slow even with chunks of 8192 (34-99 tokens read at 4-7 tok/s), which fits what @21387A saw: every chunk pays one pass over the CPU-side experts. Side note in case it's useful: DSpark is slower than no draft on this box. Alternated, two runs each, `--threads on`: | | no DSpark | DSpark | |---|---|---| | decode, 6 stories | median 5.15 tok/s | median 4.2 tok/s | | reasoning question (`reasoning_effort` high) | 229 s, 895 tokens | 520 s, 1201 tokens | | 26K prompt | 225.6 s | 232.3 s | Drafts were accepted at 64-77%, but with DSpark loaded about 10 GB more of the experts are outside VRAM (163.7 GB against 153.1 GB), and that costs more than the drafts save on one 24 GB card.
Author
Owner

@jerem91150 commented on GitHub (Oct 20, 2026):

Follow-up to my comment above: I posted it about 35 minutes after v1.1.17 was out, sorry, I had missed #279. Re-tested on v1.1.17 (8d9a9b5, HIP build for gfx1100 only), same PC, same Maya-S files from v1.1.16, the config exactly as the setup writes it (--tp 2 --dspark none, no --threads):

ds4: the experts VRAM leaves over (~155.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (45.5 GB of RAM free to keep them: the most-routed 36.9 GB read ahead; prompts in chunks of 8192)

So the fix works on a single AMD card too, no --threads on needed any more. Alternated runs, fresh server each:

1.1.17 run 1 1.1.16 + --threads on 1.1.17 run 2
fresh 26,154-token prompt 218.0 s (120.0 tok/s) 218.2 s (119.8 tok/s) 218.6 s (119.6 tok/s)
fresh 8,014-token prompt 55.6 s (144.2 tok/s) 57.0 s (140.7 tok/s) 55.6 s (144.1 tok/s)
decode, 3 stories of ~450 tokens 4.47 / 5.75 / 5.60 tok/s 4.41 / 2.88 / 5.71 tok/s 4.45 / 5.11 / 5.19 tok/s
reasoning question, decode 4.43 tok/s 4.50 tok/s 4.52 tok/s

The 26K answer was right every time. So on this box 1.1.17 by default is as fast as 1.1.16 with --threads on, but I expected more from "long prompts read each expert once". I ran two more sessions with DS4_FLOW_STATS=1, one with the default and one with DS4_LAYER_MAJOR=0 (one run each, so take the exact times with some noise):

default (layer-major):
ds4 prompt stream, CUDA0: 26157 tokens in 197383 ms; 52619 experts streamed: 13836 from the files (152.1 GB, 0.77 GB/s: 0.0 GB from the disk unbuffered, 152.1 GB through the page cache), 0 from RAM (0.0 GB), 38783 again from the layer cache (layer-major, 4 chunks, 4.5 GB of RAM); 10240 likely ones queued early, 86 of them unpicked; the compute waited 107667 ms for reads

DS4_LAYER_MAJOR=0:
ds4 prompt stream, CUDA0: 26157 tokens in 253558 ms; 52641 experts streamed: 52641 from the files (578.9 GB, 2.28 GB/s: 0.0 GB from the disk unbuffered, 578.9 GB through the page cache), 0 from RAM (0.0 GB); 10240 likely ones queued early, 70 of them unpicked; the compute waited 176033 ms for reads

single chunk, for reference (8K, default):
ds4 prompt stream, CUDA0: 8017 tokens in 62694 ms; 13252 experts streamed: 13252 from the files (145.8 GB, 2.32 GB/s: 0.0 GB from the disk unbuffered, 145.8 GB through the page cache), 0 from RAM (0.0 GB); 2560 likely ones queued early, 23 of them unpicked; the compute waited 41085 ms for reads

Layer-major does what it says: 152 GB read from the files instead of 579, and here it was 197 s against 254 s. But the read rate drops from ~2.3 GB/s to 0.77 GB/s, and the compute still waited 108 s of the 197 s for reads. So the 3.8x fewer bytes give only ~1.3x. My guess, not checked: with one layer at a time there are fewer reads in flight per layer than when the chunks run through all the layers. Also, everything goes through the page cache (0.0 GB from the disk unbuffered) on this Windows box, on a PCIe 4 NVMe that does a lot more than 2.3 GB/s raw.

Happy to run anything else you want measured on this setup (one RX 7900 XTX, 64 GB RAM, Windows).

<!-- gh-comment-id:6287447715 --> @jerem91150 commented on GitHub (Oct 20, 2026): Follow-up to my comment above: I posted it about 35 minutes after v1.1.17 was out, sorry, I had missed #279. Re-tested on v1.1.17 (8d9a9b5, HIP build for gfx1100 only), same PC, same Maya-S files from v1.1.16, the config exactly as the setup writes it (`--tp 2 --dspark none`, no `--threads`): ``` ds4: the experts VRAM leaves over (~155.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (45.5 GB of RAM free to keep them: the most-routed 36.9 GB read ahead; prompts in chunks of 8192) ``` So the fix works on a single AMD card too, no `--threads on` needed any more. Alternated runs, fresh server each: | | 1.1.17 run 1 | 1.1.16 + `--threads on` | 1.1.17 run 2 | |---|---|---|---| | fresh 26,154-token prompt | 218.0 s (120.0 tok/s) | 218.2 s (119.8 tok/s) | 218.6 s (119.6 tok/s) | | fresh 8,014-token prompt | 55.6 s (144.2 tok/s) | 57.0 s (140.7 tok/s) | 55.6 s (144.1 tok/s) | | decode, 3 stories of ~450 tokens | 4.47 / 5.75 / 5.60 tok/s | 4.41 / 2.88 / 5.71 tok/s | 4.45 / 5.11 / 5.19 tok/s | | reasoning question, decode | 4.43 tok/s | 4.50 tok/s | 4.52 tok/s | The 26K answer was right every time. So on this box 1.1.17 by default is as fast as 1.1.16 with `--threads on`, but I expected more from "long prompts read each expert once". I ran two more sessions with `DS4_FLOW_STATS=1`, one with the default and one with `DS4_LAYER_MAJOR=0` (one run each, so take the exact times with some noise): ``` default (layer-major): ds4 prompt stream, CUDA0: 26157 tokens in 197383 ms; 52619 experts streamed: 13836 from the files (152.1 GB, 0.77 GB/s: 0.0 GB from the disk unbuffered, 152.1 GB through the page cache), 0 from RAM (0.0 GB), 38783 again from the layer cache (layer-major, 4 chunks, 4.5 GB of RAM); 10240 likely ones queued early, 86 of them unpicked; the compute waited 107667 ms for reads DS4_LAYER_MAJOR=0: ds4 prompt stream, CUDA0: 26157 tokens in 253558 ms; 52641 experts streamed: 52641 from the files (578.9 GB, 2.28 GB/s: 0.0 GB from the disk unbuffered, 578.9 GB through the page cache), 0 from RAM (0.0 GB); 10240 likely ones queued early, 70 of them unpicked; the compute waited 176033 ms for reads single chunk, for reference (8K, default): ds4 prompt stream, CUDA0: 8017 tokens in 62694 ms; 13252 experts streamed: 13252 from the files (145.8 GB, 2.32 GB/s: 0.0 GB from the disk unbuffered, 145.8 GB through the page cache), 0 from RAM (0.0 GB); 2560 likely ones queued early, 23 of them unpicked; the compute waited 41085 ms for reads ``` Layer-major does what it says: 152 GB read from the files instead of 579, and here it was 197 s against 254 s. But the read rate drops from ~2.3 GB/s to 0.77 GB/s, and the compute still waited 108 s of the 197 s for reads. So the 3.8x fewer bytes give only ~1.3x. My guess, not checked: with one layer at a time there are fewer reads in flight per layer than when the chunks run through all the layers. Also, everything goes through the page cache (`0.0 GB from the disk unbuffered`) on this Windows box, on a PCIe 4 NVMe that does a lot more than 2.3 GB/s raw. Happy to run anything else you want measured on this setup (one RX 7900 XTX, 64 GB RAM, Windows).
Author
Owner

@byphilipp commented on GitHub (Oct 20, 2026):

v1.1.17

Project Maya v1.1.17 - GLM-5.3-Flash or DeepSeek-V4.1-Flash-1017 on your own GPU(s).
=== Step 1: benchmark: maya-ds4.json (loading the model first - a minute or a few) ===
  [ok] loaded in 35 s
  decode    37.4 tokens/s   Write a Python function that parses a CSV file into a list o
  decode    26.1 tokens/s   Explain how photosynthesis works, step by step, for a high-s
  decode    38.2 tokens/s   Write a complete HTML page with a canvas that draws a bounci
  prefill    408 tokens/s   a 2048-token prompt
  prefill    786 tokens/s   a 8192-token prompt

with --tp 2 --prefill-chunk 8192

  decode    46.7 tokens/s   Write a Python function that parses a CSV file into a list o
  decode    36.7 tokens/s   Explain how photosynthesis works, step by step, for a high-s
  decode    52.9 tokens/s   Write a complete HTML page with a canvas that draws a bounci
  prefill    421 tokens/s   a 2048-token prompt
  prefill    847 tokens/s   a 8192-token prompt
<!-- gh-comment-id:6289820065 --> @byphilipp commented on GitHub (Oct 20, 2026): v1.1.17 ``` Project Maya v1.1.17 - GLM-5.3-Flash or DeepSeek-V4.1-Flash-1017 on your own GPU(s). === Step 1: benchmark: maya-ds4.json (loading the model first - a minute or a few) === [ok] loaded in 35 s decode 37.4 tokens/s Write a Python function that parses a CSV file into a list o decode 26.1 tokens/s Explain how photosynthesis works, step by step, for a high-s decode 38.2 tokens/s Write a complete HTML page with a canvas that draws a bounci prefill 408 tokens/s a 2048-token prompt prefill 786 tokens/s a 8192-token prompt ``` with --tp 2 --prefill-chunk 8192 ``` decode 46.7 tokens/s Write a Python function that parses a CSV file into a list o decode 36.7 tokens/s Explain how photosynthesis works, step by step, for a high-s decode 52.9 tokens/s Write a complete HTML page with a canvas that draws a bounci prefill 421 tokens/s a 2048-token prompt prefill 847 tokens/s a 8192-token prompt ```
Author
Owner

@mw00 commented on GitHub (Oct 20, 2026):

Thanks, everyone, for the reports and logs! This was fixed in v1.1.17: DeepSeek prompts now run in 8K chunks by default (the 2 -> 1 tensor-parallel fallback had switched the chunked path off, so prompts ran in windows of 16), and long prompts read each expert once per layer. The results posted here on v1.1.17 confirm it: prefill is now many times the decode speed, without --threads on. Closing as fixed; if you still see prefill near decode speed on v1.1.17 or later, please open a new issue with your maya-report.txt.

<!-- gh-comment-id:6290903996 --> @mw00 commented on GitHub (Oct 20, 2026): Thanks, everyone, for the reports and logs! This was fixed in v1.1.17: DeepSeek prompts now run in 8K chunks by default (the 2 -> 1 tensor-parallel fallback had switched the chunked path off, so prompts ran in windows of 16), and long prompts read each expert once per layer. The results posted here on v1.1.17 confirm it: prefill is now many times the decode speed, without `--threads on`. Closing as fixed; if you still see prefill near decode speed on v1.1.17 or later, please open a new issue with your `maya-report.txt`.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#108
No description provided.