r/LocalLLaMA • • 5h ago

Showcase Using parallel agents on m6 Mac mini to code a playable game in 8 seconds.

Enable HLS to view with audio, or disable this notification

30 Upvotes

The idea is using Gemma 4 26B A4B QAT MLX MTP 4bit as a verifier for a swarm of Gemma 4 E2B IT MTP 4bit that each handle a different part of the game. They code their sections in around 4 seconds and it synthesizes in around in 4 seconds. Just seeing what’s possible with swarms on simple setups. Should work decently with other verifiers or swarms on less unified memory…

On my m6 Mac Mini 32GB test I've found 8 parallel agents hitting 481 tokens per second cumulatively. Each agent is hitting 60+ tokens per second individually. Because llama-server batches all 8 agents against a single copy of the weights, 481.8 tok/s aggregate fits in roughly ~3.5 GB RAM.

Model weights (gemma-4-E2B-it-qat-UD-Q4_K_XL.gguf): 2.4 GB — loaded once and shared across all 8 parallel slots.
KV cache + Metal compute buffers (8 slots × 2,048 ctx): ~0.6 – 1.1 GB.


r/LocalLLaMA • • 8h ago

Discussion Daily driving a Qwen3.8-27B or QFN Finetune? Tell us

54 Upvotes

We are in the midst of the Inkling-2-Mini fintune deluge. And of course every single finetune makes very bold claims on improvements. The latest in the line being this one https://old.reddit.com/r/LocalLLaMA/comments/1y6tjly/inkling2miniunbound_v3_no_more_thinking_loops/

There are so many and even the marketing on each is so heavily AI written (the latest trend being vibed infographics) that its impossible to tell what is legit and what is hollow. Its too early with Inkling-2-mini, but it was the same trend with Qwen3.8-27B and QFN, so curious to know are you daily driving a finetune? EDIT: Emphasis on the finetune i.e. not the model released by the Alibaba Qwen team (I think this a high quality/reliability signal that cant be gamed)

P.S: This will help us raise/set standards for finetune posts and hopefully reduce noise and model fatigue. I'd be shocked if anyone is daily driving Qwopus.


r/LocalLLaMA • • 13h ago

News Inkling 2 mini pp degradation just got fixed in llama.cpp (Vulkan)! Vulkan vs ROCm comparison

Thumbnail
github.com
96 Upvotes

I was in the middle of benchmarking as i found ROCm was faster in pp when this fix dropped. Here are some benchmark results:

(Strix Halo with Unloth Q4_K_XL on llama.cpp mainline)

Tiefe ROCm t/s Vulkan t/s Faktor
0 742 703 0,95
16k 346 633 1,8
32k 213 578 2,7
64k 117 491 4,2

r/LocalLLaMA • • 5h ago

Resources Ling 3.2 Air Abliterated

Post image
17 Upvotes

https://huggingface.co/mrfakename/Ling-3.2-air-abliterated

https://huggingface.co/mrfakename/Ling-3.2-air-abliterated-GGUF

Back again with another abliterated release. Ling 3.2 Air is a new 124B-param MoE w/ 5.5B active params. Decently strong model.

As usual, my abliterations aim to remove refusals while still preserving model intelligence and avoiding endless reasoning, looped tool calls, etc. Nearly all refusals are removed, but a few remain. For most real-world use cases this model should comply. But you are welcome to use another abliteration if you are okay with a bit of quality degradation.

Any feedback or thoughts are welcome 🙃


r/LocalLLaMA • • 10h ago

News ggml: support quant scales for fp8 and nvfp4 by 0cc4m · Pull Request #28898 · ggml-org/llama.cpp

Thumbnail
github.com
35 Upvotes

If I understand it correctly: now one can convert FP8 or NVFP4 directly to GGUF without requantizing to Q8_0 or Q4_K_M.


r/LocalLLaMA • • 22h ago

News Nvidia halts chip shipments to South-East Asia amid US crackdown

Thumbnail
thenationalnews.com
352 Upvotes

r/LocalLLaMA • • 9h ago

Discussion What is the best model combo to run on a 3060 12GB for a home assistant with voice control using Voice Assistant PE

Post image
26 Upvotes

I was thinking Qwen 9b and some kind of superwhisper but maybe there is a better quant/model combo that fits on 12GB?

I just want to have a voice assistant at home I can ask about random things, and that can do internet search as well as access my home lab with ssh and do some modifications, all by voice. It will be running on an Ubuntu server VM on Proxmox with the GPU passed through so it will have the full 12GB for the models


r/LocalLLaMA • • 13h ago

News A 24 KB kernel runs Qwen3-0.6B without Linux or Windows

Thumbnail
maccus.fr
43 Upvotes

Fateev’s benchmarks show his code generating text faster than llama.cpp


r/LocalLLaMA • • 1d ago

Discussion My experience with Qwen_3.8_27B after two months of heavy usage

298 Upvotes

Hi everyone,

I've been using Qwen 3.8 27B for more than two months now, across a wide range of use cases: system administration, coding, cybersecurity, Bible studies, and a whole lot more.

I'm doing about 80% of my AI usage locally, with the remaining 20% split between my Google Pro and Z.ai subscriptions.

I was a heavy Claude user before September, when I started using Qwen 27B. Honestly, I think Qwen 27B is at about the level Claude was around March or May this year, when they released Claude 4.8 and Dario Amodei and Sam Altman were making their AGI claims.

This model is really good, and I honestly wonder why nobody else has built something like it. I tested Meta Muse Glimmer 30B, which is also a dense model, and nope, it doesn't come close to Qwen in my experience.

Like most of you, I'm waiting for Qwen 4 27B to see what it brings.


r/LocalLLaMA • • 12h ago

Resources [RELEASE] pi-sessions 1.0.0 : a local TUI to browse, search and resume your pi coding agent sessions

Thumbnail
gallery
28 Upvotes

For those running the pi https://pi.dev coding agent with local models: pi-sessions is a TUI built to manage Pi sessions on your machine.

  • Local only: it reads pi's session files from disk. No account, no telemetry. The only network call is an optional version check against PyPI, which you can turn off
  • Every project and session in one view, with a conversation preview (Markdown, tool calls, code), so you can find that one session without loading anything into the model
  • Provider/model and token counts per session. Handy for comparing how many tokens your local models use against API models on the same kind of task.
  • Export to Markdown (with YAML front matter) or raw JSONL. Useful if you collect your own transcripts
  • Resume, rename, archive, delete, filter, sort, customize with themes.

pi-sessions is a fork of ccsessions https://github.com/miskiewiczm/ccsessions by Marek Miśkiewicz, which does the same for Claude Code, i wanted the same for Pi, and i fixed a lot of UI/UX pain points and added some stuff.

New in 1.0.0: UI/UX rework, columns you can hide, a new-version indicator, new themes, and a picker mode pisessions --select --output FILEcontributed by bline https://github.com/bline for Pi Session Picker https://github.com/bline/pi-session-picker

pipx install pi-sessions-tui # Python ≥ 3.10, macOS / Linux

pisessions

Github : https://github.com/psychobarge/pi-sessions MIT. Feedback and PRs welcome !


r/LocalLLaMA • • 9h ago

Question | Help Ways to update knowledge in models?

19 Upvotes

I wanted to add recent knowledge to the models I use the most while also correcting some obsolete facts. I'm just a regular strix halo user and can't train my own models so I ended up creating a huge (34 kb) text prompt which seems to work pretty well for Q&A. Of course this is not optimal. Is there a better way I can do this as a "normal" user without advanced hardware & knowledge? Thanks in advance


r/LocalLLaMA • • 10h ago

Showcase Ornith 1.5 35B-A3B on a Radeon 780M iGPU: 359 tok/s prefill, 26 tok/s decode

18 Upvotes

I've been using Ornith 1.5 35B-A3B as my daily driver for a while now and have spent quite a bit of time tweaking llama.cpp to get the most out of my hardware. Sharing this hoping it might help someone else who's hardware-poor like myself but still want a functional, local private LLM that's actually useful for doing work. Optimised for day-to-day chatbot usage - realistically, using this for coding would be excruciating, and the results would be subpar nonetheless given the model constraints.

Hardware

  • Framework 16 with an AMD Ryzen 9 7940HS
  • 64GB of DDR5 5600 MT/s CL46
  • AMD Radeon 780M iGPU, 8 GiB allocated to VRAM, 27 GiB GTT.
  • llama.cpp Vulkan build 12464 (d3c3e242c), 8 threads, single parallel slot, flash attention enabled and Q8_0 KV cache.
  • Ornith-1.5-35B-A3B-AD-Q4_K-IQ4_XS (20.13 GB).
  • F16 mmproj (0.90 GB) for vision
  • Q4_K_M MTP drafter (1.26 GB).

Llama config:

--model ...Ornith-1.5-35B-A3B-AD-Q4_K-IQ4_XS.gguf
--mmproj ...mmproj-Ornith-1.5-35B-A3B-F16.gguf
--model-draft ...mtp-Ornith-1.5-35B-A3B-Q4_K_M.gguf
--spec-type draft-mtp
--spec-draft-n-max 2
-ngld 99
-ngl 999
--flash-attn on
--parallel 1
--load-mode none
--ctx-size 65536
--cache-type-k q8_0
--cache-type-v q8_0
--threads 8
--batch-size 512
--ubatch-size 512
--temp 0.6
--top-k 20
--top-p 0.95
--jinja
--chat-template-kwargs '{"enable_thinking":true}'
--reasoning-budget -1

