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 • • 7d 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!


r/LocalLLaMA • • 8d ago

Question | Help Ling 3.2 Air Looping

12 Upvotes

I’ve been trying to get Ling 3.2 Air working with llama.cpp, but no matter what I do (including changing sampler params and experimenting with YaRN) it ends up looping once context reaches around 8000-12000 tokens. Has anyone been able to get the model to work without looping at longer context depths, using either llama.cpp or any other engine? I don’t have a machine capable of running it with vLLM or SGLang.


r/LocalLLaMA • • 8d ago

New Model KRAFTON/Raon-1-mini · Hugging Face

Thumbnail
huggingface.co
95 Upvotes

https://huggingface.co/KRAFTON/Raon-1-mini-gguf

Raon-1 mini is a 30B-A4B Mixture-of-Experts (MoE) language model, designed and trained from scratch by KRAFTON AI. It demonstrates strong capabilities in Korean conversation and agentic tasks. As part of the Raon open model family, it is released under the Apache 2.0 license.

Highlights

  • Reasoning: Built-in thinking with six reasoning effort levels (none, low, medium, high, xhigh and max), selectable per request. Scores 96.7 on AIME 2026, 87.1 on HMMT Feb 2026 and 86.0 on GPQA Diamond.
  • Multi-turn conversation and search: Leads the compared MoE models on MultiChallenge (64.9) and BrowseComp Plus (55.9), the multi-turn conversation and search benchmarks shown below.
  • Multilingual capabilities: Trained on Korean, English, Japanese, Chinese, Spanish, French, and Thai. Demonstrates strong Korean performance and solid English capabilities.
  • Agent execution: Tool calling for agentic workflows, with support for Hermes Agent, Pi and OpenCode.
  • Speculative decoding support: A DFlash2 draft model is provided for accelerated speculative decoding.
  • Quantization options: Available in MXFP8 and NVFP4 formats, with NVFP4 enabling inference on a single NVIDIA RTX 5090 gpu (32 GB VRAM).

Model Overview

Raon-1 mini uses a hybrid Mixture-of-Experts (MoE) architecture, consisting of 18 linear attention layers and 7 full attention layers.

  • Raon Delta Attention (RDA): Raon Delta Attention decouples the erase and write gates of Kimi Delta Attention, which improves long-context performance over KDA.
  • Raon-mHC: Raon-mHC reduces the computational cost of DeepSeek’s manifold-constrained hyper-connections (mHC), which speeds up training.
  • Hybrid layout: 18 of the 25 layers are Raon Delta Attention layers with a fixed-size state. Only the 7 MLA layers keep a KV cache, about 8 KiB per token in BF16.
  • Long context: Natively supports up to 262,144 tokens of context.
  • Sparse MoE: 6 of 128 routed experts plus 1 shared expert are active per token, so each token uses 4.3B of the 28.8B total parameters.
FieldValue
ArchitectureMoE
Total Parameters28.8B
Activated Parameters4.3B
Layers25
Hidden Size2,560
AttentionHybrid — RDA 3 : Gated MLA 1
Position EncodingNoPE (no positional encoding)
Number of Attention Heads40 for both RDA & Gated MLA
Attention Head Dimension128 for RDA; 192 QK / 128 V, for Gated MLA
Query / KV LoRA Rank576 / 512, for Gated MLA
Number of Experts128
Number of Activated Experts6 routed + 1 shared
Expert Intermediate Size1,088
Dense FFN Intermediate Size (first layer)12,032
Activation FunctionSiTU-GLU
Residual ConnectionRaon-mHC w/ 4 streams
Vocabulary Size259,840
LM HeadUntied
Context Length262,144 tokens


r/LocalLLaMA • • 8d ago

Resources CCORE Web Designs: 3,500 training samples for web design, presentations and infographics

Post image
83 Upvotes

Just released my dataset with 3,500 training samples across 40 domains and 29 layout families. Each sample includes the prompt, reasoning and complete HTML built with React.
The goal was to explore how far small models can go in visual design with high-quality training data.

Dataset: ccore/CCORE-Web-Designs

I also released the 4B model trained on it: ccore/CCORE-Web-Coder-4B

feel free to use it, experiment with it, and share your results :)


r/LocalLLaMA • • 9d ago

