r/LocalLLM • • 10d ago

Other Qwen 4 is not out

295 Upvotes

Please stop posting about Qwen4's endless PR drip until it's actually available.


r/LocalLLM • • 13h ago

Discussion Countless users are coming out about Claude sabotaging Local ML work

Post image
430 Upvotes

r/LocalLLM • • 8h ago

Model I ran the full 1.56 TB Kimi K3.1 Pro on four Mac Studios and checked it against Moonshot's API. Numbers, a 1M-token test, and the patches.

38 Upvotes

TL;DR

  • Kimi K3.1 Pro is 2.78T parameters and a 1.56 TB download. I ran it as shipped, fully in memory, on four Mac Studios (M5 Ultra, 512 GB each).
  • 2.8 tok/s through an OpenAI-compatible server. It loads in 3 minutes.
  • Its top token matches Moonshot's hosted API on 97.2% of 1,095 answer tokens.
  • A 1M-token prompt works. It takes 3 h 53 min to read, then generates at 2.76 tok/s.
  • The patches are in four open PRs against mlx-lm and oMLX. Links are at the bottom.

It works. It is also slow.

Setup

  • Model: moonshotai/Kimi-K3.1-Pro. Mixture of experts, 93 layers, 896 experts per layer, 16 used per token. The experts ship at 4 bits and everything else at 16 bits. No pruning and no extra quantization.
  • Hardware: 4x Mac Studio, M5 Ultra, 512 GB each. That is 2 TB of memory for a 1.56 TB model. Six Thunderbolt 5 cables wire them as a full mesh, and they talk over RDMA.
  • Software: mlx-lm for the model, oMLX for the server and the cluster. Neither ran K3.1 on four Macs before these patches.

Numbers (full model, four Macs)

WhatResult
Load179 s
Memoryabout 400 GB per Mac
Generation, through the oMLX server2.81 tok/s
Generation, stock mlx-lm example script3.77 tok/s
Prompt reading at 4K / 16K / 65K tokens412 / 388 / 262 tok/s
65K-token prompt, time to first token4 min 10 s
Chip power while generating, all four Macs67 W
Chip power while reading a prompt, all four Macs350 to 400 W

Power is CPU plus GPU from powermetrics. I have no wall meter on these, so the real draw is higher.

How you split the model matters

Each Mac can hold a block of whole layers, or every Mac can hold a slice of every layer. With layer blocks I get 0.70 tok/s. With slices I get 3.77 tok/s. Same model, same Macs, same example script.

Is it the same model?

I cared about this more than speed. A model this size can load, write fluent text, and still be wrong.

  1. Eight real layers match an independent PyTorch reference written from the vLLM and llama.cpp code. Attention error is 2.5e-5 or less.
  2. I took 12 completions from Moonshot's API and replayed them through the local model one token at a time. On 1,095 answer tokens the local top pick was the API's token 97.17% of the time. The API samples at temperature 0.6, so a perfect copy should land near 95.7%. No API token fell outside the local model's 99% nucleus.
  3. Retrieval from long prompts: numbered records, then a question about three of them (near the start, the middle and the end). Correct at 4K, 16K, 65K and 1M tokens.

1M tokens

The model's config allows 1,048,576 tokens, so I tried it.

  • Prompt: 1,011,856 tokens. That is 44,216 numbered records and one question about three of them.
  • Reading the prompt took 3 h 53 min. After that it generated at 2.76 tok/s, about the same as with an empty context. All three records came back correct.
  • Memory peaked at 494 GB per Mac. It only fit after I capped MLX's buffer cache (mx.set_cache_limit, 8 GiB), and the cap cost about 40% of the reading speed. Without the cap, my first attempt was on course to run out of memory and I stopped it at 295K tokens.
  • Reading slows as the context fills: 130 tok/s at 131K, 46 tok/s at the end. The sparse attention scores every earlier token for each new one, so the time grows with the square of the length.
  • AinsleyMarkov's public 2-bit build read the same prompt on three of these Macs in 1 h 46 min and also answered correctly.

Why it's slow

Each generated token makes the four Macs read about 130 GB of weights. The experts are 93% of the file, but only 16 of 896 are read per token. The 16-bit layers are 7% of the file and all of them are read for every token. That 7% is about 80% of the traffic.

The GPUs are mostly idle. While generating, the four of them together draw 19 W and run at under a third of their top clock.

What had to change

K3.1 is K3 plus the sparse attention from DeepSeek V3.2, with a gate on the attention output. mlx-lm already had both halves, so the port is small.

  • mlx-lm: ml-explore/mlx-lm#2111 adds the kimi_k31 model. +655 lines with tests.
  • oMLX: #5480. A cluster of three or more Macs on a Thunderbolt mesh could not start. The launcher gave every Mac one coordinator address, but in a mesh each Mac reaches the coordinator over a different cable and subnet.
  • oMLX: #5684. The planner refused the model. K3.1 stores each expert as its own tensor, almost 500,000 of them, so its weight index is 57 MiB and the limit was 16 MiB.
  • oMLX: #5692. K3.1 on the mlx-lm version oMLX pins, plus routing for a checkpoint that ships a vision tower, and the tensor split.

None of these are merged yet.

Limits

  • 2.8 tok/s is too slow for agent work. A 1,500-token answer takes nine minutes.
  • The oMLX patch reads long prompts slower than mlx-lm's own implementation. It scores every key and masks the rest.
  • The API comparison is 12 completions and 1,095 tokens. It checks the math. It says nothing about how good the model is.

Who was here before me

guruswami-ai ran the full Kimi K3, the previous version, on four M3 Ultra Mac Studios in July at about 2 tok/s. For K3.1 Pro I found a 2-bit build (AinsleyMarkov, 18.6 tok/s on four M3 Ultras), a pruned build that fits one Mac (Pipe Network), and the shipped weights streamed from disk at about 0.4 tok/s (Inferencer). I have not found the full K3.1 Pro, as shipped, held in memory. If someone did it first, tell me and I'll link it.

Disclosure

Claude wrote the model and test code and ran the validation. I directed the work and reviewed every diff. The mlx-lm PR says the same. I have no affiliation with Moonshot, Apple or oMLX.

What's next

Smaller builds. The public 2-bit build runs at about 18 tok/s on three of these Macs and matches the API on 92% of the same tokens. I'm writing that up next.

I can run more tests on this setup. If you want a specific number (a prompt size, a split, a sampler setting), ask and I'll post it.


r/LocalLLM • • 3h ago

News I love local LLM

13 Upvotes

Hi i am new and just wanted to say that i love local LLM


r/LocalLLM • • 18h ago

Discussion AI Newbie here. Runing Qwen3.8 27b q8_0 on 5090+5080 "gaming" rig. I'm impressed with the answers I get compared to my paid claude opus model

Thumbnail
gallery
188 Upvotes

Im kind of shocked and losing grasp of why I pay for a claude subscription at this point. Im using Orcarouter uncensored version of Qwen 3.8 27b and the answers I get from it seem to not only contain more info, it's also seemingly more detailed. I don't get it.


r/LocalLLM • • 5h ago

Discussion iGPU + GPU: I didn't think it was possible

Post image
14 Upvotes

I updated Proxmox to 9.2 and was surprised to see this dual GPU configuration appear in nvtop. I didn't know you could get both the iGPU and the GPU card to run simultaneously. It was my understanding you had to blacklist everything but the GPU. I'm not convinced the iGPU fully operational, but I guess I will test it.