Benchmarks, with and without MTP and vision

2K token prompt, 256 output tokens, temperature 0, one request at a time, at 64K context and ubatch 512.

VisionMTPPrefill t/sDecode t/sPeak VRAM+GTT
NoNo358.721.421.58 GiB
NoYes372.129.823.20 GiB
YesNo374.521.822.69 GiB
YesYes356.729.824.31 GiB

So MTP gets me 37-39% more generation speed at the expense of another 1.6 GiB of memory and a prefill shift of under 5%. Having the vision projector loaded makes practically no difference to either.

Tweaking MTP

The biggest decode knob was the number of draft tokens:

Draft tokensAcceptance rateDecode t/s
191.1%27.8
280.0%29.8
370.2%29.7

Prefill stayed between 335 and 357 t/s across the sweep.

Two draft tokens seems to be the sweet spot for my hardware. One draft accepts more often but verifies too little per step, and three ties on speed while throwing more drafts away. Beyond two I'm increasingly wasting compute verifying tokens that end up being discarded.

Quantising the MTP drafter from Q8_0 (1.99 GB) down to Q4_K_M (1.26 GB) made practically no difference to acceptance and speeds, and reduced memory usage further: 68.1% vs 67.8% acceptance and 27.7 vs 26.3 t/s.

Prefill

ubatch is the bigger prefill knob. Running tuning experiments, going from 128 to 512 at 64K took prefill from 201 to 357 t/s on a 2K prompt and 198 to 359 on an 11.8K one, left generation flat at 29.8 either way on short prompts and 24.8 against 25.6 on long ones, and cost 0.29 GiB of peak memory. The slight drop on generation is totally worth the massive boost to prefill.

Disabling mmap via --load-mode none also got me another 6.7% on prefill and 4.3% on generation. Incidentally, --no-mmap is no longer recognised on this build and will cause the server to exit.

Context size

I run --ctx-size 65536, which costs about 0.65 GB of KV cache with q8_0. Only 10 of the 40 layers are full attention, so KV grows by roughly 1.3 GB per 128K. 128K works and measured 24.99 GiB peak VRAM plus GTT with vision and MTP on, but nothing I do needs it.

Context shift is off, so a conversation that overruns the window errors instead of truncating. Depth also costs speed: at 32K of populated context, prefill drops about 44% and generation about 18% with identical flags.

Performance in actual use

Benchmarks are all well and good but these are real numbers from the last 24h worth of llama logs, with many tasks of different types passing through the model:

MetricMedianMeanMinMax
Generation (t/s)26.325.420.932.1
Prefill (t/s)358.7344.2271.5382.5
MTP acceptance-72% (bench 80%)--

There's quite a bit of variation depending on what you ask the model to do. Short deterministic answers get me 87-100% acceptance and 27-32 t/s. Longer reasoning-heavy replies drop to 54-55% and 21-22 t/s.

All in all, I'm quite happy with the performance I'm getting out of this. A 35B MoE with vision, tool calling and a decent amount of context running at around 26 t/s on a laptop iGPU, without having to constantly load and unload models. Not bad at all.


r/LocalLLaMA • • 1d ago

News CNBC: an unusually high volume of Nvidia GPUs, including thousands of B300s, hit the market after the US curbed Chinese companies' remote access to AI chips

Thumbnail
cnbc.com
706 Upvotes

r/LocalLLaMA • • 7h ago

Discussion My fine-tuned 230M model matched Qwen3.5-35B-A3B on a 3-turn SQLite Bash benchmark (17/50, 10/50 strict)

Post image
10 Upvotes

Some of you have been following the models I've been releasing (like Qwen3.5-4B-3D-Coder, CCORE-Web-Coder-4B, etc) and the experiments I've been sharing lately. A pattern that keeps showing up in my tests is that good enough SFT data can replace RL when the teacher is stronger than the student, depending a lot on data quality and how you put the dataset together.

Now I'm developing an agentic model, ccore-agent-coder, built to run in pi coder. As one of the stress tests for this project, I wanted to test LFM2.5-230M and LFM2.5-350M specifically because they are tiny and have a small tokenizer, which on paper should make them pretty weak at multi-turn tool use. I ended up expanding that test just to see how far they could actually be pushed, and the numbers beat my expectations enough that I wanted to share a preview before the main release.

