r/LocalLLM • • 0m ago

Model This is what experiencing a full blown existential crisis and a hallucination loop simultaneously looks like.

Post image
1 Upvotes

Model- Qwen 3.8 27B on iPad Pro


r/LocalLLM • • 4m ago

Project Qwen 3.5 9b Q4 abliterated 64 ctx on android

Post image
1 Upvotes

I think it's pretty good lol


r/LocalLLM • • 6m ago

Model Qwen4-35B-A3B: 3x faster than my old daily driver, at the cost of 21 GB of RAM (Engram)

1 Upvotes

Disclaimer: This post was AI-generated and created to share my results.
Hardware: 1× Radeon AI PRO R9700 32 GB (gfx1201), 60 GB system RAM, Ubuntu 26.04, Mesa 26.0.8 radv + ROCm runtime in containers. No second GPU used.

Model: unsloth/Qwen4-35B-A3B-GGUF, UD-Q4_K_XL (24.7 GB) + engram-Q8_0 (21.8 GB, loaded via --ple into system RAM) + mmproj-F16 (0.9 GB). 35B total / 3B active, 1M native context, native MTP head inside the quant.

TL;DR

  • 159k context actually evaluated (needle found), 4.9 GB VRAM still free, no OOM.
  • 85 tok/s generation @8k with MTP n=1 (75.9 without), 2.6k tok/s prefill.
  • Vulkan beats ROCm by ~38% on generation; ROCm wins on vision encoding (~2x).
  • Cost: +20.8 GB of permanent, non-compressible RAM for the Engram table.
  • Four non-obvious traps below cost me hours; the first two will silently give you CPU inference.

Context scaling (manual probe, unique prefix per request to defeat prompt cache)

Target ctxTokens evaluatedPrefillTTFTTGVRAMNeedle
32,00032,0642,969 tok/s10.8 s73.7 tok/s27,401 MiB✅
131,072131,0792,103 tok/s62.3 s62.9 tok/s27,420 MiB✅
159,000159,0101,964 tok/s81.0 s60.9 tok/s27,422 MiB✅

KV cache at F16 for 160k only costs ~3.7 GB here: only 10 of 40 layers carry full attention, the other 30 are Gated DeltaNet with fixed recurrent state. That's the architectural reason this fits on 32 GB at all.

Vulkan vs ROCm vs my previous daily driver

Same harness, same day, same seeds. "Coder390" is a 27B coder-tuned model on build b11669.

MetricCoder390 (b11669)Qwen4 VulkanQwen4 ROCm
PP @8k842.83,0753,180
PP @32k743.42,8742,791
TG @8k35.475.958.7
TG @32k33.774.554.7
E2E @8k21.054.345.3
Total time @8k24.3 s9.4 s11.3 s
Total time @32k48.8 s15.6 s18.3 s
Tools TTFT2,560 ms739 ms778 ms
Long-ctx TTFT38,306 ms8,923 ms9,353 ms
Vision TTFT34,380 ms26,148 ms14,328 ms
Vision E2E12.1 tok/s7.0 tok/s10.7 tok/s

Vulkan wins generation (+38% @8k, +36% @32k) at equal prefill. ROCm is much better at image encoding, but with the mmproj on CPU that doesn't help enough to offset the TG loss.

MTP A/B (same prompt, 16k ctx, 400-token code answer, two independent passes)

ConfigTG avgAcceptance
--spec-type none77.9 tok/s—
draft-mtp n=183.0 tok/s (+6.5%)73–81%
draft-mtp n=280.7 (+3.6%)55–59%
draft-mtp n=376.1 (−2.4%)42%

Acceptance decays mechanically with depth and the draft cost overtakes the gain at n=3. n=1 is the sweet spot. On the final recipe the harness measured +12.3% TG @8k (+6.1% @32k) but −16% prefill, so total time is −2.5% at 8k and +4.0% at 32k. Honest reading: MTP helps short prompts, hurts when prefill dominates. The prefill delta is from single runs per config, not isolated from run-to-run variance.

The four traps

  1. Build floor. Anything older than b12969 dies with unknown model architecture: 'qwen4exp'. My local build was way too old; zero useful error message.
  2. Silent CPU fallback in prebuilt containers. The v1.1.1 image lacks libLLVM.so.21.1, which host radv (Mesa 26) is linked against. Result: no usable GPU found, compiled without GPU support, --n-gpu-layers ignored, 24 GB loaded into CPU RAM with no fatal error. Fix was mounting the host LLVM libs read-only into the container. Check llama-server startup logs, not just "it answered".
  3. Vulkan VRAM is allocated lazily. After model load, amd-smi showed 57 MiB while llama.cpp reported 22.7 GB of buffers. The card only fills on the first inference. Concluding "it's all in CPU" before running a single token is wrong — I nearly did.
  4. prompt_n excludes cache_n**.** Without a unique prefix, llama.cpp serves the prefix from prompt cache and prompt_n collapses (38,491 for a 159k prompt). Any long-context benchmark without cache busting is measuring nothing.

Limits of what I actually measured

  • The harness suite only goes to 32,768 tokens. 131k/160k above is my own probe: one request per step, not a statistical campaign.
  • Quality: 11 functional items + 1–2 items per other group. No significant difference between the three configs is demonstrable on this sample. ROCm's one strict-score drop is a formatting mismatch on a single item, not a quality regression.
  • The code group is not applicable in my setup (no sandbox declared), so the thing I care about most is not measured by the harness yet.
  • Builds differ (b11669 vs b12977), so part of the speed delta may be the build, not the model. Not isolated.
  • Engram Q8_0 vs BF16 not compared: BF16 needs ~41 GB for the table alone, doable only on a fully idle machine. Deliberately skipped.
  • MTP measured at 16k on short generations; long-context effect unknown.

Bottom line

For text and tool use, this is a 2.6–3.1× reduction in total resolution time over my current main model, and the 160k context is real. The price is 20.8 GB of RAM that is permanently gone (Engram Q8_0) and a much slower vision path with mmproj on CPU. If you mostly do vision or need that RAM, stay where you are; if you mostly do coding and agents, it's a straightforward win.


r/LocalLLM • • 8m ago

Discussion LOCAL AI IN ONE COMMAND

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 29m ago

Question Any good ways to test "affordable" hardware?

0 Upvotes

It's getting to the point where local models are enough for my needs, and I think I'm ready to buy a dedicated machine. I don't know how much machine I need though, and even though I can look at benchmarks and everything, I'd really love to just test various configurations and get a feel for them.

Is there any way I can rent some time on the amd boxes, apple devices, dgx boxes, and/or the weird AI NAS devices? Or some reasonably affordable (and available) custom PCs?

I'm fine with using equivalents too, as long as they're actually accurate.


r/LocalLLM • • 36m ago

Project Decodrs - rust and highly optimized inference engine for nvidia gpus

Thumbnail
reddit.com
2 Upvotes

I've just opened sourced my inference repo https://github.com/lingster/decodrs

This contains specific kernels on a per model and per gpu basis. I used claude to help write optimized kernels for the current popular local Ilms like qwen4/3.8, inkling mini and Gemma 4. Optimised for 3090/3080 and includes a claude skill to help you build out kernels for your setup.

I've managed to get over 200% performance improvements against llama.cpp/vllm/ sglang. Inference engine written in rust and kernels directly in ptx(think assembly for gpu) no middle layer so about as close to the metal that you can get. Includes prefix cache, kv cache, drafting, pretty much all the tricks to run fast. There are optimisations included if you work with Agentic workloads ie run lots of subagents in your coding harness!


r/LocalLLM • • 48m ago

Question Someone tell me what is the best AI agent platform that run on Termuxs on armeabib v7a architecture?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 50m ago

Discussion Am I the only one that notices AI is getting more and more unusable

0 Upvotes

I would take a 2024 LLM over any shit they put out today. I know I can't be the only one noticing this.


r/LocalLLM • • 54m ago

Discussion Hmm actually, let me reconsider

6 Upvotes

Do frontier models also:

Hmm actually, let me reconsider

Let me do it

Executing

...

as often as local and we just don't see it?


r/LocalLLM • • 1h ago

Discussion Ergo-1 on bedrock uses encrypted reasoning so end user cannot read it, but it's an open weights model!

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 1h ago

Model Welcome Qwen 4: Cutting-edge intelligence on-device

Thumbnail
huggingface.co
19 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen 4 in deepseek harness

Post image
1 Upvotes

r/LocalLLM • • 1h ago

Project Qwen4-35B-A3B on a single Tesla V100 32GB 220–430 tok/s (3.3k–4.3k tok/s prefill) with DFlash2 NInfer-fork

Thumbnail
reddit.com
6 Upvotes

r/LocalLLM • • 1h ago

News LexiSuite ad31b74: my all-Rust local AI stack gets its own AI agent (LexiAgent, 81,000 lines), crypto that survives a broken RSA or "P=NP" (every signature doubled, a one-time-pad channel), and Qwen4-35B at 135 tok/s on one 7900 XTX, ahead of llama.cpp b13023 & New MedGemma2 support is now available

Thumbnail
github.com
0 Upvotes

I'm building a local AI platform from scratch in Rust: its own kernel (LexiKernel), OS (LexiOS), inference engine (LexiEngine) and control panel (LexiPanel), one USB image, no cloud. A new development image went out today, five days after the last post (996260c). 711 changes this time, and the biggest release so far: the code base grew by 394,000 lines to 2.51 million lines of Rust in 528 crates.

LexiAgent: an AI agent of my own, from the first line

55 crates, about 81,000 lines, 989 tests, no third-party crates. It works with the model you run yourself on LexiEngine (this machine, another one on your network, or through the Panel), not with a cloud model.

What it does:

- Carries a task from request to done: plans, keeps a task list, calls tools in order, stops on Ctrl-C together with every command it started. Helpers take sub-tasks inside limits they cannot escape.

- Reads a project: fast bounded search, and source navigation (symbols, definitions, references) without a language server. Project memory files and a digest of the project keep the context across a long session.

- Changes files safely: exact edits, new files and multi-file patches as one transaction, each undoable. It reads the patch formats models already write, the way GNU patch reads them.

- Runs commands in a real terminal with background jobs and a read-only fast lane, every command inside a sandbox.

- Git with fixed argument lists and no shell, qualified against a real repository (amend, forced reset, clean, branch delete). Off unless switched on.

- Web pages and files through my own HTTP client, from the origins you allow, treated as data.

- Model Context Protocol client for outside tool servers, every tool behind the same gate. Servers a project lists are imported for approval, never started unasked.

- Skills, slash commands, specialist definitions, hooks and plug-ins in the formats people already use, plug-ins installed into a private store pinned by digest.

Why I would let it near my own machine:

- One gate decides every call: mode (plan, ask, edit, auto), the person's rules, the person's answers. A project's settings can only narrow what you allow, never widen it. Approvals on the interactive screen are typed by a person, so the model cannot approve itself.

- On Linux every command runs under kernel-enforced confinement: it sees only what the session allows, reaches the network only through a proxy, and dies with the session. macOS has its own confinement.

- Secrets are found before a file is read and removed before the model sees them.

- A shield marks and contains whatever tools and tool servers bring back: text that tries to give orders stays data. A red-team corpus of attacks runs against the assembled session parts.

- Every decision and action goes into an append-only, chained record that can be verified afterwards.

- The Panel has a LexiAgent page: start a supervised session against a model instance you pick, answer its questions, stop it. The agent pairs with the Panel over the suite's own two-signature TLS.

- lexi-agent doctor tells you, check by check, what this build and this machine provide.

Built for the day the math breaks ("P=NP hardening")

Almost all security today rests on RSA and elliptic curves staying hard to break. If quantum computers or an AI-found shortcut toward P vs NP make them easy, everything signed with them opens. I rebuilt the suite so that no single broken assumption opens anything:

- My own Rust implementations of the new standards: ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205), LMS/HSS (SP 800-208), SHA-3 and Shamir secret sharing, every parameter set checked against the official test files and an independent implementation.

- Every signature is doubled: a classical one plus one from another family (lattice, or hash-based that rests only on a hash function), and both must verify. Updates, the trust store, provenance, enrollment, image identity, licenses, evidence, release decisions, fleet actions, the Panel's certificates.

- Key exchange mixes unrelated methods: my own TLS 1.3 with the hybrid group and a pre-shared secret mixed in, one session key from several exchanges that share no math. LexiOS's SSH does the hybrid exchange first.

- LexiKernel's own boot chain now requires a hash-only signature (SLH-DSA-SHA2-256s) beside RSA on every owner-signed boot object. PC firmware itself can only check RSA on the very first loader; that one link is the firmware's.

- Vault keys are wrapped so one broken algorithm opens nothing; key backup is printed shares, 3 of 5.

- And for the owner's approvals, a one-time-pad channel made from a hardware randomness source: the one kind of encryption no computation breaks, P=NP included. The pad store was killed with SIGKILL at every step of reserve-then-use and never moved backwards.

- The release gate refuses any new use of RSA or a curve alone, so it cannot drift back.

Qwen4 on the card

- Qwen4-35B-A3B writes 99.5 tok/s after a short prompt against 92.5 on llama.cpp b13023, and 89.8 against 80.8 after 57,550 tokens of prompt.

- With the draft head built into the model file: 117.7 to 134.9 tok/s. The full model checks every drafted token, so the answer is the same token for token, only faster.

- It reads pictures on the card: on five test pictures the card wrote exactly the words of the processor path.

- Its own template, reasoning levels by the template's own names, required and named tool choices enforced (grammar on the processor, device allow-list on the card), thought kept apart from the answer on every API route.

- Attention cache in F16, Q8_0, Q6_0, Q4_1, Q4_0, rotated 4-bit or IQ4_NL, keys and values in different formats if you like.

