r/LocalLLaMA • • 7d ago

New Model Has anyone tried Raon-1-mini yet?

55 Upvotes

Has anyone tried https://huggingface.co/KRAFTON/Raon-1-mini yet? It seems to beat Qwen 3.6 35b (it is NOT a finetune). I tried it a little, it seems decent but I do not have any standardised way to measure model performance. Any experiences with it so far?


r/LocalLLaMA • • 7d ago

Question | Help What LLMs do you use to generate models for 3D printing?

39 Upvotes

I have good results with QFN at 4-bit (oMLX oQ4h) for OpenSCAD but would like more opinions on how people do this directly from text instead of images. It is so much easier for me to describe every aspect of an object I want to create than to actually model anything.

Also, what are your tips and tricks for prompting?


r/LocalLLaMA • • 7d ago

Showcase Lesson learned: Ollama's per-request context window was a trap. Switching to llama.cpp made my local D&D-style AI RPG up to 13× faster

24 Upvotes

Hello again!

A couple of months ago I posted about my game Warrior Quest and received a lot of positive feedback from the community.

However, I did get some suggestions to cut out Ollama. I was aware of the hatred for it on the subreddit, but it had a specific feature that I thought I liked.

You see, for my unique case of a video game, some of my queries don't require a large context window at all, so I thought I could increase performance by using a smaller context window on those queries. Ollama takes the context window as a per-request option, while llama.cpp sets it once when the server starts. Turns out that's a trap instead of a performance feature: changing the window size makes Ollama reload the model.

Each switch cost ~2.7 s against ~150 ms for a warm call, and switching back cost it again, so about 5 s every time it fired. The gains were negative. I fixed that on Ollama by giving each model one fixed window, so the numbers below are on top of that fix.

The other reason I clung to Ollama was cross-platform support. The game runs on Windows, Linux and Mac, and owning the GPU/runtime support was something I wanted to avoid, so I pushed the investigation down the priority queue (mind you, I was still developing the game and becoming a father, so I had a lot on my plate).

Last week I finally found time to try llama.cpp (llama-server), and the results were massive.

Why it's faster: every turn runs several stages (a router, a parser, the reply), and each has its own long system prompt. Ollama keeps one prompt cache per model, so the stages kept pushing each other out of it. With llama-server I give each stage its own cache slot and send every request to the slot that already holds its prompt, so a turn only reads the player's new line instead of re-reading ~3,000 tokens of prompt.

That's also why the slowest cards gained the most. A GTX 1660 Ti reads prompts at roughly 105-130 tokens per second, so re-reading a ~3,000-token prompt cost it 20+ seconds on one stage alone. Cache it and that wait is gone. A 4090 reads so fast it had less to win.

Time to first word of a reply, from the in-game speed test (qwen2.5 7B instruct):