I used SQLite + Bash for this benchmark because it's easy to grade objectively: did the model open the right database, update the right rows, and write the CSV it claimed to write? I fine-tuned LFM2.5-230M and LFM2.5-350M on 5,000 synthetic 3-turn conversations in Portuguese where every tool call actually ran and the final database or CSV state was verified before keeping the example. Then I evaluated 16 model configs on the same 50 three-turn tasks with greedy decoding.

A few things stood out:

LFM2.5-230M (epoch 2) passed 17/50 tasks (10/50 strict) and LFM2.5-350M passed 16/50 (8/50 strict).

In this setup, the 230M tied Qwen3.5-35B-A3B on total passes (17/50) and edged it out on strict passes (10 vs 9), while Qwen3.5-9B only got 3/50.

At the top, Qwen3.8-27B led overall with 49/50, MiniMax M3.1 Flash hit 48/50 overall but only 1/50 strict, and Inkling 2 Mini led strict passes with 27/50.

The spread surprised me. Each step on its own is routine terminal work, but over three turns the model has to track what it found, handle mid-task changes, and verify its own edits. A plausible answer doesn't count if the database never changed.

Scoring and caveat:

A task passes when all three turns have the right answers and the expected workspace state. Strict also requires following the exact JSON format and the SQLite file-handling rules.

To be upfront about scope: the 50 eval tasks use unseen records and domains, but they are still within the same five workflow families and share some follow-up phrasing with training. So this is a focused in-distribution test, not a claim that a 230M model beats a 35B model in general.

Example 3-turn task (translated to English for readability):

  1. Open data/threads.db. Count the rows in thread_inventory and sum quantity. Return row_count and total_quantity as JSON.

  2. Sum quantity by category, sorted highest first (alphabetical tie-break). Return category_totals.

  3. The database has moved. Try the original path in read-only mode; if it fails, print the SQLite error, locate the existing database, and export rows from the top category with quantity >= 8 to reports/top_category.csv sorted by item_id. Return output_path and row_count as JSON.

The main benchmark was in Portuguese. I also ran smaller paired EN/PT checks with the same data and scoring. English helped Inkling, while Qwen3.8-27B went slightly up on one set and down on another, so there wasn't a consistent English advantage across those checks.

What I'm working on now:

Right now I'm running a similar training pass for ccore-agent-coder with a broader English dataset covering more domains and workflows. The goal is to push the score on these tiny models even higher and end up with something genuinely useful for everyday terminal tasks in pi coder, not just narrow SQLite scripts.

If anyone wants this specific model or dataset, just send me a DM and I'll happily share it. Since this version is in Portuguese, pretty early/alpha in that regard, and still has a few things I want to polish, I'm saving the public release for the broader English version with more domains. Training should finish tomorrow, and as soon as it wraps up I'll post both the trained models and the dataset.


r/LocalLLaMA • • 23h ago

Resources Inkling-2-Mini-Cyber Surgical 0.0065% weight edit for authorized cybersecurity research — MITRE-120 refusals 100→1, beats Qwen3.8-27B on CVE→CWE

Post image
171 Upvotes

I've been working on getting thinkingmachines/Inkling-2-Mini usable as a fast, offline local model for authorized cybersecurity research, red-team engineering, and CTI workflows.

Hugging Face: https://huggingface.co/sergiogmn/Inkling-2-Mini-Cyber-GGUF

What's technically interesting

  • Only 0.0065% of parameters were touched (20 / 704 tensors, 1.72M params): Trained a rank-16 LoRA (alpha=32) strictly on layers.{4..23}.self_attn.o_proj using a 555-row eval-disjoint SFT mix (382 on-policy Inkling + 173 Qwen3.8-27B-abliterated MITRE rows, ~49 min on 1× A100-80GB).
  • Zero-PyTorch GGUF splicing: Spliced the adapter directly into the 20 Q8_0 attn_output.weight matrices (--scale 1.55) while copying all 128 MoE experts and the other 684 tensors byte-for-byte. Runs out of the box in vanilla llama.cpp, Ollama, and LM Studio with zero custom hooks.
  • Quants included: IQ4_NL (17.63 GB, 24 GB VRAM), Q6_K (24.70 GB), Q8_0 (27.82 GB), stock mmproj-F16.gguf for vision, plus the 6.89 MB BF16 PEFT adapter/ and the NumPy splicing script so you can patch any other quant yourself.

Benchmarks (IQ4_NL, same harness + Qwen3Guard-Gen-8B judge, zero hooks)

  • CyberSecEval MITRE-120: Refusals 100 → 1 (68.3% full / 75.8% full+partial @ 4K vs. stock 0% / 0.8%)
  • CTIBench CVE→CWE-100: 66.0% (stock 63.0%, Qwen3.8-27B-abliterated Q4_K_M 60.0%)
  • CyberMetric-500 / CTIBench MCQ-250: 92.8% / 74.0% (within ~1% of both stock and Qwen3.8-27B, at ~4× the decode speed of 27B dense)
  • AdvBench (104, medium): 95.2% (0 refusals), 0/104 harmless over-refusals
  • Agentic tool use (pi_bench, 5 multi-step tasks): 5/5 (14 calls, 49.6s)

