mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #628] AMD: the DFlash2 drafter on one Ryzen AI Max APU (Strix / Gorgon Halo) #633
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#633
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?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/628
Author: @mrsirg97-rgb
Created: 10/28/2026
Status: 🔄 Open
Base:
main← Head:amd-dflash2-halo📝 Commits (1)
bf14828AMD: the DFlash2 drafter on one Ryzen AI Max APU (Strix / Gorgon Halo)📊 Changes
6 files changed (+80 additions, -22 deletions)
View changed files
📝
CMakeLists.txt(+11 -4)📝
docs/MODELS.md(+4 -3)📝
docs/SETTINGS.md(+22 -4)📝
docs/SETUP.md(+2 -2)📝
maya.py(+15 -9)📝
tools/test_maya_models.py(+26 -0)📄 Description
The DFlash2 drafter on one AMD Ryzen AI Max APU (Strix / Gorgon Halo, gfx1151).
The engine already compiled
glm_dflash.cufor HIP. Two things kept AMD off it: the setup (choose_draftreturned MTP for every HIP setup), andglm_dflash_testbeing built for CUDA alone.Changes
CMakeLists.txt:glm_dflash_testalso builds on HIP, linkingstrata_prefillafterstrata_enginethe way the engines do (#355). NVIDIA's test targets are unchanged.maya.pychoose_draft:hip_unified_memory) gets the drafting question, as NVIDIA sm_80+ does. MTP stays the default, and the speed calibration keeps DFlash2 only where it is faster.MAYA_GLM_MTP_DECODE), not "one GPU decodes without drafting".--drafthelp text updated.tools/test_maya_models.py:mainand pass here.MODELS.md,SETUP.md,SETTINGS.md): DFlash2 on one Ryzen AI Max APU, plus the measurements below.Measured on: Radeon 8060S (Ryzen AI MAX+ 395, 128 GB, 108 GB of it GTT, ROCm 7.15, Linux 7.2), running unsloth's GLM-5.3-Flash UD-IQ2_XXS with every expert in the GPU pool, 512K context, v1.1.35.
./maya.sh --bench, greedy, three runs each with the drafters alternating:MAYA_GLM_MTP_DECODE)glm_dflash_test: PASS. 0 of 7 picks differ, hidden cosine ≥ 0.9947, one draft takes 35.7 ms.MAYA_GLM_NO_PREFILL=1, decoding with and without DFlash2 ("strata_tune": {"spec": 1}) gives the same text on three 384-token prompts, twice each.tools/check_hip_compat.pypasses.unittest discover -s toolspasses excepttest_setup_qwen.Dashboard.test_the_web_apps_names, which fails the same way onmainhere:navigatorisn't defined in Node 20.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.