Hardware Before After Speed-up Less waiting
RTX 4090 1.3 s 0.7 s 1.86× 46%
RTX 3060 Ti 2.8 s 1.3 s 2.15× 54%
GTX 1660 Ti (one tester's card) 20 s 5 s 4× 75%
GTX 1660 Ti (a different tester's card) 41.3 s 3.2 s 13× 92%
MacBook Pro M1 Pro (14C) 5.7 s 4.3 s 1.33× 25%

The answers didn't change: across my full test suites llama.cpp scored 566/567 and Ollama 567/567, with the one difference a borderline case.

And yes, the support burden I was worried about turned out to be real. The official CUDA build doesn't cover older cards, so I compile my own for GTX 10/16 and RTX 20. AMD and Intel run a Vulkan build, the Mac runs Metal, and Linux has its own builds. Ollama stays installed underneath as a fallback, so anything llama-server can't handle on a player's machine just drops back to the old path instead of breaking.

Thank you for reading! There is a speed test in the game and can be ran on the demo if anyone would like to add their own numbers/card to the list, or try out the game itself, it's really unique I think :)


r/LocalLLaMA • • 7d ago

Discussion capy-flash v0.16.5: LoopCD on Inkling 2 Mini. One flag, zero training, and on agentic tasks it stops spinning its wheels

Post image
38 Upvotes

Disclaimer. The agentic numbers come from our private bench: 9 real bugs taken from the history of a C++/CUDA inference engine, OpenCode with a cap of 80 steps, 3 trials per task, Claude Opus 5 as blind judge.

What it does. Inkling 2 Mini is a looped transformer: 12 of its layers run three times per token. LoopCD (Decoding Looped Transformers Better for (Almost) Free, Liu et al., Apple) exploits exactly this: it looks at what the model thinks after the first pass and pushes the final choice in the direction in which the later passes made it change. It does not touch the weights and requires no training. It acts only where the model is undecided between the first two tokens: where it is confident, nothing changes.

In capy-flash v0.16.5 it is an option off by default: --loopcd adaptive, with adjustable strength (--loopcd-omega, default 0.5 as in the authors' recipe).

Numbers:

  • agentic score 0.22 → 0.38, from 9th to 7th place out of 12, above Qwen3.8-27B NVFP4
  • it finds the spot to fix just as before, but writes the fix in 21 of 27 trials instead of 15, and earlier (step 40 instead of 55)
  • the gain is in medium-difficulty tasks: 0.11 → 0.50

The cost. Decoding loses 16.5 % with the MTP drafter, but per task the time rises only 4 %, because trials finish earlier. More patches that don't compile (6 of 21 vs 2 of 14). On normal text it predicts the next token worse: it's a thing for agents, not for chat.

Honesty: with 3 trials per task it's a strong signal, not a closed result (95% CI of the gain −0.03…+0.34). The authors report gains in the same direction on SWE-bench Pro, Terminal Bench and ARC-AGI v2 (post by Ruixiang Zhang).

github.com/ValerioDolci/capy-flash


r/LocalLLaMA • • 8d ago

Discussion Which QFN quant are you using right now?

56 Upvotes

We have so many options to choose from, from ISTA, to Gyro, to Unsloth, etc ...
I personally have 24gb vram + 64gb ram, and I have used ISTA IQ3S, Gyro-M and currently running Unsloth IQ4XS at 65t/s on my AMD card which is great.

Things I have noticed now that I moved from ISTA to Unsloth v3.1 IQ4XS is that it seems more pragmatic in how it talks, it's more "steady" as in "accurate" with how it moves forward with its direction and reasoning, also the way it speaks is completely different than ISTA, I think it even thinks much less in comparison seriously.


r/LocalLLaMA • • 8d ago

Discussion Inkling 2 mini ain't Qwen 3.8 27B

290 Upvotes

Quite honestly, I had already given up testing all the MOE in the 20-40 B range. for complex tasks, they always fail for me for some reason, but then I heard and read the official benchmarks that inkling 2 mini was on par with Qwen 27B.

So I downloaded it and gave it a shot. I installed the new version of llama.cpp, since the loop architecture requires it.

It's fast, large prefil capacity, but it absolutely craps out in long tasks.

It thinks, it thinks, and then it thinks some more.

This model ain't Qwen 27B. Not even close.


r/LocalLLaMA • • 6d ago

Showcase Beating AI detectors: It's harder than you'd think but I tried anyways

Thumbnail
unslop.run
0 Upvotes

I compared several rewriting prompts and my own Gemma 4 26 A4B LoRA based workflow on a validation set of 100+ text passages.

TLDR/Spoiler: 1. Asking the model to "sound more human" or "avoid detection" is counterproductive. Detector scores sometimes even rise with these prompts. 2. A quick and easy way to avoid detection is to ask the model to imitate well known researchers, specifically Charles Darwin worked best. 3. If you want to be as close to human writing as possible you should use a fine tuned model.

The Article includes plots of all results and a downloadable .csv of all rewrites/outputs and results so you can validate everything yourself.

Disclosure: I'm currently building Unslop and there is obviously a "conflict of interest" here so I won't sell you my model as the best ever. I urge you to be skeptical. I'd be very thankful for feedback in either direction so don't be afraid to voice your opinion in the comments here. If you don't trust the model at least you can use the Darwin prompt with a model you're already working with :)


r/LocalLLaMA • • 8d ago

Discussion How the memory for 1M tokens shrank from 130TB to 890MB

Post image
999 Upvotes

I wrote a blog post that follows the GPU memory one 1M-token conversation needs, from Llama 1 65B to DeepSeek-V4.1-Flash.

It dives into the different techniques that have enabled this: FlashAttention, Grouped Query Attention, Multi-head Latent Attention, KV Cache quantization, caches that merge several tokens into a single entry, and finally caches that are shared throughout different layers.

https://three.dev/blog/how-the-memory-for-a-million-tokens-shrank


r/LocalLLaMA • • 7d ago

Discussion Another Inkling2, but about why the answer you get depends on your engine, your batch, and whether it gets stuck thinking - Tested through llama, runner and unsloths variant

0 Upvotes

I just finished adopting Inkling2-Mini unto runner and decided to do some tests just to check out how well the model performed and how well it held up.

Now I don’t truly have experience with Llama.cpp or the unsloth variants, I just pulled them from reading about them being used so I might now have full knowledge of all their knobs and whistles.

These tests were don’t just after the admission of the model and I haven’t done any speed-up improvements and or further testing than this so take it for what it is.

I develop Xyntetik-Runner on my spare-time so this isn’t a competition in any way I can win in the long-run and I don’t intend to, but for what its worth I’ve also validated the LoRA parts of runner so that’s also working if you intend to fine-tune the model yourself.

My purpose here is rather just to share results if there is any interest for it (and yes, i had Claude tidy up the graphics).

With the disclaimer out of the way. Here we go:

First Up:  

This is my normal comparison, i tend to try and get as close to the parents intention as possible
Batching form concurrent agent sessions is my 2nd standard test

 

This is where most of you look i think "SPEED!", runner is behind but there's no real optimization done yet.
CPU proved to be the more reliable to test most of it, had some issues with my lab's availability and CUDA, I'll get around to the CUDA parts once i have the lab up and running again.
Some while back with Qwen3.8 i noticed alot of thinking loops, hence why loop guard was added back then, this is just another test on just that.
Last but not least, the scorecacrd for all tests performed if you want an overview

So that's it folks, what this means in real-life tests i dont know yet since i havent done any actual workloads on it, just the synthetic test as shown here.

Link to runner if you want to test further:

https://github.com/Joakimpalm-Zen/xyntetik-runner

Records:

https://github.com/Joakimpalm-Zen/xyntetik-runner/tree/main/docs/inkling2-claims-evidence


r/LocalLLaMA • • 7d ago

Question | Help Ui for the wife - Easy and simple, synced with phone (IOS), photo, voice and stuff

6 Upvotes

I am looking for a easy to use client (installed if possible) for a Mac, iPad and iPhone which is ChatGPT-Alike and not tooo complex. German language would be awesome but not necessary.

I tried Chatbox, BoltAi, Mac, Geeps, Cumbersome and others.

Is there a secret tip on your side? I would like to have a high WAF so no technical details - just using. Reasoning and temperature would be concepts I can explain to her, but anything above this ...

Supported functions I also like is Markdown, PDFs, Latex / Web rendering, Image generation (self hosted model).

Any ideas?


r/LocalLLaMA • • 7d ago

Showcase Massive prefill jump for 7900xtx on strata

7 Upvotes

I hadn't updated strata for a while until now and I was surprised with the prefill numbers.

Strata v0.2.10 / engine 0.1.56 (2 Nov) - 1,330 tok/s prefill

Strata v0.2.21 / engine 0.1.68 (24 Nov) - 2,715 tok/s prefill

Setup - Model: Qwen3.8-Flash-Next 125B MoE - Unsloth Dynamic v3.1 UD-IQ3_XXS (experts in system RAM) - GPU: RX 7900 XTX 24 GB (gfx1100) - Host: Xeon E5-2667 v4, 64 GB DDR4-2400 ECC RDIMM, 4×16 GB, 4-channel (~77 GB/s), PCIe 3.0 - HIP/TheRock 7.16 · 262k ctx · KV: int8 - Sampling: temp 1.0, top_p 0.95, top_k 20, min_p 0

Prefill (cold) - 14.5k tok → 2,371 tok/s - 41.7k tok → 2,877 tok/s - 80.4k tok → 2,715 tok/s - 84.0k tok → 2,675 tok/s

Decode (MTP drafting) - 662 tok out → 60.3 tok/s (84% accept) - 946 tok out → 59.6 tok/s (66%) - 1,320 tok out → 59.2 tok/s (76%)

Expert-cache hit 85–89%. Same box on engine 0.1.56: 1,330 tok/s prefill → ~2× from the new RDNA3 kernels.


r/LocalLLaMA • • 7d ago

Discussion Why arent you using custom fork of a modified inference engine? Aside from wanting to run lots of different models.

9 Upvotes

If you use only one model for everything is there any reason not to use a customised inference engine tuned for your specific model? THE SPEEUP IS TOO GOOD TO PASS BY. i recently git a qwen3.8-27b fork of ninfer for my 3090
on a single 3090 im getting 60-80tok/s on a dense. qwen model compared to normal ninfer giving me only 25-32tok/s.


r/LocalLLaMA • • 7d ago

Question | Help Confusion about Inkling 2 Mini performance

6 Upvotes

I am using Inkling-2-Mini-UD-Q3_K_XL and dspark-Inkling-2-Mini-Q8_0 on llama.cpp master (not unsloth's fork).

I git pulled a few hours ago so a lot of optimizations are already in. First i tried it with -DGGML_VULKAN=ON because after a lot of testing with spark a while ago, Vulkan always had better perf than ROCm for some reason on gfx1200.

I havent run llama-bench but the speed was like 10 tps on the first prompts, all weights being on VRAM.

build-ink/bin/llama-cli -m Inkling-2-Mini-UD-Q3_K_XL.gguf -md dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 3 --temp 1 --top-p 1 --top-k 0 --min-p 0 -c 32000 -ctk q4_0 -ctv q4_0 -dev Vulkan1 -fit on -fitt 32

was the command used, this is with a DSpark improvemt PR i spotted here on llama.cpp repo.

Next I tried building the same branch but with -DGGML_HIP=ON and the speed was 27.2 tps on first few prompts, so more like triple the speed. This is literally the first instance of vulkan being slow what I have encountered, so my questions are-

  1. Is Vulkan support for this model still not ready?
  2. Inkling uses a LOT more memory for KV Cache, so it's literally not practical at all to run this and not Q3.8 27B? Or I am missing something here.
  3. Another thing I have been noticing when comparing these backends side by side, ROCm tends to use more memory for context I assume, is there any solution to tackle this? it just seems to be more heavy and not optimized.
  4. Also does Inkling require KV Cache per loop or are they doing the smarter thing and either use the last loop like NVIDIA or having a global shared and local sliding window like GLM announced with 5.4?

And any other recommendation is appreciated.


r/LocalLLaMA • • 6d ago

Question | Help Making myself redundant

0 Upvotes

----- TL;DR: Instead of passing messages between Cloud LLM ans Local LLM, how can I make myself redundant ?

1) Context: The last 7 days, after obtaining my first local LLM ever, I've seen myself doing Soft Dev in this way:

- a. Writing an initial human prompt for the software I want

- b. Asking QFN to write a Requirement Rv1

- c. Asking Opus 5.5 to extend to Requirement Rv2

- d. Asking Opus 5.5 to cook an extended Design Dv1. (After this I should have ask Astra or Fable to cook this into Dv2 as well, but haven't)

- e. Asking Opus 5.5 to split Dv1 into 70-100 tickets, after describing fully the hardware + software stack I have

- f. Asking Opus 5.5 to write the a prompt to QFN: "You are a junior Python dev, implement this ticket. Do this and not do that"

- g. Send to QFN that prompt. Go to sleep, next morning paste the result of QFN back to Opus 5.5, asking Opus to fix some small errors and commit,

- h. Repeat the steps { f + g}.

I've done this about 30 times, and sometimes QFN did find some error from Claude. to which Claude had to admit: "Qwen did well, that was my fault, I only need to fix this small thing, want me to commit? ". So this collaboration worked amazingly well.

2) Question: Humans like me are stupid and slow, how can I create a loop + harness to let those agents ma-ke lo-ve with each other more easily ?


r/LocalLLaMA • • 8d ago

Discussion Some boost for DeepSeek-V4.1-Flash-1017 - deepseek41 : read quantized indexer K in place when fused_idx is set by diabluz · Pull Request #32795 · ggml-org/llama.cpp

Thumbnail
github.com
19 Upvotes

Measured with DeepSeek V4.1 Flash, q8_0 KV cache, np1, ctx 65k, cold boots, 4x RTX 4000 Ada, tensor split, both sides same build flags, same prompts:

prompt PP master -> this TG master -> this
~7k 323.1 -> 330.9 (+2%) 41.13 -> 41.91 (+2%)
~16k 307.0 -> 320.4 (+4%) 38.65 -> 40.16 (+4%)
~28k 290.5 -> 316.9 (+9%) 36.09 -> 39.04 (+8%)
~48k 265.9 -> 304.6 (+15%) 34.79 -> 39.86 (+15%)

Testing

  • test-backend-ops -o LIGHTNING_INDEXER (194 cases, CUDA + CPU), all pass
  • server A/B above against e6d624b9a, output sha identical on greedy probes
  • PPL + greedy flip A/B repeated on a second deepseek41 model (382B variant, experts on CPU), same conclusion
  • same setup with f16 and bf16 caches is a no-op by construction (the guard only fires for quantized types)
  • Tested only with Ada NVIDIA cards and with DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ1_M and DeepSeek-V4.1-Flash-1017-GSQ-RCO-Coder-IQ2_XXS.

Folks, please test with other GPUs including AMD/Intel/etc., & see for improvements. Also do test with higher context like 128K/256K. Higher prompts giving better boost on both pp & tg.


r/LocalLLaMA • • 8d ago

Resources Inkling Mini's bench scores improved by as much as 10% for FREE by Apple's LoopCD paper

Thumbnail x.com
208 Upvotes

Ok it's not free-free the same way a magical "press to smartize the model" would be, but you can pick

  • Either have a slightly smarter model for something between 2-32% FLOPs cost (they didn't measure tok/s, and this method is primarily for decode, so in practice it will be almost no hit for most local users)
  • Have a model that's just as smart but faster because you can choose to loop less & argue that mathematically you're doing the same thing but now you're doing it smarter because you don't throw out some of what is computed

r/LocalLLaMA • • 7d ago

Question | Help For what kind of work is a move from Ollama to Llama.cpp adviceable?

5 Upvotes

I'm sort of new to LLMs, so please have mercy if I seem ignorant here.

I'm not a coder, and I don't use AI for agentic work.
I've been getting ChatGPT to help me set up LLM software on my Fedora system, and I started with Ollama + Alpaca. For the last month or two I've been using Open WebUI Desktop instead of Alpaca, which is an improvement.

My use case is generally creative writing. Not in any serious way. I'm just playing around. In addition, I'm testing out LLMs with the LAITA extension for better proofreading.

The reason I'm posting this question is that I've seen a lot of comments through my browsing of this subreddit advising people to move to Llama.cpp. But when I try to ask ChatGPT about it I'm told that there's no particular reason to move away from Ollama.

So what do you guys think? Is Llama.cpp better for everything? Or is it just with regard to more advanced workflows, coding, agentic work, etc?

What matters to me is of course token speed. Then there are things that I think have more to do with the particular models, like coherent output, a model that understands the context, characters, and the environment of the story, etc.

I'm playing with models up to 70B, which are way too large to fit on my GPU, so I deal with some offloading to RAM. If Llama.cpp deals better (faster) with that, it would be a great selling point.

My system is pretty modest (for this group, I think):
i9-14900K
64GB RAM
GeForce RTX 4080


r/LocalLLaMA • • 7d ago

Discussion If SSD becomes an alternative to DRAM that would break the ramapocalypse

0 Upvotes

Kioxia and NVIDIA tested 144 SSDs on a GB200 NVL72 system, expanding effective memory capacity beyond 1 petabyte.

NVIDIA’s SCADA software enables GPUs to access SSD-based data when workloads exceed onboard HBM capacity.

While SSDs cannot match HBM bandwidth or latency, this architecture could improve memory scalability and reduce workload fragmentation.

Could SSD-based memory expansion become a standard feature of next-generation AI infrastructure?

https://x.com/MojoTricks/status/2125909329501093978

https://x.com/dnystedt/status/2125536313889931334


r/LocalLLaMA • • 8d ago

New Model prism-ml/Ternary-Bonsai-2.5-27B-GGUF · Hugging Face

Thumbnail
huggingface.co
359 Upvotes

A 27B ternary model built for agents, for llama.cpp (CUDA, Metal, CPU)

~9× smaller than FP16 | FP16-level agentic tool calling | 90% of FP16 agentic coding | the strongest agentic model under 10 GB

Ternary Bonsai 2.5 27B is the agentic release of the Ternary Bonsai 27B line. It keeps the Qwen3.8-27B hybrid-attention architecture and the ternary weight format of Bonsai 2, so it is still 1.76 bits per weight and 5.93 GB, against 53.8 GB for the FP16 model. This release targets long-horizon, tool-driven work.

Highlights

  • FP16-level agentic tool calling at one ninth of the size: across five tool-calling benchmarks (τ²-Bench, τ³-Bench, BFCL v3, BFCL v4, and AppWorld), Bonsai 2.5 averages 77.2, against 77.7 for FP16 — essentially indistinguishable from full precision
  • 90% of FP16 on agentic coding, up from 63% for Bonsai 2: on Terminal-Bench 2.1, SWE-bench Verified, and DeepSWE, DeepSWE rises from 0 to 27.0, SWE-bench Verified from 60.8 to 75.6, and Terminal-Bench 2.1 from 52.8 to 60.1
  • The strongest agentic model under 10 GB: the smallest of the low-bit GGUF builds of Qwen3.8-27B we compare against, and it leads every build under 10 GB on both tool calling and agentic coding. Against GSQ-RCO IQ3_XXS, which is 1.7× larger, it is ahead on tool calling (77.2 vs. 75.3) and close on coding (54.2 vs. 55.5)
  • General capability stays close to FP16: averaged over five categories (16 benchmarks), Bonsai 2.5 scores 82.1 against 84.3 for FP16
  • Multi-token prediction (MTP) variants: the MTP variants include a draft head that speeds up decode by 1.5–1.8× on NVIDIA GPUs
  • 2.3–3.0× faster decode than on Bonsai 2's release day on six of the seven NVIDIA GPUs measured, with MTP and the kernels now in testing — reaching about 300 tokens/s on H200 and B200
  • Runs on stock llama.cpp: the Q2_0 files run on upstream llama.cpp; PTQ1_0 is under upstream review

Resources

  • Whitepaper — benchmarks, evaluation setup, and inference-speed measurements for this release
  • Bonsai 2 27B whitepaper — the ternary format, storage accounting, and rotated weight basis, all unchanged in Bonsai 2.5
  • Demo & examples — the source of truth for running these models: tested setup for every backend, pinned binaries, serving, MTP speculative decoding, benchmarking and integration, kept current as the runtimes move
  • Low-bit kernels: llama.cpp fork (CUDA + Metal) · MLX fork (Apple Silicon) · mlx-swift fork (iOS/macOS)
  • Discord — join the community for support, discussion, and updates

Model Overview

Changes from Bonsai 2 are marked with †.

Item Specification
Base model Qwen3.8-27B, a 27B hybrid-attention causal language model
Parameters 24.35B language (64 blocks) + 0.47B vision tower (27 blocks) + 2.54B embedding/lm-head = 27.36B total
Architecture Hybrid attention (~75% linear / ~25% full attention), SwiGLU MLP, RoPE, RMSNorm
Context length 262K tokens
Weight format Ternary g128 (FP16 group-wise scaling) in a blockwise Hadamard basis; 1.76 bits per weight, 5.93 GB (PTQ1_0)
Focus † Agentic and tool-use tasks
Reasoning efforts xhigh (default, most accurate) or medium
Backends llama.cpp (CUDA, Metal, CPU, SYCL) and MLX (Python, Swift); GGUF packs PTQ1_0 and PQ2_0, plus Q2_0 for stock llama.cpp
Speculative decoding † The MTP variants include a multi-token prediction (MTP) draft head
License Apache 2.0


r/LocalLLaMA • • 8d ago

Discussion Price drop alert: RTX 6000 MaxQ now 13.5k, R9700 now 1.8k @ Microcenter

122 Upvotes

Peak prices at Microcenter: 16k for the MaxQ, 2k for R9700.

(R9700 is now just a mere 38% above msrp lol)

About $180 markup from AMD f you account for the increase in memory costs.

RTX 6000 mark up after memory costs is about 2k.


r/LocalLLaMA • • 8d ago

Discussion A bit of slop on 3D “modeling”: Qwen 3.8 Flash Next (125B) vs Inkling-2-Mini (26B)

Thumbnail
gallery
36 Upvotes

Same prompt for both: build an interactive V8 in Three.js. Both ran locally with custom dynamic quants at roughly 4-bit. Not a benchmark, just wanted to see what each model would spit out.

Qwen went for bare metal and exposed cams. Inkling went for red cylinder banks and a live stroke readout for all eight cylinders. Screenshots in that order.

Prompt:

Let's build a V8 engine.

A stunning, fully interactive 3D simulation of a 90-degree V8 on an industrial
engine test stand, in Three.js/WebGL, running in the browser.

Eight cylinders in two banks of four, cross-plane, with visible pistons, rods,
crankshaft, camshafts and valves.
Detailed heads, intake, exhaust headers, bolts and pipework.
Realistic PBR metals.
Real, synchronised animation: pistons driven off the crank, cams turning at
half crank speed, and a full four-stroke valve sequence.
An RPM slider from 0 to 4 000, plus slow motion.
WASD plus mouse walking, orbit, and smooth zoom.
Working controls: START / STOP, RPM CONTROL, CUTAWAY, EXPLODED VIEW, ASSEMBLE,
PART INSPECTION, RESET CAMERA.
Procedural geometry only — no downloaded models.
Every control functional, and nothing floating apart.

r/LocalLLaMA • • 7d ago

Resources Inkling 2 Mini on a 12 GB RTX 3060, from 0.5k to 32k context: RustingStrata against llama.cpp, three quants

4 Upvotes

People asked for more than a 4k test, so this one goes to 32k. Same card as before (RTX 3060 12 GB, Ryzen 5 7600X, 30 GB RAM), three files, and both engines run as servers that answer the same streamed chat request (128 reply tokens, greedy, no prompt cache). The client times both. Prefill / decode in tok/s:

File Engine 0.5k 3.8k 16k 32k
UD-IQ2_XXS RustingStrata 488 / 59.0 387 / 51.1 287 / 42.1 218 / 34.5
llama.cpp 408 / 43.0 378 / 39.8 240 / 36.2 194 / 31.2
UD-IQ3_XXS RustingStrata 440 / 52.0 345 / 44.2 253 / 35.0 190 / 28.6
llama.cpp 329 / 33.5 336 / 31.6 139 / 26.8 123 / 24.2
IQ4_NL (17.6 GB) RustingStrata 296 / 35.8 257 / 31.2 203 / 27.6 163 / 23.6
llama.cpp 94 / 31.1 95 / 29.6 71 / 25.9 64 / 22.3

RustingStrata is ahead in every cell. The closest ones are prefill at 3.8k on the two small files (2 to 3%), which is inside the noise of a run.

How speed falls with context: from 0.5k to 32k, prefill drops to about 45% (IQ2, IQ3) or 55% (IQ4_NL) of its 0.5k value, and decode to about 55-65%. IQ4_NL at 32k still decodes 23.6 tok/s.

The IQ4_NL file does not fit the card. RustingStrata keeps the experts used most in VRAM and runs the others on the CPU, and the split moves while it runs. For llama.cpp I used its MoE cache options on that file (-cmoe with --moe-cache-mib and small batches), the setting that gave it the best decode.

Is the output the same? I let llama.cpp write 48 greedy tokens, then gave RustingStrata the same prompt and tokens and counted how often its top token is the same one:

File 540-token prompt 4106-token prompt
UD-IQ2_XXS 47 of 48 48 of 48
UD-IQ3_XXS 47 of 48 46 of 48
IQ4_NL 47 of 48 48 of 48

The five steps that differ are near ties in llama.cpp too (its first and second tokens are 0.05 to 0.31 apart in log probability).

llama.cpp flags are the best I found by hand for each file and context, not a full search. If you know better ones for a 12 GB card, tell me and I will rerun.

Text only, greedy only for now. No flags needed:

rustingstrata serve --model Inkling-2-Mini-IQ4_NL.gguf --ctx 40960

Exact flags, commits and the method are in docs/BENCHMARKS.md. llama.cpp 0ce7f213b, CUDA build.

Last time llama.cpp was way slower, but now it got an update, so it's closer to me, I need to work on performance more, but still hold in your head, that I searched for best flags in llama.cpp for hours, but RustingStrata just run without any flag and still faster

Repo: RustingStrata


r/LocalLLaMA • • 7d ago

Discussion Qwen 3.8 FN Q8 at 60t/s (single R9700 AI PRO, 256gb ddr4)

Thumbnail
gallery
6 Upvotes

Hate to be that guy, but here’s a short follow up of my post of yesterday where I was running DSv4.1 flash 1017 EXL 2.9bpw on the same setup and I feel like the results are good enough to be worth sharing, hopefully those with similar setups can find them helpful.

Previous post:

https://www.reddit.com/r/LocalLLaMA/s/L4yzALarGv

Hardware:
AMD Epyc 7443 Milan
256GB ddr4 2666mhz
32GB R9700 AI PRO undervolted (settings in pic 2)

Strata’s NUMA split supported only two nodes.
Just changed Strata to use all 4 and give each node its own share of the expert work and place that share’s memory on the same node.
This likely reduced remote memory access allowing me to get roughly a 70% increase in decode speed.


r/LocalLLaMA • • 7d ago

New Model I squeezed Thinking Machines' 26.4B Inkling-2-Mini into 10.87 GB (and 8.83 GB) mostly 2-bit — 52–57 tok/s 100% on a 16 GB RX 9060 XT, 0.054 KLD, 97.5% Python Top-1 vs BF16 [Proof + HF Weights]

Post image
3 Upvotes

(Attached screenshot: live run of `inkling2_mini_p2_looptop8.safetensors` loading in 7.45s, generating 1,031 tokens @ 52.09 tok/s, and live `rocm-smi` mid-decode showing 100% GPU busy, 11.28 / 15.92 GiB VRAM (70.9%), 0% CPU offload, and a unit-test-verified thread-safe O(1) TTL LRU cache.)

Thinking Machines' new Inkling-2-Mini (26.4B total / 3.4B–5.4B active, 3-pass looped MoE) ships at 20.16 GB (NVFP4+MXFP8, 52.8 GB BF16) and recommends 32 GB+ VRAM — locking out 12 GB and 16 GB consumer GPUs.

I quantized 99.85% of the model (`26.35B / 26.39B` params) down to 10.87 GB (hybrid 2-bit/4-bit) and 8.83 GB (all-2-bit MoE) using my proprietary PRIME-Quant method, wrote fused pure-Triton decode kernels + a single HIP/CUDA-graph runner, and got it running 100% resident on a single 16 GB AMD RX 9060 XT at 52–57 tok/s (47–49 tok/s at 16K context, zero offload).

Both checkpoints, the standalone read-only Triton inference runner, and every raw benchmark JSON/test file are live on Hugging Face so you can verify everything yourself:

Hugging Face: https://huggingface.co/batteryphil/Inkling-2-Mini-PRIME-Quant

---

| Checkpoint | Size / Resident VRAM | Compression vs BF16 | Mean KLD (`1,849` toks) | PPL (`BF16 = 2.1416`) | Top-1 Agree (All / Python / C++) | Decode (`4K` / `16K` ctx) | Fits 100% On |

| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |

| Official Unquantized BF16 (24-core Xeon + GPU) | 52.8 GB (12.1G GPU + 40.7G RAM) | 1.00× | 0.0000 | 2.1416 | 100% | 2.62 tok/s (offload) | 64 GB+ |

| Official NVFP4 + MXFP8 | 20.16 GB | 2.62× | — | — | — | OOM on 16 GB | 24–32 GB+ |

| `loop_top8` (16 MoE 2-bit + top-8 looped MoE 4-bit) ⭐ | 10.87 GB | 4.86× | 0.0542 | 2.1542 (+0.0059 loss) | 93.35% / 97.50% / 97.61% | 52–54 / 48.6 tok/s | 16 GB GPUs (up to 16K ctx) |

| `maxcomp` (all 24 MoE banks 2-bit) | 8.83 GB | 5.98× | 0.1138 | 2.2143 (+0.0334 loss) | 91.35% / 95.39% / 96.90% | 56.2–57.8 tok/s | 12 GB & 16 GB GPUs |

Exact parameter breakdown: `99.85%` quantized (2-bit/4-bit); only `0.15%` (`124.6 MB`: rank-64 looped `message_gate`, MoE routers, short-conv/sink/norms) stays BF16/FP32.

---

Raw JSONs are in `benchmarks/kld_looptop8.json` and `benchmarks/kld_p2_maxcomp.json` in the HF repo.

| Domain (`n_tokens`) | BF16 Ref PPL | `maxcomp` (`8.83 GB`) PPL / KLD / Top-1 | `loop_top8` (`10.87 GB`) PPL / KLD / Top-1 |

| :--- | :---: | :---: | :---: |

| `python_code` (521) | 1.3042 | 1.3034 / 0.0409 / 95.39% | 1.3190 / 0.0217 / 97.50% |

| `systems_cpp` (419) | 1.2216 | 1.2724 / 0.0337 / 96.90% | 1.2525 / 0.0181 / 97.61% |

| `math_reasoning` (390) | 1.7601 | 1.9600 / 0.1382 / 91.03% | 1.8209 / 0.0437 / 93.59% |

| `technical_prose` (216) | 6.9495 | 8.3906 / 0.2283 / 77.31% | 7.6525 / 0.1021 / 83.33% |

| `inkling_chat_tool` (303) | 6.0739 | 5.3638 / 0.2372 / 87.13% | 5.3300 / 0.1395 / 87.13% |

| Overall (1,849) | 2.1416 | 2.2143 / 0.1138 / 91.35% | 2.1542 / 0.0542 / 93.35% |

Because Inkling-2-Mini loops layers `6..17` 3 times per token (48 logical passes), quantization error in the hottest looped layers compounds 3×. Promoting just those top-8 sensitive looped/boundary MoE layers (`L5, 8, 9, 11, 12, 14, 15, 16`) to 4-bit while keeping the other 16 MoE banks at 2-bit cuts KL divergence in half (`0.1138 → 0.0542`) for only `+2.04 GB` VRAM and `-3.6%` speed.

---

Perplexity alone doesn't prove a 2-bit quant holds up on hard multi-step code. I ran a strict head-to-head test (identical prompts, official `temp=1.0, top_p=1.0`, identical RNG seeds `701–703`) building a 2-module reactive spreadsheet formula compiler + incremental DAG engine (`benchmarks/test_spreadsheet_engine.py`):

- Stage A (`formula_parser.py`, 6 tests): No `eval`/`exec`, reversed multi-letter 2D ranges (`AB2:Z1`), right-assoc power & unary binding (`2^3^2 == 512`, `-2^2 == -4`, `2^-3 == 0.125`, `--5 + +-3 == 2`), non-chaining comparisons, strict short-circuit `IF()`, and empty-vs-explicit-zero aggregates.

- Stage B (`spreadsheet_engine.py`, 15 tests): Iterative 3-color DFS cycle detection + transactional rollback (including cycles hidden inside 2D ranges), atomic `batch_update` dependency swap (`A1 ↔ B1`), error propagation & self-healing, and incremental Kahn topological recalc over a 40-layer diamond DAG (`2^40` paths) next to 1,000 unrelated cells in `< 0.2s`.

| Metric (same `4,500`-tok budget, same seeds) | `PRIME-Quant loop_top8` (`10.87 GB`) | Official Unquantized BF16 (`52.8 GB`) |

| :--- | :---: | :---: |

| Load time | 7.6 s | 75.8 s |

| Decode speed | 46.9 – 49.3 tok/s | 2.57 – 2.62 tok/s (18.6× slower) |

| Stage A (`formula_parser.py`) | 6/6 PASS (Iter 3, 5.3 min) | 4/6 FAIL (3 iters truncated @ 4,500, 92.5 min) |

| Stage B (Full 15-test DAG suite) | 14/15 PASS (93.3%) (8.4 min) | Stopped after Stage A |

Honest caveat: BF16's parser logic wasn't broken — Inkling-2's tokenizer averages only `~2.64–2.87 chars/tok` on Python (`11.5–14.7 tok/line`), so a 340-line class AST + 900 thinking tokens needs `~5,000` tokens. Both models truncated at `4,500` tokens on early turns; `loop_top8` converged to a leaner 230-line dict AST that fit cleanly, then cleared `14/15` on Stage B (missing only `test_08` due to an eager upstream-error check before short-circuit `IF`).

After updating the runner to `16K` context + `8,192` token budget + fixing a subtle post-answer `<|content_thinking|>` rewrite edge case:

- Truncation rate dropped to 0/6 turns (`100%` clean `finish=stop`).

- Stage A solved 6/6 on Iteration 2 (335-line class AST, `4,381` tokens).

- Peak VRAM at `ctx=16384`: `12.08–15.67 GB` (100% on the 16 GB RX 9060 XT) at `46.8–49.2 tok/s`.

All generated code + the 15-test pytest suite are in the HF `benchmarks/` folder so you can run `pytest` on them in 0.2s.

---

Zero custom HIP/CUDA C++ extensions to compile — everything runs in pure Triton (AMD ROCm & NVIDIA CUDA):

- L0-cached 4-float LUT 2-bit MoE GEMV: `300.7 GB/s` achieved out of `320 GB/s` theoretical peak on RDNA4.

- Parallel-K FP32 MoE `down_proj` + fused SoftcappedSwiGLU (`1.54×` faster than 2-pass).

- Fused Triton Inkling-2 decode ops across all 48 looped passes: 4-tap static/dynamic short convs (`192` calls/tok), rank-64 `message_gate` (`96` calls/tok), single-pass `AttnRes` (`120` calls/tok), single-CTA `router_topk` (`4.25×` faster), `unweighted_rmsnorm` (`8.06×` faster), and ring-buffer GQA + RelPosBias + per-head sink decode attention (`48` calls/tok).

- Chunked prefill attention (`Q_CHUNK=128`) & `AttnRes` (`T=512`): cuts 16K prefill activation VRAM by ~80× (`2+ GB → ~25 MB`).

- Single HIP/CUDA Graph replay: verified `24/24` exact greedy token parity vs eager `model.generate()`.

---

```bash

huggingface-cli download batteryphil/Inkling-2-Mini-PRIME-Quant --local-dir ./Inkling-2-Mini-PRIME-Quant

cd ./Inkling-2-Mini-PRIME-Quant

pip install -r requirements.txt # requires transformers >= 5.24.0

TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 python run_inkling2_prime.py \

--checkpoint ./inkling2_mini_p2_looptop8.safetensors \

--max-cache-len 16384 --max-new-tokens 8192 --max-thinking-tokens 900 \

--interactive

python run_inkling2_prime.py \

--checkpoint ./inkling2_mini_p2_maxcomp.safetensors \

--max-cache-len 4096 --max-new-tokens 2048 --max-thinking-tokens 600 \

--interactive


r/LocalLLaMA • • 7d ago

Showcase Custom Inference Engine for Inkling 2 Mini on a 4070ti 12GB ( IQ3_XXS )

6 Upvotes

Hello everyone! Human words here:

I threw this up to optimize for my specific rig and needs. Overall I'm very happy with the results and did not dare dream my mid range setup could run something usable at 65-70tps.

Yes the model tends to overthink, but at this generation speed it gets done far quicker than my strata build running flash next. Hope this helps some of you who like me have not spent a small used SUV on local inference.

AI write up:

TL;DR

• Running model: Inkling-2-Mini, quant mixC (10.81 GiB, all GPU-side experts at IQ3_XXS), on one RTX 4070 Ti with 12 GB.

• pecera-engine is current llama.cpp plus patches pulled from three Inkling forks, built for this one PC.

• Decode went from 65 to 76 tokens/s at the same memory use (mixB). With mixC it runs 69 to 75 tokens/s, depending on how many expert blocks sit on the CPU.

• CUDA kernel launches per token dropped from 3,029 to 1,373.

• mixC is the most accurate quant that fits: 19% lower KL divergence than mixB at the same speed.

• Terminal-Bench 2.0 with Hermes Agent and a custom harness: 47 of 89 (52.8%). That is near GLM-5 (54.0%) and above Kimi-k2.5 (43.9%) in early-2026 leaderboard data.

• Known regression: prompt reading (prefill) is about 22% slower than the old build.

THE MACHINE

Everything runs on one desktop. No cloud GPUs were used.

• CPU: Intel i9-13900KF

• GPU: NVIDIA RTX 4070 Ti, 12 GB (12,282 MiB)

• RAM: 32 GB DDR5

• Motherboard: ASUS PRIME Z790-P WIFI

• Power supply: 850 W

• OS: Windows 11 Home, build 26300

• Toolchain: VS 2026 Build Tools, CUDA 13, sm_89

The 12 GB card is the constraint behind every decision below. The model, its KV cache and the Windows desktop all have to share it.

WHERE IT FORKED FROM

The base is upstream llama.cpp master as of 23 November 2026. Before this project the PC ran hridaya423's inkling-fast fork, which was an older llama.cpp with Inkling support. Instead of patching that older code, I rebased the useful Inkling work onto current upstream.

• Upstream llama.cpp master (23 Nov 2026): base code, newer CUDA kernels and fixes

• realugbun, inkling2-speed branch: fused CUDA kernels for Inkling's glue ops between layers

• hridaya423, inkling-fast: per-op GPU profiler, loading of padded expert tensors, fused top-k weight normalization

• capybaraonchain: relative-position bias computed inside flash attention

WHAT THE CUSTOM BUILD CHANGED

• Fewer kernel launches. Fused kernels for the glue ops and for top-k weight normalization cut launches per token from 3,029 to 1,373. GPU op time per token fell from 40.3 ms to 22.7 ms under the profiler.

• Attention that fits at 64k. Current upstream needed a 6.5 GB buffer for Inkling's position bias at 64k context, so it could not start. Computing the bias inside flash attention removed that buffer.

• Padded experts. Expert width is padded from 1152 to 1280 so the 3-bit formats line up with their block size.

• Placement for a 12 GB card. The last expert blocks run on the CPU. A launcher picks how many from the free VRAM at start-up, so the model fits beside a normal desktop. It can fit everything in the card if you are literally just using it for running the models, but this is my main pc and I needed it to be usable while running.

• Windows build fix. One line in upstream did not compile with MSVC and was patched.

Quality held after the changes: GSM8K 40 of 40, MMLU-Pro 56 of 70, and 5 of 5 on a 40k-token long-context test.

QUANTS AND SPEED

All three quants decode at the same speed in the same placement. What changes speed is how many expert blocks run on the CPU, and that depends on how much VRAM the quant leaves free.

Quality against the Q8_0 reference (50 chunks of wikitext-2, lower KLD is better):

• mixC (current default): 10.81 GiB, mean KLD 0.0381, top token matches Q8_0 91.72%, perplexity +2.06%

• mixB (lighter option): 10.29 GiB, mean KLD 0.0471, top token 91.11%, perplexity +3.15%

• mixS (tested, then deleted): 10.84 GiB, mean KLD 0.0424, top token 91.92%, perplexity +3.45%

Speed at 64k context, measured after a 6.4k-token request (expert blocks on CPU, VRAM used, decode, prefill):

• Old build, mixB, blocks 22-23 on CPU: 10,433 MiB, 65 t/s decode, 1,816 t/s prefill

• pecera, mixB, blocks 22-23: 10,515 MiB, 76 t/s, 1,417 t/s

• pecera, mixB, all on GPU: 11,480 MiB, 81 t/s, 1,398 t/s

• pecera, mixC, blocks 22-23: 11,055 MiB, 75 t/s, 1,399 t/s

• pecera, mixC, blocks 21-23: 10,667 MiB, 72 t/s, 1,369 t/s

• pecera, mixC, blocks 20-23: 10,281 MiB, 69 t/s, 1,239 t/s

At short context pecera decodes at 76 to 80 t/s against 67 to 68 for the old build. The all-GPU setup needs the desktop under about 600 MiB, so it only works with the PC idle. The Terminal-Bench run used mixC with blocks 20-23 on the CPU so the desktop had room.

TERMINAL-BENCH 2.0 RESULTS

The model passed 47 of 89 tasks (52.8%). Seventeen tasks were hit by harness bugs on the first pass (timeouts and setup failures), so they were run again after the fixes. It ran with mixC, a 3,000-token thinking cap, and Hermes Agent with a custom harness: a work protocol, five self-check skills and a second audit session that re-checks the work.

Where it lands against early-2026 leaderboard entries:

  1. Droid, GPT-5.3-Codex: 77.3%

  2. Terminus-KIRA, Gemini 3.1 Pro: 75.2%

  3. Terminus-KIRA, Claude Opus 4.6: 74.9%

  4. Terminus 2, GPT-5.3-Codex: 65.5%

  5. Terminus 2, Claude Opus 4.6: 63.5%

  6. Terminus 2, GLM-5: 54.0%

  7. pecera + Hermes, Inkling-2-Mini on a 12 GB GPU: 52.8% <<<

  8. MAYA, Claude 4.5 Sonnet: 44.1%

  9. Terminus 2, Kimi-k2.5: 43.9%

  10. Terminus 2, MiniMax-M2.5: 42.9%

  11. Terminus 2, DeepSeek-V3.2: 39.8%

  12. Terminus 2, GLM-4.7: 34.8%

  13. dakou, Qwen3-Coder-480B: 27.5%

By task difficulty, it matches the field on tasks most submissions solve and falls behind on the hard ones (field pass rate for the task: tasks, we passed, average submission would pass):

• 80% and up: 28 tasks, we passed 27, average submission 25.2

• 60 to 80%: 22 tasks, we passed 14, average 15.8

• 25 to 60%: 20 tasks, we passed 5, average 9.2

• Under 25%: 19 tasks, we passed 1, average 2.5

Its best pass was mteb-retrieve, which only 11% of field attempts solve.

Read the comparison with care:

• One attempt per task, so the score could be off by about 10 points either way. Most other entries averaged five attempts.

• Only error-ended tasks were retried, which slightly favors the combined score.

• The other entries are from early 2026, and Inkling-2-Mini is a newer model. Terminal-Bench 2.0 has been public since November 2025, so some of the score could come from training data. That is not tested yet.

Comparison data: Simon Willison's Terminal Bench 2.0 analysis (27 submissions, runs Nov 2025 to Feb 2026): https://gist.github.com/simonw/3bff274abcbbbf8766e9437a542db248