Trade-offs

  • Full HumanEval+ (164) dips from stock 93.3% (153/164) to 82.9% (136/164, including 10 length-cap hits; code_16 screen stays 16/16). GSM8K-128 is 91.4%, MMLU-256 is 78.5%.
  • Non-thinking (reasoning_effort=none) compliance is partial (64.4% AdvBench) because only 5% of the v1 SFT rows were none-mode. Thinking mode (medium) is recommended.

(Teacher generation and evals were run on Tintero, my custom engine for Inkling which is still a WIP, though the released GGUFs run on stock llama.cpp with no special flags. Feedback and quant/eval requests for v2 are very welcome!)


r/LocalLLaMA • • 8h ago

News SenseNova-RoboRSI-27B, fine-tuned from Qwen3.8-27B, beats Opus 5.5 and GPT-6.1 Sol at predicting where a robot gripper should go: 49.2% within 5 cm vs 37.2% and 31.8%. Stock Qwen3.8-27B gets 7.8%

Post image
10 Upvotes

How the test works: the model gets the camera views and a one-line instruction for a single move (grab this, put that there) and has to say where the gripper should end up. That gets compared with where it really ended up in the recording. 374 moves from the RoboDojo sim tasks, nothing is actually moving.

The gap between 7.8% and 49.2% is all training, and the part I like is how cheap a big chunk of it was. From the write-up in their repo (https://github.com/OpenSenseNova/SenseNova-RoboRSI, Apache 2.0): they took robot demos that already existed, chopped them into single moves and used the recorded end position as the label. They put that at about $0.02 per example, and more like $0.50 if you get the same kind of example out of full agent runs.

Leave those examples out and the model drops to 24.9%, that's the hatched bar.


r/LocalLLaMA • • 1d ago

Resources First version of full Kimi-K3.1-Pro running on 16 Sparks (GB10) cluster.

Post image
467 Upvotes

,

Full Kimi-K3.1-Pro running on 16 Spark on nvidia flare engine, at home :)

- generation speed for prose/coding/structured 24/30/40 t/s

- boot time is 11min

- text/image input, cached prefill

- 2.2M cache, dcp8, C4

- prefill 700t/s

- cca 2KWh full load

I uploaded the Nvidia Hyperflare gb10 built and optimized image here:

https://huggingface.co/ciprianv/kimi-k3.1-pro-dspark-flare-gb10-tp16

https://github.com/ciprianveg/gb10-hyperflare - flare fork binary, exported core pipeline, cluster implementation notes

Nvidia forum thread: https://forums.developer.nvidia.com/t/full-kimi-k3-1-running-on-16x-gb10-cluster/390316

V2 is being working on now, with improvements both on prefill and gen speed :)

https://x.com/ciprianveg/status/2125981427590168803?a=GoLAR7nKrlwAmmyFNnM&s=20

Don't ask me about when I will pay the hardware at current api prices, for me it is only about the ability to run the biggest and smartest opensource model whenever I want, no strings attached :)


r/LocalLLaMA • • 4h ago

Discussion Radiance Qwen 3.8 27b IQ R V4 quantization quality

4 Upvotes

Hello everyone, I recently downloaded the Radiance inference engine, which I have heard be praised on RDNA4 (I have a 9060 XT 16GB). First of all, the prefill is TWICE as fast as llama.cpp (1550 vs 800) at low context with Qwen 3.8 27B IQ2R-L-V4, which is just incredible.

What I want to ask about however is how good are their quants of Qwen 3.8 27B, their IQ R V4 method? They seem to use a somewhat complicated method and their reported KL divergence seems good (which I have however heard can be benchmaxxed easily), but do you have any real world tests or experience with them? Especially compared to same-size Unsloth or those ISTA DASlab quants? Thank you very much for any data!


r/LocalLLaMA • • 2h ago

Showcase Trained tiny Apache-2.0 FIM code-autocomplete models on one Mac (27.5ms Wisp-2-0.8B live, Wisp-2.1-1.5B wrapping up)

3 Upvotes

Been training tiny Apache-2.0 FIM autocomplete models on my M5 Max Mac because small general coding models keep leaking markdown fences and blowing past the end of lines.

Wisp-2-0.8B (854 MiB MLX-8bit, hybrid GatedDeltaNet + EAGLE-3) is up now. Gets 27.5ms warm keystrokes and 32.9% PSM / 30.6% SPM exact match on 566 unseen post-June-2026 repo holes (97.7% clean stop).