What should I run on it? Any suggestions on how to test this? The memory has to be tiny, but it's showing 94GB, this machine's total RAM is 96GB. I could hook it up to Unsloth or Hermes (what I'm running in Proxmox) but I don't really want to add another experimental LLM into the mix.


r/LocalLLM • • 9h ago

Question How do you safely run uncensored LLMs?

25 Upvotes

So I've been running a uncensored QFN model because I'm tired of frontier models refusing everything. For example, I asked Opus to scan my own network for vulnerabilities, and it refused because it didn't believe it was my network, even though it's literally connected to it.

My main concern is security. Are uncensored models more susceptible to prompt injection than regular models? What kind of guardrails can I put in place to protect myself without restricting the model itself?

I'm also using Hermes, but I'm a complete noob with it.

Any advice would be appreciated!

Specs: 64GB DDR5, R9700 32GB, 7800X3D

P.S SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF - this is the model


r/LocalLLM • • 3h ago

Research Before and After (32GB to 96GB DDR5 upgrade) - QEngine 3x3090s

7 Upvotes

32GB DDR5 vs 96GB DDR5 More RAM pinned the n-gram cache, makes the decode speed significantly faster.

Setup:

GPU's: 3x3090s
P2P Mode: On
PCIe Link: PCIe Gen4 8x/4x/8x
CPU: Ryzen 7600x.
Model: Qwen-Flash-Next INT4 - QEngine Finetune
Script: bench.sh from club 3090.

Only change:

RAM went 32GB (2x16) → 96GB (2x16 + 2x32), so the whole 50GB n-gram cache got stored in RAM instead of on disk.

What got significantly better

  • Narrative generation: ~218 → ~294 tok/s (+35%)
  • Code decode: ~336 → ~381 tok/s (+13% — less gain, makes sense, shorter/more repetitive prompts hit fewer n-grams)

What didn't change (as expected)

  • Time to first token and prefill speed — that's GPU-bound, the n-gram cache doesn't help there.

The catch

  • GPUs run 1–8°C hotter on the big-RAM setup. GPU 2 hot spot hit 100.5°C. Probably just doing more work per second, but worth an eyeball.
  • The 90k-token prefill test looks ~6% worse with more RAM, but n=1 per arm so it's a coin flip. Re-run before believing it.

Bonus - 1M KV Pool

There was still room left over to set Host KV Pool on (needs ~13GB). i.e. It stores the KV pool in RAM instead of in VRAM. This increased the pool size to 1 million tokens.

Previously my system would totally choke when there were multiple agents working. Like 20 tok/s at times. It was because they couldn't fit their context in the 256k pool I had before so their context kept getting evicted, now I think that wont' happen, and it'll likely be much faster during concurrent agent work.

Conclusion

If your workload is decode-heavy, and you got the ram, sticking more of the n-gram cache in RAM will get you — ~13–35% more tok/s, no GPU-side changes. The mixed-dim RAM (2x16 + 2x32) forced a downclock from 6000Mhz to 3600Mhz, but it didn't hurt anything, though if you care about memory bandwidth, that's a confound this test can't see. I am worried about setting the speed back to 6000Mhz due to possible stability issues or errors. Will likely try and find another matching pair of 2x32GB to make a 4x32GB setup.

Source: bench-ab-bench-20261123T053549Z-vs-bench-20261128T002206Z.md*, generated 2026-11-28.*


r/LocalLLM • • 45m ago

Project I built a zero-dependency local IDE & Coding Agent that runs Qwen3-Coder-30B-A3B MoE + Inkling 2 Mini Vision on a 6 GB AMD RX 5600 XT (Vulkan, zero ROCm) & NVIDIA CUDA

4 Upvotes

Most local coding setups assume a 24 GB RTX 3090/4090 or painful ROCm builds on Windows. I wanted to see how far a 6 GB VRAM GPU (my test machine is an AMD Radeon RX 5600 XT 6 GB + 32 GB RAM on Windows 11, using plain ggml-vulkan — no ROCm, no Visual Studio build) could go with modern MoE coding models.

I ended up splitting the work into two open-source Apache-2.0 repos (plus a sibling video engine):

Feedback, benchmarks on NVIDIA GTX 1650/RTX 3050/3060 or newer AMD RX 6600/7600 cards, and PRs are super welcome!Most local coding setups assume a 24 GB RTX 3090/4090 or painful ROCm builds on Windows. I wanted to see how far a 6 GB VRAM GPU (my test machine is an AMD Radeon RX 5600 XT 6 GB + 32 GB RAM on Windows 11, using plain ggml-vulkan — no ROCm, no Visual Studio build) could go with modern MoE coding models.

I ended up splitting the work into two open-source Apache-2.0 repos (plus a sibling video engine):

PicoCode (https://github.com/ffalcon3098-droid/PicoCode) — One-click Windows setup (setup.cmd) that auto-detects AMD Vulkan / NVIDIA CUDA 12.4 / Intel Arc Vulkan, downloads pre-built llama.cpp, and serves Qwen3-Coder-30B-A3B (IQ4_XS), Inkling 2 Mini (26.4B/3.4B looped MoE + Vision), or Qwen2.5-Coder-7B (for 16 GB RAM machines).
PicoStudio (https://github.com/ffalcon3098-droid/PicoStudio) — A zero-pip-dependency (pure Python 3.10+ stdlib) 3-pane local Web IDE (127.0.0.1:7900) with Coding Agent v3, Side-by-Side Diff & Multi-File Review, Terminal Pro (multi-tab SSE + one-click traceback auto-fix), and a GPU Arbiter.

What actually made 30B MoE usable on 6 GB VRAM:

Adaptive MoE layer offloading (--n-cpu-moe + -ngl 99 + --no-op-offload): Keeps attention + Q8_0 KV cache + 2 MoE layers on the 6 GB GPU while routing cold experts to system RAM.
Live VRAM Guard + --load-mode none (on >=28 GB RAM): Reads real-time Windows DXGI free VRAM before launch to prevent OOM, and avoids mmap page-fault stalls during long multi-turn agent loops.
Zero-VRAM speculative decoding (--spec-type ngram-mod) + --cache-reuse 256: Noticeably speeds up repetitive code edits and multi-step tool calls without consuming extra VRAM.
KV-cache preserving final synthesis: In read-only Plan/Review mode, the final turn keeps the exact same tools schema and uses tool_choice="none" instead of dropping tools — preserving 100% of the prompt KV prefix cache.

Honest hardware caveats:

4–6 GB VRAM + 16 GB RAM: Stick to Qwen2.5-Coder-7B (100% GPU, fast).
6 GB+ VRAM + 32 GB RAM: Unlocks Qwen3-Coder-30B-A3B and Inkling 2 Mini hybrid MoE comfortably.
Currently Windows 10/11 (x64) first; works on both AMD Radeon (Vulkan) and NVIDIA GeForce GTX/RTX (CUDA 12.4 / Vulkan).

Feedback, benchmarks on NVIDIA GTX 1650/RTX 3050/3060 or newer AMD RX 6600/7600 cards, and PRs are super welcome!


r/LocalLLM • • 18h ago

Discussion Slowly moving off of Strata

95 Upvotes

Strata was a breath of fresh air when it came out, but its focus on speed over quality has been a longtime irk. I was monitoring its reasoning traces for a code review and saw it would always say time to wrap up and that the user wants an answer now, even when I said no such thing. I believe this is due to the "answer_room" behavior of Strata.

I'm fortunate enough to be able to run QFN on Radiance, so I did an impromptu comparison. I switched engines mid-review and had it continue. Yes it's slower to decode (less tricks & model is higher precision), but I noticed an immediate change in thoroughness and task persistence, especially for long-horizon tasks. It doesn't rush and continues until it finishes what I ask it to do.

Has anyone else had similar experiences?


r/LocalLLM • • 17h ago

Model Isn't it insane to wait ~3 mins just for this ?

Post image
62 Upvotes

Bonsai : Here's how to talk with your crush

Model: bonsai-2.5:27B on RTX 4060 with 48K context + 8K output


r/LocalLLM • • 20h ago

Project Local, open source app that lets you search your files by describing them

118 Upvotes

I've been building Mesa, a desktop app (Windows/macOS/Linux) that lets you find any of your files (documents, images, video, audio, code) by describing them.

It's fully free and open source, I just hope the community finds it useful and would appreciate any feedback to improve it!

It runs EmbeddingGemma 2 locally through llama.cpp (Vulkan, Metal, or CPU when there's no GPU). Some features I find neat that separate it from other EmbeddingGemma 2 apps I've seen so far:

  • It automatically turns natural language like "photos from last year" into filters
  • It includes OCR on every OS, so you can also search images by text that's in them
  • It also lets you drop in files in addition to searching by text. E.g. drop in an audio file to find its corresponding video

GitHub: https://github.com/biantsh/mesa

Again, I would appreciate any feedback from the community!


r/LocalLLM • • 12h ago

Model Kintsugi-27b beats the full precision Qwen 3.8-27b it was based on at multi'turn tool use.

Post image
22 Upvotes

Kintsugi-27B continues to top benchmarks, surpassing or level with the BF16 in numerous categories.

https://huggingface.co/CaryPalmer/Kintsugi-27B


r/LocalLLM • • 17h ago

Other Qwen 3.8 27B vs Inkling 2 Mini - user comparison on 16GB VRAM

53 Upvotes

--- DISCLAIMER ---

This Post is not a clean Benchmark Suite comparison. The goal of this post is to share some of my experiences, which I made with both models under the restrictions of my local setup - mainly my 16GB of VRAM.

What exactly do I mean by this? I am running different quant's, caching techniques and different inference engines in this comparison. Why? Because those are MY optimized setups in order to efficiently run those models in a usable way on my machine.

Usable to me means, that i actually get work done with them, not just fancy "artworks". No one needs token per second figures in setups that are useless for production tasks. In order to be useful for my agentic tasks, I must achieve at least 100k context window and at least 30 token per second, beneath that it is hard to justify a real life usage for me. Fancy token per seconds figures below 100k context window, additionally not telling anything about quality, are plain worthless to me.

On a personal note:

  1. All of the plug and play environments like i.e. LMStudio and Unsloth are nice to play around with, but all of them failed me for larger projects. Also they did not really comply when it comes down to really optimize everything, down to the last bits and bytes. For a quick comparison i still might use them, but i completely switched to standalone inference backends and a seperate harness on my everyday use.
  2. I fell in love with Deepseek Harness as my driver. Everyone needs to make there own decision, and there are alternatives. Nevertheless - dont run your model without any harness, it literally amplifies the capabilities so much. And always consider vision, the feedback loop during agentic tasks that vision can provide is definitely a game changer, if you are doing anything with visual elements / UIs.
  3. I´d love to upgrade hardware anytime soon (yeah, as we all do), but currently just cant afford any meaningful upgrades since I have family, house and kids, etc. So there are priorities.

--- DISCLAIMER END ---

Hey,

i've been reading silently in here for a long time and I've been running local setups for inference and training for about 3 years now. It all began with writing an internal paper for my company, training local models for usecases that can't be driven via API cloud solutions.

At home i have a "regular" gaming machine, which back then wasn't built for AI loads, but for gaming and everyday usage.

  • Core i7 265KF @ 200s mode
  • 48 GB DDR5 8000 CL40
  • Gigabyte Z890 UD6 Wifi
  • Gigabye RTX 5080 Auros Waterforce Extreme with a little Overclock
  • 2 x 1TB Samsung 980 Pro SSD (One hosting Windows, one hosting Ubuntu)

It is a decent machine, but there are some limitations for AI workloads for sure, due to the VRAM budget.

--- Setup ---

How am I running those two models on this rig? (Read the disclaimer, if you are wondering about the different quants etc)

ModelQwen 3.8 27bInkling 2 Mini
QuantizationUD-IQ3_S (Link)NVFP4 + MXFP8 (Link)
KV CachekVarN K4V3FP8
Context Window115200128000
Speculative DecodingMTP 3 TokensMTP 3 Tokens
Reasoningxhigh, 16384 Token budgetxhigh, 16384 Token budget
Inference EngineBeellama (Llama.cpp Fork with kVarN cache support)Basalt
Performance estimate (under 15k)Prefill 1900 token/s Decode 63 token/sPrefill 5000 token/s Decode 150 token/s
Performace estimate (close to 100k)Prefill 1200 token/s Decode 48 token/sPrefill 2300 token/s Decode 100 token/s
HostUbuntu 24.04 with XFCE lightweight IDEUbuntu 24.04 with XFCE lightweight IDE
RemarksFully fits in VRAM, only vision module offloaded to CPU. kVarN Caches are mandatory in order to fit this model vram. Offloading is not an option for performance reasons.Partial offloading. I optimized the MoE offloading based on an analysis of my usage history. Basalt source Code showed me that the offloading priority was static with inkling.

Linux is mandatory imho, better software support and the lightweight IDE lets me maximize the available VRAM, because i dont have a second GPU, nor an iGPU on the 265KF. If i had a second GPU, Linux containers under windows might be an option as well - though i personally prefer the native route.

But yeah, those two setups run "efficiently" on my machine, using round about 15 gb of Vram, leaving me some headroom for the OS and other tasks.

The compaction engine in Deepseek Harness has been adjusted, so that it triggers somewhere between 75% - 90% context window usage. I leave the latest 10k tokens of context untouched and only compress the history before that. All in all, after compaction I usually end up around 30% context window, including tool usage injections. Leaving the latest context untouched greatly helps improve quality from my experience.

--- Comparison ---

--- Scenario 1 - Plain Coding ---

I have tried around a little on different projects I am currently working on. Baseline so far is: Inkling gets things done and not in bad way. From my subjective experience, i still feel like Qwen has a slight Edge, but it is reeeeally close.

To have something directly comparable for this post I gave them the same made up task:

New Project Folder, just a spec.md fie and the prompt "Read spec.md, execute".

This replicates how i often work, I create the specs with ChatGPT or Claude and let the local model do the rest. I only use the Free versions of ChatGPT or Claude, I have no subscription - but for creating the plan / specs the free solutions usually suffice.

In this case the task is creating a Benchmark that calculates PI

  • Rust has to be used
  • GUI is obligatory
  • CPU Singlethreaded path
  • CPU Multithreaded path
  • GPU OpenCL Path
  • 100k digits

While this might not be the most complex task, it sure has some challenging aspects to it. Here are the results:

ModelQwen 3.8 27bInkling 2 Mini
LLM inference time107 minutes49 minutes
Toolcall time2 minutes5 minutes
Generated Tokens320k300k
Cached Tokens18.9M28.6M
Average Speed (reported by DSH)57/token/s117 token/s
GUI*34
CPU Singlethreaded*2.55
CPU multithreaded*42
GPU OpenCL*42
PI digits are actually correct?*4.53.5

*The actual evaluation was done by Deepseek Flash V4017 via API - Only beeing presented with the results and the task to rate the results on a scale of 0 to 5.

Deepseeks Verdict:

"PIBench (edit: which was Inkling) is the much faster π engine, especially single-threaded, and its export/reporting is more complete. But it has a broken multithread scaling behavior, a hard 500k-digit limit, weak 100-digit validation, and a misleading “valid” GPU result.

PIBench 2 (edit: which was Qwen) is the better benchmark: honest about precision, strong 100k validation, good multithread scaling, and a more capable GPU path. It is, however, dramatically slower on CPU and its Results GUI is partly inaccessible.

PIBench 2 (edit: Qwen) wins overall — it is the more correct, honest, and scalable benchmark — though PIBench remains far faster on CPU and would win if raw speed were the only criterion."

Human Verdict:

Taking the result of this comparison into consideration it is exactly as i had felt before. On coding tasks the two are pretty close and probably a combination of both, one for creation and one for reviewing makes the most sense, in order to get the best of both worlds.

--- Scenario 2 - Other Tasks ---

I have been tinkering around with a pipeline that automatically researches and creates reels as a sidegig. Snippets of historic events or people - these are my relatively fresh channels on youtube that are driven by my local AI:

GouacheGazette

... and the spanish version: GouacheGazette_ES

You dont have to like the content, it just shows a different use case that usually is not covered in synthetic benchmarks. What role do the LLMs take in there?

  • Handle the document storage
  • Research new stories and document them
  • Create the story arc and narration - Imagine it like a scene script
  • Prepare the instructions files for the "Rendering Pipeline" (In there are other local models embedded for handling visuals and audio)
  • Prepare the auxilary information for the uploads like title, subtitle, etc

Qwen 3.8 27b has been my main driver in here, but i gave it shot with inkling 2 mini now as well.

Observations

Due to the complex rules and gates a storyline must pass in my pipeline, before it assessed as a pass, it actually takes some tokens to get there. Usually we are talking about several million cached tokens and about 150k to 250k generated tokens per story. These are the numbers:

ModelQwen 3.8 27bInkling 2 Mini
Stories created100+10 for testing purposes
Average completion time60 minutes25 minutes
Number of minor flaws per story*2-36-7
Number of major flaws per story*0-12-3
Other remarksThe cold review sometimes fails after 3 subagent rounds (hard limit), because it overthinks every single detail. (Leads to story dropped status)1. Messed up the internal storage by skipping IDs in one case. 2. More or less skipped the cold review by a independent sub agent as tasked per contract 4 out of 10 times and just reported everything is fine.

* Minor flaws are little inaccuracies in the story telling, i.e. if facts are not 100% precisely implemented or interpreted from the facts, but on an acceptable level. Major flaws are straight up factually wrong pieces of information or grammatically wrong sentences in the narration etc.

Verdict: As much as I would like to adopt Inkling for the story creation, in this specific task the drop in quality is substantial and does not justify the time gain.... Sadly.

--- Final remarks ---

What I was really curious about when testing inkling 2 mini in my setup, was to see if the "higher" quant using nvfp4 and fp8 cache would elevate inkling above my kVarN cached IQ3 Qwen, because those are the models i can effectively run. QFN sadly wont run in a meaningful quant, due to not having enough system ram - and i wont try Q2 stuff, sorry - but that cant ever really work out.

For me personally, in most scenarios the Ultra Dense IQ_3S Qwen has the edge above the nvfp4 Inkling 2 mini. To be honest, I had expected other results considering the quantization. Nevertheless there are scenarios where I will apply Inkling in my personal production. It is close on coding, but loses on more general tasks from my testing so far.

Hopefully anytime soon I will be able to combine the two models with a local routing in a meaningful way. But that requires at least an orchestrator on a second GPU. Maybe some lightweight used GPU suffices for that task. Until then, i will probably apply a manual mix of both.

My 2 cents

PS: I had been thinking a lot if i should make a guide about how to setup these environments for other people restricted by their hardware - especially the 16 gig scenario which is tricky... Please let me know if anyone is interested in that. Why? Cause i feel like most setup guides just show you how to create a fancy environment for single prompt show off, not a productive one.

PPS: yes, i have actually written this by hand :)


r/LocalLLM • • 12h ago

Question Will DDR5 instead of DDR4 actually make a difference with QFN

20 Upvotes

Couldn't really find any data on this, how significant is the speed difference when off-loading QFN weights to DDR4 system ram VS DDR5. Like is it night and day or are we talking tiny improvements? Does anyone have any actual experience with both?


r/LocalLLM • • 5h ago

Discussion Recommend a local llm for a writer

5 Upvotes

Hey. I'm new to local llm's. I'm a writer and intend on buying a decked out MacBook in the near future. Think 128gb M5 max. I'm still learning the terminology but I'd like to see how you, if you're a writer, used ai. I know I can use Gemini for docs, which I will use, for at least 2 months before I think about new hardware, but was using a local llm worth it for you? I want it to be a writer partner I can talk to to point out my writing shortcomings and also use it for grammar corrections.


r/LocalLLM • • 7h ago

Discussion Inkling 2 Mini - 2 x 5070ti 16gb

Thumbnail
gallery
7 Upvotes

After watching https://www.youtube.com/watch?v=tBtmWBwcgP4&t=1507s I retried Inkling 2 Mini, which previously scored fairly low on my own benchmarks (around 70/100), compared to 80-90+ for Qwen Flash Next and Qwen 3.8 27b.

Then, Basalt dropped an Inkling 2 Mini package!

Currently running it with Basalt across both GPUs, getting 160-230 tp/s with up to 9k prefill. I have also enabled P2P on my GPUs which slightly helps. At deep context it cruises at 100tps pure thinking, so I suppose that's the bottom floor. And 262k context for those curious. And a 5700x3d/DDR4 PC, Gen 4 x8/x8 PCIE.

Obviously very usuable speeds. The big shift for me was taking the thinking level recommendation from Unbiased Bob, and following that my results went to 100/100 (partially also due to using the Basalt quant, which was a bit less quantized than the Unsloth one I had originally).

What strikes me is firstly that the model is comparatively tiny, compared to the Qwen Flash Next models - I run it around the same speed as my Unsloth IQ3_XXS model, with around the same capability for my use case (everyone's use case would change how well it works), without the 70gb of RAM required.

The second thing is the fact that the thinking level has a significant impact on the actual thinking usage, I use 1/10 - 3/10. I have a local CAD software I (AI) created, which works better agentically, and this was a long proces for Qwen models, which would seriously overthink even on Low, and runs would take 10-15 minutes for the first draft. Inkling can get the first draft done in a couple minutes. It also has a very good intuition about building, for example, the wavy bowl example (which was from an image I provided as inspiration), it created planes of sketches of different organic shapes and just connected them, probably the simplest/efficient method.

The Piston example took the time it took me to write this post for the first draft, then I provided some more example images to help it understand how they work and make it more accurate.

I haven't bothered comparing with Qwen, in my previous tests these would have taken a huge amount of time and produced intersting results (very scientific, I know).

I recommend everyone try the Basalt version of this model with 1-2/10 thinking.

https://huggingface.co/jesdga/Inkling-2-Mini-Basalt


r/LocalLLM • • 2h ago

Question Opinions for Best use of 200gb vram Setup

2 Upvotes

How would you configure a 208GB VRAM rig for a full local Agent setup?

German translated via ai to english,

Hey everyone,

​Iam looking for a sanity check and some optimization ideas from the community. I finally got my hands on some decent compute and want to make sure im not leaving performance or smarter architecture on the table.

​My Hardware:

​2x NVIDIA CMP 170HX (80GB each, unlocked)

​2x RTX 3090 (24GB each)

​Note: All four cards are connected via PCIe 3.0 x4.

​The Goal:

I want to run a complete always-on personal AI ecosystem locally:

​1. A strong main model (Swift 1.5 Flash Next, minimum IQ4_NL) with a agent framework (currently looking at the Hermes framework)

​2. Always-on STT and TTS loaded in VRAM for real-time VoIP interaction

​3. Always-on Embedding and Reranker models for a fast RAG

​4. A fast secondary model (around 27B at Q4) to act as a sub-agent for grunt work, plus handling quick, non-agentic tasks like chat title generation or simple queries.

​My Current Setup:

Right now I have it split up like this:

​The two CMP 170HXs: Running Swift 1.5 Flash Next split across both cards using Strata, with all experts kept in cache. Im getting around 150–200 t/s decode, which feels pretty snappy.

​3090 #1: Dedicated strictly to utility models—STT, TTS, Embedding, and Reranker all sitting permanently in VRAM.

​3090 #2: Running Qwen 3.8 27B (Q4_K_XL) at roughly 150 t/s, handling sub-agent tasks, title generation, and quick background prompts.

​Everything works and the PCIe 3.0 x4 bottleneck hasnt really hurt inference since everything stays resident in VRAM. Before I lock this config in and build out all my workflows around it, I would love to get your thoughts:

​1. How do you like this hardware/VRAM split?

​2. Would you use a different agent framework? Im New with Hermes right now, but if you think something else is better in handeling multi-model routing (main orchestrator + fast sub-agent), im all ears.

​3. Would you swap any of the models or change the distribution? Given the 208GB total VRAM pool, is there a better main/sub-agent combo I should be looking at?

​Appreciate any feedback or ideas!


r/LocalLLM • • 7h ago

Research My Plan to Run Kimi 3.1 on “Consumer” Hardware - Critique Wanted

5 Upvotes

Waiting on the motherboard to show up for an SP3 box I'm putting together, mainly to run Kimi K3.1 Pro for single-stream coding agents. Before I burn a pile of Colab units prepping weights, I wanted to post my bandwidth math and see where smarter people and those who have actually run K3.1 or big MoEs on Milan think it makes sense/is stupid.

My hardware is an EPYC 7543 (32C/64T Zen 3, 256 MiB L3, AVX2 only so no AVX-512 or AMX) on an ASRock Rack ROMED8-2T/BCM, with 8x 64 GiB Kingston 2Rx4 DDR4-3200 RDIMMs filling all eight channels (~170 to 175 GB/s real read if it behaves) and four 24 GiB 3090s. The cards will go in PCIE1, PCIE3, PCIE5, and PCIE7. PCIE2 stays empty because it shares lanes with the onboard M.2 slots on this board. Storage right now is just one cheap 2 TB Gen4 M.2, and I also made the questionable call of ordering 1000mm passive Gen4 risers, so my first job after POST is watching `dmesg` for AER replay errors under `nvbandwidth` and swapping to shorter twinax cables if any link drops to Gen3. I also have 2,000 monthly Colab units (96 GB Blackwell G4 access) plus ~$300 in RunPod credit for one-off prep.

I originally wanted to copy AI with Eric's 30-50 tok/s video setup using `local-inference-lab/Kimi-K3.1-Pro-EXL3-2bit` (742 GiB raw) or `Grawnch/Kimi-K3.1-Pro-Coder` (722 GiB), since Grawnch's 3-tier quant held 29/30 on AIME and LiveCodeBench. With ~488 GiB of usable host RAM and ~90 GiB of usable VRAM, a 720+ GiB model still leaves 125 to 170 GiB on disk. Even if experts are sorted by routing frequency so only ~3% of selections miss into the cold SSD tail, 3% of ~13 GB/token is ~400 MB of random reads per token. On one DRAM-less 2 TB drive doing maybe 1.2 GB/s on 6 MB chunks, that is ~330 ms of disk wait per token (<3 tok/s) before any compute happens. I also checked `grawnchtoader/strata`'s `engine.py` and noticed the public fork currently skips K3.1's sparse DSA indexer and allocates dense FP32 KV, which works out to ~72 GiB at 32K context.

Even `KarLexAI`'s `KLX-IQ1_S` GGUF (552 GiB) has a catch I almost missed. Roughly 522 GiB of that file is routed experts. If host RAM holds all routed experts while `llama.cpp`'s `--moe-cache-mib` copies hot ones into VRAM, the host side still exceeds 488 GiB and spills ~34 GiB to swap or mmap eviction onto that slow SSD.

Once the board arrives, my Day 1 plan is stock `llama.cpp` (PR #31779 + `--moe-cache-mib` + `--moe-cache-cpu-share 0.70`) on `KarLex IQ1_S`, with `-ot` rules pinning Layers 1-8 experts (~45 GiB) exclusively on `CUDA0..3`. That drops the host RAM portion to ~477 GiB so the SSD stays out of the loop, and should land around 9-13 tok/s while I record real routing traces on my repos with `LLAMA_MOE_CACHE_TRACE`.

While I wait on shipping, I'm using Colab G4 to build a ~470-480 GiB checkpoint from `gureshov/Kimi-K3.1-Pro-Coding-720E` (and comparing it against `nota-ai/Kimi-K3.1-Pro-Global-Pruned-37`). Both are already pruned on HF, so I don't have to rent an 8x H200 node just to run REAP. Colab's `/content` disk caps out around 253 GB, so my script pulls raw MXFP4 shards two layers at a time, quantizes on the 96 GB G4, pushes the compressed shard to HF, and wipes `/content` before grabbing the next pair. For precision, I'm borrowing Local Inference Lab's Nov 25 `kda-all` split: keep routers, norms, AttnRes, and the 24 DSA top-2048 indexers at BF16/Q8; keep the 24 DSA attention layers, all 92 shared expert pairs, and the LatentMoE projections at 6-bit; put the 69 KDA linear-attention layers at ~4.25-bit (~34 GiB core total in VRAM); and put the kept routed experts at ~1.92 to 2.15 effective bpw (~435-445 GiB in DDR4, which leaves ~48 GiB of VRAM across the four 3090s for an LFRU expert cache).

To get into the 20-26 tok/s range with exact verification, two runtime pieces have to come together. Serial layer split (`PP4`) only uses one card's PCIe 4.0 x16 link (~24.5 GB/s) on the active layer and scans the 34 GiB core on one 3090 at a time (~47 ms), whereas splitting each layer across all four cards (`TP4` or `EP4`) pulls across all four x16 slots (~94 GB/s DMA) plus ~30% CPU AVX2 miss execution (~140 GB/s combined cold service) and drops the core scan to ~19 ms with P2P all-reduce. From there I want to hook up `gureshov/Kimi-K3.1-Pro-Coding-720E-DSpark` (using `llama.cpp` PR #31669's KDA recurrent state replay and features from layers 76, 80, 84, 88, 92), with draft length capped around `K=2` or `K=3` and Tencent's `AngelSpec` `D-cut` confidence truncation cutting off weak tail tokens. When I simulated correlated Zipfian routing at the datacenter default of `K=7` (8 positions verified at once), the union of distinct uncached experts per layer jumped from ~6 to ~38+, which made `K=7` slower than `K=2..3` on code and slower than plain `K=0` greedy decode on general chat.

If memory traffic still keeps me under 20 tok/s, I have two backup experiments queued up on Colab: `AcceptMoE`-style skipping of low-weight (<3% gate) cold DDR4 misses on speculative tail positions (checked against a 50-task coding eval), and a 6-layer pilot factoring all 896 LatentMoE (`3584 x 3072`) experts into GPU-resident shared group bases plus 4-bit rank-384 streamed residuals (run through K3.1's actual `SiTU` activation before RMSNorm) to see if unpruned 896E can fit in ~360 GiB without losing on quality or 3090 kernel launch overhead.

A few things I'd really appreciate input on:

  1. For anyone running `DSpark`, `DFlash2`, or MTP on RAM-offloaded MoEs (DeepSeek V4.1, GLM-5.3, K3/K3.1), does throughput actually fall off past 3-4 drafted tokens from expert-union bloat like my simulator says? And has anyone tried Tencent's `DFly2` (sharing the target's sparse KV and top-2048 indexer) or `D-cut` outside their Hy4/DS4 configs yet?
  2. `llama-moe-cache.cpp` currently throws if you enable row-split tensor parallelism, and `kimi-k31.cpp` doesn't register `t_layer_inp` for `DSpark` yet. Would you patch those two gaps in `llama.cpp`, or start from `ThatSimpleTech/project-maya-fork` (PR #962) or `JustVugg/colibri` for 4x `sm_86` streaming?
  3. On Milan + `ROMED8-2T`, is the patched open kernel driver (`aikitoria` / `tinygrad` BAR1 P2P + `NVreg_EnablePCIERelaxedOrderingMode=1` + `iommu=pt`) solid under sustained 4-card DMA and all-reduce, or is it worth buying two rigid 3090 NVLink bridges for pairs `(0,1)` and `(2,3)`?
  4. At the same ~475 GiB RAM budget, would you bet on `Coding-720E` at ~1.92 bpw or Nota's nonuniform 37.5% global prune (`Global-Pruned-37`) at ~2.15 bpw for multi-file repo edits?

I wrote a pure-Python roofline/expert-union calculator, the Colab G4 2-layer sliding-window scripts, and the Day 1 `llama.cpp` `-ot` trace configs for this. Happy to throw all of it up in a public repo if anyone else building an SP3 / multi-3090 rig wants to use it or tear my math apart.


r/LocalLLM • • 2h ago

Project libosmos v0.19.0: improved performance and stability, with lower time to first token. up to ~1250 tok/sec prefill on inkling-2-mini (release weights, unquantized), >30% higher decode on hy4-flash and inkling-2-small, all on a single strix halo 128GB

Thumbnail
github.com
2 Upvotes

r/LocalLLM • • 8h ago

News Sber Releases GigaChat 4 37B-A4B With a 23.3 GB Four-Bit Download, Reports 70.8% on SWE-bench Verified

Thumbnail gallery
5 Upvotes

r/LocalLLM • • 2m ago

Discussion Which LLM model is best

0 Upvotes

I am setting up Hermes agent but local llm are worst so thinking of using other LLM model so which one should I use for daily task like scheduling or using it as personal assistent thinking of DeepSeek flash 4.1 or any suggestion??


r/LocalLLM • • 4h ago

Research I tested a small "Anti-Draft" idea for MTP (~6–8% live gain on Strata, and why llama.cpp's p_min loses speed today) — raw data & C++17 header

2 Upvotes

Hi everyone,

I wanted to share a small, humble experiment around Multi-Token Prediction (MTP) that I call Draft-Gate ("Anti-Draft"), along with all the raw benchmark data, charts, and a standalone MIT-licensed C++17 reference header.

The simple idea

MTP works like a fast helper trying to guess your next 3–4 tokens while the main model speaks:

  • When the model is writing code indentation, JSON structure, or finishing the second half of a word, the helper guesses right 85%–95% of the time (great speedup).
  • Right after a verb, article, or preposition (the, of, de, uma), language suddenly opens up into thousands of valid paths, so a small 1-layer MTP head misses around 35%–45%+ of the time.
  • Checking bad guesses isn't free—especially on partially offloaded MoE models, where each extra draft token drags different experts out of RAM/CPU.

So instead of always guessing blindly, the idea is simply knowing when to stop proposing extra drafts early based on uncertainty, language boundaries, and how expensive an extra draft actually is on your hardware.

What we actually measured (RTX 3060 12 GB + Xeon E5-2695 v4)

  1. Live benchmarks on Linux — Strata 0.1.54 (Qwen3.8-Flash-Next 125B IQ3_XXS, 360 runs / 5 mirrored rounds):

    • One honest note upfront: my Strata setup is heavily tuned specifically for this RTX 3060 12 GB + Xeon rig (custom Portuguese draft vocab, 187 W power limit, STRATA_QSA_SPLIT_ATTN=1, plus STRATA_ROUTE_PRIOR=1.5 and STRATA_ROUTE_TAIL_SKIP=7 identically on every arm—all exact flags are listed in EXACT_PARAMETERS_AND_BENCHMARKS.md), and if you've used Strata before you may have noticed its reported tok/s can look a bit higher than what day-to-day usage feels like. What matters here is the relative difference under identical settings—and that gain was consistent across rounds:
    • On Strata's normal --spec 4 setup, moving from no cutoff (p_min=0.00) to p_min=0.65 lifted overall weighted speed by +8.1% (68.3 → 73.8 tok/s, winning 40 out of 50 paired runs—and nudging +1.1% / +9.5 pp acceptance past Strata's own 0.50 default), with +11.6% on Portuguese prose, +13.7% on English prose, and +7.9% on Python. That confirms live that dynamic draft pruning pays off cleanly once per-window CUDA Graphs are in place.
    • (On a wider --spec 5 window, static MTP slowed down heavily in prose—even falling below turning MTP off—and pruning recovered most of that loss, though --spec 4 remained the faster overall setting on a 12 GB card.)
  2. Live benchmarks on Windows — llama.cpp b12800 (CUDA 13.5):

    • Important catch on dense GPU models: On Qwen3.5-4B and 9B running fully in VRAM, enabling llama.cpp's existing --spec-draft-p-min actually dropped speed by −15% to −35% (105 → 68 tok/s). Testing with CUDA Graphs on vs. off showed why: llama.cpp currently caches only one CUDA Graph shape, so changing the number of drafts per step keeps breaking the graph cache. Strata doesn't hit this wall because it caches one CUDA Graph per window size (T=1..8), which is why adaptive pruning works live there.
    • Where it already wins live in llama.cpp: On partially offloaded MoE (Qwen3.6-35B-A3B), pruning already beats static MTP live (+6% at K=4, and even more at K=6, especially in prose).
  3. The main Draft-Gate proposal — going beyond a manual, fixed p_min:

    • Testing across Qwen 3.5/3.6/3.8, Google Gemma 4 26B, and Zhipu GLM-4.7-Flash 30B showed that different MTP heads have totally different confidence biases (some are overconfident at every depth, others only collapse on deeper drafts). A single fixed p_min tuned by hand can't stay optimal across models, quantizations, or nonlinear MoE cliffs.
    • So we wrote a small, ~25-line Zero-ML C++17 controller that self-calibrates each depth and measures each window's real cost online (paired with multi-bucket CUDA Graphs in engines like llama.cpp). In trace simulations across 13 regimes (not yet live-patched inside llama.cpp), it gave a modest, steady ~6%–12% gain over the best static K without manual threshold tuning.

Links (full docs, raw data & proposals)

Transparency

  • Lossless relative to MTP: Draft-Gate never touches model weights, logits, or sampling—it only decides when to stop proposing extra draft tokens. So it is lossless relative to what the engine already produces with MTP (not claiming bitwise identity with a non-MTP base run, since multi-token verification itself can round slightly differently on quantized kernels).
  • Languages & quantizations: We tested Portuguese, English (plus a smaller held-out set in Spanish, French, and German), code, math, and JSON across Q2_K_XL, IQ3_XXS, Q3_K_XL, IQ4_XS, Q4_K_XL, and Q8_0 (Q4 and Q8_0 gained too, not only < Q4). Other languages (like CJK or Arabic), higher quantizations (FP16/BF16), and other GPUs were not tested, so results there are unknown and could vary.
  • AI collaboration, prior art & replies: The core intuition is mine, and I used Gemini 4 Neon to design and run the benchmarks, analyze the logs, and write the technical deep-dive and C++17 code (I'm not a specialist in the low-level terms—those details are kept in a separate technical section of the repo). I genuinely don't know if this exact idea already exists somewhere in the literature or another engine. And as I'll be pretty busy in the next few days and I'm not that experienced here, I probably (please don't judge for that) won't be commonly replying to comments or follow-ups, which is why every parameter, raw file, script, and an LLM-friendly guide (FOR_LLMS.md) are published in the repo for anyone who wants to reproduce, verify, or build on it! Feel free to share your thoughts!

r/LocalLLM • • 26m ago

Discussion [Solved] Qwen3.8-27B GGUF crashes on Apple M5 Max — fix: set Max Concurrent Predictions to 1

Thumbnail gallery
1 Upvotes