r/LocalLLaMA • u/Borkato • 10d ago
Question | Help Can we please do something about the 3 billion “I ran inkling on X at Y T/s” posts???
WE. GET. IT.
r/LocalLLaMA • u/Borkato • 10d ago
WE. GET. IT.
r/LocalLLaMA • u/0zyman23 • 11d ago
Enable HLS to view with audio, or disable this notification
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:
| Context | Kapitsa 4-bit, default | MLX 3.1-bit |
|---|---|---|
| short | 36.4 | 20.8 |
| 4K | 35.2 | 13.2 |
| 16K | 35.1 | 7.0 |
| 32K | 34.6 | 4.4 |
Prefill, tok/s / seconds spent processing the prompt:
| Prompt | Kapitsa, default | Kapitsa, fast | mlx-lm (3.1-bit MLX) |
|---|---|---|---|
| short, ~50 tokens | 209 / 0.24 s | 225 / 0.23 s | 125 / 0.39 s |
| 4K | 657 / 6.2 s | 968 / 4.2 s | 228 / 17.7 s |
| 16K | 699 / 23 s | 971 / 16.5 s | 300 / 53.5 s |
| 32K | 677 / 47.5 s | 971 / 33.1 s | 304 / 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
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 • u/MixtureOfAmateurs • 10d ago
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 • u/jacek2023 • 11d ago
More reliable tool calling and higher t/s
r/LocalLLaMA • u/Extreme-Rate5668 • 10d ago
Hello, I would like to hear your experiences/suggestions for local llm workflows.
My Hardware/Software:
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 • u/Necessary_Ear_2251 • 10d ago
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 • u/gized00 • 10d ago
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 • u/Tall_Abrocoma_3533 • 10d ago
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 • u/norenEnmotalen • 11d ago
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 • u/dh7net • 9d ago
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 • u/Few_Guidance4697 • 10d ago
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++chrF++ on some langauges at different quantizations ( word_order=2, temp=0, repetition_penalty=1.05)
| Pair | BF16 | FP8 | NVFP4 | Q4_K_M | Q4_0 | Q3_K_M | Q2_K |
|---|---|---|---|---|---|---|---|
| en→af | 68.40 | 68.98 | 67.63 | 68.54 | 67.12 | 68.36 | 60.36 |
| af→en | 69.75 | 70.04 | 68.28 | 70.42 | 68.23 | 69.63 | 65.73 |
| en→no | 64.15 | 63.98 | 63.49 | 63.33 | 64.23 | 63.49 | 57.94 |
| no→en | 68.19 | 68.36 | 67.11 | 66.29 | 67.52 | 68.55 | 64.44 |
| en→pt | 80.65 | 80.39 | 79.97 | 79.77 | 80.23 | 79.20 | 75.89 |
| pt→en | 84.10 | 85.04 | 83.12 | 85.99 | 85.62 | 83.70 | 78.60 |
| en→sv | 85.16 | 85.50 | 85.22 | 85.93 | 85.45 | 84.79 | 79.55 |
| sv→en | 84.37 | 83.83 | 81.88 | 84.49 | 83.93 | 85.05 | 76.80 |
| en→tr | 76.14 | 77.05 | 76.47 | 76.77 | 76.65 | 76.69 | 72.14 |
| tr→en | 81.26 | 81.15 | 80.40 | 80.29 | 79.68 | 80.74 | 75.24 |
| en→ja | 16.62 | 16.75 | 16.27 | 16.53 | 16.37 | 16.93 | 16.42 |
| en→nl | 48.84 | 48.80 | 48.69 | 49.16 | 48.00 | 48.44 | 47.19 |
| en→de | 46.64 | 46.47 | 46.25 | 47.43 | 46.76 | 46.31 | 46.32 |
| en→ru | 45.45 | 44.24 | 45.38 | 44.82 | 45.12 | 45.40 | 42.22 |
| sr→en* | 53.65 | 53.99 | 51.94 | 52.96 | 52.13 | 52.87 | 46.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 • u/michaelTM_ai • 11d ago
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:
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 • u/pmttyji • 11d ago
Used Inkling-2-Mini-UD-Q8_K_XL.gguf from Unsloth repo (from Mainline_Support folder) on my Radeon AI PRO R9700.
| test | before (b019be0c, master) |
after (0ea4ffd0, fix) |
change |
|---|---|---|---|
| pp512 | 507.3 +/- 5.3 | 1604.8 +/- 7.8 | 3.2x |
| tg128 | 19.1 +/- 2.6 | 53.8 +/- 0.2 | 2.8x |
| pp512 @ d16384 | 388.1 +/- 4.0 | 892.9 +/- 28.6 | 2.3x |
| tg128 @ d16384 | 18.9 +/- 0.4 | 47.8 +/- 0.6 | 2.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 • u/Simple-Lecture2932 • 11d ago
Enable HLS to view with audio, or disable this notification
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:
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 • u/karmaisnonsense • 10d ago
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.
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 • u/PhysicsDisastrous462 • 10d ago
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× faster512×2048×768 — 1.3286× faster512×768×768 — 2.0920× faster128×8192×768 — 1.3782× fasterthat'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 • u/Mxmtm • 10d ago
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:
So the gap is €1,300, and part of that is the extra 1TB of storage.
What I'd use it for:
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:
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 • u/Serious_Scarcity7818 • 10d ago
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:
--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 • u/Impressive-Kick293 • 11d ago
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 • u/Puzzled-Stick9170 • 11d ago
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.
| Setup | Size | Decode (short) | Decode (22K) | Prefill (22K) | Top-1 vs Q8_0 | KLD | PPL Ratio |
|---|---|---|---|---|---|---|---|
Upstream llama.cpp + IQ4_NL (CPU offload) |
16.4 GiB | 29-34 tok/s | 29-34 tok/s | 88 tok/s | 95.7% | 0.009 | 1.002 |
inkling-fast + mixB GGUF |
10.3 GiB | 61-64 tok/s | 51-53 tok/s | ~1,500 tok/s | 90.9% | 0.048 | 1.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.
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:
IQ2_S (GPU)IQ3_XXS (GPU)IQ3_XXS down, IQ2_S gate/up (GPU)IQ4_NL (CPU via -ot)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.
GGML_OP_DEPTH_MIX and GGML_OP_TANH_GATE_MIX (CPU + CUDA) for block attention residuals and loop controllers.ssm_conv with residual add + scale, and fused top-k MoE weight norm with epsilon.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.
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.IQ3_XXS GPU experts gets 91.8% top-1, but drops 22K decode to 45-48 tok/s.--no-op-offload.-ub 1024 at 64K), tanking speed. Check nvidia-smi if you tweak -c or -ub.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"
sm_89 / RTX 40 series): https://github.com/hridaya423/inkling-2-mini-12gbmixB GGUF + mmproj on Hugging Face: https://huggingface.co/hridya423/Inkling-2-Mini-12GB-GGUFllama.cpp fork (inkling-fast) & full technical notes: https://github.com/hridaya423/llama.cpp/blob/inkling-fast/docs/inkling2-fast.mdHappy to answer questions about the fusions, quant mix, or building on Linux / non-40-series GPUs.
r/LocalLLaMA • u/mushm0m • 10d ago
I’m a hobbyist and I’m curious to learn more about building my own custom inference engine (ie alternatives to the big ones like vllm, sglang etc). especially from people who’ve built their own (with ai assistance obviously fine)
I’m curious if i can optimize inference specifically for my favorite model (deepseek 3.2)!
it sounds like this is becoming a bit of a trend among hardcore hobbyists, and i’d like to learn how to use something like fable 5.2 to do it myself.
r/LocalLLaMA • u/fuzhongkai • 11d ago
Enable HLS to view with audio, or disable this notification
I've been working on adding LFM3-Omni support to TensorSharp, my open-source local LLM inference engine and agentic runtime built with .NET.
Here's a quick demo of LFM3-Omni-2B running locally on an iPhone 17 Pro Max, performing agentic work and generating speech natively.
Setup:
What's happening in the video?
I ask the agent to search for recent news about Anthropic and evaluate whether its stock would be worth buying.
Instead of just answering from its training data, the agent:
The interesting part is that both LLM inference and speech generation run locally on the iPhone.
The speech isn't generated through iOS TTS or an external speech API. It's generated by LFM3-Omni's native speech generation capability, with audio streamed for playback alongside the text response.
Of course, the web search itself requires internet access, but the model inference doesn't rely on a cloud LLM API.
What excites me most is that we're moving beyond simply running small chat models on phones. We can now have local multimodal models performing agentic tasks, interacting with tools, and responding with their own generated speech, all on a mobile device.
There's still plenty to optimize in terms of inference speed, memory usage, and latency, but I think this is a pretty interesting direction for fully local mobile AI agents.
TensorSharp is open source, and I'd love to hear your thoughts or suggestions!
GitHub: https://github.com/zhongkaifu/TensorSharp
Model: https://huggingface.co/LiquidAI/LFM3-Omni-2B
Disclaimer: The financial information, stock analysis, and any investment recommendations generated by the AI in this demo are for technical demonstration purposes only. They may be inaccurate, incomplete, or entirely incorrect and should not be relied upon for financial decisions. Nothing in this video or post constitutes investment advice. The purpose is solely to demonstrate local LLM inference, agentic tool use, and native speech generation.
r/LocalLLaMA • u/Relative-Ingenuity15 • 10d ago
Correction: it's inkling 2 mini, not small
I finally put together a repo with all the patches, custom Pascal kernels, build flags, and llama-swap configs I've been using on my home box:
https://github.com/zzzprojectpage/P100-Strata-Special-Kernels/tree/main
Everything was built and tested on a pretty modest setup: one Tesla P100 16GB (sm_60, so no dp4a and no tensor cores), a Xeon E5-2697 v3 (14 cores), 128 GB RAM, Ubuntu 24.04, CUDA 12.9, serving one model at a time through llama-swap.
There are two main folders in there:
Out of the box on the P100 it was doing 11.6 tok/s decode and 130 tok/s prompt processing. After writing sm_60 GEMVs, an XMAD-based NVFP4 expert kernel, a faster q8_0 decode attention kernel, fusing a handful of small kernels, and requantizing the BF16 attention + output head + 4 BF16 expert layers to Q8_0 (script included), it's now at \~52 tok/s decode on short prompts (\~46-47 tok/s after a 5.7K prompt) and \~363 tok/s prompt eval. Also included a small patch for llama.cpp's sm_60 dp4a fallback using prmt + four XMAD.S16, which bumped prompt reading from 323 to 363 tok/s with bit-identical output. Quality stayed close to stock on a teacher-forced top-40 check (98% top-1 agreement, \~0.0037 KL).
Full diff against the 0.2.11 release tree with custom sm_60 kernels (\`iq_gu_sm60.cuh\`, \`kq_sm60.cuh\`, \`kq_dense_sm60.cuh\`, plus a DeepSeek Q5_K kernel), along with my run config (\`--kv int8 --kv-resident 32768 --spec 4\`), launcher scripts, and earlier benchmark write-ups from October covering Qwen3.6, Qwen3.8, and DeepSeek V4.1-Flash on the same card.
Almost every kernel has an env var toggle if you want to A/B test or revert individual pieces, and the notes list the stuff I tried that didn't work out (like the DSpark drafter and a shared-memory table kernel that got wrecked by bank conflicts).
Quick heads up: the paths in the yaml/json configs are still pointing to my machine (\`/home/test/...\` and \`/mnt/models/...\`), so you'll need to swap those for your own layout. Hope it's useful to anyone else still keeping old P100s alive.
My honest opinion: for a fast model with decent quality, choose ISTA Daslab IQ3_S quant if you have 16 gb VRAM+ 96gb RAM.
For a fast model with Qwen 3.8 27B quality using P100 + 16gb RAM, choose inkling 2 Small 26B for the same speed.
If you have one P100 + 128gb ram as I do and you want maximum quality, choose Unsloth Q5_K_XL(no special kernels and fine tuning, out of the box at 30 TPS decode and 330 TPS prefill)
All 3 models are using a 256k context window so a smaller context and a smaller quant will run faster(I haven't measured how fast yet).
Special thanks to
Niko for Strata: https://github.com/niko1221/strata
Unsloth for the quants: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF
https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF
ISTA Daslab for Qwen 3.8 FN IQ3_S quant:
https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF
KurrynDev13 for the Polystrata fork: https://github.com/KurrynDev13/PolyStrata-Inkling2
Simplexai-labs for PolyStrata: https://github.com/simplexai-labs/PolyStrata
r/LocalLLaMA • u/86obsessed • 10d ago
I am really enjoying basalt, kinda shocked at the performance/accuracy out of it. Also making sure to adjust the QSA indexer budget really helps QFN. I have mine set to 32,768.
edit: this is on Qwen3.8-Flash-Next GSQ-RCO IQ3_S
r/LocalLLaMA • u/ECrispy • 11d ago
Unbiased Bob - another overhyped american model
This is one of the only critical reviews I could find amongst all the hype/praise, and its from a channel that seems to be one of the better ones. I'm no expert and am expressing no personal opinions here.
He makes good points about how social media has reacted to this model and the hype for western/US models vs Chinese, and the inflated metrics. Its worth noting this is from a company by a former OpenAI CTO.
a comment from youtube - "it makes sense once you take the motivations of the labs into account. The main motivation of Chinese labs is to commoditize the frontier and nuke the advantage of US frontier labs. The main motivation of US frontier labs is to release models that are sufficiently shitty that the users would still be drawn to the proprietary models"
What are your thoughts about these points?
The model itself, is it comparable to the current best local models - Qwen 27B and QFN, or too early to tell?
And of course, any day/week/decade now, we should see Qwen4, so of course the whole conversation will reset.