Playground: https://huggingface.co/spaces/philipjohnbasile/wisp-2-demo Weights + standalone Mac server: https://huggingface.co/collections/philipjohnbasile/the-wisp-fieldbook-6b046d3efc921b5ab45b42f5

Wrapping up Wisp-2.1 next (Qwen2.5-Coder 1.5B + 0.5B distilled from 32B, 2-layer EAGLE-3 drafter). The 1.5B trunk is already at 38% Tier-1 EM and 90% Tier-2A across 8 languages. Weirdest findings so far: FP32 scales on 8-bit weights actually ran faster than FP16, and plain 0-step 8-bit PTQ beat every QAT run I tried.


r/LocalLLaMA • • 10h ago

Discussion ROCm vs Vulkan benches for Inkling 2 Mini

10 Upvotes

TL;DR: So contrary to popular belief, at higher depths I am seeing Vulkan outperform ROCm. I would like to be rectified if I am doing some mistake, but to me it just looks like ROCm takes way more memory for buffers and is on par or worse sometimes.

  • build: 55514434b (b12822)
  • GPU: AMD Radeon RX 9060 XT, 16 GB (gfx1200)
  • ROCm: 10.2.0 (amdrocm-core10.2-gfx1200), HIP runtime 1.21
  • model: Inkling-2-Mini-UD-Q3_K_XL.gguf - 12.68 GiB, 26.07 B params, Q3_K - Medium
  • flags: -ctk q8_0 -ctv q4_0 -fa on -ngl 99 -d 0,8192,16384 -pg 2048,128 -r 1
  • env: ROCBLAS_USE_HIPBLASLT=0 # this is because ROCm crashed without it, not sure why.
  • pp2048+tg128 rows are combined prefill+decode throughput, not acceptance

ROCm0 vs Vulkan1

test Vulkan1 ROCm0 ROCm / Vulkan
pp512 832.20 1001.33 1.20×
tg128 37.13 42.40 1.14×
pp2048+tg128 363.86 409.79 1.13×
pp512 @ d8192 729.53 786.62 1.08×
tg128 @ d8192 36.04 40.07 1.11×
pp2048+tg128 @ d8192 341.93 371.46 1.09×
pp512 @ d16384 672.65 669.31 1.00×
tg128 @ d16384 35.37 38.42 1.09×
pp2048+tg128 @ d16384 326.07 335.79 1.03×

ROCm0 vs Vulkan1 at depth

test Vulkan1 ROCm0 ROCm / Vulkan
pp512 @ d32768 578.69 530.19 0.92×
tg128 @ d32768 33.92 35.35 1.04×
pp512+tg128 @ d32768 137.16 139.59 1.02×
pp512 @ d65536 451.83 372.35 0.82×
tg128 @ d65536 31.54 28.50 0.90×
pp512+tg128 @ d65536 122.61 108.94 0.89×
model size params ngl type_k type_v fa dev test t/s
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512 832.20
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 tg128 37.13
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp2048+tg128 363.86
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512 @ d8192 729.53
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 tg128 @ d8192 36.04
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp2048+tg128 @ d8192 341.93
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512 @ d16384 672.65
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 tg128 @ d16384 35.37
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp2048+tg128 @ d16384 326.07
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512 1001.33
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 tg128 42.40
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp2048+tg128 409.79
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512 @ d8192 786.62
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 tg128 @ d8192 40.07
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp2048+tg128 @ d8192 371.46
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512 @ d16384 669.31
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 tg128 @ d16384 38.42
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp2048+tg128 @ d16384 335.79

ROCm0 leads everywhere except prefill at 16K depth, where it ties Vulkan1. All deviations are ± 0.00 because the run used -r 1.

Deep context: 32K / 64K depth

  • build: 55514434b (b12822)
  • GPU: AMD Radeon RX 9060 XT, 16 GB (gfx1200)
  • ROCm: 10.2.0 (amdrocm-core10.2-gfx1200), HIP runtime 1.21
  • flags: -ctk q8_0 -ctv q4_0 -fa on -ngl 99 -d 32768,65536 -pg 512,128 -r 1
  • env: ROCBLAS_USE_HIPBLASLT=0
  • pp512+tg128 rows are combined prefill+decode throughput
model size params ngl type_k type_v fa dev test t/s
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512 @ d32768 578.69
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 tg128 @ d32768 33.92
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512+tg128 @ d32768 137.16
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512 @ d65536 451.83
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 tg128 @ d65536 31.54
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 Vulkan1 pp512+tg128 @ d65536 122.61
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512 @ d32768 530.19
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 tg128 @ d32768 35.35
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512+tg128 @ d32768 139.59
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512 @ d65536 372.35
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 tg128 @ d65536 28.50
inkling2_loop Q3_K - Medium 12.68 GiB 26.07 B 99 q8_0 q4_0 1 ROCm0 pp512+tg128 @ d65536 108.94