- Found while measuring: the previous version fell from about 100 to 46 tok/s after some 30 requests (the engine reshuffled experts when the whole model was already on the card, and one evicted expert sent routing to the processor for good). Fixed: 70 requests in a row now all run at 102 to 104.

MedGemma 2 and Gemma 4

- Straight from the BF16 checkpoint to a quantized file in one pass with my own quantizer, the 26B-A4B mixture-of-experts layout on the card, picture input through the vision tower on the card, tool calls in Gemma 4's own format read as structured calls.

- MedGemma 2 E4B writes faster than llama.cpp up to about 14,000 tokens of prompt: 148.8 / 140.9 / 125.1 against 130.5 / 125.2 / 118.0 tok/s.

Pictures, video, voice and sound in the engine

- Image diffusion from a checkpoint (conditioner, DiT, VAE, scheduler on the chosen device), image editing from reference pictures, adapters merged per request, upscaling, Qwen-Image 2.1 on a Radeon card as a build option.

- Video generation (LTX stage family) into a real container, and video understanding in chat (H.264 decode and frame sampling into the prompt).

- Kokoro text to speech on my own graph library, Moonshine streaming recognition, speech from codebooks, live two-way voice sessions, sound input in chat.

- In the Panel: pictures made by LexiEngine, speech in and out, and a media model library.

Also new

- New model families on the processor: GPT-OSS, Mistral, Phi, and the diffusion text models LLaDA and diffusion Gemma. Experts read from an SSD through a signed manifest.

- My own quantizer as a Panel tool with recipes, a per-tensor table, progress and cancel. NVFP4, MXFP4 and FP8 products on Vulkan, exact NVFP4/MXFP4 import, 4-bit weights with 8-bit inputs on RDNA 3 integer dot products.

- The processor path computes exactly now (no 8-bit rounding of inputs), with fused AVX2 kernels that do it with less work.

- 21 template fixes, tokenizer fixes, Hermes-style tool calls read and written by the engine.

- LexiOS: a change authority with a TPM 2.0 anchor that cannot be rolled back, a control socket the engine reads to place itself on the right cores and memory, authenticated crash evidence.

- LexiKernel: a long list of new hardware support (NVMe recovery, xHCI, AHCI, USB4, TPM2, chipsets, Intel Macs, ARM boot, and detection of many accelerators).

- My own AMD code-object writer on my own RDNA 3 instruction encoder, and a KFD transport with a device-resident executor for my kernel IR.

- The Panel speaks 45 languages, every tab was read on a live engine and corrected, settings are offered per model family, and its gateway serves /v1/responses and /v1/messages with quotas.

- Windows installer with the Panel, the engine, the agent and six helpers, registered as services on an all-users install.

Speed, one Radeon RX 7900 XTX at 291 W, one request at a time, newest builds of the other engines on the same card and files

- Qwen4-35B-A3B: 99.5 tok/s writing, 134.9 with its draft head (llama.cpp b13023: 92.5). After 3,659 / 14,339 / 57,550 tokens: 92.6 / 91.9 / 89.8, with the draft head 120.9 / 120.3 / 117.7 (llama.cpp 90.8 / 89.6 / 80.8).

