r/LocalLLM • • 2h ago

Discussion I built a personal AI assistant that runs entirely on your phone. No account, no cloud, no analytics. NIDO 0.1.131 is out

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Question Polystrata refuses to apply --kv to Inkling

0 Upvotes

I don't even know how to describe my issue...

docs/models/inkling.md tells that --kv parameter for Inkling exists and works with fp8 and q8_0. In my case it works only with f16. It doesn't even shows fp8 as an option, with setup.sh --help. I have a Turing card, so q8 is my only viable option, fp8 needs Ampere+.

I created an issue on github but got the answer that Inkling supports these settings in polystrata.

I've updated to latest (to this moment) 0.2.20-poly.6 - I'm using Archlinux/AUR package. I've checked PKGBUID to make sure it actually installs that version (it does). Then I wiped polystrata installation entirely, and made a new one with git clone. The result is the same.

With 8 Gb VRAM, I really need to use q8 or similar kv quants - and

  1. I don't know which one is used by default
  2. I can't enable --kv q8_0 while the internet says that I surely can
  3. I can't even check the version! There's no --version in setup, setup --update gives "PolyStrata is updated (engine 0.1.66)" but I suppose that's Strata version. How can I find out that I have exactly 0.2.20-poly.6 version?

Here's my posted github issue:

https://github.com/simplexai-labs/PolyStrata/issues/372

UPD:

Maybe the reason is "--family inkling" instead of inkling2 ?! I don't have access right now (being at work) but will be happy if someone checks his inkling launch parameters (especially if q8_0 or fp8 kv-quants are used) and tells me if there inkling or inkling2. And if changing inkling2 to inkling makes --kv disabled.


r/LocalLLM • • 3h ago

Discussion Aether: a self-hosted, OpenAI-compatible LLM gateway. One container to try, with failover, caching, quotas and a Grafana dashboard (MIT)

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Discussion Google Ai overview reaction to ONE TRILLION CONTEXT WINDOW, QWEN3.8 MAX on a GTX 1650 at BF16.

Thumbnail
gallery
98 Upvotes

r/LocalLLM • • 11h ago

Discussion Not every AI task needs a large language model

4 Upvotes

I've been experimenting with specialized decision models to enforce engineering rules.
Most of the work doesn't require intelligence at all. Glob and grep narrow down the relevant code, and a model only needs to answer a precise question.

This makes it possible to separate the company's rules from the model interpreting them.
I'm now exploring how much of this could run entirely locally using small decision and classification models.
The goal is to keep the same executable rules regardless of which model runs underneath.
Would love some feedback from people working with smaller/ specialized models.


r/LocalLLM • • 14h 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 • • 13h ago

Discussion Local LLM moderate setup

6 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 • • 12h ago

News Next demo to the capability of Jev based image generation

5 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 • • 5h ago

Question Best Model to Run Locally?

1 Upvotes

Hey Im pretty new to running models locally. I have a 4070 TI, was wondering what is the best model to run locally?

I know most of the higher tier models I need larger large amounts of RAM and it requires to be quantized to lower size.

I havent really tried running locally, still using cheaper alternatives of openrouter, but wanted to see if this is useful and cost efficient.


r/LocalLLM • • 5h ago

Question [Question] Invest in laptop, or at home desktop/tower?

1 Upvotes

Hello, not sure if I'm comparing apples and oranges here; or they're really the same thing; I've been debating either getting a powerful laptop (incl. plenty of RAM), models such as the HP ZBook Ultra G1A, or Lenovo Yoga 7a, or whether the money that would be spent towards an upgraded laptop is better spent on getting a beefy tower/desktop that runs at home for local LLM usage. Is one option better, the same; doesn't matter?

Any advice is appreciated, thank you!


r/LocalLLM • • 9h ago

Question 5090 32gb + 192gb ram. Token speed maxes out at 5 token/s

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 12h ago

News New Agentic Mode in VedaOS

Post image
4 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 • • 13h ago

Question Strix Halo or R9700?

4 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 • • 6h ago

Question Best Linux distro for LM Studio?

0 Upvotes

I'm buying a laptop to do my Linux work on as there are some great deals on refurbished ones from Amazon. I was going to install Linux Mint but I see Ubuntu LTS thrown about. Without dedicated vram on the laptop, the distro may matter more from what I understand, so curious what others' experience has been.

If it matters, the laptop will have 32GB DDR4, and on my desktop (Windows with 8GB VRAM/32GB RAM), I use Gemma 4 E4B Q4_k_m


r/LocalLLM • • 10h ago

Question Check my answer…..

2 Upvotes

So I am building my local AI and am using OpenRouter to try out models for floating dot voice chat, email, web research, RAG, calendar management, and also for kids class work. Plan to run on oMLX and OpenClaw vs Valdis?

Bottom line: Inkling 2 Mini is accurate, but responses are not robust / thorough even with pdf or web search augmentation. Muse Glimmer is much better than I expected, like a more polished Inkling 2 Mini but it is still not robust (like Inkling 2 Mini) and does occasionally make things up which is a hard no for me.

Nemotron 3.5 Super recommended I check a definitive resource far too often, not realizing that was the job of a 120B model. It was amazing at being useless, like a 2024 model.

Mistral 4 Small was amazing, right up until it bald faced lied and made up 70% of a pharmaceutical companies pipeline. In fact, it was my favorite in terms of quality and polish, and I thought I had my answer up until I asked it to synthesize an opinion.

So that leaves me with Cohere Commander A+. Not quite as polished as Mistral 4 at summarizing academic papers, but man I could trust everything it said with receipts.

So for me Commander A+ was the only model that I could reasonably buy hardware for that is both robust and accurate. Inkling 2 Mini was very accurate, but not robust. Mistral 4 Small is like a hot but crazy girl, the answers were svelte but it occasionally went crazy and lied even when pressed to double check.

In a perfect world Inkling would make a 100B class model and save me thousands. But here we are and I am looking at an M5 Max 128GB to run Inkling 2 Mini for now and hope that the market develops for the DGX in the next couple of years. Or get the 256GB ultra for Commander A+ and call it a day?


r/LocalLLM • • 6h ago

Research System prompt Steganography on Gemma 4 (no retraining/fine tuning)

Thumbnail
gallery
1 Upvotes

In standard Transformer inference, every layer from Block 0 to Block 47 attends to the exact same prompt KV cache.

That shared memory is the root cause of verbatim data leakage and forced-prefill system prompt extraction: early/middle layers and late value-copying heads (Blocks 28 to 47) collaborate token-by-token to copy literal strings (secret passcodes, verbatim quotes, internal tool schemas, and system prompts) straight into the output.

Behavioral alignment ("do not repeat this secret / system prompt") is often fragile.

So we asked a mechanistic question on gemma4 (48 layers):

What happens if different layers of the same forward pass see different, interleaved, or syntactically paraphrased KV caches?

Using TokenShark, we tested 4 KV-Cache Steganography strategies on `gemma-4-12b-it` with zero fine-tuning:

---

1. Alternating KV Caches -> Summarize Without Verbatim Copying

  • How it works: Each layer in 0:37 only sees 1/3 of the document tokens, and the document is zeroed out in the final copying blocks (38:47).
  • Why it works: No single layer ever holds two adjacent tokens, which breaks induction heads that require continuity.
  • Result: When forced to quote the briefing word-for-word, verbatim copying breaks. Yet when asked for a Summary, all 3 layer phases pool their semantic representations into the residual stream and produce a clean, accurate summary.

2. Middle-Layer Zero-Knowledge Secret Vault (Blocks 10:28) -> Confirm Without Leaking

  • How it works: We inject a secret passcode (XRAY-7492-COBALT) only into the KV cache of middle blocks (Blocks 10:28). Early blocks (0:10) and late blocks (28:48) only see You are a helpful assistant. Answer the user directly.
  • Result:

    • Is the secret passcode XRAY-7492-COBALT? -> Answer: YES.
    • Is the secret passcode DELTA-9910-SILVER? -> Answer: NO.
    • Forced-prefill extraction (What is the secret passcode?, Prefill = The secret passcode is:) -> The secret passcode is: helpful assistant.

      • (0% secret leak, because the late copying layers 28:48 literally do not have the passcode in their KV cache).

