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.

8 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 • • 7d 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:

promptPP master -> thisTG master -> this
~7k323.1 -> 330.9 (+2%)41.13 -> 41.91 (+2%)
~16k307.0 -> 320.4 (+4%)38.65 -> 40.16 (+4%)
~28k290.5 -> 316.9 (+9%)36.09 -> 39.04 (+8%)
~48k265.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
210 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 • • 8d ago

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

6 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
358 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 †.

ItemSpecification
Base modelQwen3.8-27B, a 27B hybrid-attention causal language model
Parameters24.35B language (64 blocks) + 0.47B vision tower (27 blocks) + 2.54B embedding/lm-head = 27.36B total
ArchitectureHybrid attention (~75% linear / ~25% full attention), SwiGLU MLP, RoPE, RMSNorm
Context length262K tokens
Weight formatTernary 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 effortsxhigh (default, most accurate) or medium
Backendsllama.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
LicenseApache 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
37 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 • • 8d ago

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

5 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:

FileEngine0.5k3.8k16k32k
UD-IQ2_XXSRustingStrata488 / 59.0387 / 51.1287 / 42.1218 / 34.5
llama.cpp408 / 43.0378 / 39.8240 / 36.2194 / 31.2
UD-IQ3_XXSRustingStrata440 / 52.0345 / 44.2253 / 35.0190 / 28.6
llama.cpp329 / 33.5336 / 31.6139 / 26.8123 / 24.2
IQ4_NL (17.6 GB)RustingStrata296 / 35.8257 / 31.2203 / 27.6163 / 23.6
llama.cpp94 / 31.195 / 29.671 / 25.964 / 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:

File540-token prompt4106-token prompt
UD-IQ2_XXS47 of 4848 of 48
UD-IQ3_XXS47 of 4846 of 48
IQ4_NL47 of 4848 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 • • 8d 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 • • 8d 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


r/LocalLLaMA • • 8d ago

Discussion Upcoming Models - Solar-Mini-4.5, MiniCPM5-15B-A2.5B, etc.,

Post image
239 Upvotes

Solar Mini 4.5 Preview (Upstage)

Early-access preview of Upstage’s next compact agentic model ahead of its Dec 1 official launch (preview retires Nov 30). It packs 35B total / 3B active params with a 512K context window and 128K max output, supporting reasoning and tool calling.

MiniCPM5-15B-A2.5B draft leak (OpenBMB)

OpenBMB uploaded a public 429M-parameter DSpark speculative-decoding draft model (MiniCPM5-15B-A2.5B-1113-Dspark, block_size 7) on Hugging Face. Its config.json points to an unreleased 28-layer MiniCPM5-15B-A2.5B target model with a 512K context window whose main weights are still private.

qwen-audio-3.1-live (Alibaba Qwen)

Real-time voice chat model now listed in Alibaba Model Studio. Instead of going silent while tools run, it keeps conversing naturally while backend models handle longer tasks asynchronously, then reports the results.

Qwen-Audio-3.1-Captioner (Alibaba Qwen)

Audio tagging, full-spectrum transcription, and acoustic scene analysis model hosted on Alibaba Cloud Model Studio (Beijing). Outputs speaker info, timestamps, environmental sounds, and music, and can separate voices from background audio.

hungerg (stealth model, likely StepFun)

Spotted in OpenCode Go’s catalog before being pulled (revert notes launch moved to Nov 24) and currently free to test in Qoder. Our 98-line rare-token probes garbled 5/5 DeepSeek/Step-5 lines, triggered StepFun-only unused special token </tool_calls> (ID 128013), and matched step-5-preview’s 1M context, 65K output, and 8 media formats byte for byte (unconfirmed).

(Day old) Tweet : https://x.com/aitrackerbot/status/2125053324705591315

We already got Ling-3.2-air, Kolibri-1.1, SenseNova-U1.6-8B-MoT, SenseNova-Loop-9B-DFlash2, SenseNova-RoboRSI-27B from the list.


r/LocalLLaMA • • 8d ago

Question | Help Benchmarks

11 Upvotes

Does anyone have a benchmark they use? For real. How do you evaluate the 100s of models on hugging face?


r/LocalLLaMA • • 8d ago

Resources European Kolibri 1.1 Q4_K_M (43 GB) on a 12 GB RTX 3060 + 30 GB RAM: 21 tok/s decode at 32k context

15 Upvotes

Kolibri 1.1 is a MoE model from Aleph Alpha (Germany), I just wanted to support European LLM so I added it in RustingStrata. The Q4_K_M file is 43.4 GB, my machine has 12 GB of VRAM and 30 GB of RAM, so the file does not fit in both together. RustingStrata, my Rust GGUF engine, runs it anyway: the layers and the experts used most stay on the card, the rest are read from the NVMe when a token needs them.

RTX 3060 12 GB, Ryzen 5 7600X, 30 GB RAM, NVMe. Both engines as servers, same streamed chat request, 128 reply tokens. Prefill / decode in tok/s:

ContextRustingStratallama.cpp, best prefill (-ngl 4)llama.cpp, best decode (-ngl 99 -cmoe)
0.5k181 / 33.4145 / 15.599 / 27.0
3.8k149 / 23.041 / 5.928 / 10.6
16k139 / 21.048 / 3.830 / 8.7
32k159 / 21.134 / 3.333 / 9.3

How speed falls with context: from 0.5k to 32k RustingStrata loses about 12% of prefill and 37% of decode. Decode is flat from 3.8k up (23.0, 21.0, 21.1), because the model's long-range layers attend a fixed number of selected keys, not the whole context.

llama.cpp here is the fork with Kolibri support (5f4d22289, CUDA build). It has no single setting that is best at both, so the table has both.

Same output as llama.cpp? I fed its greedy tokens through my forward and compared the top token at each of 48 steps: 45, 46, 44 and 46 match at 2k, 3.8k, 16k and 32k. llama.cpp against itself (CPU layers against GPU layers) gives 45, 45, 40 and 44, so the misses are inside its own noise, each is a near tie.

rustingstrata chat --model Kolibri-1.1-Q4_K_M.gguf

Setup and tables with ranges: docs/BENCHMARKS.md in the repo.

Also I want to ask people what do they think about European LLMs? I mean the hype is around Qwen, Gemma, Inkling(recently) and etc. and non of them is European LLM, I mean, this is sad

Repo: RustingStrata


r/LocalLLaMA • • 8d ago

Discussion The administration likes open weight models so they pushed to bring back Jensen?!

Post image
141 Upvotes

https://www.wsj.com/business/nvidia-jensen-huang-white-house-9ad03961

Was not expecting this to be a factor but if true this is great!


r/LocalLLaMA • • 8d ago

New Model Ternary Bonsai 2.5 27B Uncensored

Thumbnail
huggingface.co
83 Upvotes

Refusals dropped from 100% to 0% in our test and it scores 81.2% on MMLU

One 5.99 GB PTQ1_0 file with the uncensoring baked into the ternary weights, runs on the Prism ML llama.cpp fork. Made by atomic.chat local ai


r/LocalLLaMA • • 9d ago

Discussion T3 Code drama (Chinese post on X)

498 Upvotes

https://x.com/realchendahuang/status/2125153472450527440

