Skip to content

[Model]: Inkling 2 Mini (inkling2 looped MoE, multimodal, 1M context) #198

Closed

Description

@JuggyBob

Model

Inkling 2 Mini — Thinking Machines Lab, released 20 November 2026, Apache 2.0.

GGUF

https://huggingface.co/unsloth/Inkling-2-Mini-GGUF

Published quant sizes (GB): UD-IQ1_S 7.76, UD-IQ1_M 8.02, UD-IQ2_XXS 8.49,
UD-Q2_K_XL 9.14, UD-IQ3_XXS 11.7, UD-Q3_K_XL 13.6, UD-IQ4_XS 15.7,
UD-Q4_K_M 16.6, UD-Q4_K_XL 17.6, UD-Q8_K_XL 22.9.
Also two DSpark drafter GGUFs: Q8_0 402 MB and BF16 648 MB.

I would run UD-Q3_K_XL (13.6 GB) or UD-Q2_K_XL (9.1 GB) on an AMD
Radeon RX 7600 XT with 16 GB VRAM and 31 GB system RAM. Q4_K_M (16.6 GB) does
not fit without offload. The model card recommends 32 GB+ VRAM for other GPUs.

Does llama.cpp run it?

Yes. The base model card lists "llama.cpp, for quantized GGUF versions"
under Required software, and the Unsloth GGUF page publishes working launch
commands (llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M). The release
blog also confirms llama.cpp/Llama App, transformers, MLX and day-zero SGLang
support. So if the engine reads the same GGUF files as llama.cpp, the weights
are available and the reference implementation exists.

Total and active parameters

  • 26.2–26.4B total (Unsloth card says 26.2B, base card says 26.4B)
  • 3.4B active weights per text token, of which ~3.1B are unique
  • The middle 12 layers are looped three times, adding ~1.0B effective active
    parameters per extra pass, for ~5.4B effective active parameters per token
  • MoE: each token is routed to 8 of 128 experts in each layer

Sources: both model cards; https://artificialanalysis.ai/articles/inkling-2-mini

Architecture

  • general.architecture in the GGUF: inkling2; the base model is also
    tagged inkling2_loop on Hugging Face
  • 24-layer decoder-only transformer with sparse MoE feed-forward layers
  • Looped layers: the middle 12 of 24 layers run three times with shared
    weights, giving 48 layer applications per token from 24 layers of weights
  • Hybrid attention: a mixture of local and global layers
  • Natively multimodal: a vision transformer encodes images into the same
    hidden space as text; recommended image dimensions 40–4096 px per side
  • Context window: 1M tokens
  • Numerics: native weights shipped as mixed NVFP4 and MXFP8 in a ~20 GB
    checkpoint; safetensors tensor types include F32, BF16, F8_E4M3 and U8
  • Drafting: DSpark drafter GGUFs ship with the model for extra speed at a
    small memory cost
  • The model card notes that "support for looped models in local runtimes is
    new, and speed varies by runtime and hardware" — which is exactly why a
    second, optimized engine like PolyStrata would be valuable here.

Why this model?

Correction on the comparison: the model I actually use every day is
Qwen3.6-35B-A3B (35B total / 3B active, Apache 2.0, 262K native context,
extensible to ~1,010,000), not Qwen3.8-27B. Inkling 2 Mini's vendor table
compares against Qwen3.8-27B, where both score 20.1 on the AA Intelligence
Index v5 with ~2.8× less compute for Inkling. That is not a claim about
Qwen3.6-35B-A3B.

I could not find a published, like-for-like head-to-head between Inkling 2 Mini
and Qwen3.6-35B-A3B. Thinking Machines' launch post mentions an
"Intelligence per Watt" experiment against Qwen3.6-35B-A3B, but the numeric
chart is not extractable from the page text, so I am not quoting it.

Where the two publishers report the same benchmark names, the numbers are:

Benchmark Inkling 2 Mini Qwen3.6-35B-A3B Comparable?
SWE-bench Verified 79.2% (bash only, mini-swe-agent v2.4.6) 73.4% (Qwen internal scaffold, file-edit tools, temp 1.0, 200K ctx) No — different harness
SWE-bench Multilingual 73.7% (bash only) 67.2% (Qwen internal scaffold) No — different harness
SWE-bench Pro 77.9% (v2 Hard, 51 tasks) 49.5% (public subset) No — different benchmark version
MCP Atlas 82.7% (MCP Atlas Public) 62.8% (vendor) / 68.4% (Qwen3.5-27B) Possibly different setups
BrowseComp 79.0% (with compaction) 57.4% estimated ±4.3 (benchgap, medium confidence) Estimate, not measurement
MMMU-Pro 74.9% 75.0% (AA) / 71–75% by mode Roughly comparable
GPQA — (not in vendor table) 86.0% (vendor) / 84.1% (AA) n/a
HLE / HLE-Diamond 15.2% (Diamond) 22.2% (HLE text-only) Different subsets

