Skip to content

Pin gpu-kernels eb97e1dc: 2..8-token K-quant verify kernels (Qwen3.8-27B --mtp +31-39%) - #487

Merged
bong-water-water-bong merged 1 commit into
mainfrom
1bit/pin-mtp-verify
Oct 21, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
1bit/pin-mtp-verify

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Pins gpu-kernels #17. Qwen3.8-27B --mtp on HRX: 25.9/20.5/21.9 -> 36.0/26.8/29.9 tok/s code/prose/short (Vulkan 35.0/28.3/28.9); no-MTP decode unchanged (12.2).

Re-records tests/golden/hw-gate/kat-zaya1-8b.json only: llama-server runs the last 4 prompt tokens of GDN/SWA models as their own batch, so the new 2..8-token kernels moved ZAYA at two recorded near-ties (0.20 / 0.096 nats; answers still correct). KLD base unchanged (ZAYA KLD 0.000000 against it).

Full hw-gate in check mode at this commit (strixhalo): PASS, ops 663/663, fa-decode-q8 6/6, kat/needle/placement/kld on all models incl. the q8 KV rows. registry check-pins and copyright clean. Merged by hand after this PR's CI gate.

🤖 Generated with Claude Code

…27B --mtp 25.9/20.5/21.9 -> 36.0/26.8/29.9 tok/s

gpu-kernels eb97e1dc (merge of 1bit/mtp-verify-tokens 6c4a0e76) carries two changes:
- kquant_tokens_q8.hip + dispatch-hip-kquant-tokens.cpp: 2..8-token
  Q3_K/Q4_K/Q5_K/Q6_K/IQ4_XS/IQ4_NL projections and gate/up+SwiGLU on q8_1
  activations, each weight block read once for every token. The 4-token MTP
  verify step on Qwen3.8-27B goes from 121.5 to 88.0 ms of device time.
- pad_f32 spread over workgroups: the MTP draft step goes from 6.4 to 4.1 ms.

Qwen3.8-27B UD-Q4_K_XL + MTP head, llama-server, strixhalo performance mode,
medians of 3 interleaved fresh servers (code/prose/short): 25.92/20.50/21.91 ->
35.97/26.76/29.92 tok/s (Vulkan was 35.0/28.3/28.9); without MTP unchanged.
KLD of the verify path (llama-perplexity -b 4 -ub 4): 0.002344 -> 0.002626.

tests/golden/hw-gate/kat-zaya1-8b.json re-recorded at this pin
(scripts/hw-gate.sh --phases build,kat --models zaya1-8b --record). llama-server
runs the last 4 prompt tokens of ZAYA1 as their own batch, which now takes the
q8 kernels; two cases moved at near-ties (prefix-reuse token 0, top-2 margin
0.20; varied-1620w token 5, margin 0.096), with the answers unchanged. No other
golden and no KLD base changed.

Full scripts/hw-gate.sh in check mode at this commit: PASS on every row
(ops 663/663, fa-decode-q8, kat/kld/placement/needle on all seven model rows,
0 ring timeouts).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bong-water-water-bong bong-water-water-bong added the hw-gate Run the HRX hardware gate on Strix Halo (docs/hw-gate.md) label Oct 21, 2026
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

17 - Partially compliant

Compliant requirements:

  • Kernel pinned to v7.3-rc4 with correct commit id (93f51579)
  • Strix Halo kernel config is used with amdxdna built in-tree
  • Kernel build script (scripts/build-kernel.sh) is present and enforces amdxdna presence
  • bump-linux.yml script is present for daily updates
  • Documentation files (docs/kernel.md, docs/PORTING.md) are updated

Non-compliant requirements:

  • None

Requires further human verification:

  • Verification that the kernel actually builds and runs correctly on the hardware
  • Confirmation that the amdxdna driver is properly loaded and functional
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Kernel Pin Update

The SHA pin for gpu-kernels has been updated from fcf526ea3d9caa4eec894928f2f208b7b378fe8c to eb97e1dcf7cd12c09fa9246a4e6c9089d2ee1b38. This is a straightforward update but should be verified that the new commit is compatible with the current engine requirements and that all expected kernels are present and functional.

sha=eb97e1dcf7cd12c09fa9246a4e6c9089d2ee1b38
Test Output Changes

The golden test file has been updated with new token log probabilities and timing values. These changes are expected due to the kernel update and new K-quant verify kernels, but it's important to confirm that these changes are consistent with the expected performance improvements and that the model outputs remain correct.

{
 "url": "http://127.0.0.1:18471",
 "repeat": 2,
 "cases": [
  {
   "name": "capital",
   "prompt_tokens": 30,
   "text": "Paris. \n\n(Note: The answer is one word as requested, but",
   "tokens": [
    {
     "t": "Paris",
     "lp": -0.036771032959222794,
     "top": [
      -0.036771032959222794,
      -3.4641430377960205,
      -5.592368125915527
     ]
    },
    {
     "t": ".",
     "lp": -0.048855315893888474,
     "top": [
      -0.048855315893888474,
      -4.020714282989502,
      -4.47291898727417
     ]
    },
    {
     "t": " ",
     "lp": -0.7142993211746216,
     "top": [
      -0.7142993211746216,
      -1.3343135118484497,
      -2.038280487060547
     ]
    },
    {
     "t": "\n\n",
     "lp": -0.0009532344411127269,
     "top": [
      -0.0009532344411127269,
      -7.180335521697998,
      -9.207592964172363
     ]
    },
    {
     "t": "(",
     "lp": -1.0950343608856201,
     "top": [
      -1.0950343608856201,
      -1.3306242227554321,
      -1.6949889659881592
     ]
    },
    {
     "t": "Note",
     "lp": -0.005234207026660442,
     "top": [
      -0.005234207026660442,
      -6.920074939727783,
      -6.954248905181885
     ]
    },
    {
     "t": ":",
     "lp": -6.8666908191517e-05,
     "top": [
      -6.8666908191517e-05,
      -10.52409553527832,
      -12.153312683105469
     ]
    },
    {
     "t": " The",
     "lp": -0.2325812578201294,
     "top": [
      -0.2325812578201294,
      -1.8290339708328247,
      -3.9890873432159424
     ]
    },
    {
     "t": " answer",
     "lp": -0.04666047543287277,
     "top": [
      -0.04666047543287277,
      -3.72898006439209,
      -4.096545219421387
     ]
    },
    {
     "t": " is",
     "lp": -0.024235643446445465,
     "top": [
      -0.024235643446445465,
      -4.507462501525879,
      -5.229100227355957
     ]
    },
    {
     "t": " one",
     "lp": -0.8797094821929932,
     "top": [
      -0.8797094821929932,
      -1.5168612003326416,
      -1.5651915073394775
     ]
    },
    {
     "t": " word",
     "lp": -1.4305124977909145e-06,
     "top": [
      -1.4305124977909145e-06,
      -13.442163467407227,
      -16.749555587768555
     ]
    },
    {
     "t": " as",
     "lp": -0.043724313378334045,
     "top": [
      -0.043724313378334045,
      -3.2139017581939697,
      -6.267658233642578
     ]
    },
    {
     "t": " requested",
     "lp": -0.00013614627823699266,
     "top": [
      -0.00013614627823699266,
      -9.234641075134277,
      -10.819489479064941
     ]
    },
    {
     "t": ",",
     "lp": -0.021034397184848785,
     "top": [
      -0.021034397184848785,
      -4.198509216308594,
      -5.887428283691406
     ]
    },
    {
     "t": " but",
     "lp": -0.8676788806915283,
     "top": [
      -0.8676788806915283,
      -1.0901272296905518,
      -2.124406099319458
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    1.43,
    0.36
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "arithmetic",
   "prompt_tokens": 34,
   "text": "17 * 23 = 391. Answer with the number",
   "tokens": [
    {
     "t": "1",
     "lp": -0.5268268585205078,
     "top": [
      -0.5268268585205078,
      -1.6262359619140625,
      -2.2572593688964844
     ]
    },
    {
     "t": "7",
     "lp": -0.008558012545108795,
     "top": [
      -0.008558012545108795,
      -5.409718990325928,
      -5.786416530609131
     ]
    },
    {
     "t": " *",
     "lp": -0.11045984923839569,
     "top": [
      -0.11045984923839569,
      -3.8674731254577637,
      -3.9142508506774902
     ]
    },
    {
     "t": " ",
     "lp": -2.3841887468734058e-06,
     "top": [
      -2.3841887468734058e-06,
      -13.17214584350586,
      -15.557147026062012
     ]
    },
    {
     "t": "2",
     "lp": -3.695494797284482e-06,
     "top": [
      -3.695494797284482e-06,
      -13.15582275390625,
      -13.877872467041016
     ]
    },
    {
     "t": "3",
     "lp": -1.3470740668708459e-05,
     "top": [
      -1.3470740668708459e-05,
      -12.604677200317383,
      -13.082769393920898
     ]
    },
    {
     "t": " =",
     "lp": -0.34541651606559753,
     "top": [
      -0.34541651606559753,
      -1.411939024925232,
      -3.9774270057678223
     ]
    },
    {
     "t": " ",
     "lp": -0.009867134504020214,
     "top": [
      -0.009867134504020214,
      -4.730053424835205,
      -7.579420566558838
     ]
    },
    {
     "t": "3",
     "lp": -3.218656047465629e-06,
     "top": [
      -3.218656047465629e-06,
      -13.21500301361084,
      -13.5104398727417
     ]
    },
    {
     "t": "9",
     "lp": -2.6107174562639557e-05,
     "top": [
      -2.6107174562639557e-05,
      -11.236250877380371,
      -12.174281120300293
     ]
    },
    {
     "t": "1",
     "lp": -1.9073504518019035e-06,
     "top": [
      -1.9073504518019035e-06,
      -14.616823196411133,
      -14.634143829345703
     ]
    },
    {
     "t": ".",
     "lp": -0.38262444734573364,
     "top": [
      -0.38262444734573364,
      -1.2116477489471436,
      -5.497289180755615
     ]
    },
    {
     "t": " Answer",
     "lp": -0.0046984488144516945,
     "top": [
      -0.0046984488144516945,
      -5.941136837005615,
      -6.353732585906982
     ]
    },
    {
     "t": " with",
     "lp": -0.0003654432366602123,
     "top": [
      -0.0003654432366602123,
      -8.127477645874023,
      -9.88532543182373
     ]
    },
    {
     "t": " the",
     "lp": -1.1920928955078125e-07,
     "top": [
      -1.1920928955078125e-07,
      -15.819021224975586,
      -16.882179260253906
     ]
    },
    {
     "t": " number",
     "lp": -7.629423635080457e-06,
     "top": [
      -7.629423635080457e-06,
      -12.49110221862793,
      -12.636467933654785
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    0.77,
    0.3
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "code",
   "prompt_tokens": 39,
   "text": "```python\ndef add(a, b):\n    return a + b\n```",
   "tokens": [
    {
     "t": "```",
     "lp": -0.01212195586413145,
     "top": [
      -0.01212195586413145,
      -4.466330051422119,
      -7.763607501983643
     ]
    },
    {
     "t": "python",
     "lp": -0.003633655607700348,
     "top": [
      -0.003633655607700348,
      -5.62116813659668,
      -12.2733154296875
     ]
    },
    {
     "t": "\n",
     "lp": -3.850534267257899e-05,
     "top": [
      -3.850534267257899e-05,
      -11.905632019042969,
      -11.951740264892578
     ]
    },
    {
     "t": "def",
     "lp": -7.319718133658171e-05,
     "top": [
      -7.319718133658171e-05,
      -10.037434577941895,
      -10.43856143951416
     ]
    },
    {
     "t": " add",
     "lp": 0.0,
     "top": [
      0.0,
      -18.29705047607422,
      -18.916492462158203
     ]
    },
    {
     "t": "(",
     "lp": 0.0,
     "top": [
      0.0,
      -17.321067810058594,
      -17.717012405395508
     ]
    },
    {
     "t": "a",
     "lp": 0.0,
     "top": [
      0.0,
      -21.633087158203125,
      -22.011146545410156
     ]
    },
    {
     "t": ",",
     "lp": -1.1086525773862377e-05,
     "top": [
      -1.1086525773862377e-05,
      -12.351808547973633,
      -12.662057876586914
     ]
    },
    {
     "t": " b",
     "lp": 0.0,
     "top": [
      0.0,
      -17.458606719970703,
      -21.752910614013672
     ]
    },
    {
     "t": "):",
     "lp": -1.025205165205989e-05,
     "top": [
      -1.025205165205989e-05,
      -11.527464866638184,
      -16.232995986938477
     ]
    },
    {
     "t": "\n",
     "lp": 0.0,
     "top": [
      0.0,
      -16.87771987915039,
      -18.21938705444336
     ]
    },
    {
     "t": "    ",
     "lp": -0.00021907106565777212,
     "top": [
      -0.00021907106565777212,
      -8.620712280273438,
      -10.223197937011719
     ]
    },
    {
     "t": "return",
     "lp": 0.0,
     "top": [
      0.0,
      -18.554302215576172,
      -21.728185653686523
     ]
    },
    {
     "t": " a",
     "lp": 0.0,
     "top": [
      0.0,
      -19.677370071411133,
      -19.739778518676758
     ]
    },
    {
     "t": " +",
     "lp": 0.0,
     "top": [
      0.0,
      -17.437957763671875,
      -18.96106719970703
     ]
    },
    {
     "t": " b",
     "lp": 0.0,
     "top": [
      0.0,
      -21.946521759033203,
      -21.978500366210938
     ]
    },
    {
     "t": "\n",
     "lp": -0.0002893031924031675,
     "top": [
      -0.0002893031924031675,
      -8.148261070251465,
      -17.03789710998535
     ]
    },
    {
     "t": "```",
     "lp": 0.0,
     "top": [
      0.0,
      -17.735353469848633,
      -18.24475860595703
     ]
    },
    {
     "t": "",
     "lp": -0.018218668177723885,
     "top": [
      -0.018218668177723885,
      -4.3664374351501465,
      -5.254270076751709
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    0.8,
    0.33
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "needle",
   "prompt_tokens": 4746,
   "text": "7341.",
   "tokens": [
    {
     "t": "7",
     "lp": -0.00033288775011897087,
     "top": [
      -0.00033288775011897087,
      -8.230244636535645,
      -10.375384330749512
     ]
    },
    {
     "t": "3",
     "lp": -0.00019033574790228158,
     "top": [
      -0.00019033574790228158,
      -8.721305847167969,
      -11.179239273071289
     ]
    },
    {
     "t": "4",
     "lp": -9.536788638797589e-06,
     "top": [
      -9.536788638797589e-06,
      -12.297901153564453,
      -13.15481948852539
     ]
    },
    {
     "t": "1",
     "lp": -7.808513328200206e-05,
     "top": [
      -7.808513328200206e-05,
      -10.370641708374023,
      -10.878942489624023
     ]
    },
    {
     "t": ".",
     "lp": -0.07632364332675934,
     "top": [
      -0.07632364332675934,
      -3.279862403869629,
      -4.09196662902832
     ]
    },
    {
     "t": "",
     "lp": -0.3328859508037567,
     "top": [
      -0.3328859508037567,
      -1.3184025287628174,
      -4.460053443908691
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    2.64,
    1.42
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "prefix-reuse",
   "prompt_tokens": 4743,
   "text": "The color of the box in the cellar is **green**.",
   "tokens": [
    {
     "t": "The",
     "lp": -0.9604881405830383,
     "top": [
      -0.9604881405830383,
      -0.9974201917648315,
      -1.5098847150802612
     ]
    },
    {
     "t": " color",
     "lp": -0.001465081935748458,
     "top": [
      -0.001465081935748458,
      -6.557247161865234,
      -10.047510147094727
     ]
    },
    {
     "t": " of",
     "lp": -3.933914285880746e-06,
     "top": [
      -3.933914285880746e-06,
      -12.477745056152344,
      -16.176679611206055
     ]
    },
    {
     "t": " the",
     "lp": 0.0,
     "top": [
      0.0,
      -19.114830017089844,
      -20.82577133178711
     ]
    },
    {
     "t": " box",
     "lp": -1.3113030945532955e-06,
     "top": [
      -1.3113030945532955e-06,
      -13.51374340057373,
      -19.04960060119629
     ]
    },
    {
     "t": " in",
     "lp": 0.0,
     "top": [
      0.0,
      -16.667299270629883,
      -17.30559539794922
     ]
    },
    {
     "t": " the",
     "lp": 0.0,
     "top": [
      0.0,
      -18.207494735717773,
      -20.0079345703125
     ]
    },
    {
     "t": " cellar",
     "lp": -9.143770876107737e-05,
     "top": [
      -9.143770876107737e-05,
      -9.404094696044922,
      -11.668807983398438
     ]
    },
    {
     "t": " is",
     "lp": -1.6451016563223675e-05,
     "top": [
      -1.6451016563223675e-05,
      -11.344544410705566,
      -12.593117713928223
     ]
    },
    {
     "t": " **",
     "lp": -0.12404219806194305,
     "top": [
      -0.12404219806194305,
      -2.2920069694519043,
      -4.197505474090576
     ]
    },
    {
     "t": "green",
     "lp": -9.536747711536009e-07,
     "top": [
      -9.536747711536009e-07,
      -14.014435768127441,
      -15.712193489074707
     ]
    },
    {
     "t": "**.",
     "lp": -3.933914285880746e-06,
     "top": [
      -3.933914285880746e-06,
      -12.949420928955078,
      -13.443748474121094
     ]
    },
    {
     "t": "",
     "lp": -0.045250747352838516,
     "top": [
      -0.045250747352838516,
      -3.5482280254364014,
      -5.045034408569336
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    1.38,
    1.19
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "varied-180w",
   "prompt_tokens": 257,
   "text": "7341.",
   "tokens": [
    {
     "t": "7",
     "lp": -0.1349189281463623,
     "top": [
      -0.1349189281463623,
      -2.874544858932495,
      -3.3495490550994873
     ]
    },
    {
     "t": "3",
     "lp": -0.00044564399286173284,
     "top": [
      -0.00044564399286173284,
      -8.339184761047363,
      -9.102927207946777
     ]
    },
    {
     "t": "4",
     "lp": -1.78815535036847e-05,
     "top": [
      -1.78815535036847e-05,
      -12.170756340026855,
      -12.335129737854004
     ]
    },
    {
     "t": "1",
     "lp": -0.000316431513056159,
     "top": [
      -0.000316431513056159,
      -8.728466033935547,
      -9.810001373291016
     ]
    },
    {
     "t": ".",
     "lp": -0.12303656339645386,
     "top": [
      -0.12303656339645386,
      -2.489915132522583,
      -3.486008882522583
     ]
    },
    {
     "t": "",
     "lp": -0.2232205718755722,
     "top": [
      -0.2232205718755722,
      -2.0413854122161865,
      -3.4137303829193115
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    0.59,
    0.25
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "varied-720w",
   "prompt_tokens": 953,
   "text": "7341. Answer with the number only.",
   "tokens": [
    {
     "t": "7",
     "lp": -0.04062521830201149,
     "top": [
      -0.04062521830201149,
      -3.3394646644592285,
      -5.9373459815979
     ]
    },
    {
     "t": "3",
     "lp": -0.0019215914653614163,
     "top": [
      -0.0019215914653614163,
      -6.614322662353516,
      -8.13771915435791
     ]
    },
    {
     "t": "4",
     "lp": -0.00020488214795477688,
     "top": [
      -0.00020488214795477688,
      -9.971327781677246,
      -10.35639476776123
     ]
    },
    {
     "t": "1",
     "lp": -0.0006693457253277302,
     "top": [
      -0.0006693457253277302,
      -8.60391616821289,
      -8.783065795898438
     ]
    },
    {
     "t": ".",
     "lp": -0.002643320709466934,
     "top": [
      -0.002643320709466934,
      -6.240502834320068,
      -8.895085334777832
     ]
    },
    {
     "t": " Answer",
     "lp": -0.42389151453971863,
     "top": [
      -0.42389151453971863,
      -1.2221473455429077,
      -3.9091572761535645
     ]
    },
    {
     "t": " with",
     "lp": -0.004333035554736853,
     "top": [
      -0.004333035554736853,
      -5.451449871063232,
      -10.965882301330566
     ]
    },
    {
     "t": " the",
     "lp": -4.64917320641689e-06,
     "top": [
      -4.64917320641689e-06,
      -13.03971004486084,
      -13.376482963562012
     ]
    },
    {
     "t": " number",
     "lp": -1.5497220147153712e-06,
     "top": [
      -1.5497220147153712e-06,
      -14.052568435668945,
      -14.258188247680664
     ]
    },
    {
     "t": " only",
     "lp": -6.9141628955549095e-06,
     "top": [
      -6.9141628955549095e-06,
      -12.942896842956543,
      -13.03235912322998
     ]
    },
    {
     "t": ".",
     "lp": -5.245222382654902e-06,
     "top": [
      -5.245222382654902e-06,
      -12.371664047241211,
      -14.911529541015625
     ]
    },
    {
     "t": "",
     "lp": -0.004700066056102514,
     "top": [
      -0.004700066056102514,
      -5.989747524261475,
      -6.171051502227783
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    0.85,
    0.44
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "varied-1620w",
   "prompt_tokens": 2143,
   "text": "7341.",
   "tokens": [
    {
     "t": "7",
     "lp": -0.02266324870288372,
     "top": [
      -0.02266324870288372,
      -3.8297979831695557,
      -7.857969284057617
     ]
    },
    {
     "t": "3",
     "lp": -9.28683512029238e-05,
     "top": [
      -9.28683512029238e-05,
      -10.376482963562012,
      -10.619295120239258
     ]
    },
    {
     "t": "4",
     "lp": -3.862455560010858e-05,
     "top": [
      -3.862455560010858e-05,
      -11.014610290527344,
      -11.450139999389648
     ]
    },
    {
     "t": "1",
     "lp": -9.871016663964838e-05,
     "top": [
      -9.871016663964838e-05,
      -9.899843215942383,
      -11.490543365478516
     ]
    },
    {
     "t": ".",
     "lp": -0.0900149941444397,
     "top": [
      -0.0900149941444397,
      -2.7760653495788574,
      -4.070892810821533
     ]
    },
    {
     "t": "",
     "lp": -0.7602345943450928,
     "top": [
      -0.7602345943450928,
      -0.7944019436836243,
      -3.045485258102417
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    1.0,
    0.62
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  },
  {
   "name": "varied-2520w",
   "prompt_tokens": 3298,
   "text": "7341.",
   "tokens": [
    {
     "t": "7",
     "lp": -0.005383052863180637,
     "top": [
      -0.005383052863180637,
      -5.256788730621338,
      -9.645672798156738
     ]
    },
    {
     "t": "3",
     "lp": -0.0009691641898825765,
     "top": [
      -0.0009691641898825765,
      -7.922688961029053,
      -8.455113410949707
     ]
    },
    {
     "t": "4",
     "lp": -0.06309518963098526,
     "top": [
      -0.06309518963098526,
      -3.781768798828125,
      -4.187434196472168
     ]
    },
    {
     "t": "1",
     "lp": -7.188578456407413e-05,
     "top": [
      -7.188578456407413e-05,
      -9.768576622009277,
      -12.225147247314453
     ]
    },
    {
     "t": ".",
     "lp": -0.11140800267457962,
     "top": [
      -0.11140800267457962,
      -3.0139243602752686,
      -3.218126058578491
     ]
    },
    {
     "t": "",
     "lp": -0.12014777213335037,
     "top": [
      -0.12014777213335037,
      -2.6845932006835938,
      -3.643557548522949
     ]
    }
   ],
   "expect_ok": true,
   "secs": [
    1.16,
    0.84
   ],
   "fails": [],
   "warns": [],
   "cache_path": {
    "first_divergence": null
   }
  }
 ],
 "pass": true,
 "time": "2026-10-21T05:24:37-0300"
}

@bong-water-water-bong
bong-water-water-bong merged commit fee5569 into main Oct 21, 2026
9 of 10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/pin-mtp-verify branch October 21, 2026 08:50
bong-water-water-bong added a commit that referenced this pull request Oct 21, 2026
…nside Lemonade) (#488)

- README: lead with the census (43/43 on the GPU, #476/#480/#481) and Qwen3.8-27B MTP
  36.0/26.8/29.9 tok/s (#487); one hop (#475), strict placement (#482), hw-gate kernels and
  placement (#478/#484), allocation safety (#486), Ubuntu 26.04 PPA lemond (#483), ONNX on the
  NPU via the user's Ryzen AI install (#386); Vulkan/ROCm/CUDA/ZINC/ComfyUI/MLX/Windows cut
  (#306); no release date; NPU in progress with no speed numbers.
- npu.md: a status page with the public parts only (model format, serving, add-on hook, build);
  no runtime method, no NPU speeds.
- releases.md: "Releases", first release when the checklist is done; neutral package checks.
- lemonade.md, serve.md, hrx.md, laya.md, PORTING.md, registry.md: one hop, MTP on HRX (#487),
  census lead, add-on wording without private repository names or NPU speeds.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Oct 21, 2026
…k skipping (Qwen3-4B pp4096 +45%) (#491)

gpu-kernels 08bb2241 adds, since e85b7547:
- #19: W4A4 prompt prefill on the iu4 WMMA (Q4_0, off by default).
- #20: fa_prompt_f16_d128, a WMMA prompt flash attention for f16 KV caches, head 128, that
  skips KV blocks whose mask is -inf for a whole query tile; no 2048-row limit.

Measured on strixhalo gfx1151, performance mode, private build (llama.cpp 5dcf6623 +
hrx-system 82804197 + the add-on):
  Qwen3-4B Q5_K_M 4096-token prompt: attention 916.5 -> 296.0 ms at ub 2048; llama-bench
  pp4096 ub2048 2103.0 -> 3043.8 (+44.7%), pp4096 ub512 +6.3%, pp2048 ub2048 +7.5%.
  Qwen3.8-27B unchanged (interleaved x3, within +-0.3%).
Correctness: fa-prompt-bench vs a double reference PASS on 7+ shapes; KLD vs the Loom kernel
4B 0.000002, Coder-30B-A3B 0.000912, ZAYA1-8B 0.007729 (top-1 routing amplifies it; against a
CPU reference the new kernel is as close as Loom: ZAYA ub128 0.0412 vs 0.0417, Qwen3-1.7B
0.007708 vs 0.007716).

scripts/hw-gate.sh --bin (ops,kat,kld,needle,placement) on that build: PASS on every row except
kat zaya1-8b varied-1620w, which diverged at token 5 - the near-tie noted in #487 (the answer
is unchanged, 7341). tests/golden/hw-gate/kat-zaya1-8b.json re-recorded at this pin
(scripts/hw-gate.sh --phases kat --models zaya1-8b --record --bin <that build>).

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Nov 22, 2026
… and the hrx-ops-test expectation rewrites (engine#3317, engine#3120, engine#2774, engine#679) (#3325)

Four fork commits above main's pin (#3211 merged 7737fa364):

  670897cad  hrx: the IQ3_XXS table decode binds the six buffers its kernel launches with (#487)
  ef3b0c036  qwen4exp: the fused top-k mask's zero base row is one host input (#483)
  2c467b947  hrx-ops-test: stored-layout routes get a stored-layout assertion (engine#3120) (#484)
  9db01568b  hrx-ops-test: retired kernel names rewritten to what the matcher set selects (engine#2774) (#486)

Both halves carry 9db01568b (gitlink + registry sources). The range changes no gguf-py/, conversion/ or
convert_hf_to_gguf.py file, so tools/registry_build.py derives the same table and only the sources sha moves.
No new test target, so tools/ci/ctest_skips.txt and ctest_known_fail.txt are unchanged.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hw-gate Run the HRX hardware gate on Strix Halo (docs/hw-gate.md) Review effort 3/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant