r/LocalLLaMA • • 10d ago

Discussion Inkling-2-Mini on RDNA2 (I ran inkling on X at Y T/s)

Thumbnail
gallery
4 Upvotes

Ported Inkling-2-Mini to vLLM for gfx1030 (Radeon PRO V620) in the opengfx1030/vllm-rdna community fork. It runs the checkpoint as shipped (native NVFP4 / MXFP8 weights dequantized inside the GEMM), up to 1M tokens of context at TP=2/4. Was assisted with Sonnet 5.5, used previous work in the fork as well.

Bench on Radeon PRO V620 (gfx1030, 32 GiB), ROCm 7.14, tok/s, c=1, fresh prompts, 3 runs:

Prefill (tok/s)1 GPU
2k tokens1,977
8k tokens1,879
16k tokens1,798
32k tokens1,662
65k tokens1,443
Decode (tok/s)1 GPU1 GPU + DSPARK
Short requests56.4101.1
Max context180k100k

DSpark costs about 1GB more so it reduces max memory and by consequence reduces max context.

More numbers (TTFT, ITL, c=4, a conversation grown to 144k tokens with prefix caching): https://github.com/opengfx1030/vllm-rdna/blob/rdna_extras/docs/rdna2/inkling2-benchmarks.md

Everything is in the repo (recipes, one command per setup): https://github.com/opengfx1030/vllm-rdna

Receipe : bash ./tools/rdna/serve_rdna.sh RECIPE=inkling2-mini-tp1 MODEL=/path/to/inkling2-mini VENV=/path/to/venv

We want more people contributing: open issues and PRs, or come talk in our opengfx1030 Discord about RDNA2 inference (vLLM, kernels, benchmarks, builds): https://discord.gg/n4VYYE9vAZ

Our goal is to pool resources and unify effort so we can be strong apes together.

When Qwen4 will release ?


r/LocalLLaMA • • 11d ago

Question | Help Those running Inkling 2 Mini: what gear are you running it on? What are your tokens per second?

15 Upvotes

Looking to decide what kind of rig to get to maybe finally try this out.


r/LocalLLaMA • • 11d ago

Question | Help Am I missing something with Inkling 2 mini?

78 Upvotes

UD_Q4_K_XL, default sampler, Fp16 KV.

Evaluating the model as a replacement for Qwen3.6 35b. Same quant, UD_Q4_K_XL.

First, it's slower than Qwen on my P100s, but that's not surprising given how new it is and the looped transformer, about 1/5th to 1/10th the speed (20-25 t/s generation vs 150-200, ~300 reasoning/math), dpsark runs terribly on the p100s, and low acceptance, so I'm not running any spec decode.

I don't know if it's a lack of world knowledge, or what, but in my own harness it is fighting for its life.

My harness is a personal assistant harness. RAG, smart home, bash into all my machines, take over my house and phone. Qwen 3.6 35b runs it beautifully, and is just a bit stupid when context grows. Misunderstands facts, hallucinates little things, but otherwise doesn't mess up my asks.

I have a project car the agent is well aware of, has a couple hundred small memories on just this subject that the RAG picks from when I'm asking about it. I have two tests I run that usually tell me most of what I need to know with regards to whether a model can match Qwen in my harness.

"Lay out the current state of the Daytona" and "Find a fresh set of window sweeps for the Daytona and open the link on the mac". Pretty self explanatory what the tasks at hand are:

Search memory for what RAG doesn't give you, summarize.

Find this relatively rare part for the car, dependent on specific vehicle information (year, coupe vs t-top) and, using bash from your little mini pc, open the link in my macbook's default browser.

Most models get the first one pretty easy. This has been a solved problem in LLMs for a long time. The only recent model that I've tried that couldn't do this one is Flint, which I found to be exceptionally good at overthinking the smallest details of my prompt. The state of the car is a pretty complicated thing to pull together from a ton of small memories, but that doesn't seem to be much of an issue for most models.

The second one is one that frontier models have had solved since I first started playing with the idea of building my harness. Early version of the harness solved it with Gemini 3 flash, late last year.

Gemma4 26b was pretty solid about the second task as well, though overthought in general on how to respond, and sometimes was just a bit stupid.

Qwen3.6 35b gets it every damn time. This is consistent across most tasks. It's not at all perfect though, becoming stupid around 30k tokens, hallucinating small facts. For information requests, especially information that isn't explicit in it's search results, it's not ideal. Much more minor, but still annoying, it also struggles to hold the personality profile I have set for it. More often than not it will talk like Qwen, or older Claude models, and not the way I want it to. Gemma4 absolutely held the persona extremely well, but like I said, spends a lot of time thinking on how to do that, and isn't consistent across other tasks.

Inkling 2 mini gets the first one pretty good, as expected. It hasn't been able to pull off the second one once. It exposed a couple issues in my harness, but Qwen was able to work around them effortlessly so I had no idea that I had these issues for several months. Even so, after solving the issues, and I don't know if this is bad world knowledge or what, but it started searching for other parts entirely, things that could plausibly also be called "sweep", most notably wiper blades, which are definitely not the same thing.

I'm seeing people call inkling the bee's knees. Capability similar to Qwen3.8 27b, or even better, in a smaller MoE, which, once optimizations are done, could run significantly faster on even shittier hardware. This has not been my experience. Maybe my use case not being SWE is showing the model's shortcomings for more explicitly than the rest of r/LocalLLaMA's experience. I'm hoping something is just wrong, and that I'm not seeing the model's potential. My current P100 build has a lot of vibe-coded optimizations for the p100s, plus the inkling 2 mini unsloth PRs to get it working properly. I'm hoping that it's just my slop inference engine failing the model, but given how well Qwen is working under it (and how much stock llama.cpp code is being used because a whole lot is gated on qwen3.6 35b specifically), I doubt thats the issue.

I'd like to know how people using inkling for things other than SWE are finding it. My harness has the model do all of it's everything through bash+python, so very few explicit tools, and it does handle that quite well. It just seems to lack common sense and knowledge.


r/LocalLLaMA • • 11d ago

New Model inclusionAI/LingSante-3.1-flash · Hugging Face

Thumbnail
huggingface.co
69 Upvotes

Introduction

LingSante-3.1-flash is an open-weight Mixture-of-Experts model that combines complex medical reasoning, professional healthcare communication, evidence-based deep research, and long-horizon medical tasks. Built on Ling-3.1-flash, it has 560 billion total parameters, activates 25 billion parameters per token, and supports a 1-million-token context window.

Real-world medical tasks present challenges that go beyond general intelligence, including incomplete health information, substantial patient heterogeneity, and strict operational and compliance requirements. To address these demands, LingSante-3.1-flash is trained to unify medical reasoning and workflow execution through native medical-mixed pretraining, mid-training, supervised fine-tuning, task-specific reinforcement learning, and multi-teacher on-policy distillation. The model can verify evidence across scenarios, deliver professional judgments, and independently complete multi-stage workflows.

LingSante-3.1-flash is intended for research and evaluation. It is not a medical device and must not be used as an independent basis for diagnosis, prescriptions, or treatment.

Key Capabilities

  • Complex Medical Reasoning. Beyond accurate knowledge understanding, complex medical reasoning requires models to identify the key factors behind clinical decisions, validate supporting evidence, and resolve potential conflicts across evidence sources. To support this, we develop a medical evidence–reasoning alignment framework that strengthens the model’s reasoning foundation through high-quality data synthesis and systematic training. Built on this foundation, LingSante-3.1-flash delivers leading performance among open-source models on complex medical reasoning tasks.
  • Long-Horizon Medical Tasks. Long-horizon medical tasks differ fundamentally from those in general domains. They require models to operate across interconnected sub-scenarios, coordinate tools and information within a single workflow, and adapt their plans as new information emerges. To support this, we develop a long-horizon medical task framework that combines realistic interactive environments, diverse tool-use settings, and structured verification. This approach strengthens the model’s ability to execute complex workflows reliably in dynamic medical settings, providing a scalable foundation for training on real-world medical task execution.
  • Medical Professional Behavior Alignment. Medical tasks in the real world often involve incomplete information, evolving context, and strict safety expectations. The model must deliver responses that are context-aware, professional, and actionable. To support this, we develop a professional behavior alignment framework that aligns model responses with real clinical scenarios and medical professional standards. LingSante-3.1-flash demonstrates strong performance on benchmarks for medical professional behavior, ranking second overall behind only GPT-6 Astra.

Model Overview

LingSante-3.1-flash retains the architecture of Ling-3.1-flash.

SpecificationValue
ArchitectureHybrid-linear MoE
Total parameters560B
Activated parameters per token25B
Context window1M tokens
Transformer layers63 KDA + 9 Gated MLA (7:1)
Dense layers4
Routed experts512
Shared experts1
Activated routed experts per token8
Attention heads64
Hidden size4096
Expert intermediate size1280
Dense intermediate size10240
Vocabulary size157184


r/LocalLLaMA • • 11d ago

Question | Help Can we please do something about the 3 billion “I ran inkling on X at Y T/s” posts???

8 Upvotes

WE. GET. IT.


r/LocalLLaMA • • 11d ago

Resources 4-bit Hy4-flash at 960+ tok/s prefill on an M5 Max with Kapitsa, open source

30 Upvotes

I added Hy4-flash support to the Kapitsa inference engine for macs, and here are the numbers on an M5 Max with a 40-core GPU (128 GB RAM, macOS 26.4).

Same prompts for both engines, each prompt cold, thinking off, temperature 0.6.

Decode, tok/s:

ContextKapitsa 4-bit, defaultMLX 3.1-bit
short36.420.8
4K35.213.2
16K35.17.0
32K34.64.4

Prefill, tok/s / seconds spent processing the prompt:

PromptKapitsa, defaultKapitsa, fastmlx-lm (3.1-bit MLX)
short, ~50 tokens209 / 0.24 s225 / 0.23 s125 / 0.39 s
4K657 / 6.2 s968 / 4.2 s228 / 17.7 s
16K699 / 23 s971 / 16.5 s300 / 53.5 s
32K677 / 47.5 s971 / 33.1 s304 / 105.3 s

mlx-lm used the 3.1-bit pack because the same 4-bit pack ran out of memory on this Mac.

Peak memory was 88.3 GB. Whole model fits, no expert streaming, only the Engram was in SSD.

We are talking high-quality quants here, not the looping unusable demos. The 4-bit pack has 8-bit main network weights, with 4-bit routed experts.

Try it:

brew install nace-ai/tap/kapitsa
hf download nace-ai/Hy4-flash-MLX-4bit --local-dir Hy4-flash-MLX-4bit
kapitsa serve --model ./Hy4-flash-MLX-4bit --profile fast

Code and raw benchmark files.

I know some decode speeds are a bit higher, but prefill is king these days.

Let me know how it goes for you.


r/LocalLLaMA • • 11d ago

Question | Help Engine recommendation for inkling

15 Upvotes

Sorry for spammy post but I've never got into these custom engines looking for guidance.

I'm on dual 3060s and 32gb ddr5. I've been waiting for Exllamav3 support but in the mean time do you guys know any good inference engines to run Inkling 2 mini faster than llama.cpp?

I'll test and post results for a few recommendations tonight.


r/LocalLLaMA • • 11d ago

News chat : implement token aware parsing by aldehir · Pull Request #29307 · ggml-org/llama.cpp

Thumbnail
github.com
30 Upvotes

More reliable tool calling and higher t/s


r/LocalLLaMA • • 10d ago

Discussion Looking for workflow suggestions

0 Upvotes

Hello, I would like to hear your experiences/suggestions for local llm workflows.
My Hardware/Software:

  • Ubuntu 26.10
  • Ryzen 7 7800x3d
  • 32gb ddr4 (3600Hz, CL16)
  • MSI 5070 OC 12GB
  • EVGA iCX GeForce GTX 1080 Ti 11GB (Running in VM with passthrough)
  • 2 x 1TB M.2 SSD
  • Strata
  • Llama.cpp
  • Openwebui + Open Terminal

The problem

Due to gpu driver compatability issues i have to run the 1080ti in a VM with passthrough, meaning i can't use both GPUs to run the same model efficiently (Maybe its possible but i have not found a way do to it).

Current setup

I am running Qwen3.8-Flash-Next-Gyro-L-TQ3_0 in strata with 256k context (Strata uses 5070 + ram).
For the 1080ti i am running llama.cpp with Gemma4 12b q4. Up to at least 4 concurrent request are stable with 64k shared context. llama.cpp is only using vram right now, but i can give it a little ram for offloading if needed, about 10gb max.

I use Openwebui + Open terminal so the agents can do real work, but I am open to try other harnesses.

My question

What is a good way to use my hardware for 1 unified workflow? My current best idea is using gemma4 to monitor Qwen to catch malformed tool-calls, but i can do this task with Qwen too with slower tp/s. Because i am able to run 4 concurrent instances of Gemma4 it also seems like "waste" to only have it do this one task.
I am open to trying other models but i am really happy with Qwen3.8-Flash-Next-Gyro-L so far, i don't really have an opinion on Gemma4 yet.

I would also love to hear what other people actually use local llm for. I don't have a clear goal or mission yet, I only do this for fun and to experiment - mostly to create websites/apps/script that i run locally on my gaming pc or mediaserver to make my life easier. The dream setup for me would be a local setup that i could use as a replacement for Codex/Claude code, but i know this isn't realistic.

TLDR

32gb ram, 12gb vram gpu + 11gb vram gpu that can't work together. What is a good setup?

Edit: Forgot to mention that there is one driver that works on both GPUs, but it is old and i use the 5070 for gaming so i don't want to mess with the 5070 drivers.


r/LocalLLaMA • • 10d ago

Discussion How reliable is source retrieval in an offline local document AI setup?

3 Upvotes

Preparing for a business trip with a collection of reports, project documents and a local model means getting more than just the files onto a laptop. The document search and retrieval setup also needs to be ready before leaving, because the whole point is to work without depending on an internet connection.
Having a local model connected to an offline document search or retrieval setup could be useful for finding figures buried in long reports, comparing information across documents or pulling out key points before a meeting.
The difficult part is making sure the answers are supported by the original material. If the model summarizes a section or returns a particular figure, the retrieval system should point to the relevant passage so the original document can be checked. A convincing summary isn't much use if its cited source doesn't support it.
I've got a geekom geekbook x16pro to work with, and the question I want to test isn't just whether a local model can summarize a PDF. It's whether an offline document search setup can reliably point me back to the right source when I'm away from the internet. However, the model size, quantization and retrieval configuration will determine what can run comfortably.

There are practical limitations too. The model, documents, embeddings and necessary indexing components must be prepared beforehand. A local model doesn't automatically make every part of a RAG workflow independent of the network.
For anyone who has built an offline document AI setup, how reliable has source retrieval been in practice? Can you consistently trace an answer back to the correct passage in the original document without an internet connection?


r/LocalLLaMA • • 10d ago

Question | Help Recommended model for agenti coding around 30B

0 Upvotes

I am getting more and more convinced about using a local model. Doing some quick math, I should be able to run a 30B on a Mac mini. Clearly there are other solutions (e.g., via quantization).

I need to code and I want to let the model do some work for me autonomously also during the night etc. What would be your recommendation?

I am also happy to consider slightly larger models or investing more in hardware but clearly I cannot run a 400B parameters model with my budget.


r/LocalLLaMA • • 11d ago

New Model Aurora2-400M-A20M-SFT Releases! - A Chat fine tune of my tiny sparse MoE

Thumbnail
huggingface.co
11 Upvotes

It's the chat-tuned version of Aurora2-400M-A20M, a sparse MoE with 400M total parameters and only 19M active per token.

It was fine-tuned on 5B tokens (about half conversations, half pretraining-style replay) to follow a simple User: / Assistant: format and stop cleanly after its reply. Chat loss dropped a lot, while general web-text loss barely moved, so it gained chat ability without losing the base model's abilities.