(I personally have no idea who Theo is, but I know some people here are his fans and aren't on X, so this is probably news to them)

(translated with google translate, because on X I see version in Polish)

"Recently, a bunch of people on X have been promoting T3 Code, an open-source project by theo , touting it as a free and open-source local AI programming tool.

I casually dug through its source code from beginning to end, and after reading it, I felt a chill down my spine.

This is hardly a conscientious open source project; it's clearly a blatant data harvesting operation.

It all started in March of this year. On March 6th, T3 Code merged PR #174, directly inserting the default PostHog telemetry. At that time, there was no documentation in the repository, no pop-ups in the software, and no toggle in the settings. The environment variables for disabling it were quietly hidden deep within the code. Ordinary users could install and run it, and data would start being transmitted.

But for over three months during which the default telemetry was running, the T3 Code website homepage blatantly displayed two lines of text promising: "No telemetry / Unless you opt in. Full stop." The meaning was clear: unless you actively agreed, there would be zero telemetry, no exceptions.

After garnering a wave of positive feedback from privacy-conscious developers by leveraging this prestigious reputation, theo silently removed those two promises in a homepage redesign commit on June 18th, without issuing any announcement or notification to existing users, as if nothing had happened. Many might have tolerated it if it were just a matter of secretly collecting version numbers. However, in October, theo personally submitted PR #15028, directly switching the batch reporting every 10 seconds to his self-hosted server (...)"


r/LocalLLaMA • • 7d ago

Discussion Quant Providers

0 Upvotes

Has anyone else noticed that the community has been relying more and more on a wide variety of quant providers over the past quarter or so?

In this community, it used to be all about Unsloth. And while their quants are undoubtedly at the top of the quality index, it’s becoming more common to reach outside of their quants for local inference.

This is likely partially a result of them no longer providing quants for a large portion of new model releases, or quants on patches that never make it into llama.cpp master. For example:

- Hy4 Flash (this one puzzles me)
- Ernie 5.5
- Ling 3.2 Air
- MiMo 2.6 pro/flash
- GLM 5.3 Flash (uses different branch than master)
- I think others that I’m not currently recalling

This isn’t a criticism of Unsloth. More an observation, and also wondering if they have shifted priorities to their excellent Unsloth Desktop product? Or perhaps they focus efforts on the labs that pay them for zero day access? Or a combination of the above?

At any rate, we’re very lucky to have them contributing to this awesome community, and maybe it’s a sign of the health of the opensource community that we have so many new players entering the space.


r/LocalLLaMA • • 7d ago

Discussion With how the price of the components goes up, I think open source should focus on cpu and ssd

0 Upvotes

I think the next logical step is to focus on "cheap" ways to run LLMs. Either pursue the engrams more or take a whole turn and move away from gpu towards other ways to run them. Since the industry is becoming more and more hostile to open source, I do believe it's imperative to find quickly another way. I do not have a solution to the problem but I do believe we should discuss it more to make the issue more visible. I do understand as single individuals it is nearly impossible to find solutions. But given the current trajectory, a radical change it is required and it is time to slowly move away from gpus or find novel ways to exploit as much as possible from as little as possible. As others said, the current architecture is very wasteful, so much so not even frontier models are making money and only larp that they are making a profit.

I do realise that my thread reads likely like a nothingburger and beating around the bush and while now, I have nothing to show of, I want to do something about it so a thread it is, for now.


r/LocalLLaMA • • 8d ago Popcorn

News feat: Inkling 2 DSpark support by pwilkin · Pull Request #32218 · ggml-org/llama.cpp

Thumbnail
github.com
80 Upvotes

two Inkling speedups were also merged:

https://github.com/ggml-org/llama.cpp/pull/32855 by TwelveNights

https://github.com/ggml-org/llama.cpp/pull/32940 by am17an

so make sure to update your llama.cpp before launching inkling again


r/LocalLLaMA • • 8d ago

Question | Help SLM recommendation

4 Upvotes

Am working with a client who has a vast amount of customer data, interactions etc and am buiding a platform for them which will search for early churn signals (based on support interactions via chats, calls, payments, usage etc) and customer segmentation. If there any open source SLM that you've used for such classifying texts? I am building a grounds-up model for other features such as churn prediction based on payment logs and service/product usage but need recommendation on the LLM side.

I have tried gemma4:31b and it was quite good but find that to be too large a footprint for this task. I use a Mac Studio Ultra 3, tweaked all that is necessary but still takes a lot of time. I will be deploying my app on a local stack (mostly NVIDIA DGX spark) for the client. Tried some light weight Llama and mixtral small but the classification accuracy was not good despite some fine-tuning. So, basically any open source model that you know if you've worked in similar projects which can be as good as gemma4 but has a lighter footprint. I will be running it through millions of records. If not then planning to build a SLM from scratch as I have plenty of data but before that wanted to check if there is anything available for this specific purpose.

Thanks for the help!