mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[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
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
--bench: 9.6 tokens/s average across three 256-token answers.I also found three issues in the DS4 benchmark/reporting path:
--benchsends GLM prompt markers to the DS4 engine.--reportexcludes DS4 performance and placement lines from its main diagnostic selection.--reportsaysimages offeven though integrated DS4 vision is enabled and actual image inference works.All relevant configuration, commands, results, and examples are included below.
Version and environment
25deec505b525212e05faa58697d9d2b7d17fdb3The GPU has a 32 GiB configuration; this is not the standard retail 16 GiB specification.
The CPU brand string exposed to the container is:
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:
DSpark:
The model and DSpark files total approximately 261.59 GiB.
Vision tower:
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
Equivalent engine command:
Representative startup placement from the official benchmark:
These are the engine's own units and estimates, not independently measured RAM residency.
Official benchmark
I stopped the serving container and ran:
Both commands exited with code 0.
The primary benchmark ran directly against the real engine, without a protocol-recording wrapper.
Original
maya-bench.txt:Corresponding request timing lines:
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:
Complete decoded output at the 256-token limit:
Native terminal line:
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:
The configuration retained the same:
The official script used its unchanged defaults:
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:
Original calibration result:
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.
--benchuses GLM prompt markers for DS4The benchmark constructs short prompts using:
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:
However, its engine log contains the DS4 placement and timing lines quoted above.
The report's selected speed/memory section also says:
The diagnostic filter primarily matches GLM prefixes such as
glm fast:,glm stat, andglm 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:
Runtime health reports:
Nevertheless,
--reportsummarizes the setup as: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.
For the image test, the input was a white image with
NOVA 4729at the top, a red rectangle on the left, and a blue rectangle on the right.Prompt:
Actual response:
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:
Result: 34 tests passed.
Complete server suite:
Result:
The five skips were four optional OpenAI SDK tests and one Windows-only job-object test.
Focused DS4 tools tests:
Result: 96 tests passed.
The first server-suite invocation inherited
MAYA_UPDATE_CHECK=0from 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.
@mw00 commented on GitHub (Oct 23, 2026):
Thanks for the detailed report. Fixed in v1.1.26:
--benchnow sends DeepSeek's own chat format to maya-ds4 (it was sending GLM's markers).--reportnow includes maya-ds4's placement and speed lines (experts in VRAM / RAM, the CPU and PCIe lanes, prompt and decode lines).--reportshowsimages onfor 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-calibrationmeasures drafting on vs off on your PC and keeps the faster one, so with your numbers it keeps drafting off.