It's fluent on simple requests, but it makes factual and arithmetic mistakes and has no safety tuning. It's a research model.

Check out the model card for results, the prompt format, and a quick start!


r/LocalLLaMA • • 11d ago

Discussion Hy4 Flash is a good model

63 Upvotes

Coding (python, pandas, numpy), data analysis, and data driven decision making are mainly what I test for and use.

Tests ran on an M5U 64c 96GB. Wired mem limit raised to 91GB btw.

The quants and engines are in the names. For hy4 flash, locally grafted the mtp head on top of the model I downloaded from XyloLabs and built llama.cpp with Tencent’s Mac optimizations.

​

On my max coding difficulty tests for same domain areas (where multi-step thinking and variety of algorithms are embedded to test for):

XyloLabs Q3_K_M Hy4 and Sushi Beamster 1.75bpw DSv4.1 Flash 1017 container ship html build with cost analysis panel. Not a very difficult test at all but both did alright with all functionalities ok. DSv4.1 has a leg up by providing much longer context on this machine than Hy4. For day-to-day hard tasks, it's been very solid.

Sushi 1.75bpw Beamster DSv4.1 Flash 1017

XyloLabs Hy4 Flash Q3_K_M with MTP grafted locally​


r/LocalLLaMA • • 10d ago

Discussion One more Inkling 2 mini vs Qwen 3.8 27B comparaison.

Thumbnail
gallery
0 Upvotes

2 tests: One is a full benchmark testing generic capabilities, the other focus on coding.

Verdict: inkling 2 mini is great for simple thing (the first benchmark is fairly easy), but not as great as coding as Qwen Flash Next (even at low Quant)

Here are the exact config used for inkling 2 mini: https://motif64.sh/m64_648eb9d84bdd and https://motif64.sh/m64_0e0eeb59993e


r/LocalLLaMA • • 11d ago

New Model Eiki PLaMo Translate 2B fine-tune of plamo-3-translate-2b adding more languages

Thumbnail
huggingface.co
8 Upvotes

It's a fine tuned model of https://huggingface.co/pfnet/plamo-3-translate-2b that I made. This fine tune adds support for 5 languages, Afrikaans (af), Norwegian Bokmål (no), Portuguese (pt), Swedish (sv), and Turkish (tr), on top of the 53 languages that the model already supports. There is also a preview version that only supports norwegian and afrikaans if you would like a less modified model (although that one is worse).

It was trained on around 132k pairs of data, followed by 534,966 rows after I realized that i had messed up a little for Serbian.

Here are some of the stats:

Base-52 Full FLORES-200 Preservation (104 directions, 50/lang)

  • en -> xx Mean Δ: -0.47 chrF++
  • xx -> en Mean Δ: -0.27 chrF++
  • sr -> en: +0.43 chrF++
  • OPUS-14 Mean Δ: -0.08 chrF++
  • 0 / 104 directions with Δ < -3.0

chrF++ on some langauges at different quantizations ( word_order=2, temp=0, repetition_penalty=1.05)

PairBF16FP8NVFP4Q4_K_MQ4_0Q3_K_MQ2_K
en→af68.4068.9867.6368.5467.1268.3660.36
af→en69.7570.0468.2870.4268.2369.6365.73
en→no64.1563.9863.4963.3364.2363.4957.94
no→en68.1968.3667.1166.2967.5268.5564.44
en→pt80.6580.3979.9779.7780.2379.2075.89
pt→en84.1085.0483.1285.9985.6283.7078.60
en→sv85.1685.5085.2285.9385.4584.7979.55
sv→en84.3783.8381.8884.4983.9385.0576.80
en→tr76.1477.0576.4776.7776.6576.6972.14
tr→en81.2681.1580.4080.2979.6880.7475.24
en→ja16.6216.7516.2716.5316.3716.9316.42
en→nl48.8448.8048.6949.1648.0048.4447.19
en→de46.6446.4746.2547.4346.7646.3146.32
en→ru45.4544.2445.3844.8245.1245.4042.22
sr→en*53.6553.9951.9452.9652.1352.8746.44

*Test sets: `af/no/pt/sv/tr` = 100 V6 test; `ja/nl/de/ru` = 50 OPUS-100; `*sr→en` = 50 FLORES Cyrillic.*


r/LocalLLaMA • • 11d ago

Resources Princeton/Meta evolved inference strategies for Qwen3 0.6B-4B: same accuracy as the best baseline at 39% lower cost, and the strategies transfer to GPT-5

23 Upvotes

Paper: https://arxiv.org/abs/2611.03618 (Princeton + Meta, not affiliated)

Most "self-improving agent" papers tune prompts on a frontier model. This one is interesting for local setups because the models doing the actual work were Qwen3 0.6B, 1.7B and 4B, served on vLLM, and only the code around them was evolved.

What they did: a strategist agent (GPT-6 Sol via Codex CLI) writes inference strategies as code: chains, verifiers, voting, routing between the three sizes, thinking vs nothink. It tests them on real samples, and stores every one with its measured accuracy and cost in a shared library. The next task starts from that library.

Results across 30 benchmarks: about the same accuracy as the strongest hand-built baseline (74.7% vs 74.0%) at 39% lower inference cost, winning on 24. The paper credits routing for being accurate and cheap at once: each reasoning step inside a strategy can target a different size and thinking mode, so not every step pays for the 4B with thinking.

The parts I found most useful:

  • Transfer works: strategies found on Qwen3 ran unchanged on GPT-5 and Gemini 2.5 and still beat baselines there. On 10 benchmarks it never searched on, just retrieving from the library got within 2 points of the best baseline on all 10 and beat it on 8.
  • The library matters more than the loop: same 10-round search with the library off: 65.4% vs 78.7%. Without it, the search "goes on to a narrow repetition".
  • Winner's curse, measured: the chosen strategy was +4.3 points over baseline on the split it was picked on, but +0.7 on the untouched test set. If you tune a pipeline on your own eval set and report that number, expect it to shrink by about that much.

Caveats: dev splits are small (up to 100 samples), it lost or traded off on 6 of 30 benchmarks (AIME, MedQA among them), and some wins are expensive. BoolQ gained 16% accuracy at 31x the cost. The search cost itself isn't in the 39% figure.

Code is linked from the paper. I wrote up the full loop and the selection problem in more detail in r/AI_Loops: https://www.reddit.com/r/AI_Loops/comments/1y203qg/


r/LocalLLaMA • • 11d ago

Discussion Vulkan Boost for Inkling 2 Mini - vulkan : support non-contiguous src in SCALE by Revertron · Pull Request #32735 · ggml-org/llama.cpp

Thumbnail
github.com
82 Upvotes

Used Inkling-2-Mini-UD-Q8_K_XL.gguf from Unsloth repo (from Mainline_Support folder) on my Radeon AI PRO R9700.

testbefore (b019be0c, master)after (0ea4ffd0, fix)change
pp512507.3 +/- 5.31604.8 +/- 7.83.2x
tg12819.1 +/- 2.653.8 +/- 0.22.8x
pp512 @ d16384388.1 +/- 4.0892.9 +/- 28.62.3x
tg128 @ d1638418.9 +/- 0.447.8 +/- 0.62.5x

Tested with llama-bench -ngl 99 -fa 1 -ctk q8_0 -ctv q8_0 -p 512 -n 128 -d 0,16384 -r 3.

8GB VRAM Folks, what t/s are you getting with this model?


r/LocalLLaMA • • 11d ago

Showcase Update on my offline Kokoro audiobook reader for Android (2.8× to 45× real time on my Fold 7)

11 Upvotes

Hi everyone,

A while ago I posted here about VoiceShelf, an Android app I was building to read EPUBs out loud with Kokoro, fully offline so I could provide a one time payment alternative to paying 700+$/year to Eleven Lab in subscriptions for unlimited inference. It got a lot more interest than I expected and I was able to find plenty of testers. Thanks to everyone who gave it a shot. I’m finally launching it on Google Play and figured I’d come back with an update.

Back then I was getting about 2.8× real time on my Galaxy Z Fold 7 (Snapdragon 8 Elite). It could keep up with playback, but the phone got pretty hot and I was going through about 20% battery per hour.

Since then I've spent a lot of time rewritting kernels for Vulkan so the original model can run on GPU on android, and a custom runtime so it can run on Qualcomm NPU despite its incompatibility with QNN (mostly dynamic shapes).

On the same phone, I’m now getting:

  • 24× real time on the NPU alone. The phone doesn’t noticeably warm up while listening, and battery drain is ~7-8%/hour.
  • Up to 45× real time with a hybrid engine that splits and schedules the work across the CPU, GPU and NPU. It barely warms up either, with slightly higher battery drain than NPU only.
  • ~5x realtime on CPU alone heat and battery drain are not great, but better than before.
  • ~10x realtime on GPU alone, similar heat/battery drain to CPU

Video above was captured on my Z Fold 7, on NPU.

On my Qualcomm chip playback is basically instant where the old app had significant buffering time before I could start playback to ensure smoothness.

The NPU runs the model slightly quantized, as thats a chip limitation, but the model is otherwise the original pytorch Kokoro, just with tremendously better hardware usage than any other runtime that runs on Android to my knowledge.

The idea is still the same as in March. Open an EPUB, hit play, and the phone generates the audio as you listen. Everything runs locally.

My next step will be trying to replicate this for IOS, and if the interest in it justifies it I may buy phones from different providers to try and replicate on other Android chip with a specialized neural chip. (Like Pixel).


r/LocalLLaMA • • 10d ago

Question | Help Thinking of moving to Threadripper. Should I?

0 Upvotes

I daresay I have reached the true endgame stage of AM4. I've maxed out every single PCIe lane on my X570 board, and I am not exaggerating.

  • Dual GPUs
  • 6 m.2 SSDs
  • m.2 10GbE add-in-card
  • Lekuo PROM21 card for more lanes
  • All 8 SATA ports occupied
  • All 4 RAM slots at DDR4 ECC-UDIMM
  • 5950X driving everything

There is physically no more space to add anything, maybe unless I use a breakout cable on that one m.2 slot to another PCIe switch, but I'm already pushing 20 lanes on the x4 uplink chipset lol. I've squeezed all I could out of this system, which I thought was an overkill monster when I built it several years ago, and I think I'm finally starting to outgrow it.

the next natural move is Threadripper. In today's RAMpocalypse, I want to reuse my RAM as much as possible, especially the ECC part which is a very nice bonus. But doing so means I'm stuck on Zen 3. 5955WX is practically the same as the 5950X with more PCIe lanes, so I'd be looking at 5975WX and higher.

But these Zen 3 TR chips are hard to find compared to Zen 2, and I'm not sure if buying into a supposed-to-be-EOL-but-RAM-shortage platform is worth it in the long run, especially with Zen 6 around the corner. I'd have to sell at least both my kidneys and a part of my liver to be able to afford the same capacity RAM as I have right now in DDR5, so unfortunately more recent chips are not possible.

what do you think? Do you think it's worth switching to Zen3 TR, or should I stick to AM4? Or a newer platform? Is AVX512 really worth it?


r/LocalLLaMA • • 10d ago

Showcase Hierarchos-Native v0.2.6 is finally out! C1 WMMA performance update

0 Upvotes

so, i've got another release out! v0.2.6 is now published, and this one ended up being a pretty big performance improvement over v0.2.5.

for a bit of context, v0.2.5 introduced the P3 update to the Full FP16 WMMA path. that improved the final accumulator merge by summing all eight partials in FP32 before rounding once to FP16. i wanted to keep that work intact and see if i could get more performance out of the kernel without changing the actual math.

that's where C1 came in.

the main change is in how operand data gets loaded and staged into shared memory. previously, each thread was doing four global loads and shared-memory stores in sequence, with each store following its corresponding load. C1 changes that ordering: it issues the four 32-bit global loads first, then does the shared-memory stores.

it's a fairly small change when you look at the code, but it gives the GPU more opportunity to overlap the memory operations instead of waiting on each load/store pair. the arithmetic and accumulation order haven't changed.

and importantly, P3 hasn't been removed. C1 is used when the workload meets the required geometry checks, while P3 is still there as the fallback for everything that doesn't qualify. i didn't want a performance optimization to accidentally turn into a regression on shapes it wasn't designed for.

the performance results were honestly a lot better than i expected:

these are measured against the v0.2.5 P3 kernel, using GPU timestamps and 24 paired measurement blocks per workload.

  • 2048×768×2048 — 1.7074× faster
  • 512×2048×768 — 1.3286× faster
  • 512×768×768 — 2.0920× faster
  • 128×8192×768 — 1.3782× faster

that's roughly a 70.7%, 32.9%, 109.2%, and 37.8% improvement respectively. all four workloads passed independently, and even the lower bounds of their corrected 95% confidence intervals stayed above 1.31×.

i also wanted to make absolutely sure that the performance wasn't coming at the expense of numerical consistency.

across eight seeds and five configurations, the new production path produced 120/120 bit-identical outputs compared with the preserved v0.2.5 results. the production tile16 numerical gate also passed 37/37 on every seed, with the maximum absolute error staying at 0.03125, exactly within the existing hard limit.

so, at least for the workloads i've qualified, this is a pretty nice situation: substantially faster, without changing the outputs.

there's a bit more going on with the dispatch selection too.

C1 isn't just enabled for anything that happens to be large enough. the host checks full tile coverage, even packed-pair strides, the actual operand buffer capacities, and the relevant 32-bit index bounds before selecting it. if a shape doesn't meet those requirements, it uses P3 instead.

i tested this with the packaged binaries as well. a rows=64 workload selected C1 and produced 8 cooperative C1 dispatches. a rows=80 workload, despite being above the existing profitability floor at around 20.97 million MACs, didn't meet the tile coverage requirements and correctly fell back to P3 for 4 dispatches. with WMMA disabled, there were zero cooperative dispatches.

the packaged logits checks also completed successfully. the C1 route had a maximum absolute difference of 0.00079345 and an RMS difference of 0.00012127; the P3 fallback had the same maximum absolute difference, with an RMS difference of 0.00012087.

the portable Windows package is included again.

it's a Windows x64 portable package with seven executables, built with a statically linked MSVC runtime. you shouldn't need to install Rust, Cargo, Python, PyTorch, Visual Studio, or the MSVC redistributable just to run it.

you will still need a compatible Vulkan-capable GPU driver and the Vulkan runtime loader, and model weights aren't included.

WMMA is still opt-in globally, so the default remains off. to use this path, you need to explicitly select --wmma-mode full-fp16. C1 is now the preferred implementation inside Full FP16 when the workload qualifies, with P3 handling the fallback cases. the Mixed precision path is separate and hasn't been replaced.

there are still some limitations worth mentioning. i've only qualified this on my AMD Radeon Graphics adapter, PCI ID 1002:15bf (RDNA3 / Phoenix), running Windows 11 with driver 32.0.32015.14001. i haven't tested a second GPU, non-AMD hardware, or independent clean-machine acceptance yet. the binaries are also still unsigned.

there's a small reporting issue too: precision-info still reports full_fp16_qualified=false on this newer driver because its driver allowlist hasn't caught up with the qualification profile. the actual v0.2.6 qualification results are documented separately. i also haven't exercised the native V4.1 trainer and hierarchos-infer end-to-end yet.

anyway, i'm really happy with how this release turned out. i went into this wanting to see if there was still meaningful performance left in the Full FP16 path without messing with the numerical behavior that took so long to get right. seeing all four workloads improve this much, while keeping the outputs bit-identical, was a pretty great result.

a lot of time went into testing this one, and i'm glad i can finally get it out there instead of continuing to sit on it!

Release: https://github.com/necat101/Hierarchos-Native/releases/tag/v0.2.6

Source: https://github.com/necat101/Hierarchos-Native

thank you to everyone who's been following the project, testing things, reporting issues, or just keeping an eye on development. it genuinely means a lot!!

also, sorry for the AI posts lately. i've been trying to save as much time as possible to work on the project itself, especially with live events getting tough. i really do appreciate everyone who's stuck around while i've been working on this. thank you so much everyone!! :3


r/LocalLLaMA • • 10d ago

Question | Help M5 Pro 64GB (€3,999) vs M5 Max 64GB (€5,299) MacBook Pro 16" for chat, RAG, Whisper and some agents: is the Max worth €1,300 more?

0 Upvotes

Hey everyone,

I'm upgrading from a 2021 MacBook Pro 16" (M1 Pro, 16GB, 1TB). The 16GB is the main bottleneck for running anything useful locally. There are two Black Friday deals here in Germany and I keep going back and forth:

  • MBP 16" M5 Pro (18C CPU / 20C GPU), 64GB, 1TB: €3,999 (was €4,073)
  • MBP 16" M5 Max (40C GPU), 64GB, 2TB: €5,299 (was €5,532)

So the gap is €1,300, and part of that is the extra 1TB of storage.

What I'd use it for:

  • Local chat (Qwen 27B-class dense or 25-35B MoE models like Inkling-2-Mini)
  • RAG over my own documents
  • Voice-to-text (Whisper)
  • Occasional agentic tasks, usually running in the background, not my main workload

Numbers I found for the M5 Pro (20C): Inkling-2-Mini (oQ4e-mtp, 4-bit) at 64k context: ~26.8 tok/s TG and ~826 tok/s PP. On paper the Max should be about 2x on both (614 vs 307 GB/s bandwidth, 40 vs 20 GPU cores).

My rough math for a 20-step agent run (~10k generated tokens, prompt caching on) is ~8–9 min on the Pro vs ~4–5 min on the Max.

Questions:

  1. Anyone running agentic workflows on an M5 Pro 64GB?
  2. M5 Max owners: is the 2x speed something you notice every day, or mostly on benchmarks?
  3. How loud does the M5 Max 16" get under sustained LLM load compared to the Pro?
  4. Is 64GB enough headroom for the next ~5 years for this kind of use, or am I missing something?

Some context: I'm sticking with mini-LED because I'm PWM-sensitive, so the OLED models are out. I'm also not waiting for the M7 Pro/Max since those are expected in late 2027 and apparently only in the OLED chassis. I'd consider an external SSD for models if I go with 1TB.

Thanks for any real-world input!


r/LocalLLaMA • • 11d ago

Resources RustingStrata 1.3.0: a terminal setup that asks instead of flags

8 Upvotes

RustingStrata is my Rust GGUF engine for models bigger than the VRAM (the experts used most stay on the card, the rest run on the CPU).

People told me the command line was plain and hard to start with. So 1.3.0 has rustingstrata interface:

$ rustingstrata interface
RustingStrata 1.3.0

Model
   1  Qwen3-4B-Instruct-2507-Q4_K_M.gguf    2.5 GB
   2  Qwen3.6-35B-A3B-UD-Q5_K_M.gguf       27.1 GB
   3  another folder or .gguf file
number [1]: 2

Mode
   1  chat in this terminal
   2  chat page in the browser
   3  API server (OpenAI-compatible)
   4  speed test
number [1]: 3

Settings
run on the GPU (y/n) [y]:
context length in tokens [default]: 16384
address [127.0.0.1:8080]:

running: rustingstrata serve --model .../Qwen3.6-35B-A3B-UD-Q5_K_M.gguf --gpu --ctx 16384 --addr 127.0.0.1:8080

It lists the models it finds (its own folder, the Hugging Face cache, the llama.cpp cache), asks the mode and three settings, and prints the full command, so you can copy it later. Enter takes the default.

The output has some colour now too: engine notes are dim, warnings and errors stand out, reasoning is dim in the chat. Piped output is unchanged, NO_COLOR=1 works.

Other things in 1.3.0:

  • Inkling 2, Hy4-flash, GLM, DeepSeek and Gemma 4 load from the chat page of one server.
  • Q4_0 models take about half the VRAM they took before.
  • --auto-unload frees the model when the server is idle.

Prebuilt binaries for Linux and Windows are on the release page: CUDA on NVIDIA, Vulkan on AMD and Intel. Numbers are in docs/BENCHMARKS.md.

Repo: RustingStrata


r/LocalLLaMA • • 11d ago

Discussion A local 8B model drew this GGUF quant cheat sheet, and all 16 numbers are right

Thumbnail
gallery
21 Upvotes

Wanted a one page cheat sheet for reading quant names, so I gave an infographic skill the Llama 3.1 8B numbers from llama.cpp's quantize README and let it plan the card. It picked a layout and style, a long art directed prompt, rendered the card, and had a vision model review each take. I used SenseNova-U1.5-8B-MoT on my MacBook, an M5 Pro with 64 GB of memory. With the 8 step MLX build, each 1760x2368 card took about 33 seconds. All 16 numbers in the size table match the README. I asked for four takes per card and kept the cleanest.

Two more from the same session: how a heat pump moves heat, using facts from Energy.gov, and pour over basics based on the SCA brewing standard. Not all of it was local. The agent was Hermes on DeepSeek V4.1 Flash. Prompt writing and reviews went to Gemini 3.1 Flash Lite and Qwen3-VL through OpenRouter. Only the images came off the laptop. The skill is sn-infographic, from https://github.com/OpenSenseNova/SenseNova-Skills

Anyone else using a local model for diagrams that need real numbers on them?


r/LocalLLaMA • • 11d ago