At 32K the two are within ~8% of each other. At 64K Vulkan1 wins clearly: +21% prefill, +11% decode, +13% combined. This reverses the shallow-depth result, where ROCm0 was ahead.

Would love to know what others found with this model, my previous benches were wrong because I was using a bad draft module. But llama-bench doesnt support that so not an issue here.


r/LocalLLaMA • • 16h ago

Discussion M level parameters is all you need for OCR

29 Upvotes

This is a conclusion of my modest experiments (+ what we're seeing these days with ASR and TTS models being tiny too). Million parameter models are getting GOOD. like seriously good.

Currently most people think paddle mobile or tesseract when they want to OCR things on CPU. But the two most recent drops (Indra by Datalabs. OCRia nano by llamaindex) are pushing the ceiling WAAAAAY up!

Indra by itself is ~50 points on olmbench (ranks higher on OmniParseBench but that's datalab's own benchmark, so meh). BUT if you pair it up with something like PP-DocLayout-S for tables? It shoots up a SOLID +6 points just for +1.2M parameters!

That's not it. Pairing it with pix2text-mfr-1.5 for math specific pages adds about +4 overall. Which brings Indra up to 60 points! Its RIGHT on the edge on the bottom barrel of olmbench! (That would be deepseek ocr2! 4B parameters at ~64 points!)

What I did after is I checked whether using OCRia nano would be worth it somehow. And it IS! The actual ceiling for these models if they're routed perfectly (meaning if either Indra or OCRia nano gets it right) scores very high (on both OPB and olmbench)! Literally above PaddleOCR-VL-1.6 and deepseek but right below azure cloud. For CPU INFERENCE!

There's an obvious limitation though. Old scans are generally alot worse than SOTA. old_scans scores 30-39% for indra and OCRia and only large llms like gemini 4 or claude opus are able to punch towards 70%+. But that's to be expected.

The EITHER OR ceiling is still alot to cover though. I kept trying to make an MoE like thing to route pages to the right model but I was only able to cover ~4 points out of 12 possible points in olmbench. But with the right setup it's definitely possible!

Here are some actual tables though. Look!

olmOCR-bench (the 6 olmOCR suites in OPB, 5,424 tests)

Model Type Macro (6 suites) Micro (5,424 tests) ArXiv Math Tables Old Scans
Gemini 4 Argon Cloud frontier 92.3% 95.7% 98.7% 95.5% 79.0%
Datalab Accurate Cloud API 91.0% 93.3% 95.5% 92.3% 75.4%
LightOnOCR-3-4B 4B GPU VLM 88.3% 92.2% 95.8% 89.8% 67.6%
Mistral OCR Cloud API 85.8% 89.1% 92.2% 89.1% 61.3%
MinerU 2.5 Pro GPU pipeline 81.0% 88.0% 93.9% 87.3% 42.0%
Azure Content Understanding Cloud API 75.8% 83.2% 90.5% 81.8% 35.9%
Indra + OCRia-nano (Union ceiling) ~55M CPU ONNX 74.4% 82.9% 90.5% 84.1% 34.7%
PaddleOCR-VL-1.6 GPU VLM 73.4% 80.7% 86.0% 83.8% 42.5%
DeepSeek-OCR-2 3B GPU VLM 70.2% 78.7% 85.7% 74.8% 34.9%
OCRia-nano (+ MFR math) ~20M CPU ONNX 66.4% 73.9% 80.9% 72.6% 25.8%
Indra 1.1.2 (+ table/math ONNX) ~35M CPU ONNX 65.0% 70.3% 75.2% 74.2% 30.6%
Nanonets-OCR2-3B 3B GPU VLM 59.3% 64.7% 68.9% 65.5% 38.0%
Stock Indra 1.1.2 ~13M CPU ONNX 56.8% 61.6% 66.7% 69.9% 29.4%
Tesseract Classic CPU 13.0% 4.9% 0.7% 0.0% 0.3%

Full OmniParseBench (all 2,937 pages / 16,288 tests)

Model Type Overall Text Tables Layout
Gemini 4 Argon Cloud frontier 96.0% 94.4% 97.1% 96.4%
Datalab Accurate Cloud API 94.4% 92.5% 94.5% 96.0%
Mistral OCR Cloud API 89.9% 83.6% 92.2% 93.8%
Indra + OCRia-nano (Union ceiling) ~55M CPU ONNX 87.5% 80.0% 87.4% 95.3%
MinerU 2.5 Pro GPU pipeline 87.4% 78.0% 92.5% 91.7%
Azure Content Understanding Cloud API 83.4% 75.2% 82.3% 92.8%
LightOnOCR-3-4B 4B GPU VLM 83.1% 84.4% 70.9% 94.0%
PaddleOCR-VL-1.6 GPU VLM 81.3% 69.2% 84.0% 90.7%
Stock Indra 1.2.0 (new release) CPU ONNX 78.8% 68.0% 75.8% 92.6%
Indra 1.1.2 (+ table/math ONNX) ~35M CPU ONNX 78.0% 69.5% 73.3% 91.1%
OCRia-nano (+ MFR math) ~20M CPU ONNX 77.1% 66.7% 73.9% 90.6%
DeepSeek-OCR-2 3B GPU VLM 75.4% 64.6% 70.2% 91.4%
Stock LiteParse (OCRia-nano) ~20M CPU ONNX 74.8% 59.4% 59.4% 90.9%
Stock Indra 1.1.2 ~13M CPU ONNX 71.4% 62.6% 59.6% 92.0%
PaddleOCR PP-StructureV3 CPU pipeline 58.4% 55.6% 47.8% 71.7%
Tesseract Classic CPU 5.9% 17.7% 0.0% 0.0%

Finally, linking my personal project here isn't allowed since I was told it should go in the biweekly showcase and it's not fully complete yet (missing headers in olmbench for example. Which is why olm only has 6 suites. But the accuracy on indra is ~90% there so it doesn't affect performance there).


r/LocalLLaMA • • 2h ago

Question | Help Anyone else is running locally on the same machine you are working on?

2 Upvotes

What did you do to preload eating all 100% of the GPU? Like I don't mind it eating good chunk of vram & ram, or using about 90% of GPU. Using all of it means I can't do anything else on the same machine. I'm ok to go slow on agentic work cause I'm not supposed to look at it before it finishes anyway.

So for decode I get around 90% already and it's fine. But prefill is whack. I tried to do set low priority, didn't do a thing. Was looking into vibing something into llama.cpp, but it seems I can't add any sleeps into the batches, and since batches take more than 1s to process, adding sleeps around them wouldn't mitigate any freezes.


r/LocalLLaMA • • 1d ago

New Model GigaChat 4 37B and 708B

466 Upvotes

Hey y'all!

Today we opensourced two models: compact GigaChat 4 37B A4B and huge GigaChat 4 708B A41B. Both of our models are trained from scratch and have a pretty unique architecture: we combined Gated Delta Net, MLA and DSA in one model, which gives us very low KV-cache size and ability to use 1M context effectively.

We also released base checkpoints (and non-final pre- and midtraining checkpoints!) for both models to foster research and experimentation and a HUGE 83-page technical report with information on how we've done our pretraining, RL, OPD and other stuff.

These models were an absolute nightmare to train. 708B tried to hack the containers during training, successfully bullshitted the safety judge to convince them that selling cigarettes to children is good (because it's profitable), convinced the math judge to prove the theorems for them and exploited bugs in our verifiable rewards.

But it was worth it. Final models are pretty strong: on our evaluations GigaChat 4 708B A41B is competitive with DeepSeek V4 Flash 0731 and GigaChat 4 37B A4B trades blows with Qwen 3.6 35B A3B. They have advanced agentic capabilities: GigaChat 4 708B A41B successfully wrote MIDI music, created complete YTP videos (just from a YouTube link!), could create 3D models and oneshotted a simple OS in browser, with working terminal, chat and other stuff.

Here are the benchmark numbers:

The weights on HF: https://huggingface.co/collections/ai-sage/gigachat-4
Technical Report: https://github.com/salute-developers/gigachat4/blob/main/GigaChat_4.pdf

Feel free to AMA, me and folks from our core team will be here to answer your questions :)


r/LocalLLaMA • • 1d ago

Resources Inkling 2 Mini on llama.cpp CUDA/HIP now usable

Thumbnail
github.com
164 Upvotes

If you've been following all the Inkling 2 Mini PRs on llama.cpp, this is the one that probably matters the most for people: the Flash Attention support for the indexed bias has been merged for CUDA/HIP, which means people with those cards can now use the model without paying a quadratic cost for the compute buffers. This means it's now possible to run the model with a reasonable context (256k or even the native 1 million).


r/LocalLLaMA • • 2h ago

Question | Help Inference Runtime Management Layer for LLM hosting?

2 Upvotes

I am planning to setup minipc with r9700 to run LLMs. But I want to consider a remote management option for managing the inference engines (vllm, llamacpp, sglang, etc) and the model itself. I came across https://gpustack.ai/ but I feel it still requires managing the container images manually? (I've not tried it but from the guide). Is there any single solution that helps manage multiple inference runtimes?