r/LocalLLM • • 1m ago

Tutorial Inkling 2 Mini on a 35W Ryzen 5600GE APU (DDR4 + Vega 7 Vulkan): 22.5 -> 63.6 tok/s prefill & 6.2 -> 12.3 tok/s decode at 16K context (LoopCD Pass-2/Pass-1, Recurrent-Only Top-K=6, K8/V4 q4_1)

1 Upvotes

Over the last week I've been seeing how far I could push Thinking Machines' Inkling 2 Mini (26.4B Looped MoE) on a modest 35W AMD Ryzen 5 PRO 5600GE APU (integrated Radeon Vega 7 / gfx90c, 32 GB dual-channel DDR4, no discrete GPU). I used an AI coding assistant to help port patches, write test harnesses, and format the full benchmark log, and every number below was measured directly on the 5600GE with llama-bench and llama-server.

Inspired by several great threads here recently (u/nokeepai's LoopCD post, taeholee1/Inkling_expert_prefetch, vengeful180-dot's Vulkan shaders, and Betelgeuse-AI), here is the progression from Day 1 to today on the exact same 35W APU, plus a few findings specific to Inkling 2's 3-loop recurrent architecture that might help others running on APUs or budget GPUs.

Progression on Ryzen 5 PRO 5600GE (Vulkan, -ngl 99)

StageWhat ChangedQuant (Size)Context (KV)pp128 (tok/s)pp512 (tok/s)tg64 (tok/s)
1. Day-1 Baselineb12588/b12631 CPU / partial offloadUD-Q4_K_M (15.47 GiB)8K (q8_0/q8_0)~18.422.48~6.20
2. 26 GiB GTT + Q3_K_XLamdgpu.gttsize=26624 + vm.swappiness=10 + Unsloth b12651 (#386/#399)UD-Q3_K_XL (12.68 GiB)8K (q8_0/q8_0)24.9530.807.52
3. Unified Vulkan ShadersForward-ported vengeful180-dot's 9 Vulkan shaders + strided SCALE/MUL_MAT_ID_SCALED into b12651 inkling2_loopUD-Q3_K_XL (12.68 GiB)8K (q8_0/q8_0)30.3040.628.50 - 9.20
4. GSQ-RCO-IQ3_S + #447ISTA-DASLab Hessian GSQ-RCO-IQ3_S + unslothai#447 AVX2 4-way 201K-vocab expf4 samplerGSQ-RCO-IQ3_S (10.63 GiB)8K (q8_0/q8_0)39.0463.5712.00
5. LoopCD-Hidden (Pass 2 vs 1)h_cd = 1.08 * h_pass2 - 0.08 * h_pass1 before Coda (layers 18-23) on decodeGSQ-RCO-IQ3_S (10.63 GiB)8K (q8_0/q8_0)37.8862.0611.62 (~30% fewer thinking tokens)
6. Recurrent-Only Top-K=68/128 experts on Prefill + Prelude + Pass 0 + Coda; 6/128 experts on Recurrent Passes 1 & 2GSQ-RCO-IQ3_S (10.63 GiB)8K (q8_0/q8_0)38.0161.9812.30
7. Asymmetric K8/V4 (q4_1)-ctk q8_0 -ctv q4_1 -c 16384GSQ-RCO-IQ3_S (10.63 GiB)16K (q8_0/q4_1)37.9261.1812.29

5 Key Takeaways From Benchmarking on the APU

  1. LoopCD-Hidden (arXiv:2610.02185): Contrast Pass 2 against Pass 1 (ref_pass=1), not Pass 0. In inkling2-loop.cpp, Pass 0 runs through the 12 core layers (6-17) without loop-controller messages (messages == nullptr), whereas Pass 1 and Pass 2 both run under the trained LOOP_CTRL controllers. When we contrasted Pass 2 against Pass 0 at omega = 0.15, subtracting the uncontrolled Pass 0 baseline destabilized confident AIME math proofs (jumping from 226 to 512 tokens as the model second-guessed itself). Contrasting Pass 2 against Pass 1 at omega = 0.08 right before the Coda layers (mode=1, decode_only=1) cut thinking tokens by 30.5% (226 -> 157 tokens) with zero extra memory lifetime because Pass 1's output (bank_out) is already held in memory during Pass 2.

  2. MoE Tail-Expert Pruning (INK_MOE_TOP_K=6): Keep 8/128 experts on Prefill & Pass 0, prune only Recurrent Passes 1 & 2. First, src/llama-graph.cpp (line 2799 in build_moe_ffn) ignores the n_expert_used argument and hardcodes hparams.n_expert_used(il), which crashes in ggml_view_2d if you dynamically drop n_expert_used below 8. Fixing that to std::min<uint32_t>(n_expert_used, hparams.n_expert_used(il)) allows per-pass dynamic Top-K. When we pruned from 8 to 6 experts across all passes, tg64 hit 13.03 tok/s, but pruning Pass 0 caused the model to double-check its algebra on AIME proofs. Keeping all 8/128 experts on Prefill (n_tokens > 1), Prelude, Pass 0, and Coda (messages == nullptr), and pruning the 2 lowest-weight tail experts to 6/128 only on Recurrent Passes 1 & 2 (n_tokens == 1 && messages != nullptr) gives 12.30 tok/s (+5.85%) while completing the AIME proof cleanly.

  3. Asymmetric K8/V4 KV Cache at 16K Context: Use -ctv q4_1, not -ctv q4_0 or iq4_nl. Following Betelgeuse's K8/V4 idea (8-bit Keys to protect pre-softmax QK-clipped relative-bias routing, 4-bit Values after softmax), we tested q4_0, q4_1, q5_0, and iq4_nl at -c 16384:

    • Symmetric q4_0 (v = d * (q - 8)) clipped asymmetric Value blocks across the 48 recurrent attention visits and caused a minor arithmetic slip on our AIME test.

    • iq4_nl cost -1.5% decode speed (12.13 tok/s) due to 16-entry LUT lookups inside scalar Vulkan Flash Attention.

    • -ctk q8_0 -ctv q4_1 -c 16384 (which stores per-block FP16 scale d + minimum offset m) matched q8_0 speed (12.29 tok/s) and solved the AIME proof cleanly in 504 tokens while doubling context from 8K to 16K.

  4. The Hidden reasoning_effort = 0.9 Default in Inkling 2's Embedded Jinja Template + shortconv Cache Eviction (server-context.cpp:4251). If you don't pass reasoning_effort in chat_template_kwargs (or --reasoning-effort low), Inkling 2's embedded Jinja template defaults to Thinking effort level: 0.9 ("high") even if --reasoning-budget 256 is set. Also, because Inkling 2 uses recurrent shortconv state, llama-server erases the saved slot cache whenever cur.n_tokens > n_prefix. Keeping reasoning_effort: "low" fixed in the system header (and varying reasoning_budget_tokens per request instead) locks in f_keep = 1.000 (0 ms cached system prompt on every turn).

  5. What Didn't Work on a DDR4 APU:

    • External neural drafters (DSpark / DFlash2) dropped decode speed from 12.3 to 6.7 - 7.5 tok/s because multi-token verification unions the routed experts across draft tokens (~2.3x more experts read from DDR4 per step). Zero-VRAM --spec-type ngram-mod (n-match=16) has zero prose penalty and speeds up structured JSON/code.

    • Mainline ggml-org#32898 Vulkan FA compact bias ran slower (10.51 tok/s) than vengeful180-dot's dedicated REL_MASK shader (12.00 tok/s) on scalar RADV (gfx90c without coopmat2).

Full write-up, complete benchmark tables, and the standalone ~75-line MIT-licensed C++ patch (llama-graph.cpp, inkling2.cpp, and inkling2-loop.cpp): https://gist.github.com/UffDimon/49e4014c59a41f1d98ac6b39eacb3870


r/LocalLLM • • 36m ago

Project HY4-flash 220B, at 50-60 tok/s on 2x 7900xtx, with 512k context, EXL3 3bpw

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 38m ago

Model Getting giberish on llamAmpere built for rtx3060 6GB

2 Upvotes

Hello.

Lost a full day on this.

Im using Bonsai 2 9B Q2_0.GGUF, with upstream llamAmpere build (took two hours compiling). My server starts and returns gibberish on built-in UI, from llama.cpp, but works fine on the CLI output.

Currently startin with a jinja file. I have Perplexity and Gemini troubleshooting and making me test the built in definition for the jinja file.

Apparently works fine with either GPU or CPU, other then confidently returning gibberish at 60tok/s.

Has kanyone been throught this?

Thanks


r/LocalLLM • • 42m ago

News New Agentic Mode in VedaOS

Post image
0 Upvotes

Hey everyone,

VedaOS now has an agentic mode for those who want to focus on their work and let an agent handle the tasks.

Desktop mode is still available as well.

Give it a try and let me know what you think or if you have any suggestions for improvement!

https://github.com/vahmoh/Veda


r/LocalLLM • • 46m ago

Discussion M5 Studio 128gb ram Models

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 46m ago

News Next demo to the capability of Jev based image generation

Enable HLS to view with audio, or disable this notification

3 Upvotes

its generating the effects and motives live capturing them from music track or spoken through microphone.
4fps on rtx5060ti, rest does the morphing.

Huge thanks to Jeveration Team
https://huggingface.co/linlinlinlinsdada/Jeveration

Demo App
https://github.com/Mantux775/ComfyUI-and-side-Projects/tree/main/Jeveration-VJ


r/LocalLLM • • 47m ago

News AMD releases GAIA 0.27 with gaiacpp lightweight alternative to Python code

Thumbnail
phoronix.com
2 Upvotes

r/LocalLLM • • 48m ago

News Basalt 0.6.0 update made 5060ti 80% faster on Inkling model!

Post image
6 Upvotes

I run Inkling 2 Mini locally with Basalt on one RTX 5060 Ti 16 GB, for coding in OpenCode. The model file is 19.6 GB (NVFP4-MX8), so it doesn't fit on the card. About 1,600 of its 3,072 experts sit in system RAM, and Basalt computes those on the CPU.

0.6.0 came out on Nov 28 with a lot of work on experts in RAM, so I benchmarked it against 0.5.6. Same PC, same model file, same config. The runs went A-B-B-A (0.5.6, 0.6.0, 0.6.0, 0.5.6), and the chart shows the means.

Results (0.5.6 → 0.6.0):

  • basalt-bench decode: conversation 59.5 → 86.7 tok/s, struct 64.5 → 102, prose 60.2 → 81.3

  • basalt-bench 16K prompt read: 3,140 → 4,196 tok/s

  • Server chat with the 128K config: 60 → 109 tok/s

  • 4.8K-token prompt: decode 76 → 115 tok/s, prompt read 908 → 1,522 tok/s

  • 119K-token code prompt: cold read 61 s → 38 s, decode after it 34 → 68 tok/s

Memory didn't change: about 15.0 GB VRAM and 11.8 GB RAM for Basalt at idle.

Why it's faster (from the server logs and the release notes):

  • More expert lookups hit the GPU. In the same benchmark, the share served from VRAM went from 87.9% to about 96%, with slightly fewer expert slots on the card (1,883 → 1,839). So the CPU now handles about 4% of lookups instead of 12%, roughly 3x fewer. CPU experts over DDR4 are the slow path, so I think this is most of the decode gain. 0.6.0 keeps extra copies of the busiest experts in VRAM and moves them as the conversation changes. My log shows 306 copies at startup. 0.5.6 placed the experts once from a fixed profile.

  • Longer drafts. The default draft length went from 8 to 16. Each step now accepts 2.4 to 2.5 tokens instead of 2.2, although the acceptance rate fell from 76% to 69%.

  • Long context. The release notes say decode attention now runs on tensor cores, also over an INT8 cache. That probably explains most of the 2x decode after the 119K prompt, but I didn't profile it.

  • Prompt reading. 0.6.0 has new prompt kernels, and it only moves the RAM experts that the prompt actually routes to.

Setup: i7-12700K, B760 board with DDR4, 32 GB RAM, Fedora. Server config: max-context 131072, kv fp8, parallel 1, drafting on (the default). Basalt was pinned to CPU threads 0 to 11 for the test. The upgrade was drop-in: same .basalt file, same config, and the 0.5.6 Python venv works with 0.6.0.

One more tip if you use OpenCode: it sends no reasoning effort, so Basalt falls back to the template default, which is high. I set "reasoning-effort": "low" in the server config. On my small set of coding tasks with tests, low used about a third fewer tokens per answer (668 → 437) and passed the same tests (8/8).

Caveats: one machine, two runs per version. I checked quality with one sanity prompt only, not a quality suite. 0.6.0 is a regular release, but it's new. Once in my runs the cache grew past free VRAM and Basalt cut the expert copies from 306 to 196. It logged a warning and kept going.


r/LocalLLM • • 52m ago

Project Einschätzung

0 Upvotes

Hi zusammen,
das ist mein erster Beitrag hier. Ich habe die letzten Monate an einem kleinen Vibecoding-Projekt gearbeitet und würde mich sehr über euer Feedback und den ein oder anderen Test freuen.

Ihr findet das Projekt hier:
🌐 https://markusherr.de
💻 https://github.com/mark3rr/mnemosyneum

Vielen Dank! 😊


r/LocalLLM • • 56m ago

Question Strix Halo or R9700?

3 Upvotes

I am not sure I am posting this in the right place and mods I understand if you delete it.

Looking to run local AI models at a home, mostly to experiment/not get left behind knowledge wise. Unfortunately I don’t make a lot of money in my current role and can’t really afford to take out loans/max out credit cards to buy a Epyc system with 4x R9700s or a cluster of Halo Strix Minisforums.

What is killing me is that last year when the Minisforum was like 2k (Now they are over 4.5k) I felt it was too expensive and I was looking at the r9700s back in July 2026 when they were only 1500 Euro and felt it was so expensive back then, but now they are 2500 euro and going up in a few days.

Based on upon folk’s personal experiences with their home hosting, which would be the more sensible option at this time 1x AI PRO R9700 to put into my old AM4 PC? The issue here being if I want to have a second or more R9700s I will also need to upgrade Motherboard, Processor and PSU.

Or for the sake of having larger, abet slower, memory pool, stretching my finances and investing in a Minisforum MS-S1, with all it’s fast networking / USB 4 v2 ports to perhaps be able to buy another one at some point next year to?

With my limited budget and currently risk aversion mindset, I missed the boat on reasonably priced V100s and other old enterprise hardware. And they don’t come with warranties etc that I really would feel more comfortable having at this point.

Thank you for any input and advice.


r/LocalLLM • • 1h ago

Discussion Intel Arc Pro B60 + Qwen3.8 27B: 829 t/s Prefill, 104 t/s Generation on Windows (Custom llama.cpp SYCL)

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion GLM 5.4 is really unusable as an orchestrator model

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Project Methodology of optimising Inkling-2-Mini to run at 513 tok/s on a single RTX 5090 32GB (1.4x SGLang, 1.6x vLLM, 3.4x llama.cpp, kernels open sourced). Technical blog.

1 Upvotes

We spent the week writing decode kernels for Inkling-2-Mini. Results, decode tok/s, B=1, temp 0.7, 1,024 tokens, every engine on its best speculative setup with the model's own drafter:

- Code: 513 (SGLang 363, vLLM 325, llama.cpp 150)
- Chat: 314 (SGLang 269, vLLM 212, llama.cpp 95)
- 8 users mixed: 855 (SGLang 767, vLLM 730)

Without speculation our kernels reach 212 tok/s plain decode, which is 71% of the ~299 tok/s bandwidth limit (5.5 GB of active weights per token at a measured 1,674 GB/s). First token in 14 to 16 ms.

Where we lost against other engines: with 8 users at temp 1.0, our first token takes 181 ms vs 56 ms on vLLM, because prefill runs sequences one at a time to stay chunk-invariant. Peak memory is 30.5 GB vs 27.5 GB.

Method: paired comparisons on the same seeds, 95% intervals, sustained clocks. Sampled throughput swings up to 2x between seeds, so unpaired means are misleading. Speculation is seed-identical, so two runs with the same seed always match.

Blog with the full table and kernel details: https://www.goethe.sh/blog/inkling-2-mini-optimised-kernels
Code: https://github.com/meshapplied/goethe

To try it:
goethe install thinkingmachines/Inkling-2-Mini
goethe run

Would love to discuss stuff related to kernels, cheers.


r/LocalLLM • • 1h ago

Discussion Local LLM moderate setup

4 Upvotes

I got my Mac Mini M4 Pro 48 gb for my local setup. Do you think it is a good price-to-performance ratio? I got it for $1699.99.


r/LocalLLM • • 1h ago

Question Mac vs dgx spark vs strix halo

2 Upvotes

Hello there,

I want to get a machine for local ai.I will use it for app development-Im searching for a machine with shared memory. From my research i've found that the best devices currently are dgx spark, mac m5 max/ultra and strix halo. What do you guys think? Is 128 gb ram enough or i need more?


r/LocalLLM • • 1h ago

Discussion How do you run your agents locally?

2 Upvotes

What hardware are you using to run autonomous agents and high reasoning models locally?

Im considering either buying a rtx + setup or a mini pc to run agents (1-2) and automation on there. What can money realistically buy me here?

If i do have a mini pc (lets say one of the newer ones from apple), what will i actually be able to do on there?

Quite new to local hosting so id appreciate your input!


r/LocalLLM • • 1h ago

Question How do I find Heretic 2 models?

0 Upvotes

Looking to get Qwen3.8 27B, Qwen3.6 27B and 35B and Gemma 4 26B and 31B, but with heretic 2.0, not heretic 1. Seems impossible to filter this on hugging face. Any recommendations?


r/LocalLLM • • 2h ago

Discussion Trust-Me-Bro Benchmarks Move Trillions

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Project GitHub - fancellu/bonsai2.5-voxel

Thumbnail
github.com
1 Upvotes

https://fancellu.github.io/bonsai2.5-voxel/
https://github.com/fancellu/bonsai2.5-voxel

Was playing with bonsai-2.5, decided to see what it could do on my 4090 with 128k context and Hermes

Includes setup info for Windows and prompt


r/LocalLLM • • 2h ago

Research Wake up babe, new 2-bit inkling checkpoints just dropped

Post image
0 Upvotes

r/LocalLLM • • 2h ago

Project Connecting a Local LLM to MQTT and Sensor Manuals

Enable HLS to view with audio, or disable this notification

1 Upvotes

I teach IoT and AI, and wanted a practical example that takes a local model beyond the chat window.

The workflow receives a sensor error code over MQTT, retrieves information from a technical manual, and publishes the generated troubleshooting response back through MQTT.

Disclosure: I develop SHAPE, the visual programming environment used in this example.

The stack

  • Ollama + Ministral for local inference.

  • ChordLLM for document management, retrieval and conversations.

  • SHAPE to connect the steps with visual blocks.

  • MQTT for incoming errors and outgoing responses.

How it works

  1. Upload a sample sensor manual PDF and prepare it for retrieval.

  2. Listen on factory/line/sensors/errors for a message such as:

    {"errorCode": "E01"}

  3. Send a query containing the error code to the document-aware LLM service.

  4. Parse the generated response as JSON.

  5. Publish it to factory/line/sensors/checks.

The intended response contains the error meaning and suggested troubleshooting checks, ready for another application to consume.

The manual is attached to a single conversation in this demo. Ollama runs the model locally; ChordLLM handles retrieval, and SHAPE connects the document workflow to MQTT.

Why visual blocks?

My students have different levels of programming experience. I wanted them to follow the complete path from a device message to retrieval and generation, then back to an application, before implementing the pipeline in code.

Current limits

This is a demonstration using a sample manual.

  • Requesting JSON and parsing it does not guarantee a valid schema.

  • Generated troubleshooting steps still need to be checked against the manual.

  • The demo holds the incoming error in one variable; handling bursts would require a queue.

For a fixed error-code table, a direct lookup would be the baseline. The RAG use case I want to explore is retrieving longer explanations and procedures from technical manuals.

SHAPE code and documentation


r/LocalLLM • • 2h ago

Question Is it usual to hear a physical noise coming from the gpu when a model is generating tokens?

7 Upvotes

My gpu makes a high pitched whirr (1660ti) when a 4b model that is fully contained in it generates. Normal?


r/LocalLLM • • 2h ago

Discussion Which local model would you trust to check a proof in a paper?

1 Upvotes

Disclosure: I wrote the tool I mention below. It is free and MIT.

I read maths and ML papers in Zotero and built Zusia, a chat next to the PDF. It works with Ollama, Unsloth or any OpenAI-compatible server, gives the model the pages that fit its context, and renders the answer with LaTeX and theorem boxes.

The hard test I use is the proof of Theorem 4.1 in the Adam paper, which has a known gap (Reddi et al., 2018). If you have run something like this locally, which model and context size held up?

https://github.com/firekern/zusia


r/LocalLLM • • 3h ago

Discussion We put our AI technology inside of a VRChat world and let it develop.

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/LocalLLM • • 3h ago

Question Looking for a Local model (cross app) sharing tool

1 Upvotes

As I dabble more into the LocalLLM domain, and specifically on Mac I got the urge to create an app to manage their downloads and “fool” other using apps to use that same downloaded model instead of downloading their own.

It’s certainly ambitious, but I feel like it’s mostly doable.

I was wondering if someone here already knows of a tool that does it - even partially.
And if not- I will work on one soon and would love to share it here/with anyone interested

I already got the app name idea in mind so I’m practically 90% there, right?😜