mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #510] DeepSeek-V4.1-Flash Maya-S on Strix Halo + 2x RX 7900 XTX: prefill 155 → 1,291 tok/s (8.3x) on 130K prompts, decode 37.2 → 41.3 tok/s (+11 %), 512K context, nine opt-in PRs #213
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#213
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 @pepuscz on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/510
A follow-up to #410, on the same Strix Halo machine (Ryzen AI Max+ 395, Radeon 8060S) with 2x RX 7900 XTX, now at a 512K context window. A 130K-token prompt is read 8.3x faster than in #410 (155 → 1,291 tok/s), and decode with the prompt cached is 7.7 % faster (42.8 → 46.1 tok/s). The changes behind it are ported to v1.1.28 as nine opt-in pull requests.
Model
DeepSeek-V4.1-Flash-1017 Maya-S, Project Maya's default quant from peasantsmith/DeepSeek-V4.1-Flash-1017-Maya-GGUF (revision
26c6aeaf). Its experts are IQ2_XXS / IQ2_S with IQ3_XXS / IQ3_S down, in 4 shards. Also loaded:c991b28e);276e0bad).Not the newer Maya-XS: every number in this issue is Maya-S.
Version
pr/ds4-up-h-draft-vram, is739f651.maya-ds4-q3-dspark-512k-20261025. On the Strix Halo machine it measures the same as v1.1.28 + the nine PRs, run side by side, in every test in this issue.Ansible. The whole setup is an Ansible recipe,
maya-ds4-dual-xtx-512k.ymlin strix-halo-llm (how to run it).maya-ds4-q3-dspark-512k-20261025, and ROCm 7.2.4 and the patched rocBLAS in isolation.maya-server.json.j2and the build inbuild-maya-engine.j2.benchmarks/results.json(systems/maya-ds4-dual-xtx), with the method indocs/BENCHMARKS.md.Hardware
Environment
amd_iommu=off amdgpu.gttsize=126976, 120 W package limitCMAKE_HIP_ARCHITECTURES=gfx1100;gfx1151(the XTX cards and the 8060S), assetupbuilds it. The v1.1.28 build in the comparison was built the same way.Setup
--tp 2over the two XTX withMAYA_DS4_TP_GGUF_UNEVEN=1. Maya-S's n_ff 2304 splits 5 + 4 blocks, the odd one rotating per layer. Each card holds its part of about 2,750 trunk experts.MAYA_DS4_HELPER): a 95 GB pool of about 8,300 of the most-routed experts the cards can't hold. With C2 it serves the group's layers.MAYA_DS4_DRAFT_DEV=1,0,0), each block's experts in VRAM capped at 96 / 48 / 32 (MAYA_DS4_DRAFT_VRAM, H).The full settings, as a config's
envArgs:
--tp 2 --threads on --mmap-experts on --prefill-chunk 32768 --max-context 524288 --dspark onResult: a 130K-token prompt, against #410
The same 130,048-token prompt as #410, code: Project Maya's own
src/ds4sources plusdocs/SETTINGS.md, as of v1.1.20. 768 tokens are written cold, then the same prompt is sent again with 130,047 tokens cached.Result:
--benchagainst v1.1.28Maya's
--benchprocedure (v1.1.28's): three 256-token answers, two code and one prose, and two prompts of 2K and 8K tokens cut from Maya's own docs. Both builds got the same token ids. v1.1.28's ownmaya.py --benchagrees within 1 %. One load each, with the fans held at full speed.Prose decodes slower than code here: the DSpark drafter guesses fewer of its tokens right.
The v1.1.28 column is the best v1.1.28 can do on 2x RX 7900 XTX + Radeon 8060S:
--tp 2with the helper.MAYA_DS4_TP_GGUF_UNEVEN,--tp 2falls back to one card a layer on Maya-S, and the helper serves those layers.Retrieval and quality on the same setup are in our BENCHMARKS: all 55 values at 11 prompt lengths from 2K to 480K at the 512K context, and 30/30 on the Lucebox coding / GSM8K / math cases.
Suggested README row
For the DeepSeek table, replacing the current 2x RX 7900 XTX row (from #410).
--bench's, like the other rows.--bench's 8K follows in brackets.The pull requests
All are opt-in and off by default; with none of them set, the engine behaves as v1.1.28. Where the output should be bit for bit the same, the engine checks it at load against the old path, before it serves anything.
They're stacked in this order, A first, each on the previous one, and will be opened against
mainright after this issue. We'll rebase them asmainmoves.pr/ds4-up-a-decode-fuseMAYA_DS4_HC_FUSE,MAYA_DS4_ROUTE_FUSEpr/ds4-up-b-decode-trimMAYA_DS4_DECODE_TRIMpr/ds4-up-c-ar2MAYA_DS4_AR2,MAYA_DS4_AR2_DECODE=1and decode bit for bit;=2sends FP16 over the links (prompts only)pr/ds4-up-c2-helper-groupsMAYA_DS4_HELPER+MAYA_DS4_TP_GGUF_UNEVEN(today the helper is idle there)pr/ds4-up-d-flow-helperMAYA_DS4_FLOW_HELPER_CHECKcompares with the files)pr/ds4-up-e-flow-downMAYA_DS4_FLOW_DOWN_PART,MAYA_DS4_FLOW_DOWN_SHAREpr/ds4-up-f-tp-promptMAYA_DS4_YOCO_TP,MAYA_DS4_TP_BORROWpr/ds4-up-g-helper-recentMAYA_DS4_HELPER_RECENT,MAYA_DS4_LANE_SPIN_USpr/ds4-up-h-draft-vramMAYA_DS4_DRAFT_VRAMTested:
I can measure on the Strix Halo machine: HIP gfx1100 + gfx1151, one, two or three GPUs.
🤖 Generated with Claude Code
@pepuscz commented on GitHub (Oct 26, 2026):
The nine pull requests are open, stacked in this order. Each builds on the one before it; until that one merges, a PR also shows its commits.
MAYA_DS4_HC_FUSE,MAYA_DS4_ROUTE_FUSEMAYA_DS4_DECODE_TRIMMAYA_DS4_AR2,MAYA_DS4_AR2_DECODEMAYA_DS4_FLOW_HELPERMAYA_DS4_FLOW_DOWN_PART,MAYA_DS4_FLOW_DOWN_SHAREMAYA_DS4_YOCO_TP,MAYA_DS4_TP_BORROWMAYA_DS4_HELPER_RECENT,MAYA_DS4_LANE_SPIN_USMAYA_DS4_DRAFT_VRAMWe'll rebase them as
mainmoves, and can measure anything you'd like on the Strix Halo + 2x RX 7900 XTX machine.@mw00 commented on GitHub (Oct 27, 2026):
Thank you for the series and this write-up. #511-#519 shipped in v1.1.31, and your row now replaces the #410 one in the DeepSeek speed table for the next release: Maya-S at 512K, 41.3 tokens/s (46.1 with the prompt cached), 1,291 tokens/s on a 130K prompt. If you rerun on v1.1.31 itself, we'll update the version on the row. Closing as done.