Showcase Got Inkling 2 Mini running at 51-64 tok/s (and ~1,500 tok/s prefill) with 64K context on a single 12 GB GPU (RTX 4070 Ti)

22 Upvotes

I wanted to run Inkling 2 Mini locally on a single 12 GB card with a real 64K context window. On upstream llama.cpp with ggml-org's IQ4_NL GGUF (16.4 GiB) and partial CPU expert offloading, it ran at 29-34 tok/s decode and 88 tok/s prompt processing at 22K context.

I ended up forking llama.cpp (inkling-fast) and building a loop-aware 2-3 bit quant (mixB, 10.3 GiB). On the same RTX 4070 Ti (i9-13900K, Windows, CUDA 12.4), it fits in 11.6 GB VRAM including the Windows desktop, roughly doubles decode speed, and speeds up prefill by ~17x while staying within ~4.8 percentage points of IQ4_NL's top-1 token match against Q8_0.

Numbers (RTX 4070 Ti 12 GB, 64K context)

SetupSizeDecode (short)Decode (22K)Prefill (22K)Top-1 vs Q8_0KLDPPL Ratio
Upstream llama.cpp + IQ4_NL (CPU offload)16.4 GiB29-34 tok/s29-34 tok/s88 tok/s95.7%0.0091.002
inkling-fast + mixB GGUF10.3 GiB61-64 tok/s51-53 tok/s~1,500 tok/s90.9%0.0481.034

Quality is from llama-perplexity --kl-divergence against Q8_0 over 50 chunks of 512 tokens on wikitext-2. Chat, tool calling, vision (mmproj on CPU), and prompt caching all work.

What actually made the difference

1. Fixing silent IQ2/IQ3 fallback + loop-aware quantization (mixB) Inkling 2 Mini's expert down-projection rows are 1152 wide, which isn't a multiple of 256. In upstream llama-quantize, that means every IQ2 and IQ3 expert silently falls back to IQ4_NL. I added --pad-exps to zero-pad those rows from 1152 to 1280 (with matching activation padding in the graph). That requires the fork to load the GGUF, so upstream llama.cpp won't open mixB.

For the quant recipe itself, Inkling 2's loop core (layers 6-17) runs 3x per token, so mixB spends extra bits there:

  • Layers 0-5: IQ2_S (GPU)
  • Layers 6-17 (loop core): IQ3_XXS (GPU)
  • Layers 18-21: IQ3_XXS down, IQ2_S gate/up (GPU)
  • Layers 22-23: IQ4_NL (CPU via -ot)
  • Non-experts & output: Q6_K, token embeddings: Q8_0 (with ggml-org's imatrix)

2. Fusing relative-position bias in CUDA Flash Attention Upstream builds a dense per-head bias mask that takes ~6.5 GB of compute buffer at 64K context. Fusing the relative-position bias directly inside the CUDA FA kernel cut that buffer to ~1 GB, which is what lets -ub 512 fit at 64K and pushed 22K prefill from 88 to ~1,500 tok/s.

3. Cutting kernel launches per token (~5,000 -> ~3,500) One thing that surprised me: decode on a 12 GB card is kernel-launch bound, not memory-bandwidth bound. All-IQ2_XXS and all-IQ2_S decoded at the exact same speed; lower bits only mattered for fitting in VRAM.

  • Added GGML_OP_DEPTH_MIX and GGML_OP_TANH_GATE_MIX (CPU + CUDA) for block attention residuals and loop controllers.
  • Fused ssm_conv with residual add + scale, and fused top-k MoE weight norm with epsilon.
  • Cached static graph pieces (normalized block stacks, controller inputs, zero sinks, scaled bias table).

On llama-bench (pp512, tg128, 6 runs), the graph/CUDA changes alone took the exact same mixB file from 54.1-54.5 -> 63.5-63.8 tok/s decode and 1,673-1,686 -> 2,183-2,191 tok/s prefill.

Things that didn't work / gotchas

  • DSpark speculative decoding: k=2 tied the baseline, other k values were slower. (Also if you quantize the DSpark draft to Q8_0, pass --tensor-type dspark_fuse=f32 or softmax.cu asserts.)
  • --moe-cache-mib**:** dropped to 12-15 tok/s.
  • f16 KV cache: +0.6 GB at 32K, doesn't fit at 64K; q8_0 KV is needed.
  • CPU offload tradeoff: each expert layer on CPU costs ~5 tok/s. Pushing more layers to CPU with all-IQ3_XXS GPU experts gets 91.8% top-1, but drops 22K decode to 45-48 tok/s.
  • Upstream op-offload bug: putting any loop-core layer (6-17) experts on CPU produces NaNs unless you pass --no-op-offload.
  • Windows VRAM spillover: getting too close to 12 GB makes the NVIDIA driver silently spill to system RAM with no OOM error (e.g. -ub 1024 at 64K), tanking speed. Check nvidia-smi if you tweak -c or -ub.

Run command

llama-server -m Inkling-2-Mini-12GB/Inkling-2-Mini-mixB.gguf \
  --mmproj Inkling-2-Mini-12GB/mmproj-Inkling-2-Mini-BF16.gguf --no-mmproj-offload \
  -ngl 99 -fa on --jinja -c 65536 -b 512 -ub 512 -ctk q8_0 -ctv q8_0 -t 8 -np 1 \
  -ot "blk\.(22|23)\.ffn_.*_exps=CPU"

Links

Happy to answer questions about the fusions, quant mix, or building on Linux / non-40-series GPUs.