Sources for the Qwen3.6 numbers: https://huggingface.co/Qwen/Qwen3.6-35B-A3B
and https://qwen.ai/blog?id=qwen3.6-35b-a3b ; third-party estimates from
https://benchgap.net/model/qwen3-6-35b-a3b .

So I am not claiming Inkling 2 Mini is better than Qwen3.6-35B-A3B. The
honest summary is that Inkling leads on several agentic/search benchmarks in
its own vendor runs, Qwen3.6 has stronger published knowledge/reasoning scores
in its own runs, and the harnesses differ enough that only a same-harness local
A/B can settle it. Having both models run well on PolyStrata would make that
comparison possible.

The practical appeal is a ~13.6 GB quant with a 1M context window and strong
agentic/search behaviour on a 16 GB card — a capability that is not currently
available with the models PolyStrata supports.

This is a feature request, not a blocker for me: llama.cpp/Unsloth Desktop can
run it today. PolyStrata's faster engine and multi-GPU/layer-split support would
make it much more useful on consumer AMD hardware.

Local check performed

The local checkout A:\StrataTools\PolyStrata (release 0.1.45-poly.10) has no
inkling references in source or docs. For orientation only, the architecture
guard appears in src/artifact/gguf_reader.cpp (strata::check_architecture),
per-architecture defaults in src/core/arch_defaults_test.cpp, the MoE path
uses n_expert in src/prefill/prefill.cpp, and Qwen3.6 has its own dispatch
in src/qwen35/q36_main.cpp. I am not prescribing an implementation — just
pointing at where the local version handles model families.

