Skip to content

[Engine] setup.py: offer --basinkv for Groot? The engine runs it cleanly on HIP (RX 6700 XT) up to 262K #493

Done

Description

@firetussin

setup.py (poly.10, df2c3ff3) leaves groot out of POLY_BASINKV (terminal/setup.py:10372), so --basinkv with --family groot is listed as unused (line 11066). Groot's GGUF is qwen35moe, which docs/BASINKV.md lists as supported, so we tried it. This is an unofficial run: the only change from setup's output was adding --basinkv to the args of the setup-written strata-groot-q4_k_m.json. Everything else is exactly what setup.py --family groot --model Q4_K_M --context 131072 (or 196608, or 262144) wrote: --conversation-cache-mib auto, --kv-whole and embedded MTP. The original config and the diff are kept for each run.

Setup: RX 6700 XT 12 GB (gfx1031), Ryzen 5 3600, Debian 13 LXC, the ready-made rdna2 HIP engine 0.1.66 (setup.py download), Groot 19B-A3B 261023 Q4_K_M (bartowski, setup's pin). The tools were polystrata.py benchmark --prompt-tokens N and terminal/tools/needle_bench.py, run on the same card and in the same session as #469.

Result: it works. The engine accepted the flag on the first try. There was no crash, out-of-memory error, HIP error or garbage output, every tool exited 0, and the needle was found 14 of 14 times. The engine printed the same BasinKV line as for Qwen3.6 (11 attention layers, resident 2,048, quest, int8 host tier). The footprint was GPU 134.4 / 179.4 / 224.5 MiB and pinned RAM 1,430 / 2,145 / 2,860 MiB at 128K / 196K / 262K.

Groot Q4_K_M Context Prompt, tokens Loads Decode, tok/s Prefill, tok/s First token Experts in VRAM
--basinkv 128K 7,637 3 111.1 1,317 5.9 s 4,649 of 5,248
--basinkv 128K 31,880 3 113.5 897 36 s
--basinkv 128K 62,642 3 123.1 591 106 s
--basinkv 128K 125,117 3 120.6 347 361 s
plain 128K 125,117 1 34.5 357 351 s 3,204 of 5,248
--basinkv 196K 176,876 1 96.9 259 684 s 4,629
--basinkv 262K 236,123 1 96.3 198 1,192 s 4,604

(Medians over the loads. Each prompt length had its own fresh load.)

  • At 125K, decode is about 3.5× plain, with no prefill cost (347 against 357 tok/s). Qwen4 behaves differently in [Benchmark] BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K #469: BasinKV prefill there is 62% lower than plain at 125K.
  • Needle: found at 32k / 64k / 128k at depths 10, 50 and 90% (9/9 with BasinKV, 3/3 plain at 128k). With BasinKV it was also found at 192k and 256k at depth 50, which are 160.5K and 210.3K real tokens.
  • Limits: one card, unofficial config, speed and needle recall only. The 196K and 262K points are single loads. We did not run plain at 196K or 262K.

So the question is whether groot can be added to POLY_BASINKV, or whether there is a reason it was left out, such as quality, a known issue, or simply not tested yet. The full export (186 files, SHA256SUMS, with the setup consoles, configs, diffs, per-load JSON, metrics, journals and engine logs) can be attached here if it helps.

Activity

  1. added
    needs-format
    on Dec 5, 2026
  2. github-actions commented on Dec 5, 2026

    @github-actions

    Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

    • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

    Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

    Details: CONTRIBUTING.md

  3. changed the title [-]setup.py: offer `--basinkv` for Groot? The engine runs it cleanly on HIP (RX 6700 XT) up to 262K[/-] [+][Engine] setup.py: offer `--basinkv` for Groot? The engine runs it cleanly on HIP (RX 6700 XT) up to 262K[/+] on Dec 5, 2026
  4. removed
    needs-format
    on Dec 5, 2026
  5. github-actions commented on Dec 5, 2026

    @github-actions

    Thanks, this follows the format now.

  6. added a commit that references this issue on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions