[GH-ISSUE #416] DeepSeek V4.1 Maya-XS performance on RTX 4080 SUPER 32GB: 9.6 tok/s in official benchmark, DSpark 58.7% slower, and DS4 reporting issues #165

Closed
opened 2026-10-29 21:21:54 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Micro-ATP on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/416

Summary

I tested DeepSeek-V4.1-Flash-1017 Maya-XS using the official benchmark, report generator, DSpark calibration script, and regression tests.

The model successfully loads and serves requests at a 65,536-token context with vision enabled. However, performance on this machine is below my requirements for interactive use:

  • Official --bench: 9.6 tokens/s average across three 256-token answers.
  • Official DSpark calibration at the same context and vision settings:
    • DSpark disabled: 13.96 tokens/s.
    • DSpark enabled: 5.76 tokens/s.
    • Change: −58.7%, despite approximately 70% draft acceptance.

I also found three issues in the DS4 benchmark/reporting path:

  1. --bench sends GLM prompt markers to the DS4 engine.
  2. --report excludes DS4 performance and placement lines from its main diagnostic selection.
  3. --report says images off even though integrated DS4 vision is enabled and actual image inference works.

All relevant configuration, commands, results, and examples are included below.

Version and environment

Component Configuration
Maya 1.1.24
Source commit 25deec505b525212e05faa58697d9d2b7d17fdb3
Build From source in Docker, Release, CUDA SM89
GPU NVIDIA GeForce RTX 4080 SUPER, 32,760 MiB VRAM
Driver 615.78.08
PCIe Gen4 ×16 during inference
CPU Threadripper 3970X, 32 cores / 64 threads
CPU instruction support AVX2, no AVX-512
RAM 157.1 GiB
Model storage Two-device NVMe RAID0
Host kernel Linux 7.2.10-arch1-1
Container runtime Python 3.12.3, glibc 2.39

The GPU has a 32 GiB configuration; this is not the standard retail 16 GiB specification.

The CPU brand string exposed to the container is:

Threadripper 3970X

No other inference model was running on the GPU during these tests. The source tree was clean, and no upstream test or engine source was patched.

Model and weights

Main model:

Repository: peasantsmith/DeepSeek-V4.1-Flash-1017-Maya-GGUF
Revision:   c273fcbdda76a1db074c2f414cb70edbfca2f2ef
Variant:    Maya-XS IQ1_S
Files:      Five GGUF shards

DSpark:

dspark/dspark-xs2.bin
dspark/dspark-xs2.json

The model and DSpark files total approximately 261.59 GiB.

Vision tower:

Repository: deepseek-ai/DeepSeek-V4.1-Flash-1017
Revision:   1bae0e1088993b9b82de08f59de5be5a34e42170

The vision tower was converted using the official tools/ds4/vision_pack.py, then included in the pack using the official GGUF packing tool.

The complete model is not RAM resident. Expert files use mmap/page cache, and Engram remains on disk. Expert-skipping approximation was disabled.

Runtime configuration

{
  "exe": "/opt/maya/build/maya-ds4",
  "args": [
    "--pack", "/runtime/pack",
    "--max-context", "65536",
    "--reserve-mib", "1536",
    "--mmap-experts", "auto",
    "--dspark", "none",
    "--vision", "on",
    "--tp", "1"
  ],
  "cwd": "/opt/maya",
  "tokenizer": "/runtime/pack/tokenizer",
  "model_name": "DeepSeek-V4.1-Flash-1017-Maya-XS",
  "gpu": [0],
  "sampling": {
    "temperature": 1.0,
    "top_p": 1.0
  },
  "reasoning_effort": "high",
  "fit_max_tokens": true,
  "host": "127.0.0.1",
  "port": 8014,
  "env": {
    "DS4_ENGRAM_RAM": "0",
    "DS4_REQUIRE_ALL_RAM": "0",
    "MAYA_DS4_DISK_SKIP_W": "0"
  },
  "log": "/runtime/engine.log"
}

Equivalent engine command:

/opt/maya/build/maya-ds4 --serve \
  --pack /runtime/pack \
  --max-context 65536 \
  --reserve-mib 1536 \
  --mmap-experts auto \
  --dspark none \
  --vision on \
  --tp 1

Representative startup placement from the official benchmark:

ds4: the experts VRAM leaves over (~84.8 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (132.5 GB of RAM free to keep them: the most-routed 84.8 GB read ahead; prompts in chunks of 32768)
ds4: PCIe lane: 40 layers on 1 GPU(s) stream some of a token's CPU-lane experts (2 reading threads; the times file's, 89 ms)
ds4: CUDA0 layers [0, 39] + head: weights 8.46 GB, experts 21.29 GB (3040 of 15360 in VRAM), caches 0.06 GB, 1488 MiB free
ds4: 12320 routed experts on the CPU lane (85.2 GB, in place in the model's files), 32 threads

These are the engine's own units and estimates, not independently measured RAM residency.

Official benchmark

I stopped the serving container and ran:

python maya.py --bench --config /config/maya.json
python maya.py --report --config /config/maya.json

Both commands exited with code 0.

The primary benchmark ran directly against the real engine, without a protocol-recording wrapper.

Original maya-bench.txt:

Project Maya v1.1.24 benchmark, 2026-10-23 09:11
GPUs: NVIDIA GeForce RTX 4080 SUPER 32 GB; RAM 157 GB; CPU AMD Eng Sample: 2DE832E6UIVG5_42/36_Y
setup: maya.json, context 65536, GPUs [0]
decode (writing the answer): mean 9.6 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
    10.5 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
     9.5 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
     9.0 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 193 tokens/s, 2048 tokens
prefill (reading the prompt): 573 tokens/s, 8192 tokens

engine lines:

Corresponding request timing lines:

maya ds4 serve: prompt 42 tokens = 0 reused + 42 read in 2230 ms (18.8 tok/s), 256 generated in 24392 ms (10.50 tok/s); CPU lane 4.0% of the experts
maya ds4 serve: prompt 33 tokens = 0 reused + 33 read in 2129 ms (15.5 tok/s), 256 generated in 26981 ms (9.49 tok/s); CPU lane 6.7% of the experts
maya ds4 serve: prompt 35 tokens = 0 reused + 35 read in 2121 ms (16.5 tok/s), 256 generated in 28578 ms (8.96 tok/s); CPU lane 7.3% of the experts
maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 10605 ms (193.1 tok/s), 1 generated in 0 ms (7009.48 tok/s); CPU lane 0.0% of the experts
maya ds4 serve: prompt 8192 tokens = 0 reused + 8192 read in 14303 ms (572.7 tok/s), 1 generated in 0 ms (7301.19 tok/s); CPU lane 0.0% of the experts

The single-token prefill probes are used only for prefill measurement; their reported decode rates are not meaningful.

Native benchmark example

I separately recorded the unchanged official benchmark's native stdin/stdout to inspect the actual prompt and generated tokens. This was a separate run, so its timing differs from the primary uninstrumented benchmark above.

Exact decoded input for the CSV case:

[gMASK]<sop><|user|>
Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.<|assistant|>
</think>

Complete decoded output at the 256-token limit:

Here's a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring:

```python
import csv
from typing import List, Dict


def parse_csv(file_path: str) -> List[Dict[str, str]]:
    """
    Parses a CSV file into a list of dictionaries.

    Args:
        file_path (str): The path to the CSV file.

    Returns:
        List[Dict[str, str]]: A list of dictionaries, where each dictionary represents a row in the CSV file.
    """
    with open(file_path, 'r') as file:
        reader = csv.DictReader(file)
        return [row for row in reader]
```

In this function:

- We use the `csv.DictReader` class to read the CSV file. `DictReader` automatically uses the first row as the header and returns each row as a dictionary.
- We use a list comprehension to create a list of dictionaries from the reader.
- The function returns a list of dictionaries, where each dictionary represents a row in the CSV file.

Note: This function assumes that the CSV file has a header row. If the CSV file does not have a header row, you may need to modify the function to 

Native terminal line:

DONE 256 42 2529.5 25361.4 length 0 0 0 58230 61200

All three measured benchmark answers reached the configured 256-token limit. I am not treating truncated explanations or incomplete HTML at that limit as model failures.

Official DSpark calibration

I also ran the official DS4 calibration:

python tools/calibrate_ds4.py /artifacts/config-calibration.json

The configuration retained the same:

  • 65,536-token context.
  • Vision enabled.
  • GPU, reserve, mmap, and TP settings.
  • Temperature 1.0, top_p 1.0, high reasoning effort.

The official script used its unchanged defaults:

  • 512-token source document.
  • 128-token warm-up answer.
  • 384-token measured answer cap.
  • At least 1,024 generated tokens per side.
  • Fixed seeds.
  • Separate copies of the same initial expert profile.
  • The model's actual chat template.

For this run, a transparent recording wrapper forwarded the native protocol to the same engine executable. Only the executable wrapper, recording environment variable, and log destination were changed; the official calibration algorithm and budgets were unchanged.

Results:

Mode Answer 1 Answer 2 Answer 3 Sustained speed
DSpark disabled 13.45 tok/s 14.43 tok/s 14.03 tok/s 13.96 tok/s
DSpark enabled 5.24 tok/s 5.76 tok/s 6.39 tok/s 5.76 tok/s

Original calibration result:

{
  "none": {
    "tok_s": 13.96,
    "tokens": 1152,
    "answers": 3,
    "seconds": 82.5,
    "load_s": 18,
    "drafts_accepted": 0,
    "drafts_offered": 0
  },
  "dspark": {
    "tok_s": 5.76,
    "tokens": 1152,
    "answers": 3,
    "seconds": 200.0,
    "load_s": 25,
    "drafts_accepted": 605,
    "drafts_offered": 861
  },
  "keep": "none",
  "gain": -0.587
}

DSpark accepted approximately 70.3% of offered drafts but reduced sustained generation speed by 58.7%.

These calibration speeds include reasoning tokens and use a different workload from the greedy official benchmark, so the absolute speeds should not be treated as interchangeable.

Benchmark/reporting issues

1. --bench uses GLM prompt markers for DS4

The benchmark constructs short prompts using:

chat = lambda q: tok.encode(
    "[gMASK]<sop><|user|>\n" + q + "<|assistant|>\n</think>",
    parse_special=True
)

This happens even when the configured executable is maya-ds4.

Source: maya.py benchmark implementation.

By comparison, calibrate_draft.requests loads the selected model's chat template.

Expected: The benchmark uses the DS4 pack's chat template and explicitly disables thinking through the appropriate template options.

Observed: Literal GLM markers are sent to DS4. The model still produces readable output, but this makes the benchmark's prompt format inappropriate for assessing normal DS4 serving behavior.

I have not established how much this affects speed or output quality.

2. DS4 diagnostic lines are filtered out

The benchmark report ends with an empty:

engine lines:

However, its engine log contains the DS4 placement and timing lines quoted above.

The report's selected speed/memory section also says:

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

The diagnostic filter primarily matches GLM prefixes such as glm fast:, glm stat, and glm split, and does not select the normal DS4 placement/timing prefixes.

Source: maya.py diagnostic filters.

Expected: DS4 reports include the relevant placement, CPU/PCIe behavior, and per-request timing lines.

Observed: Those lines are omitted from the main diagnostic selection. Some survive only in the generic last-25-lines section.

3. Enabled DS4 vision is reported as disabled

The configuration explicitly contains:

--vision on

Runtime health reports:

{
  "status": "ok",
  "max_context": 65536,
  "model": "DeepSeek-V4.1-Flash-1017-Maya-XS",
  "images": true
}

Nevertheless, --report summarizes the setup as:

images off

The report checks cfg.get("vision"), whereas integrated DS4 vision is controlled through the engine arguments/defaults.

Related source: write_config_ds4.

Expected: Integrated DS4 vision is reported correctly.

Observed: An absent GLM-style vision configuration object is interpreted as vision being disabled.

Additional real inference checks

These were separate API tests, not part of the official benchmark.

Test Result
512-token Chinese generation, 64K + vision 12.30 tok/s; first streamed content at approximately 2.53 seconds
Image OCR and color recognition Passed; 9.31 seconds end to end
63,999-token synthetic input, no prefix reuse Passed; 34.76 seconds prefill, 36.89 seconds total
First/middle/last marker retrieval All three markers returned correctly
Input exceeding the context limit HTTP 400
Reasoning/final-answer separation Passed
Streaming, Python syntax, tool invocation and tool-result return Passed in earlier 64K checks

For the image test, the input was a white image with NOVA 4729 at the top, a red rectangle on the left, and a blue rectangle on the right.

Prompt:

Read the text at the top exactly, then name the colors of the left and right rectangles. Answer in English.

Actual response:

The text at the top is "NOVA 4729". The left rectangle is red and the right rectangle is blue.

The long-context test used repeated synthetic filler. It verifies capacity and simple retrieval, but its prefill speed should not be generalized to real long documents.

Official regression tests

DS4 conformance and vision:

python -m unittest \
  serve.test_ds41_conformance \
  serve.test_ds4_vision -v

Result: 34 tests passed.

Complete server suite:

MAYA_UPDATE_CHECK=1 \
STRATA_TOKENIZER=/runtime/pack/tokenizer \
DS4_MODEL=/tmp/ds4-test-model \
python -m unittest discover -s serve -p 'test_*.py' -t . -v

Result:

Ran 342 tests in 110.701s

OK (skipped=5)

The five skips were four optional OpenAI SDK tests and one Windows-only job-object test.

Focused DS4 tools tests:

python -m unittest \
  tools.test_ds4_pack \
  tools.test_ds4_vision_pack \
  tools.test_ds4_engram_ram \
  tools.test_ds4_drafter \
  tools.test_setup_ds4 \
  tools.test_calibrate_ds4_tp \
  tools.test_bench -v

Result: 96 tests passed.

The first server-suite invocation inherited MAYA_UPDATE_CHECK=0 from the Docker image and failed the test that expects update checking to attempt a network request. Re-running with update checking enabled passed. I am not reporting that environment-dependent failure as a DS4 inference bug.

These are offline/mock regression tests and do not establish numerical parity of the real GPU engine.

Originally created by @Micro-ATP on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/416 ## Summary I tested DeepSeek-V4.1-Flash-1017 Maya-XS using the official benchmark, report generator, DSpark calibration script, and regression tests. The model successfully loads and serves requests at a 65,536-token context with vision enabled. However, performance on this machine is below my requirements for interactive use: - Official `--bench`: **9.6 tokens/s average** across three 256-token answers. - Official DSpark calibration at the same context and vision settings: - DSpark disabled: **13.96 tokens/s**. - DSpark enabled: **5.76 tokens/s**. - Change: **−58.7%**, despite approximately 70% draft acceptance. I also found three issues in the DS4 benchmark/reporting path: 1. `--bench` sends GLM prompt markers to the DS4 engine. 2. `--report` excludes DS4 performance and placement lines from its main diagnostic selection. 3. `--report` says `images off` even though integrated DS4 vision is enabled and actual image inference works. All relevant configuration, commands, results, and examples are included below. ## Version and environment | Component | Configuration | |---|---| | Maya | 1.1.24 | | Source commit | `25deec505b525212e05faa58697d9d2b7d17fdb3` | | Build | From source in Docker, Release, CUDA SM89 | | GPU | NVIDIA GeForce RTX 4080 SUPER, **32,760 MiB VRAM** | | Driver | 615.78.08 | | PCIe | Gen4 ×16 during inference | | CPU | Threadripper 3970X, 32 cores / 64 threads | | CPU instruction support | AVX2, no AVX-512 | | RAM | 157.1 GiB | | Model storage | Two-device NVMe RAID0 | | Host kernel | Linux 7.2.10-arch1-1 | | Container runtime | Python 3.12.3, glibc 2.39 | The GPU has a 32 GiB configuration; this is not the standard retail 16 GiB specification. The CPU brand string exposed to the container is: ```text Threadripper 3970X ``` No other inference model was running on the GPU during these tests. The source tree was clean, and no upstream test or engine source was patched. ## Model and weights Main model: ```text Repository: peasantsmith/DeepSeek-V4.1-Flash-1017-Maya-GGUF Revision: c273fcbdda76a1db074c2f414cb70edbfca2f2ef Variant: Maya-XS IQ1_S Files: Five GGUF shards ``` DSpark: ```text dspark/dspark-xs2.bin dspark/dspark-xs2.json ``` The model and DSpark files total approximately **261.59 GiB**. Vision tower: ```text Repository: deepseek-ai/DeepSeek-V4.1-Flash-1017 Revision: 1bae0e1088993b9b82de08f59de5be5a34e42170 ``` The vision tower was converted using the official `tools/ds4/vision_pack.py`, then included in the pack using the official GGUF packing tool. The complete model is not RAM resident. Expert files use mmap/page cache, and Engram remains on disk. Expert-skipping approximation was disabled. ## Runtime configuration ```json { "exe": "/opt/maya/build/maya-ds4", "args": [ "--pack", "/runtime/pack", "--max-context", "65536", "--reserve-mib", "1536", "--mmap-experts", "auto", "--dspark", "none", "--vision", "on", "--tp", "1" ], "cwd": "/opt/maya", "tokenizer": "/runtime/pack/tokenizer", "model_name": "DeepSeek-V4.1-Flash-1017-Maya-XS", "gpu": [0], "sampling": { "temperature": 1.0, "top_p": 1.0 }, "reasoning_effort": "high", "fit_max_tokens": true, "host": "127.0.0.1", "port": 8014, "env": { "DS4_ENGRAM_RAM": "0", "DS4_REQUIRE_ALL_RAM": "0", "MAYA_DS4_DISK_SKIP_W": "0" }, "log": "/runtime/engine.log" } ``` Equivalent engine command: ```sh /opt/maya/build/maya-ds4 --serve \ --pack /runtime/pack \ --max-context 65536 \ --reserve-mib 1536 \ --mmap-experts auto \ --dspark none \ --vision on \ --tp 1 ``` Representative startup placement from the official benchmark: ```text ds4: the experts VRAM leaves over (~84.8 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (132.5 GB of RAM free to keep them: the most-routed 84.8 GB read ahead; prompts in chunks of 32768) ds4: PCIe lane: 40 layers on 1 GPU(s) stream some of a token's CPU-lane experts (2 reading threads; the times file's, 89 ms) ds4: CUDA0 layers [0, 39] + head: weights 8.46 GB, experts 21.29 GB (3040 of 15360 in VRAM), caches 0.06 GB, 1488 MiB free ds4: 12320 routed experts on the CPU lane (85.2 GB, in place in the model's files), 32 threads ``` These are the engine's own units and estimates, not independently measured RAM residency. ## Official benchmark I stopped the serving container and ran: ```sh python maya.py --bench --config /config/maya.json python maya.py --report --config /config/maya.json ``` Both commands exited with code 0. The primary benchmark ran directly against the real engine, without a protocol-recording wrapper. Original `maya-bench.txt`: ```text Project Maya v1.1.24 benchmark, 2026-10-23 09:11 GPUs: NVIDIA GeForce RTX 4080 SUPER 32 GB; RAM 157 GB; CPU AMD Eng Sample: 2DE832E6UIVG5_42/36_Y setup: maya.json, context 65536, GPUs [0] decode (writing the answer): mean 9.6 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 10.5 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 9.5 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 9.0 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 193 tokens/s, 2048 tokens prefill (reading the prompt): 573 tokens/s, 8192 tokens engine lines: ``` Corresponding request timing lines: ```text maya ds4 serve: prompt 42 tokens = 0 reused + 42 read in 2230 ms (18.8 tok/s), 256 generated in 24392 ms (10.50 tok/s); CPU lane 4.0% of the experts maya ds4 serve: prompt 33 tokens = 0 reused + 33 read in 2129 ms (15.5 tok/s), 256 generated in 26981 ms (9.49 tok/s); CPU lane 6.7% of the experts maya ds4 serve: prompt 35 tokens = 0 reused + 35 read in 2121 ms (16.5 tok/s), 256 generated in 28578 ms (8.96 tok/s); CPU lane 7.3% of the experts maya ds4 serve: prompt 2048 tokens = 0 reused + 2048 read in 10605 ms (193.1 tok/s), 1 generated in 0 ms (7009.48 tok/s); CPU lane 0.0% of the experts maya ds4 serve: prompt 8192 tokens = 0 reused + 8192 read in 14303 ms (572.7 tok/s), 1 generated in 0 ms (7301.19 tok/s); CPU lane 0.0% of the experts ``` The single-token prefill probes are used only for prefill measurement; their reported decode rates are not meaningful. ## Native benchmark example I separately recorded the unchanged official benchmark's native stdin/stdout to inspect the actual prompt and generated tokens. This was a separate run, so its timing differs from the primary uninstrumented benchmark above. Exact decoded input for the CSV case: ```text [gMASK]<sop><|user|> Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.<|assistant|> </think> ``` Complete decoded output at the 256-token limit: ````text Here's a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring: ```python import csv from typing import List, Dict def parse_csv(file_path: str) -> List[Dict[str, str]]: """ Parses a CSV file into a list of dictionaries. Args: file_path (str): The path to the CSV file. Returns: List[Dict[str, str]]: A list of dictionaries, where each dictionary represents a row in the CSV file. """ with open(file_path, 'r') as file: reader = csv.DictReader(file) return [row for row in reader] ``` In this function: - We use the `csv.DictReader` class to read the CSV file. `DictReader` automatically uses the first row as the header and returns each row as a dictionary. - We use a list comprehension to create a list of dictionaries from the reader. - The function returns a list of dictionaries, where each dictionary represents a row in the CSV file. Note: This function assumes that the CSV file has a header row. If the CSV file does not have a header row, you may need to modify the function to ```` Native terminal line: ```text DONE 256 42 2529.5 25361.4 length 0 0 0 58230 61200 ``` All three measured benchmark answers reached the configured 256-token limit. I am not treating truncated explanations or incomplete HTML at that limit as model failures. ## Official DSpark calibration I also ran the official DS4 calibration: ```sh python tools/calibrate_ds4.py /artifacts/config-calibration.json ``` The configuration retained the same: - 65,536-token context. - Vision enabled. - GPU, reserve, mmap, and TP settings. - Temperature 1.0, top_p 1.0, high reasoning effort. The official script used its unchanged defaults: - 512-token source document. - 128-token warm-up answer. - 384-token measured answer cap. - At least 1,024 generated tokens per side. - Fixed seeds. - Separate copies of the same initial expert profile. - The model's actual chat template. For this run, a transparent recording wrapper forwarded the native protocol to the same engine executable. Only the executable wrapper, recording environment variable, and log destination were changed; the official calibration algorithm and budgets were unchanged. Results: | Mode | Answer 1 | Answer 2 | Answer 3 | Sustained speed | |---|---:|---:|---:|---:| | DSpark disabled | 13.45 tok/s | 14.43 tok/s | 14.03 tok/s | **13.96 tok/s** | | DSpark enabled | 5.24 tok/s | 5.76 tok/s | 6.39 tok/s | **5.76 tok/s** | Original calibration result: ```json { "none": { "tok_s": 13.96, "tokens": 1152, "answers": 3, "seconds": 82.5, "load_s": 18, "drafts_accepted": 0, "drafts_offered": 0 }, "dspark": { "tok_s": 5.76, "tokens": 1152, "answers": 3, "seconds": 200.0, "load_s": 25, "drafts_accepted": 605, "drafts_offered": 861 }, "keep": "none", "gain": -0.587 } ``` DSpark accepted approximately **70.3%** of offered drafts but reduced sustained generation speed by **58.7%**. These calibration speeds include reasoning tokens and use a different workload from the greedy official benchmark, so the absolute speeds should not be treated as interchangeable. ## Benchmark/reporting issues ### 1. `--bench` uses GLM prompt markers for DS4 The benchmark constructs short prompts using: ```python chat = lambda q: tok.encode( "[gMASK]<sop><|user|>\n" + q + "<|assistant|>\n</think>", parse_special=True ) ``` This happens even when the configured executable is `maya-ds4`. Source: [maya.py benchmark implementation](https://github.com/mw00/project-maya/blob/25deec505b525212e05faa58697d9d2b7d17fdb3/maya.py#L3252). By comparison, [calibrate_draft.requests](https://github.com/mw00/project-maya/blob/25deec505b525212e05faa58697d9d2b7d17fdb3/tools/calibrate_draft.py#L78) loads the selected model's chat template. **Expected:** The benchmark uses the DS4 pack's chat template and explicitly disables thinking through the appropriate template options. **Observed:** Literal GLM markers are sent to DS4. The model still produces readable output, but this makes the benchmark's prompt format inappropriate for assessing normal DS4 serving behavior. I have not established how much this affects speed or output quality. ### 2. DS4 diagnostic lines are filtered out The benchmark report ends with an empty: ```text engine lines: ``` However, its engine log contains the DS4 placement and timing lines quoted above. The report's selected speed/memory section also says: ```text ## Engine log engine.log: the speed and memory lines (last 80 of 0) (nothing) ``` The diagnostic filter primarily matches GLM prefixes such as `glm fast:`, `glm stat`, and `glm split`, and does not select the normal DS4 placement/timing prefixes. Source: [maya.py diagnostic filters](https://github.com/mw00/project-maya/blob/25deec505b525212e05faa58697d9d2b7d17fdb3/maya.py#L3012). **Expected:** DS4 reports include the relevant placement, CPU/PCIe behavior, and per-request timing lines. **Observed:** Those lines are omitted from the main diagnostic selection. Some survive only in the generic last-25-lines section. ### 3. Enabled DS4 vision is reported as disabled The configuration explicitly contains: ```text --vision on ``` Runtime health reports: ```json { "status": "ok", "max_context": 65536, "model": "DeepSeek-V4.1-Flash-1017-Maya-XS", "images": true } ``` Nevertheless, `--report` summarizes the setup as: ```text images off ``` The report checks `cfg.get("vision")`, whereas integrated DS4 vision is controlled through the engine arguments/defaults. Related source: [write_config_ds4](https://github.com/mw00/project-maya/blob/25deec505b525212e05faa58697d9d2b7d17fdb3/maya.py#L3806). **Expected:** Integrated DS4 vision is reported correctly. **Observed:** An absent GLM-style vision configuration object is interpreted as vision being disabled. ## Additional real inference checks These were separate API tests, not part of the official benchmark. | Test | Result | |---|---| | 512-token Chinese generation, 64K + vision | 12.30 tok/s; first streamed content at approximately 2.53 seconds | | Image OCR and color recognition | Passed; 9.31 seconds end to end | | 63,999-token synthetic input, no prefix reuse | Passed; 34.76 seconds prefill, 36.89 seconds total | | First/middle/last marker retrieval | All three markers returned correctly | | Input exceeding the context limit | HTTP 400 | | Reasoning/final-answer separation | Passed | | Streaming, Python syntax, tool invocation and tool-result return | Passed in earlier 64K checks | For the image test, the input was a white image with `NOVA 4729` at the top, a red rectangle on the left, and a blue rectangle on the right. Prompt: ```text Read the text at the top exactly, then name the colors of the left and right rectangles. Answer in English. ``` Actual response: ```text The text at the top is "NOVA 4729". The left rectangle is red and the right rectangle is blue. ``` The long-context test used repeated synthetic filler. It verifies capacity and simple retrieval, but its prefill speed should not be generalized to real long documents. ## Official regression tests DS4 conformance and vision: ```sh python -m unittest \ serve.test_ds41_conformance \ serve.test_ds4_vision -v ``` Result: **34 tests passed**. Complete server suite: ```sh MAYA_UPDATE_CHECK=1 \ STRATA_TOKENIZER=/runtime/pack/tokenizer \ DS4_MODEL=/tmp/ds4-test-model \ python -m unittest discover -s serve -p 'test_*.py' -t . -v ``` Result: ```text Ran 342 tests in 110.701s OK (skipped=5) ``` The five skips were four optional OpenAI SDK tests and one Windows-only job-object test. Focused DS4 tools tests: ```sh python -m unittest \ tools.test_ds4_pack \ tools.test_ds4_vision_pack \ tools.test_ds4_engram_ram \ tools.test_ds4_drafter \ tools.test_setup_ds4 \ tools.test_calibrate_ds4_tp \ tools.test_bench -v ``` Result: **96 tests passed**. The first server-suite invocation inherited `MAYA_UPDATE_CHECK=0` from the Docker image and failed the test that expects update checking to attempt a network request. Re-running with update checking enabled passed. I am not reporting that environment-dependent failure as a DS4 inference bug. These are offline/mock regression tests and do not establish numerical parity of the real GPU engine.
Author
Owner

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

Thanks for the detailed report. Fixed in v1.1.26:

  • --bench now sends DeepSeek's own chat format to maya-ds4 (it was sending GLM's markers).
  • --report now includes maya-ds4's placement and speed lines (experts in VRAM / RAM, the CPU and PCIe lanes, prompt and decode lines).
  • --report shows images on for DeepSeek when its vision tower is on.

On DSpark being slower on your card: that is what the speed calibration is for - ./maya.sh --speed-calibration measures drafting on vs off on your PC and keeps the faster one, so with your numbers it keeps drafting off.

<!-- gh-comment-id:6373121712 --> @mw00 commented on GitHub (Oct 23, 2026): Thanks for the detailed report. Fixed in v1.1.26: - `--bench` now sends DeepSeek's own chat format to maya-ds4 (it was sending GLM's markers). - `--report` now includes maya-ds4's placement and speed lines (experts in VRAM / RAM, the CPU and PCIe lanes, prompt and decode lines). - `--report` shows `images on` for DeepSeek when its vision tower is on. On DSpark being slower on your card: that is what the speed calibration is for - `./maya.sh --speed-calibration` measures drafting on vs off on your PC and keeps the faster one, so with your numbers it keeps drafting off.
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#165
No description provided.