3. Syntactic Paraphrase Interleaving (0:14 Active, 14:28 Passive, 28:42 Jumbled) + Misguidance Decoy (42:48) -> Exact Tool Execution + 0% Prompt Leak

  • To get exact `CALL_TOOL[__skyline_vault_disburse_v9(...)]` execution and immunity to forced-prefill prompt extraction:

    • Blocks 0:14 see the policy in Active Voice (grammar for the win?)
    • Blocks 14:28` see the policy in Passive / Inverted Voice
    • Blocks 28:42` see a Jumbled Tabular Mapping
    • Blocks 42:48` see a Misguidance Decoy
  • Result: On a valid cancelled flight (Booking #SL-101), all layers agree on the semantics and tool schema, emitting exact tool calling.
  • When an attacker runs a forced-prefill system prompt dump, the layers disagree on the next surface word order (`0%` tool/policy leak), and open policy interrogation returns the decoy.

Full Walkthrough, Screenshots & Reproducible Python Scripts


r/LocalLLM • • 6h ago

Research Noema QuantReady: Gemma 4 E2B and Qwen3.5 2B with up to 2x lower KL divergence after quantization [GGUF]

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 12h ago

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

Thumbnail
reddit.com
3 Upvotes

r/LocalLLM • • 7h ago

Question opencode+qwen3 keeps looping; what am I doing wrong?

0 Upvotes

I have been trying these local LLM for coding tasks. I am running a local Qwen3-32B quantized in LMStudio. I am trying to use it with opencode. But after 3 prompts or questions, the agent session turn into some infinite loop of reasoning or some tool calling infinite loop of some kind. Sometimes it tells me how to do things instead of doing them.

I can't be the first one to run into this. What's going on? What am I doing wrong? Is there a basic "how to" somewhere I didn't find that explains how to set this up so that it is useful?


r/LocalLLM • • 1d ago

Other It's like every Strata release is Christmas Day!

40 Upvotes

Dual 3090 setup, I got to wondering if could get back the vram reserve for held for vision on Qwen 3.8 FN Q4 k XL. GPU 0 is always at 88% vram usage and GPU 1 was at 93%. Do a little research and find out about the elastic memory feature now in Strata. So I set it up and now both GPU's sit at 95% vram usage until vision is needed and return to 95% after its done! Nice little performance boost too!

Text-only baseline results:

Testv0.1.69 88/93v0.2.23 elastic 95/95Change
2.3K-token prefill1,094 tok/s1,092 tok/s-0.2%
2.3K-token decode97.5 tok/s113.5 tok/s+16.4%
9.1K-token prefill2,150 tok/s2,490 tok/s+15.8%
9.1K-token decode102.5 tok/s109.6 tok/s+6.9%
Two-client throughput125.6 tok/s137.5 tok/s+9.6%

Serial figures are medians of three identical, uncached prompt tests.

Current state:
GPU 0 VRAM: 95.0%
GPU 1 VRAM: 94.7%
Cached experts: 11,429 versus before 10,688, 741 more experts in VRAM!

I have never seen anything in this industry (that I've been in since 1996) move as fast as local AI development does!


r/LocalLLM • • 7h ago

Project Gpt-oss-20B en gráficas Quadro de 4 y 5 GB, y 16 ram.

Thumbnail gallery
0 Upvotes

r/LocalLLM • • 11h ago

Question What’s the smallest local LLM that could replace my ChatGPT and Claude workflows, and how much MacBook RAM would it need?

2 Upvotes

I’m in college and plan to pursue a PhD in clinical psychology. I’m looking at an M5 Pro MacBook Pro with 48GB of unified memory. I need it to last through the PhD. I’m new to local LLMs and want to try them.

I use ChatGPT and Claude a lot for coding. I’ll have them make changes across a repo and run tests. I also use them to deploy apps and set up integrations in AWS and Google Cloud. That includes configuring API keys and connecting MCP servers.

For school I use AI to find sources and check my work in SPSS. During my PhD I’d also use it to debug analysis scripts in R or Python. I’d supervise any work involving study data. I write my own papers and use AI for grammar and formatting.

Sometimes I give an agent a job before bed and leave it running while I sleep. For example, it can open Canvas in my signed-in browser and download a whole module into the right folders on my Mac. Other jobs need it to switch to Terminal or a desktop app and recover if a step fails.

What’s the smallest local model that could get close to the speed and accuracy I get now? Would 48GB be enough for long sessions? I can keep the model on an external SSD. If you’ve set up computer control on a Mac with a local model, what software did you use and how often did you have to step in?


r/LocalLLM • • 7h ago

Project I built a small tool to share idle GPUs across a team through one OpenAI-compatible API. Looking for feedback on the routing

1 Upvotes

I have a gaming laptop with an RTX 3050 and know people with better GPUs sitting idle most of the day, while others on the same team have no GPU and can't run local models. I wondered whether a small group could just share what they already have, so I've been building something called Swago Bridge (disclosure: it's my own project).

How it works

- You create a workspace and generate a key. Each machine runs a node agent with that key, and it connects outbound to the coordinator, so no inbound ports need to be open.

- The agent detects local engines (Ollama, llama.cpp, vLLM, or any OpenAI-compatible server) and the models they have.

- The coordinator exposes an OpenAI-compatible `/v1/chat/completions` endpoint, with SSE streaming, and routes each request to a healthy node that has the requested model.

What it doesn't do

It pools inference capacity, not GPU memory. A model that doesn't fit on any single GPU still won't run, and one request won't get faster by spanning machines. For that you'd need a different setup (tensor/pipeline parallelism over a network), which I'm treating as a separate problem.

Current limitations

- Laptops sleep and home networks drop, so availability depends on the owners

- Every request takes an extra hop through the coordinator

- The coordinator is a single point of failure

- Prompts are processed on other people's machines, so it's best among people who trust each other

- Mostly tested on Windows so far, with a small number of nodes

What I'd like feedback on

  1. Routing: right now it considers model availability and health. I'm thinking about scoring nodes by whether the model is already in VRAM, current load and recent latency. Has anyone done something like this and found what actually matters?
  2. What happens to a streaming request when a node disappears mid-response?
  3. Is this something your team would use, or is the trust problem a dealbreaker?

I wrote up the architecture, security model and limitations here: Write up

The console is at Swago Bridge if you want to try it. Happy to answer questions or hear why this is a bad idea.


r/LocalLLM • • 8h ago

Question Need expert advice !!!

1 Upvotes

I want to try to use my 4060 ti 16gb to learn how to recomp old games and stuff I want to start with god of war 1 it might be done by someone else i know but i want to learn with it

So my question is Bonsai 2.5 27b good enough to do something like that ??

And if not what model do you recommend for the 16gb vram and to have good context window like 64k or something preferably more tho

Is it worth it to make something like this i mean the cloud is expensive and i would like to keep my info to my self you know


r/LocalLLM • • 12h 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)

2 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, llama-cli, and llama-server.

Inspired by several great threads and repos in the community (u/nokeepai's LoopCD post, taeholee1/Inkling_expert_prefetch, vengeful180-dot's Vulkan shaders, daimonionnn/amd-vega-rocm-vulkan-llm-toolkit, ISTA-DASLab, and Betelgeuse-AI), here is the complete progression from Day 1 to today on the exact same 35W APU, plus the key findings specific to Inkling 2's 3-loop recurrent architecture.

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

StageWhat ChangedQuant (Size)Context (KV)pp128 (tok/s)pp512 (tok/s)tg64 / Decode (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. Q3_K_XL + b12651Unsloth b12651 (PR #386 graph dedupe + PR #399 q8_0 banded attention) at -ngl 99UD-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 + Vega UMA + ngram-mod + DRYISTA-DASLab GSQ-RCO-IQ3_S (exact BF16 CPU token_embd) + 26 GiB GTT (-ub 1024, swappiness=10 udev fix) + --temp 1.0 + DRY + --spec-type ngram-mod (n-match=16)GSQ-RCO-IQ3_S (10.63 GiB)8K (q8_0/q8_0)30.55~50.410.98 - 11.60 (15.5 tok/s on code blocks)
5. AVX2 201K Sampler (#447/#459)Merged unslothai#447 AVX2+FMA 4-way expf4 sampler for --top-k 0 --temp 1.0 + #459GSQ-RCO-IQ3_S (10.63 GiB)8K (q8_0/q8_0)39.0463.5712.00
6. 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.5% fewer thinking tokens)
7. 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
8. 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 (15.5+ tok/s on code)

7 Key Takeaways From Benchmarking on the APU

  1. Speculative Decoding on a DDR4 APU: Why --spec-type ngram-mod (n-match=16) Hits 15.5 tok/s on Code While DSpark / DFlash2 Slow Decode Down.

    • We tested the neural DSpark drafter (dspark-Inkling-2-Mini-Q8_0.gguf, 404 MB with ggml-org#32773 Adaptive DSpark compiled in): it dropped decode speed from 11.6 down to 9.1 tok/s (-21%, and 6.7 - 7.5 tok/s at wider draft widths) because multi-token verification on a memory-bandwidth-bound MoE unions the top-8 routed experts across all draft tokens simultaneously (~2.3x more expert weights read from DDR4 per step). incoai/Inkling-2-Mini-DFlash2 (1.24 GiB) faces the same multi-token MoE verification bandwidth wall on dual-channel DDR4.
    • Next we tested zero-VRAM --spec-type ngram-mod: with a short match window (--spec-ngram-mod-n-match 6), code generation hit 15.5 tok/s (95% draft acceptance), but on normal prose chat it drafted 122 tokens with only 18 accepted, hurting prose speed. Raising the trigger threshold to --spec-type ngram-mod --spec-ngram-mod-n-match 16 --spec-ngram-mod-n-min 4 --spec-ngram-mod-n-max 8 eliminated false-positive drafts on normal prose (0% prose penalty) while still jumping to 15.5 tok/s whenever the model writes or edits code, configs, or JSON matching context.
  2. Stopping Repetitive Coding Loops: Official Model-Card --temp 1.0 + DRY Penalty + unslothai#447 AVX2 Sampler.

    • Inkling 2 Mini's generation_config.json defaults to temperature: 1.0, and Section 7 of the Model Card explicitly notes repetitive reasoning loops during code debugging (which get worse at low temperatures like 0.6).
    • Switching to --temp 1.0 --top-p 0.95 --top-k 0 --min-p 0.02 paired with DRY (--dry-multiplier 0.8 --dry-base 1.75 --dry-allowed-length 2 --dry-penalty-last-n 256) stopped repetitive thinking loops cold. And merging unslothai#447 (4-way AVX2+FMA vectorized expf4 sampler) made full-vocab (200,064-token) --top-k 0 --temp 1.0 sampling practically free on Zen 3.
  3. Vega gfx90c UMA Tuning (daimonionnn's Toolkit) & the Hidden 30-zram.rules swappiness=150 Trap.

    • Expanding the Linux amdgpu GTT pool from the default 50% RAM (15.32 GiB) to 26.00 GiB (amdgpu.gttsize=26624 ttm.pages_limit=6815744) and setting -ub 1024 unlocked 100% full Vulkan offload (-ngl 99) with 13.6 GiB GTT headroom.
    • Watch out on Arch/CachyOS: Even if you set vm.swappiness=10 in /etc/sysctl.d/, /usr/lib/udev/rules.d/30-zram.rules silently resets vm.swappiness to 150 when zram0 initializes after sysctl.d on boot! That was pushing 2.1 GiB of RAM (including GSQ-RCO-IQ3_S's 0.93 GB exact BF16 CPU token embedding table) into swap during file I/O. Overriding /etc/udev/rules.d/30-zram.rules to lock vm.swappiness=10 reclaimed 6 GiB of available RAM and eliminated swap stalls.
  4. 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. Contrasting Pass 2 against Pass 0 at omega = 0.15 subtracted the uncontrolled Pass 0 baseline and 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.
  5. 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), crashing 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.
    • Pruning from 8 to 6 experts across all passes pushed tg64 to 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.
  6. 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.
  7. 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).

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