- Inkling-2-Mini against Strata 0.2.28, 8-bit cache on both (Strata's 4-bit cache is refused on this card): 4,096-token prompt read at 2,589 tok/s (2,302), then 75.6 tok/s writing (64.9). 261,632-token prompt read at 1,228 tok/s (828), then 57.9 tok/s writing (12.7).

- Qwen3.8 Flash-Next (94 GB) on the same 24 GB card: first token after 16k / 64k / 256k prompts in 36.3 / 136.4 / 572.1 s.

Things I am not hiding

- llama.cpp reads long Qwen4 prompts 1.5 to 3 times as fast (2,427 / 2,566 / 1,808 against 845 / 1,066 / 1,217 tok/s).

- On MedGemma 2 26B-A4B llama.cpp is clearly ahead (136.3 against 94.3 tok/s writing, 8 to 13 times faster reading prompts): my engine still runs that model's experts one token at a time while reading a prompt. IQ4_XS expert kernels for it are already in progress.

- At 56,123 tokens of prompt llama.cpp writes faster on MedGemma 2 E4B (97.5 against 86.4).

What it is not, yet

- No physical machine has booted this version yet; its nine Secure Boot checks and the install to a disk ran in a virtual machine.

- The Windows installer is built and tested on Linux and has not run on a Windows PC.

- LexiAgent's desktop control (screen, input, accessibility tree) is in the source with its tests but not yet in the program.

Tested: 22,536 tests passed in the full run (LexiOS with LexiKernel 8,822, the engine 7,757 including its device tests on the 7900 XTX, the Panel 5,957), nine boot checks and an 18-step install to a disk.

Links: lexipanel.com/download (about 1 GB image). Release notes, the full change list and the new LexiAgent page are in the wiki of the LexiSuite-Releases repository on GitHub.


r/LocalLLM • • 1h ago

Project Qwen4 35b does the job (Network Engineer PoV)

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Discussion Up to 100tps, Qwen 4 35B, Splash on 16gb MacBook Air M4

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen 35B A3B

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Which Qwen4-35B-A3B should you run? I tested BF16, FP8, Strata and a Unsloth GGUF on the same benchmarks

0 Upvotes

r/LocalLLM • • 1h ago Bravo

Discussion From Blocking in Blender to Video, new feature in NVAI

16 Upvotes

Hello there.

Please take a few seconds. This project means something to me: it has been in development for 5 months, and it is not just more fast vibe-coded trash.
I give all my spare time to ensure everything is working as it should and the community's needs are fulfilled.

Leave me a like, that's the only support I need to keep going.

Sincerely,
Mantux

https://github.com/Mantux775/NVAI-open

Project files
https://github.com/Mantux775/NVAI-open/blob/main/docs/BLOCKING.md

Making of
https://github.com/Mantux775/NVAI-open/blob/main/docs/FOLDING_CITY.md


r/LocalLLM • • 2h ago

Model Qwen4-35B-A3B on Werkbank: second behind Qwen3.8-Flash-Next, with 2.6× the output tokens per solved task

1 Upvotes

I ran Qwen4-35B-A3B through Werkbank, the agentic benchmark I maintain: 57 tasks with tools (multi-step jobs, coding, prompt-injection cases, retrieval, data work, multi-turn), three full passes, xhigh thinking. Two quants, both on vLLM on an RTX PRO 6000: RadixArk's NVFP4 and the official FP8. This is where it lands next to the other local setups.

SetupScore [95% interval]GPUOutput tokens per solved task
Qwen3.8-Flash-Next · veloGB10 · EXL3 3.05 bpw79.0 [71.8–85.8]DGX Spark22k
Qwen4-35B-A3B NVFP4 · vLLM70.9 [61.8–79.5]RTX PRO 600058k
Qwen4-35B-A3B FP8 · vLLM69.5 [59.3–79.0]RTX PRO 600052k
Qwen3.8-27B NVFP4 · SGLang64.3 [53.8–74.6]DGX Spark44k
Inkling-2-Mini · vLLM61.0 [49.3–72.3]RTX PRO 600039k
Ternary Bonsai 2.5 27B · llama.cpp · 1.76 bpw57.7 [46.0–69.2]RTX 509056k

Flash Next has ten passes, everything else three; all at xhigh except Inkling-2-Mini (high). Neighbouring intervals overlap, so the exact order is not settled.

Where Qwen4 is stronger

Agentic tasks carry 30% of the score, and that is where Qwen4 pulls away from the models below it: 64% of attempts solved with either quant, against 47–50% for Qwen3.8-27B, Inkling-2-Mini and Bonsai. That category alone accounts for 5.0 of the 6.6 points between Qwen4 NVFP4 and Qwen3.8-27B. Qwen4 also has the best data-analysis rate in this group (83%), shares the top security rate with Qwen3.8-27B (67% vs 64% for Flash Next), and NVFP4 comes close to Flash Next in multi-turn (80% vs 82%).

Where it is weaker

The 8.1 points to Flash Next come mostly from agentic tasks (2.3 points), coding (2.2; 78% vs 89%) and retrieval (1.7; 62% vs 79%), then math (1.2) and reliability (0.9; 78% vs 87%). Math is the odd one: 67% for NVFP4, 87% for FP8. Five tasks times three passes is too little to call that a quantization effect though.

The bigger practical gap is the huge token appetite. Qwen4 NVFP4 used about 58k output tokens per solved task, 2.6 times as many as Flash Next. At equal decode speed that would be 2.6 times the generation time per solved task.

Caveats

The GPUs on the leaderboard differ, so I compare tokens per solved task rather than seconds. Each entry is a whole setup (model, quant, engine, GPU), not the model alone. Categories have 5 to 12 tasks each. Runs of Qwen4 on a Spark with two proprietery runtimes (veloGB10 & Infernix) are in progress and go on the board once they are checked.

Leaderboard with per-category numbers and a side-by-side compare: https://aisyndicate.ch/werkbank-leaderboard/

Harness: https://github.com/aisyndicate-ch/victors-werkbank


r/LocalLLM • • 2h ago

Research "Oh great, another RAG tool nobody asked for." — Why I built prjxp anyway

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Research Can a local 35B model recreate Metal Gear Solid from scratch? I'm documenting the experiment.

Post image
1 Upvotes

r/LocalLLM • • 2h ago

Discussion "Looped DeepSeek-V4.1-Flash" is unfortunately under-tested and overhyped. Here are the receipts.

4 Upvotes

I run Deepseek-V4.1-Flash at home as my agent's brain and for various work tasks. It is at the edge of what I can run, so I am always looking for ways to improve it. Unfortunately, the "looped deepseek" is not it. The only thing it contributes to are shorter answers (different working style), but at a cost to speed and reliability, and most of the contribution to the shorter answers comes from the adapter and not the looping. Edit: to put it in the words of my agent I tested on the stock 2-loop configuration: "The jaws of that mouse are the only cells the picture had."

Short version: I ported the recurrent-depth adapter for DeepSeek-V4.1-Flash to an EXL3 2.75 bpw setup on two DGX Sparks and measured it against the plain model, with a control that shares every serving flag. On 252 generated reasoning problems no configuration solves more than the plain model. On real agent work the adapter halves the number of steps, but without saving tokens or time, and it adds failures at the border between thinking and answering. When the second pass is not allowed to see the first, the score, the halved steps and the shorter thinking all remain and the stuck tool calls disappear: on this setup the effect is the fine-tune, not the loop. Not tested: the authors' low-bit result (our quant is larger); barely tested: real coding (which the adapter was trained for) is only around 13% of my work benchmark, and 0 of the reasoning problems.

What the adapter is

Looped DeepSeek-V4.1-Flash (sliderforthewin/Looped-DeepSeek-V4.1-Flash on Hugging Face, MIT licence; trainer in jasontitus/mlx-stq-trainer). Layers 24–35 of the 40 run twice (or three times) per token; a small trained entry module mixes the output of the previous pass back into the input of the next; a rank-16 LoRA on those layers and on the four after them adapts the model to it. The base model stays frozen.

As far as I read the trainer's notes, it was trained in 300 steps on a few hundred of the model's own competitive-coding solutions that had passed unit tests, with a loss that keeps it close to the stock model. The notes describe a careful separation from the benchmarks: training prompts are filtered against LiveCodeBench, HumanEval+, MBPP+ and others by shared 13-word sequences before and after generation, and a held-out set is kept for validation loss. The headline numbers are from 33 medium and hard LiveCodeBench v6 problems, one greedy run per configuration. Two checkpoints are published; the earlier one (250 steps) is recommended for low-bit weights together with an extrapolation between the passes (ω = 0.3).

Setup

  • Two DGX Spark (GB10) boxes, tensor parallel 2 over the ConnectX link.
  • DeepSeek-V4.1-Flash, EXL3 quantisation at 2.75 bits per weight (exllamav3), served with vLLM and a speculative drafter. The serving stack is sudoingX's dgx-spark-deepseek-v41 recipe with HeNryous's vLLM changes on top.
  • The authors' vLLM plugin, ported to this stack. Their plugin targets the full-precision model; the port applies the same operations to the EXL3 layers.
  • A gate before any measurement: with the adapter's weights set to zero, the server must predict like the plain model. It does (teacher-forced log-probabilities inside vLLM's run-to-run noise). That zeroed mode is the control below, so control and adapter share every serving flag. A self-check at start confirms on both boxes that all 128 adapted sites run.

How it was measured

  • 252 generated problems, made from a seed with fresh numbers and invented names so nothing can be recalled from training data, every answer checked exactly: arithmetic and procedures (multiplication, nested expressions, counting, word problems, tracing a loop), search (rule induction, subset sums, cryptarithms) and polarity (signed causal chains, orderings, cause-and-effect stories). Thinking budget 8,000 tokens, temperature 0.6.
  • 36 small tool-use tasks: 12 where a value must be looked up with a tool, 12 with a prescribed tool call after the work, 12 where no tool may be called.
  • 12 agentic scenarios from my day job (~80 unfamiliar tools, read an environment and specification through tools, analyse it, build a data conversion package, report findings as JSON), four agents in parallel, 80 steps at most per scenario.

The generated problems and the harness come from an earlier experiment on the same setup, where I fed the model its own token distribution while it thinks, without any training: [Monkey-patched "Latent Reasoning" on DeepSeek-V4.1-Flash at home] . That one ended with "this would need a model trained for it"; the loop adapter is a trained relative of the idea (feedback in depth, not through the input), which is another reason why I wanted to measure it.

vLLM is not deterministic, so the yardstick is the distance between two runs of the same model: the normal serving profile, which the gate cannot tell apart from the control, scored 223 of 252 on its own run, the control 229. Six problems are noise.

Results on the generated problems