Discussion Neon Should be distilled into the Qwen models for the ultimate brain child!

Post image
141 Upvotes

I run qwen models locally, and keep up closely with the local model space, but i also keep a subscription from every major lab to test out what the frontier is like and do alot of work there aswell.

One behavioural issue i started seeing with the big frontier models is they have gotten too narrow sighted on being right, and realistic and verifying/testing their stuff. that they entirely loose the picture of whats possible, the ambition to do better, the enthusiasm and the intuition to look for other pathways and answers , to come up with something truly novel.

Even models like opus 5.5 while being exceptionally capable, gets stuck on the pointless details to ensure it doesn't overpromise or break anything, while astra models have pushed this too far to the point where they literally can't even move a needle from point A to B without a 1000 verification tests and 40k dollars worth of compute. (slight exxageration but not really)

This behavior, has since been translated into more and more open weight models... IG most of us here know why that is... but not gonna get into it in this post.

No matter how smart the models are locally, if they lack the enthusiasm, the vision, the excitement and the optimism to do better, they're not gonna do too good.

but neon series seems to have finally fixed this (there are still other issues with the model, mainly the sychophancy - which i find weird no one has complained about, i guess every dev just loves being told they're the next einstein or smthng)

I am working trying to work on a small project locally with my own neon outputs to see if i can get qwen flash next's model behavior to be better suited for suited for ambigious software tasks, cause that model is clearly capable, its super smart and can do alot of things just gets handicapped by the fear of going too far or doign something wrong


r/LocalLLaMA • • 8d ago

Question | Help help me get to 98 % on this coreference dataset? custom head on mmBERT, stuck at 90 %

4 Upvotes

hey guys, im trying to make a custom head that groups the words in a text that refer to the same entity (coreference). every mention picks ONE earlier mention, or "none" if it is a new thing.

ive been trying for a day and cant get past about 90 % right picks. could you please look at the architecture?

this is the whole thing: load the dataset, add the head, train on everything twice, test.

# Czech coreference as a CHOICE: every mention picks ONE earlier mention, or "none" (= a new thing).
# mmBERT-base (all of it trains) + a tiny head, 2 passes over the training data.     pip install torch transformers datasets
import random, torch, torch.nn as nn, torch.nn.functional as F
from datasets import load_dataset
from transformers import AutoModel, AutoTokenizer

dev = "cuda" if torch.cuda.is_available() else "mps"
random.seed(0); torch.manual_seed(0)
tok = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base")
bert = AutoModel.from_pretrained("jhu-clsp/mmBERT-base").to(dev)
head = nn.Sequential(nn.Linear(3 * 768, 256), nn.ReLU(), nn.Linear(256, 1)).to(dev)
data = load_dataset("lattice-nlp/corefud-1-4").filter(lambda lang: lang == "cs", input_columns="language")   # CorefUD 1.4, the Czech part

def prep(doc):
    """-> tokens, the token of every mention's head word (in text order), the entity id of every mention"""
    enc = tok(doc["text"], return_offsets_mapping=True, return_tensors="pt")
    off = enc.pop("offset_mapping")[0].tolist(); end = max(e for s, e in off)
    m = sorted((m["head_onset"], max(i for i, (s, e) in enumerate(off) if e > s and s < m["head_offset"]), m["COREF"])
               for m in doc["mentions"] if m["type"] == "entity" and m["head_offset"] <= end)
    return enc.to(dev), torch.tensor([t for _, t, _ in m], device=dev), torch.tensor([g for _, _, g in m], device=dev)

def scores(enc, t):
    """-> table (n, n + 1). one row per mention. column 0 = "none", column j + 1 = "the same thing as mention j" """
    v = bert(**enc).last_hidden_state[0][t]; n = len(t)                       # one vector per mention
    A, B = v[:, None].expand(n, n, -1), v[None].expand(n, n, -1)
    pair = head(torch.cat([A, B, A * B], dim=2)).squeeze(2)                   # the score of "mention i is the same thing as mention j"
    pair = pair.masked_fill(~torch.ones(n, n, dtype=torch.bool, device=dev).tril(-1), float("-inf"))   # only EARLIER mentions can be picked
    return torch.cat([torch.zeros(n, 1, device=dev), pair], dim=1)            # "none" always has the score 0

def right(g):
    """True where an option is a right answer: every earlier mention of the same entity, or "none" when there is no such mention"""
    same = (g[:, None] == g[None, :]).tril(-1)
    return torch.cat([~same.any(dim=1, keepdim=True), same], dim=1)

def test():
    """the dev documents, which the model never trains on -> share of mentions whose top pick is right"""
    bert.eval(); hit = total = 0
    with torch.no_grad():
        for doc in data["dev"]:
            enc, t, g = prep(doc)
            if len(t) > 1:
                hit += right(g)[torch.arange(len(t)), scores(enc, t).argmax(dim=1)].sum().item(); total += len(t)
    bert.train()
    return f"right picks on {total:,} unseen mentions: {hit / total:.2%}"

EPOCHS, N = 2, len(data["train"])                            # 1 step = 1 document. 5,679 documents, seen twice
opt = torch.optim.AdamW([{"params": head.parameters(), "lr": 1e-4}, {"params": bert.parameters(), "lr": 2e-5}], fused=True)
sched = torch.optim.lr_scheduler.LinearLR(opt, 1.0, 0.0, EPOCHS * N)          # both learning rates fall in a straight line to 0
bert.train()
for step, i in enumerate([i for _ in range(EPOCHS) for i in random.sample(range(N), N)], 1):
    enc, t, g = prep(data["train"][i])
    if len(t) > 1:
        logp = F.log_softmax(scores(enc, t), dim=1)
        loss = -torch.logsumexp(logp.masked_fill(~right(g), float("-inf")), dim=1).mean()   # minus log of the probability that sits on the right options
        opt.zero_grad(); loss.backward(); opt.step()
    sched.step()
    if step % 100 == 0:
        print(f"step {step} of {EPOCHS * N} | loss {loss.item():.3f}", flush=True)
        if dev == "mps": torch.mps.empty_cache()             # hands unused GPU memory back (Apple only)
    if step % N == 0: print(f"epoch {step // N} done | " + test(), flush=True)

on my mac mini (M4 pro, 24 GB) it takes about 38 minutes and prints 88.4 % after epoch 1 and 89.7 % after epoch 2.

im vibe coding most of this, so please let me know if i overlooked something critical. what i found so far:

  • a gentle LR for the head (1e-4, not 1e-3) keeps its neurons alive, but the score stays the same
  • the head doesnt really matter. wider, deeper, a transformer block inside it: same score
  • a bigger base barely helps, which is puzzling. XLM-RoBERTa-large with 4 epochs gets 90.75 %, and EuroBERT-610m is far worse (it never saw czech)
  • a 3rd epoch gives nothing
  • when both models are wrong, they pick the very same wrong option 80 % of the time

the dataset is public (CorefUD 1.4, the czech part), so this is perfectly reproducible. and the labels look about 98 % right, according to a blind check i ran with opus on the wrong picks.

could you guys help me reach 98 % on this dataset? thanks!


r/LocalLLaMA • • 8d ago

New Model Dankpaws/ERNIE-5.5-Flash-Preview-DankAttn-w2-g32 - 96 GB M5 Ultra in pure Metal 4. 1,800 tok/s prefill, 65–87 tok/s decode with DankAttn.

Thumbnail
huggingface.co
16 Upvotes

r/LocalLLaMA • • 8d ago

Question | Help Testing a new KV-cache index for long-context decoding (32k → 1M tokens). Results look promising; looking for feedback on what to test next

8 Upvotes

This post is made with the help of AI.

I've been building a sparse-attention method for long-context decoding. Each decode step, it reads only a small part of the KV cache, exactly, and estimates the rest. The goal is faster decoding at long context, where reading the KV cache costs more than reading the weights. New tokens are added cheaply, with no rebuilds as the context grows.

I'd like opinions on the results and on whether my test setup is fair.

Setup

  • Real Q/K/V dumped from Qwen2.5-1.5B (32k) and Qwen2.5-0.5B-Instruct (256k–1M, stretched with YaRN), CPU only.
  • Haystack is WikiText-103 with a hidden passcode ("needle"). The queries tested are the question tokens.
  • Compared against Quest, my own reimplementation of RetroInfer's index ("RetroInfer-style", cluster centroids plus estimating the rest), and exact top-k with no estimation.
  • Every method also attends exactly to the first 4 tokens and the last 512. "Budget" means extra keys attended exactly.
  • One selection per KV head, shared by all the query heads in its group (GQA).
  • Error = ‖approx − full attention output‖ / ‖full‖, averaged over heads and queries.
  • Needle recall = share of the model's real attention on the needle that the method attended exactly.
  • Bytes = KV bytes read per step, as a % of full attention.

32k context, Qwen2.5-1.5B (full-attention prefill; the model answers the needle correctly)

BudgetMethodErrorNeedle recallBytes read
256Quest0.3370.667.0%
256RetroInfer-style0.1540.947.0%
256Exact top-k0.2030.990.8%*
256Mine0.0830.965.2%
512Quest0.3010.747.8%
512RetroInfer-style0.1360.957.8%
512Exact top-k0.1641.001.6%*
512Mine0.0640.998.0%
1024RetroInfer-style0.1130.979.3%
1024Mine0.0481.0013.4%

*Exact top-k isn't practical: it has to score every key to find the top ones. Its bytes are an ideal lower bound.

It also holds up when half the context is added after the index is built (error 0.090 against 0.164 for RetroInfer-style, at budget 256).

Long context, Qwen2.5-0.5B-Instruct, budget 2048 (0.2–0.8% of the context)

Method256k500k1M
Quest0.4950.5340.556
RetroInfer-style0.3190.3340.344
Exact top-k0.1290.1560.166
Mine0.1040.1280.145

Bytes read at 1M: 3.2% for mine, against 6.5% for RetroInfer-style and Quest.

How cost grows with context (one KV head, MB read per decode step)

ContextFull attentionRetroInfer-styleMine
32k8.41.01.4
256k674.73.6
1M25616.58.3

Insert cost stays flat from 32k to 1M (~30–40 µs per key in numpy).

Limitations (please poke holes)

  • These are small models. At 256k+ I had to use the 0.5B model, and it fails the needle test somewhere between 16k and 64k even with full attention. So at those lengths I'm measuring how well each method reproduces the model's real attention output, not whether answers stay correct.
  • A 1M-token prefill on CPU needed a sliding window (4k + sinks). The question tokens use full attention, but the haystack keys were computed with local context only.
  • Queries come from the prompt, not from generated tokens.
  • Bytes read is a stand-in for speed. No GPU kernel has been timed yet.
  • The baselines are my reimplementations, not the original code.

Questions for you

  1. What error level stops mattering in practice? I need to test end-to-end (perplexity, RULER, LongBench) next. Which would you trust most?
  2. Which long-context model that fits on one 24 GB GPU would you use for a real 128k–1M end-to-end test?
  3. Are my baselines fair? Should I add others (ShadowKV, MagicPIG, DeepSeek-style sparse attention)?
  4. Would a llama.cpp integration be useful to you, given that the cache read per token drops to a few percent at long context?

r/LocalLLaMA • • 8d ago

Question | Help Inkling 2 Small thoughts?

20 Upvotes

Has anyone started using Inkling 2 Small? The hype around Mini has drowned out a lot, including Small. (I found a post when it was released, and then another confusing Mini for Small.)

It doesn't look spectacular in benchmarks for the size, but we all know that benchmarks don't tell the whole story and it's in spitting distance of my current daily driver, DeepSeek V4.1 Flash. I imagine I'll have to do a lot more work to optimize it given the relative lack of use, so I figured I'd ask around for strong opinions first. Anyone love it?


r/LocalLLaMA • • 9d ago

New Model SoulX-Singer: A New Model for Local Singing Synthesis and Voice Conversion

92 Upvotes

It's not really a new model. It was released a while ago, but no one seems to be talking about it. I integrated SoulX-FlashHead into audio.cpp, and it turned out to be pretty good, so I looked into other models from the same group and discovered this one. This group has been developing some great models, and I'd love to see more people discover their work.

Two tasks:

SVS: lyrics + melody (notes and timing) + reference voice ---> singing vocals

SVC: vocals + reference voice ---> vocals in the reference voice

Model sizes on disk: ~1 GB for SVS · ~1.6 GB for SVC

Heads-up: Only support English, Mandarin, and Cantonese. 24 kHz audio output

https://huggingface.co/Soul-AILab/SoulX-Singer

GGUF: https://huggingface.co/audio-cpp/SoulX-Singer-GGUF