Activity

  1. vehystrix commented on Nov 20, 2026

    @vehystrix
    Contributor

    Just to cut trough the comparison hedging: If this model trades blows with Qwen3.8-27B, it will absolutely be better than Qwen3.6-35B-A3B

    Also, there's the AA benchmarks that absolutely do show it better than Qwen3.6-35B-A3B

  2. JuggyBob commented on Nov 21, 2026

    @JuggyBob
    Author

    Local measurements on the hardware from the original request, posted as follow-up data (2026-11-21). These are speed and compatibility measurements only, not a quality verdict.

    Hardware: AMD RX 7600 XT 16 GB, Ryzen 7600X, ~31 GB system RAM.

    Runtime finding first

    The root quant files in unsloth/Inkling-2-Mini-GGUF (including UD-Q3_K_XL) use Unsloth's looped layout and need Unsloth's llama.cpp prebuilt (I used b12588-mix-c0c3de8, Windows Vulkan). Mainline llama.cpp builds b12532 and b12602 both reject the root file with:

    check_tensor_dims: tensor 'blk.24.attn_q.weight' not found
    

    Unsloth publishes separate Mainline_Support/ files for mainline, but their README says mainline also needs PR #32704, which is still open. So the model is not broken — today it simply needs the matching runtime. With the correct prebuilt, Q3_K_XL loads at 32K context and generates coherent output.

    Measured comparison (single runs, same three prompts)

    Inkling: Unsloth prebuilt b12588, Vulkan0, root UD-Q3_K_XL, 32K context, temp 1.0 / top-p 1.0 / top-k 0 / min-p 0.
    Qwen: PolyStrata HIP, Qwen3.6-35B-A3B UD-Q3_K_M, 96K context (config default), MTP speculative decoding on.

    Metric Inkling 2 Mini Q3 Qwen3.6-35B-A3B
    Load time 6.3 s warm / 20.1 s cold 65.7 s
    Decode, coding prompt 17.45 tok/s 27.9 tok/s
    Prefill, coding prompt 60.55 tok/s 30.4 tok/s
    VRAM dedicated / shared 14,385 / 3,273 MiB 13,677 / 249 MiB
    Visible, correct answers (short/coding/longer) 1/3 → 3/3 with larger token budgets 3/3

    Qwen's 27.9 tok/s includes MTP (40/48 drafts accepted on that request). Inkling held about 3.2 GiB in system memory rather than local VRAM; decode did not collapse to single digits.

    DSpark drafter

    The 402 MB dspark-Inkling-2-Mini-Q8_0.gguf works with the same prebuilt (no mmproj needed). Draft acceptance was 0.607 on the coding prompt (102/168), but decode fell from 17.45 to 11.90 tok/s (−32%) and VRAM rose by roughly 0.5 GiB dedicated / 0.9 GiB shared. So speculation does not reproduce Qwen's MTP gain on this card. Cause not investigated — this is the measured result only.

    Reasoning behaviour

    --no-reasoning-preserve is accepted but does not stop the model emitting reasoning_content — per the binary's own help, it only controls preserving reasoning across multi-turn history. With larger max_tokens (256/512/256 instead of 64/160/48), all three answers became visible and correct, with decode essentially unchanged (17.75 vs 17.45 tok/s on coding). Because the flag and token budget changed together, the visible answers are attributable to the budget, not provably to the flag.

    Caveats

    • Single runs, not a benchmark campaign.
    • Different engines, contexts (32K vs 96K), quantizations and speculative-decoding implementations — this is not a controlled quality or speed A/B.
    • 1M context, other quants, other GPUs and Concurrency/TTFT were NOT RUN.
    • These numbers say nothing about answer quality relative to AA benchmarks or the other models in the comparison table; only that the looped model is slower on today's llama.cpp path while being faster at prefill and load.

    Why the feature request still matters

    On this 16 GB card the model runs, but only with ~3.2 GiB spilled to system memory and with a runtime-specific GGUF layout. A specialized engine that understands the looped layout and manages the expert/KV cache could plausibly address both, and 1M context plus the multimodal path are not available in the models PolyStrata supports today. That is the motivation for the request — not a claim that the model is already faster.

    Full reports (exact commands and verbatim log lines):

    • A:\StrataTools\docs\reports\INKLING-2-MINI-LOCAL-RESULT-UNSLOTH-PREBUILT-2026-11-21.md
    • A:\StrataTools\docs\reports\INKLING-VS-QWEN36-A-B-2026-11-21.md
    • A:\StrataTools\docs\reports\INKLING-2-MINI-DSPARK-RESULT-2026-11-21.md
    • A:\StrataTools\docs\reports\INKLING-2-MINI-NO-REASONING-RESULT-2026-11-21.md
  3. cantonapplet commented on Nov 21, 2026

    @cantonapplet

    Seconding from the NVIDIA / 8 GB side. I run v0.1.45-poly.10 on Windows with an RTX 3070 Laptop (8 GB VRAM, 32 GB RAM), currently Qwen3.6-35B-A3B UD-Q3_K_M and Gemma 4 26B UD-Q3_K_M through the poly engine's hybrid expert split. A 4-bit Inkling 2 Mini (UD-Q4_K_XL / ggml-org IQ4_NL, ~17.6 GB) is exactly the size class that cannot sit whole on an 8 GB card - the case the poly engine exists for - and the ~13.6 GB Q3 would be very comfortable there. The looped layers and per-pass KV/conv caches are new engine work, but the MoE routing, expert cache and CPU-offload machinery should carry over. +1. (Found via setup.py --inspect, which correctly reports architecture inkling2_loop as unsupported today.)

  4. JuggyBob commented on Nov 21, 2026

    @JuggyBob
    Author

    Coordination note from a user following this request: an independent AMD HIP / RDNA3 implementation of Inkling 2 Mini is being worked on locally, aimed at gfx1102 (RX 7600 XT) on Windows. This is not a working model yet — no inference or speed claims.

    Current status, stated precisely:

    • the GGUF reader recognises the root inkling2 layout (including the 48-visits / 24-physical-layers loop metadata and per-layer head-count arrays);
    • a separate compiled Inkling2 geometry exists, so the existing Qwen default path is unchanged;
    • engine dispatch and an Inkling2 class skeleton are in place, with unimplemented methods failing explicitly rather than mis-running another family;
    • an Inkling2-capable vision encoder builds and produces 192×2304 image embeddings from a 640×448 image.

    The loop/attention/expert kernels for HIP are still to be written. The existing PR #200 covers Linux/NVIDIA/CUDA and explicitly leaves HIP/Metal unported, so this effort is intended to be complementary rather than a competing implementation.

    If it reaches correct, reproducible behaviour, we may open a PR for the HIP/RDNA3 side. Posting here so nobody duplicates the from-scratch work in the meantime. No timeline promises.


    Final update (2026-11-22) — the port failed the correctness gate; no PR was opened

    The note above is kept verbatim as the historical record. Everything below is the actual outcome. All Inkling source changes were reverted and the experiment is closed. I'm posting the per-stage numbers so the failure is explained with evidence rather than left as "didn't work".

    The oracle used throughout was Maya's MIT ref/inkling2.py run in float64 on the same Q3 GGUF and the same six token IDs (86228,149899,152703,25,171551,150770 = Reply with exactly: hello world). All model runs were guard-enforced, one at a time, with daily config/engine hashes unchanged.

    Stage 1 — GGUF reader guard: PASS after four attempts

    • Attempt 1 did not compile: 11 basic_string<char> → bool errors, fixed with .empty().
    • Retry 1: guard failed because head_count keys are 48-entry arrays; a uniform() helper was added.
    • Retry 2: head counts passed but the physical-layer formula was wrong (visits / loops = 16); corrected using the loop span.
    • Final: Inkling guard PASS — 734 tensors, 62 metadata, 0 out-of-range, 0 unknown types; geometry read as 48 visits, 3 loops, loop core [6,18), 24 physical layers, 24/8 heads, 2304 embd, 8-of-128 experts. Qwen guard also PASS — no regression.

    Stage 2 — separate geometry: PASS

    A standalone Inkling2Geometry / kCompiledIk2Geometry plus ik2_visit_physical() and ik2_visit_pass() was added. Verified with 17 static_asserts and a full 48-visit runtime loop: 0 mismatches for both mapping functions. ModelGeometry / Qwen defaults (2560 / 48 / 512) unchanged. The build emitted a pre-existing informational warning: "gfx1102 builds, but it is not validated on a real card yet".

    Stage 3 — dispatch and skeleton: PASS after a configuration fix

    • Attempt 1 was blocked by incompatible MMQ headers from a b12590 vision tree: no matching function for call to 'ggml_cuda_mmq_get_config' (4 args passed, 5 required), missing expert_bounds / ncols_max / ncols_opt in mmq_args, 20 errors for gfx1102. This was a build-configuration problem, not an Inkling defect.
    • Attempt 2 used the pinned third_party/llama.cpp; clean reconfigure and strata-poly build both passed (20,031-line verbose log). The smoke test failed at the intended next unimplemented method: load_geometry is not implemented.

    Stage 4 — load_geometry(): PASS after an include fix

    First version failed with 11 "incomplete type" errors because engine.hpp only forward-declared the needed types; adding runtime.hpp fixed it. The smoke test then advanced to load_layer is not implemented, confirming the loop metadata was read and validated successfully.

    Stage 5 — weights, forward path and first generation: runs, degenerate output

    layer_head, layer_tail and save_layer were implemented; all 48 logical visits run in order. Two runtime bugs were found and fixed: save_layer threw once read() checkpointed state, and host-side route() dereferenced a VRAM pointer (access violation 0xC0000005), fixed with a host copy of exp_bias_h.

    First output from token IDs 1,2,3: 164775,153676,153676,153676,153676,153676,24700,198 — heavy repetition, not comparable to hello world because the CLI accepted IDs only and no tokenizer was available yet. Measured: prompt 20.8 tok/s, 28.50 tok/s generation. Kernel parity tests passed in isolation (24/24, 9/9, 9/9) but did not establish end-to-end parity. Known gaps at this point: generic moe() used plain SiLU instead of the model's SiTU softcaps; loop messages were an approximation; dynamic conv taps used the wrong inputs; multi-token KV ring untested.

    Stage 6 — layer-wise divergence oracle: four real bugs found and fixed

    First numeric mismatch was visit 0 q at rel 0.0055, but this came from HIP MMVQ dequant precision — embd matched to 4.77e-07 and recomputing q float64 matched the reference to 4.8e-08. The first logic divergence was in attention/experts. Four concrete bugs were fixed:

    1. attend_f16 called with arguments in the wrong order (kv_cap, k0, nk instead of k0, nk, kv_cap) → nk = 0 on visit 0, attention output exactly zero.
    2. fp16 K/V cache store used an implicit __half → uint16_t conversion on HIP → only 2 of 1024 values matched the expected fp16 bits. This was the largest single cause of the gibberish. Explicit __half_as_ushort(__float2half_rn(...)) fixed it to 1024/1024.
    3. Missing attn_output projection lin(B.wo, att_, .) — added.
    4. Missing post-convolution K L2-clip and V RMS norm — reduced visit-0 attn_gated from rel 2.59 → 0.00274 and attn_out from 2.56 → 0.00208.

    Generation after these fixes: ' war God [,...' — still wrong.

    Stage 7 — three arithmetic gaps closed: still wrong

    SiTU expert activation was wired in through a gated virtual hook whose default body is byte-identical for other model families; cross-pass loop messages were replaced with the real previous-pass bank and sliced root query; dynamic conv taps were taken from pre-norm inputs. The model's own tokenizer was extracted and round-tripped the prompt exactly to the six IDs above.

    Output: 68017 repeated as newlines with stray tokens; 15.84 tok/s decode, 29.9 prompt. Kernel suites still passed 24/24, 9/9, 9/9.

    Stage 8 — MoE divergence: router was correct, block state was not

    Router picks matched the float64 reference exactly: [22, 26, 31, 36, 63, 85, 89, 99], weights max abs diff 1.393e-07; expert scales max abs diff 0.0. The actual bug was block-state bookkeeping: at a block boundary we stored the post-attention stream, while the reference stores the stream that entered the layer. Fixing it changed ffn_in from rel 0.5761 / corr 0.79027 to rel 0.006374 / corr 0.999981, and the picks changed from [9,19,22,26,31,36,63,99] to the exact reference list. All visit-0 seams then agreed within ~0.5% (the HIP dequant floor), but visit 1 still diverged at attn_out rel 0.761. Generation: 14.47 tok/s, still gibberish.

    Stage 9 — final logits: logic bug, not quantization

    Our top-1 was 11, the float64 reference's was 68014. Our token was reference rank 5 (trailing by 2.360 nats) and the reference token was our rank 4. Over the unpadded vocabulary the distributions differed by max 11.71 / mean 2.16 log-probability, with only 32 of the top-64 tokens shared. A ~0.5% dequant error cannot produce that ordering error. A separate graph/replay discrepancy also existed: with graphs the first token was 196973, without them 11.

    Stage 10 — core-pass oracle: two more off-by-one bugs fixed

    Before fixes: visit 6 q rel 0.595, visit 18 0.356, visit 30 0.709. Two bugs were found: (a) our visit_pass is 1-based while the reference's is 0-based, so loop messages were applied one pass too early; (b) an off-by-one in which block stream was copied into the bank at pass boundaries. After fixing both, visits 6/18/30 had q rel 0.00464/0.00399/0.00303 and out rel 0.00204/0.00249/0.00273 — and top-1 finally matched the reference (68014). But the full logprob distribution still differed by max 10.481 / mean 1.971 (35 of top-64 shared), and the generated text still degenerated. 17.41 tok/s.

    Stage 11 — multi-token path: divergence starts at visit 0 out

    The CLI split the 6-token prompt into a 5-token read() plus a 1-token eval(), which misaligned the dumps; an env-gated one-call eval path was added. Aligned 5-token errors: visit 0 q 0.0044, attn_gated 0.0054, attn_out 0.0048, but out 0.1082 — the first divergence. Visit 1 q 0.4304 / attn_out 0.9964; visit 2 attn_out 1.859; visit 3 3.230. This points to the multi-token expert path, not attention. No single bug was isolated, so no fix was applied. 23.88 tok/s.

    Stage 12 — why "hello world" was the wrong target

    The recorded hello world came from a temperature-1.0 request, not greedy decoding. Greedy decoding of the same prompt gives "\n\nYou are a helpful assistant..." — its first token is "\n\n", which is exactly our token 68014. So the early first-token mismatch was partly a sampling-condition mismatch, not a model bug. The remaining logprob error was one-sided: mean signed +1.451, reference bottom-10k tokens +2.767 vs top-10k +0.563, 7,002 tokens with error > +5 vs 85 with error < −5 — a systematic over-estimation of rare tokens. The output softcap was verified exact (pre-cap −3.77…40.51, post-cap −3.75…26.22).

    Stage 13 — route-card speed work: reverted

    A device-side router was implemented behind an opt-in gate. Weights matched the host router to max abs 1.19e-07 (gate 1e-6). The guarded A/B measured decode 22.43 → 24.10 tok/s mean (+7.4%) and router wait 9.95 → 1.15 ms/token (−88%). However the gate-on 16-token sequence had substantive disagreements with float64 at positions 5, 8, 11, 13 and 15, with ranks up to 1452 and logprob gaps up to 8.31. Importantly, the gate-off baseline also disagreed substantively at the same early positions (positions 5 and 8 are identical tokens in both arms), so the error was pre-existing rather than introduced by the route card — but it still failed the explicit KEEP criterion. All five route-card changes were reverted and the baseline reproduced at 22.30 tok/s with 10.1 ms/token router wait.

    Stage 14 — continuation diagnosis: the actual root cause

    The oracle setup was re-verified correct (same IDs, no chat template, teacher-forced full sequence). The 6-token prompt's logits already diverge from float64: max abs 10.95505, mean abs 2.77753, top-1 matching but top-10 ordering different (only 37 of top-64 shared). There is also a separate state-carry problem: feeding the same 10-token prefix in one call predicts 83, while incremental calls predict 153935; the reference top-1 is 150183. So the continuation failure is a pre-existing forward-pass accuracy problem plus a one-call vs incremental state-carry discrepancy, not a single fixable recurrence bug.

    Net result on the 16-token greedy oracle: 3/16 agreement with float64 top-1, with substantive gaps up to 8.31. The port's measured speed was 22.4 tok/s decode and roughly 70–96 tok/s prefill.

    Outcome

    No PR was opened and no upstream HIP implementation is claimed. Every Inkling source change was reverted; the worktree, reports and fixture logs were moved to a local archive and the GGUF was removed. Inkling 2 Mini has not replaced Qwen3.6-35B-A3B as the daily driver — on this hardware it is slower in real use and weaker on the repair fixtures. I'm leaving this correction so the request is judged on the final result rather than the earlier optimism.

  5. cobra91 commented on Nov 22, 2026

    @cobra91
    Contributor

    Hi @JuggyBob, @cantonapplet, and PolyStrata team!

    Reading through @cantonapplet's 14-stage breakdown above, I wanted to share some very encouraging news: Inkling 2 Mini is not broken, and the recurrent loop divergences you encountered are completely solvable!

    Over on Strata (PR #6506 / cobra91/Strata-DualGPU:feat/inkling2-support), we have a fully functional, bit-exact, and zero-divergence implementation running on consumer hardware:

    • The loop & state-carry fixes: We solved the pass indexing and memory message bank synchronization across the 36 looped passes (layers 6–17), allowing greedy decoding to strictly match float64 references without degeneration.
    • Full CUDA Graph & Unsloth UD Quant support: Resident execution captures clean CUDA graphs with zero launch latency.
    • Real-world throughput:
      • 104.24 tok/s decode on Dual-GPU (RTX 5080 + RTX 4060 Ti) using Asymmetric Looped Core Pinning & Zero-P2P Tail-Skip.
      • ~80 tok/s decode on Mono-GPU 16 GB (UD-IQ3_XXS + FP8 KV cache, 100% in VRAM).
      • ~53–58 tok/s decode on an 8 GB RTX 2060 SUPER (tested by @merbanan using IQ3_S + int8 KV cache on top of our branch).

    If you are interested in reviving Inkling 2 support for PolyStrata, we would be more than happy to adapt our C++/CUDA engine (ik2_engine.cu, layout rewrites, and o200k tokenizer) to PolyStrata's src/ tree and submit a clean PR!

    Feel free to check out our implementation in Strata PR #6506 if you want to inspect how the recurrence loop was handled. 🚀

  6. okada-shogo commented on Nov 22, 2026

    @okada-shogo
    Contributor

    @JuggyBob Hey just wanted to note that thanks to @Tako88 testing on a 9060XT and getting the ball rolling #200 has preliminary support for AMD on 9060/9070 series cards.

    git fetch https://github.com/okada-shogo/PolyStrata.git inkling2-amd-preview
    git log --oneline a9ffc2b..FETCH_HEAD
    

    Could you try this branch currently in progress and measure performance on the RX 7600 XT? It's difficult to easily rent an AMD GPU box online...

    @cobra91 Those decode speeds on the RTX 2060 Super are really impressive! Do you mind if I look through your PR to see if there's any speed ups I can incorporate into #200 ? Those are similar figures I'm getting to UD-Q2_K_XL on an RTX2070 Super

  7. JuggyBob commented on Nov 22, 2026

    @JuggyBob
    Author

    Thanks @cobra91 — appreciate you taking the time to write this up, and congratulations on getting the loop/state-carry issues solved. Having the pass indexing and message-bank synchronization fixed in a working implementation is exactly what this thread needed, and the Strata 0.2.19 release notes credit your PR by name, so this is clearly more than a claim on paper.

    To be precise about our side, so nobody draws the wrong conclusion:

    • Our failed port was the AMD HIP / RDNA3 path on gfx1102 (RX 7600 XT) on Windows, not CUDA. Our 16-token oracle gave 3/16 agreement with float64 top-1 and substantive gaps up to 8.31; a route-card speed change (+7.4% decode) failed the same correctness gate and was reverted. We closed the experiment, archived the code and reports, and filed no upstream PR.
    • Nothing in your description (CUDA Graphs, MSVC build, dual-GPU EP) addresses that HIP path, so the AMD gap this issue was originally about is still open. If you ever want to look at gfx1102 specifically, the archived reports have the per-stage dumps and exact commands.
    • I have not reproduced your throughput numbers or the bit-exact claim. They are your measurements on NVIDIA hardware and I am not in a position to confirm or dispute them — worth labelling them as such in the thread.
    • One distinction that matters from our testing: correct short-context output does not imply the model is useful in practice. Our greedy first-token check converged and we fixed several arithmetic bugs, but Inkling still scored below Qwen3.6-35B-A3B on our repair fixtures. That is a model-quality finding, separate from engine correctness.

    For anyone following along: Strata 0.2.19 now ships native strata-inkling with SQ-10/15/20 quant packs, which is the easiest way to test the fixed implementation yourself.

    If you do open a PolyStrata PR, I would support it — just please scope it honestly as CUDA/NVIDIA rather than AMD/HIP.

  8. JuggyBob commented on Nov 22, 2026

    @JuggyBob
    Author

    @okada-shogo Thanks — I'll give the inkling2-amd-preview branch a try on my hardware.

    To set expectations precisely:

    • GPU: RX 7600 XT, gfx1102 / RDNA3, 16 GB, on Windows 11 with the ROCm/HIP toolchain. Your supported list is 9060/9070 (gfx1200/gfx1201, RDNA4), so my card is outside the current target. I'll try it anyway, but if it needs an AMDGPU_TARGETS=gfx1102 build or hits an RDNA3-specific kernel gap, I'll report the exact error rather than guess.
    • Safety: all model loads will be guard-enforced (one model at a time, 80% commit ceiling), and I won't disturb the daily Qwen setup.
    • What I'll measure: both speed (decode/prefill) and a 16-token greedy top-1 check against the float64 reference. On our earlier HIP attempt, short-context output looked plausible while the 16-token continuation was wrong, so a speed number alone isn't useful to me.
    • I no longer have the Inkling GGUF locally (it was removed after we archived that work), so I'll need to download a quant. Which one do you recommend for 16 GB — the UD-Q2_K_XL you mentioned, or UD-Q3_K_XL? And is there a preferred launch command for the preview branch?

    I'll report results here whether they pass or fail, including exact commands and NOT RUN where applicable.

  9. merbanan commented on Nov 22, 2026

    @merbanan
    Contributor

    @okada-shogo https://github.com/merbanan/Strata/commits/inkling2-turing/ something in here is bound to apply to other platforms also. Feel free to pick and choose among the patches.

    With 8GB VRAM compromises have to be done and that is ~3bit quant model + int8 kv-cache (I did try k8v8 that give slightly better KL). And on top of that all kind of tricks to keep as many experts as possible in VRAM.

  10. okada-shogo commented on Nov 22, 2026

    @okada-shogo
    Contributor

    Hey @JuggyBob, thanks for the prompt reply! If you tried fetching the branch and it wasn't up yet, sorry, it should be up now. I didn't expect anyone to try it so fast! 😅

    If AMD performance on Windows is anything like my AMD performance on WSL right now, it really hates it when experts spill out of VRAM... I think something that would fit in VRAM is probably ideal, so probably the UD-Q2_K_XL or UD-Q3_L_XL. My tests have all been on UD-Q2_K_XL

  11. okada-shogo commented on Nov 22, 2026

    @okada-shogo
    Contributor

    @merbanan Thank you, I'll take a look!

  12. JuggyBob commented on Nov 22, 2026

    @JuggyBob
    Author

    @okada-shogo Thanks — the branch is up and I confirmed it at 3bc4042c (the earlier fetch was just too early). No apology needed; I'll note the timing in the results.

    I'm currently building strata-poly for gfx1102 / Windows HIP with the TheRock toolchain. Per the pinned recommendation I'll use Inkling-2-Mini-UD-Q2_K_XL.gguf (9.14 GB, SHA-256 20292e81…), which is what you tested, with --kv q8_0 --kv-whole and 32K context so the weights stay resident. I'll skip vision and the DSpark drafter.

    One expected limitation from reading the diff: the new matrix-core prompt attention is gfx12-only, so my card falls back to the scalar path — the gfx1201 prompt numbers won't transfer. I'll report exactly what gfx1102 does, including any build or runtime error.

    I'll run the 16-token float64 top-1 oracle before any speed claim, then post a short guarded benchmark here — pass or fail.

  13. cobra91 commented on Nov 22, 2026

    @cobra91
    Contributor

    Hi @okada-shogo,

    Please feel completely free to borrow, adapt, and incorporate anything you find useful from our PR (Niko1221/Strata#6506) into #200! That implementation is itself an open-source collaborative effort combining contributions from several people and projects (including @merbanan's Turing/low-VRAM patches, Unsloth's layout, and our CUDA graph / Dual-GPU synchronizations). Open-source thrives on cross-pollination, so please make full use of anything that helps!

    One finding from our lab benchmarks that gave a noticeable throughput boost: tuning and increasing the speculative draft window / depth (--window\ / max draft tokens). When draft acceptance is high (>70–85%), expanding the verification window allows the model to accept multiple tokens per forward pass without bottlenecking memory bandwidth, yielding a very solid decode uplift.

    Really great work driving PR #200 forward — looking forward to testing and seeing it land in PolyStrata! 🚀

  14. JuggyBob commented on Nov 22, 2026

    @JuggyBob
    Author

    @okada-shogo Results are in — tested on RX 7600 XT / gfx1102 / Windows 11, inkling2-amd-preview @ 3bc4042c, built with the TheRock HIP toolchain for gfx1102, model Inkling-2-Mini-UD-Q2_K_XL.gguf (SHA-256 20292e81…), --kv q8_0 --kv-whole, 32K context.

    Correctness: PASS. Greedy 16-token output from prompt IDs 86228,149899,152703,25,171551,150770 matched a fresh float64 oracle (raw mw00/project-maya ref/inkling2.py, teacher-forced on the exact 22-token sequence) at rank 1, gap 0.000000 on all 16 positions. First substantive divergence: none. The fresh baseline was necessary because commits a284a962 / d230bec9 changed cache selection and final-bit answers, so our archived earlier baseline is invalid.

    Speed (graphs on, 6-token prompt, 128 generated, CLI timing line): decode 47.58 tok/s, prompt 33.0 tok/s. No-graphs 16-token control: 44.88 / 31.6 tok/s. All 3,072 routed experts stayed in VRAM (7.3 GiB), 100% from VRAM, 0 swaps, 0 left out.

    Caveats, so nobody over-reads this:

    1. The prompt number is not a prefill benchmark. The CLI only accepts --tokens ID,ID,… and has no token-file input, so the prompt was exactly six tokens; the 33.0 tok/s is dominated by overhead. pp128/1024 prefill is NOT RUN.
    2. gfx1102 does not get the new matrix-core prompt attention — that path is gfx12-only and falls back to scalar attention here. The branch's gfx1201 prompt numbers cannot be assumed.
    3. One local build flag was required: _ENABLE_EXTENDED_ALIGNED_STORAGE (Added to CMAKE_HIP_FLAGS / CMAKE_CXX_FLAGS). Without it, MSVC's STL rejects std::stable_sort of the 16-byte-aligned Mmq::Tile at src/poly/mmq.cu:287. This is a toolchain issue, not an Inkling/gfx1102 defect, but it will block anyone else building this on Windows — worth fixing upstream. STRATA_POLY_MMQ_TILES=1 stayed enabled.
    4. setup.py still refuses --family inkling on AMD/Windows, so this required a manual CMake build and hand-written config.
    5. Repair fixtures are NOT RUN. Oracle correctness is not the same as practical model quality; our earlier finding that Inkling underperforms Qwen3.6-35B-A3B on the repair fixtures still stands. This is a fixed implementation, not a fixed model.

    Every engine run was guard-wrapped (80% commit ceiling, preflight before each load, one model at a time). No abort, no timeout, no leaked processes, locks or listeners; daily setup untouched. Full commands, verbatim outputs, oracle table and cleanup check are in my local report.

    Thanks for the work — this is the first Inkling engine on this card that passes the 16-token oracle.

  15. cobra91 commented on Nov 22, 2026

    @cobra91
    Contributor

    Huge congratulations @JuggyBob and @okada-shogo! Seeing Inkling 2 pass the 16-token float64 oracle with gap 0.000000 and hit 47.58 tok/s decode on an RX 7600 XT under Windows 11 with 100% VRAM residence is a massive milestone! 🚀

    Regarding the two friction points mentioned in the report:

    1. The _ENABLE_EXTENDED_ALIGNED_STORAGE MSVC blocker:
      This occurs because struct alignas(16) Tile in src/poly/mmq.hpp exceeds MSVC STL's default alignof(max_align_t) (8 bytes on x64). When std::stable_sort allocates its internal scratch buffer via default allocator traits, MSVC's <xmemory> asserts unless _ENABLE_EXTENDED_ALIGNED_STORAGE is defined.
    2. setup.py refusing --family inkling on Windows & AMD:
      Under FAMILIES["inkling"], "windows": False, "cuda_only": True was still set. Flipping those flags now that Windows 11 HIP convergence is proven enables automatic runner script generation.

    To save @okada-shogo the manual work, I've opened a clean 2-commit PR directly against your preview branch: okada-shogo/PolyStrata#1. It defines the macro across CMake/HIP flags on WIN32 and unlocks setup.py.

    Also, for @JuggyBob to test prompt prefill throughput (pp128 / pp512) directly via CLI without being bottlenecked by typing a long --tokens list manually, you can generate the repetition string directly in PowerShell:

    $prompt = (1..512 | ForEach-Object { "15" }) -join ","
    .\engine-poly\strata-poly.exe --model <GGUF> --tokens $prompt --max-new 1

    This cleanly saturates the prompt attention pipeline and yields an overhead-free prompt tok/s measurement.

    Kudos again to both of you for making this happen!

  16. VecSzn commented on Nov 22, 2026

    @VecSzn
    Collaborator

    Inkling 2 Mini is in v0.2.19-poly.1, so to use it you run ./setup.sh --family inkling. It's now also capable of reading pictures, and does one request at a time. It works on 8 GB cards and is in beta on Macs.

  17. JuggyBob commented on Nov 23, 2026

    @JuggyBob
    Author

    Follow-up from testing okada-shogo's inkling2-amd-preview build on gfx1102 (RX 7600 XT 16 GB, Windows 11).

    Artifacts

    • Engine: strata-poly.exe, SHA-256 90D112B02EF105428678928461D7E1F0E7F992F6133B20D1E53653059E3D02BA (okada-shogo/PolyStrata commit 3bc4042c85c480563337db4fa2b6fc2fa4d63023, with _ENABLE_EXTENDED_ALIGNED_STORAGE added locally for MSVC).
    • Model: Inkling-2-Mini-UD-Q2_K_XL.gguf, SHA-256 20292E8142B69535CA88A5D04439D0FDEB4DC698D44C002DCA706DCF92901441.
    • Tokenizer: extracted from GGUF metadata with tools/strata_tokenizer.py (vocab 200,058; merges 424,413; pre-tokenizer inkling2), because no pack tokenizer was present.

    What works: one-shot token mode. Measured decode 49.73 tok/s (128 generated, graphs on), 50.09 tok/s (256 generated), 45.19 tok/s (1,035-token prompt, 512 generated); 100% of experts from VRAM, zero swaps, no spill.

    What does not work: the serving / agentic path. strata-poly --help shows --serve as a resident stdin protocol, not an HTTP server. Wrapping it with this repo's serve/server.py (which adds --serve and exposes OpenAI /v1/chat/completions) starts successfully, and /v1/models reports the model loaded at 32K context. But streaming chat completions emit content deltas with finish_reason: null and never send a final finish chunk or [DONE], at max_tokens 8, 64 and 256. The engine log also shows some longer prompts being read as 0 tokens / 0 generated, after which the wrapper returns an empty stream.

    Consequence: a tool-calling agent harness (hermes) rejects the turn with EmptyStreamError: Provider returned an empty stream with no finish_reason after three retries, in about 3.7 s. No multi-turn agentic run is possible through this path, so I could not obtain an Inkling repair-fixture score and did not claim one.

    Suggested check: whether the okada --serve stdin end-of-answer event is being translated into the OpenAI finish_reason / [DONE] sequence by serve/server.py, and whether the 0-token reads on longer prompts are an engine-side or wrapper-side issue.

    Full write-up (path-free): docs/V6-INKLING-COMPARISON.md in JuggyBob/polymath.

  18. okada-shogo commented on Nov 23, 2026

    @okada-shogo
    Contributor

    @JuggyBob Thank you for continuing to test. The #200 branch does seem to have a bug in it. Since main and upstream have changed significantly, I am working on porting the performance and functional changes from my branch onto the new main branch. Could you test https://github.com/okada-shogo/PolyStrata/tree/combined/ready instead? It should fix that issue, though several AMD performance optimizations are still missing, so you may have slower performance.

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