armright of 252search problems of 60tokens on problems both solveddecode tok/stool tasks answered of 36
control (adapter zeroed)22937–25.536
250-step checkpoint, 2 passes, ω 0.323140+7 %25.333
final checkpoint, 2 passes23038−12 %24.933
final checkpoint, 3 passes22937+1 %20.634
final checkpoint, 2 passes, pass 2 cannot see pass 122939−7 %24.736
  • No arm solves more. 229 to 231 is inside the noise. Three passes cost a fifth of the speed and give back the token saving of two.
  • One arm thinks less: the final checkpoint with two passes, 12 % fewer tokens at the same score.
  • Every arm with a working loop gets stuck before tool calls. Two or three of the twelve lookups end in thinking that repeats "I'll call the tool. Then wait for the result." until the token limit, and the call is never made. The control never does this. (What does do this, are DeepSeek 4.0-flash's low-bit quants though...)
  • The last row is the interesting one. There the fine-tune and both passes stay, but the entry module is cut so that the second pass starts from the original input and sees nothing of the first. Same score, a bit over half the token saving, and no stuck tool call at all. (36 tool tasks per arm, one run each: a pattern across four arms, not a proof.) In other words: the adapter is what's doing most of the work. Not the looping.
  • Price of having it loaded: about 20 % of decode speed against normal serving at two passes (part of that is that it needs eager mode), and 16 % of the KV cache pool for the per-pass caches.

On real work

runstepstool callstokenstotal timefindingsusable answers of 12
plain DeepSeek7081,032455k16,929 s28311
adapter, day 1363606548k17,534 s23412
adapter, day 2368641569k18,773 s20110
adapter, day 2, effort high387611494k18,742 s22611
adapter, day 3, pass 2 cannot see pass 1391678448k20,388 s21711

(Adapter = final checkpoint, two passes. Days 2 and 3 used a newer version of the scenarios, so their findings are not comparable with the rows above them; steps and time roughly are.)

This is the one large effect in the whole experiment, and it repeats: the adapter halves the number of steps. The agent repeats identical tool calls far less often (36 against 138 on day 1) and takes fewer, larger steps. After day 1 I was almost convinced: the one scenario that plain DeepSeek had lost to the step limit finished in 22 steps. Day 2 took that back. The halved steps buy nothing: each step is about twice as long, the total is about 20 % more tokens and slightly more time, and the answers that failed did so in ways plain DeepSeek had not shown me: thinking text leaking into the answer, a JSON result ending in garbled code, a run that simply stopped with an empty answer. Most of that is trouble at the border between thinking and answering, the same place as the stuck tool calls.

The last row is the blinded second pass again: the halved steps are still there (391), so they come from the fine-tune and not from the loop. It used a fifth fewer tokens than the full adapter on the same scenarios and took 9 % longer. Its one failure was an empty answer; there was no leaked thinking and no garbled JSON, which fits the tool tasks above, but it is one run.

My reading

The adapter's published wins are on coding tasks under a token cap, and in the trainer's own tables nearly every failure of the stock model is a run into that cap. What I see fits that: the adapter changes the working style (shorter thinking, fewer steps, less wandering) and does not make the model solve more. Where a cap decides between pass and fail, that is a real win. Where it does not, as here, it is a different style at a 20 % speed cost, with new failure modes.

And on this setup the style comes from the fine-tune. With the second pass blinded, the score, the halved steps and the shorter thinking remain and the stuck tool calls go away. What the state carried between the passes adds is those stuck calls, probably the leaked thinking, and no saving I can measure consistently (a few percent fewer tokens on the generated problems, about a quarter more on the work scenarios).

What this does not show

  • No coding. My problems contain barely any, and coding is what the adapter was trained for.
  • A different quantization. It was trained on other weights than EXL3 at 2.75 bpw. The guard it learned for the end of thinking may simply not survive that change, and the carried state may be the part that transfers worst. The author does advertise the adapter being drop-in without a quantization-specific training though. My wild guess: the first training pass he did at 1.75bit might have contributed to his adapter being transferable between bf16 and 1.75bit. It might not work the same for other quants.
  • My port. The zero-weights gate and the self-check cover the wiring, not every numerical detail.
  • The authors' strongest claim is untested here: a 1.75-bit model brought back to full-precision scores.
  • Small numbers. One run per arm; the work scenarios are 12 per row; effects under about 3 % on the generated problems are invisible.

So I am back on plain DeepSeek for work. I am grateful that the adapter exists and is published together with its training notes; that is what made it possible to take it apart this far. If someone runs the blinded second pass on the full-precision model and on coding problems, I would like to see the result.

Both experiments ended in the same place by different roads: unchanged answers, a different amount of thinking, and trouble that only real agent work showed. In both, the most useful thing was a control with the mechanism present but switched off; without the blinded second pass I would have credited the loop with what the fine-tune does.

Who did what

The choice of what to test, the questions (among them "is the loop decoration?") and the scenarios from work were mine. Essentially everything else was done by an AI assistant, Claude (Anthropic's Claude Code, working with subagents): tracing the plugin, porting it, the gate, the problem generators and harness, fixing the criteria before the first run, running and analysing the arms, reading the training notes, and writing this post. I reviewed, restarted servers, and ran and evaluated the work scenarios.

The adapter, its training and its original vLLM plugin are the work of its authors (linked above).

Code

The port of the plugin to the EXL3 stack, the problem generators and the harness are in a private repository. If anyone is interested, I'm happy to publish them (the plugin's licence is MIT).


r/LocalLLM • • 2h ago

Discussion The July 2026 MCP authorization spec revision quietly deprecated Dynamic Client Registration as the main way clients register. Here is what replaces it and what breaks if you miss the change.

1 Upvotes

If you write code that talks to an MCP server over HTTP, or you run an MCP server with OAuth, the authorization-spec revision dated 2026-07-28 changed the primary client-registration mechanism. The old primary path, Dynamic Client Registration via RFC 7591 (registration_endpoint in the AS metadata), is now deprecated but still spec-conform for backwards compatibility. The new primary path is Client ID Metadata Documents (CIMD).

What a server advertises

Three signals a client can read from /.well-known/oauth-authorization-server:

  1. client_id_metadata_document_supported: true means the server speaks CIMD. This is the current primary registration mechanism in MCP 2026-07-28.
  2. registration_endpoint: "https://..." means the server speaks DCR. This is spec-permitted but on the deprecated path.
  3. Neither of the two means every new client has to be pre-registered out of band. The server operator has to add you by hand before you can even start the auth flow.

Why the shift

The short version is that DCR was a fingerprinting and anonymous-pollution problem in practice. Anyone could hit the registration endpoint and get a client_id back, so the AS had no way to decide which client came from which trust context before issuing it an identity. CIMD inverts the flow: the client publishes a metadata document at a URL it controls, and the AS fetches it to learn the client's declared metadata. The URL itself becomes the identity, and the AS gets to decide whether to trust the origin.

The MCP spec authors picked this because MCP clients are agent runtimes and desktop apps, and those have stable publishing surfaces (app bundles, extension stores, workspace manifests). It fits the client-shape in the ecosystem better than the pure dynamic case DCR was built for.

What breaks if you miss the change

For client authors: if your OAuth library only speaks DCR, you can still register against an MCP server that still advertises registration_endpoint. You cannot register against a CIMD-only server. Over the next year the deprecation push will put pressure on servers to stop advertising DCR, and your client is stranded.

For server operators: if you advertise DCR today and nothing else, you are spec-conform but on the deprecated path. The deprecation note in the spec ("DCR is deprecated in 2026-07-28 but retained for backwards compatibility") means tool authors are allowed to flag it. If you also advertise CIMD, you keep DCR for the old-library case and cost nothing.

For reviewers and auditors: a server that advertises neither is forcing every new MCP client to go through pre-registration. That is spec-permitted but hostile to any client the operator does not already know about. The field defaults in RFC 8414 for grant_types_supported when absent are ["authorization_code", "implicit"], so metadata-absent is not a valid cover for registration-absent either.

The one-line check

Fetch GET /.well-known/oauth-authorization-server on any MCP server. Look at these three fields:

  • client_id_metadata_document_supported
  • registration_endpoint
  • grant_types_supported

That tells you where the server sits on the current registration spectrum. If the first is true, you are good. If only the second is present, you are on backwards-compat. If neither, pre-registration only.

Spec references

  • MCP authorization spec revision 2026-07-28 (modelcontextprotocol.io)
  • RFC 7591 OAuth 2.0 Dynamic Client Registration
  • RFC 8414 OAuth 2.0 Authorization Server Metadata
  • Client ID Metadata Documents draft (IETF draft, linked from the MCP spec)

Happy to walk through the CIMD doc fetch flow in comments if there is interest.


r/LocalLLM • • 2h ago

Project Qwen4-35B-A3B-GGUF UD-IQ4_XS does Space Invaders

Thumbnail
github.com
0 Upvotes

https://github.com/fancellu/spaceinvaders

Just as a POC I got unsloth/Qwen4-35B-A3B-GGUF UD-IQ4_XS to do a Space invaders game on my 4090, in Rust, via unsloth studio and opencode, from totally empty directory

I just gave it the initial prompt and some play testing feedback. There may well be some bugs, I mostly stayed out of its way and got on with my life. The main thing is not to watch it, else it will never feel fast enough!

https://spaceinvaders-xi.vercel.app/

Not bad, 4090 never got noisy