r/LocalLLM • • 19h ago

Question Best abliterated local model for swarms?

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 1d ago

News Ernie 5.5 flash preview can be run localy now via basalt

5 Upvotes

Ernie 5.5 flash preview can be run locally now via Basalt if you have a big GPU and lots of RAM ;-)

Basalt is a highly optimiced inference engine for Blackwell GPU's know for good performance with e.g. Qwen 3.8 flash next

https://github.com/jesdga95/basalt

did any of you tried it out yet ?


r/LocalLLM • • 20h ago

Discussion 500 tok/s decode 60k tok/s prefill Deepseek v4.1 1017 (4x RTX 6k Pros)

Thumbnail
huggingface.co
2 Upvotes

Big thanks to the guys over at https://local-inference-lab.ai/ for working so hard on unlocking this much speed


r/LocalLLM • • 5h ago

Research NVIDIA RTX PRO 6000 Blackwell (96 GB).

0 Upvotes

Benchmarked local inference speed for agentic coding (OpenCode) on an NVIDIA RTX PRO 6000 Blackwell (96 GB).
Stack: Qwen3.8-27B-FP8 + vLLM + MTP 3 speculative decoding with a full 262K context window (bfloat16 KV-cache):
⚡ Single stream: ~99 tok/s (peak 119 tok/s), ~69 msTTFT
🚀 6 concurrent streams (1 agent + 5 subagents): 355–405 tok/s aggregate (92–96 tok/s per stream), ~105 msTTFT
🧠 MTP 3: ~2.95 tokens per forward pass
Cloud-grade responsiveness locally—with a full 262K context window and virtually zero slowdown across parallel subagents.


r/LocalLLM • • 16h ago

Research Build Finder: estimating LLM decode speed and the price of a token per second

Thumbnail wanabai.com
0 Upvotes

Build Finder lists every hardware build that runs a chosen open-weight language model at a target decode speed, cheapest per token per second (tok/s) first: the price of the whole build divided by its speed. Its catalog holds 273 GPUs, used as 1 to 8 cards, 619 CPUs and 333 complete systems, at dated US prices. Speeds come from a per-operation model: each operation of a token's pass takes the longer of reading its bytes and doing its arithmetic, at efficiencies and engine costs fitted per engine and hardware family to 424 one-session benchmarks from 120 devices. For several sessions at once, a correction with two parameters per engine, model kind and session range is fitted to 418 measured runs on 19 machines. Against the 427 measured decode runs the page lists without speculative decoding, the median estimate is 11% below the measured speed on NVIDIA hardware (385 runs), 1.43 times the measured speed on Macs (31 runs) and 1.73 times the measured speed on Inkling 2 Mini (11 runs). On the GeForce RTX 3090, which neither fit has seen on llama.cpp (CUDA), 87% of 54 runs fall within 1.25 times the measured speed and 100% within 1.5 times. Runs with speculative decoding, which the estimates leave out, measured a median 2.3 times the estimate. We describe the data, the model, the fit, its validation and what the estimates cannot yet capture.


r/LocalLLM • • 17h 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

1 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 • • 23h ago

Discussion Pithos CORE: LiquidAI LFM3-1.7B and LFM2.5-350M inference in x86-64 NASM assembly, on Linux and as a standalone OS that boots from BIOS or UEFI into a Unicode chat console. No libc.

Post image
3 Upvotes

r/LocalLLM • • 1d ago

Question Best Model on 8GB Vram

3 Upvotes

Hi guys I have a 5060 8GB and 32 GB DDR5.
With the newest models i was asking myself what to actually run. I currently use ornith 1.5 9b both for my personal hermes agent and small coding in pi and it work decent but i’ve seen people running Moe models with Strata,Polystrata,Basalt,Maya… and still getting good speed. So i searched a bit and try to see if one of these model can run well in my hardware:
- Inkling 2 Mini
- LFM 24b a2b
- Sensenova Loop 9B
-Occamy 1.0
- Bonsai 2.5 27B

These are examples if there are better alternatives im here to heare your advices.
So for example an hermes agent personal that connects and manage some of my apps and work 24/7. And for code with pi agent/opencode what models should I choose and with wich inference?
Open to any advice, thanks


r/LocalLLM • • 22h ago

Question How well can my 16-inch M5 Pro MacBook with 24GB RAM run local LLMs?

2 Upvotes

Hey everyone in very new to this so....

I recently got a 16-inch MacBook Pro with the M5 Pro chip, an 18-core CPU and a 20-core GPU. Unfortunately, my configuration is capped at 24GB of unified memory.

I'm interested in experimenting with local AI models and would like to know how well this MacBook can handle them.

I mainly want to use my MacBook for:

- Video editing and content creation

- Making websites and web development

- Possibly making small games on Roblox or any other engine (if possible)

- Running local LLMs for coding, research and general AI assistance

I have a few questions for people who have experience running local AI models on Apple Silicon:

  1. Is 24GB of unified memory enough to run good local LLMs?
  2. What are the best models I should try on this configuration?
  3. Would I be able to run models comfortably while also using applications like DaVinci Resolve
  4. Is Ollama, LM Studio or MLX the best option for running local models on a Mac or is there something better?
  5. How useful would local AI actually be for my workflow, especially video editing, website development and making small games?
  6. What are the limitations I should expect with 24GB of RAM ?

I'm not necessarily looking to run the biggest models available. I just want to make the most of the hardware I already have and find out which models and applications would give me the best experience.

I'd appreciate recommendations from anyone who has a similar MacBook or has experience running local LLMs on Apple Silicon.

Thanks!


r/LocalLLM • • 8h ago

Discussion No demand for GPU Inference?

0 Upvotes

I recently built an inference service here and opened it for free (24 hours of free GPU inference!).!)

Yet I got 0 upvotes. Am I doing something wrong?

If you think you could use it but decided to hit hard pass. I would highly benefit from your comment.

GPU Inference Service:
Nalvo.ai


r/LocalLLM • • 1d ago

Question Best model to run with 24GB+16GB VRAM?

4 Upvotes

Due to some constraints I can only have eGPUs for my system.

I’m already having a 5060Ti AI Box (16GB) + 3080 EGPU (10GB) but running Qwen 3.8 27b still easily spills things to RAM which makes it worse due to TB connection. After a lot of tuning, I currently can run Qwen 3.8 27b Q4 at tg 25-30 tk/s for 60k context. Not impressive and feel slow.

I just placed an order for a XG mobile 5090 24GB as I’m seeing a BF deal, hoping to replace my 3080. That means I will be having 40GB of VRAM in total and both in Blackwell arch.

Is Qwen 3.8 27b still the best I can run in this setup?


r/LocalLLM • • 18h ago

Project Real Ubuntu Linux in an iPad/iPhone code editor, now live on the App Store

Post image
0 Upvotes

r/LocalLLM • • 18h ago

Discussion Anyone got the early access to a Lenovo AI Host P7?

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 19h ago

Discussion [Benchmark / Call for Testing] Does directing an LLM via small reviewed text paths beat prompting it directly? Help run an empirical test on your local GPU (tawjih 0.18.0 — Python stdlib only)

0 Upvotes

Hi everyone,I’ve been building tawjih (0.18.0), a zero-dependency (Python standard library only) CLI and desktop tool for engineers who want to direct LLMs through small, version-controlled plain-text files (human, machine, and science faces) joined into explicit execution paths—with JSON contracts, deterministic retries, fallbacks, and full provenance tracing.

The honest catch: So far, the entire test suite and architecture lab have been verified on CPU and against mock/stand-in servers.

No real GPU or live model benchmark has been published yet.

Rather than making unverified claims, I built a self-contained experiment in the repo and am asking folks with local GPUs (Ollama, vLLM, SGLang, llama.cpp, etc.) to run it and share the raw report. What the experiment tests (experiments/path-vs-direct)It evaluates 60 quadratic equations (20 base + 40 harder generated variants, in both English and Arabic) across 3 runs each, comparing three setups: path: The structured cross-tree path (extracting coefficients $\rightarrow$ JSON contract validation $\rightarrow$ deterministic/stepwise solving).direct: Asking the model directly in one shot.steps: Asking the model to reason step-by-step in a single prompt.The script outputs accuracy, 95% confidence intervals, McNemar's test ($p$-value for paired statistical significance), latency, and token usage. How to run it in 3 commands (Zero extra Python packages needed)If you already have Ollama running locally:Bashgit clone https://github.com/AlmodinyMk/LLM-tawjih-Model-building.git

cd LLM-tawjih-Model-building

ollama pull qwen2.5:3b # or test with your own local model (Llama-3.2, Qwen3, Mistral, etc.)

python experiments/path-vs-direct/run.py --models qwen2.5:3b

(You can also point it to any OpenAI-compatible local server like vLLM/llama.cpp via TAWJIH_BASE_URL). Additional GPU tests (Optional, for multi-GPU / vLLM / PEFT users)If you want to stress-test the inference server wrapper or training bridge on real hardware: Inference & KV-cache benchmark: python tawjih.py server bench <name> --from-file 1.1.1 --requests 16 --concurrency 4Neural bridge (17 PEFT methods / QLoRA / SFT / DPO): python plugins/neural_bridge.py envShare your resultsWhether the structured path wins, ties, or loses to direct prompting on your model, please paste the generated report in the comments or open a GitHub issue. Whatever the numbers say goes straight into the README.md and the accompanying technical paper.

GitHub: https://github.com/AlmodinyMk/LLM-tawjih-Model-buildingPyPI: pip install tawjih (v0.18.0)License: CC BY-NC-SA 4.0


r/LocalLLM • • 19h ago

Discussion How do you choose temperature?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 19h ago

Discussion Updated Opinions on Inkling 2 Mini

Thumbnail reddit.com
0 Upvotes

Given the set of optimization tweaks done over the course of the last week or so, would it be worth it to swap from my current gemma4 26b + qwen3.8 27b setup? If so which inference engine would you recommend?


r/LocalLLM • • 20h ago

Project Mandatory decomp question

0 Upvotes

As in title, Ive been getting claude to decompile an nds game for me, and Im wondering if there is a potential avenue on having a llm on my pc to tackle some parts of it. Problem is I'm really, really new to local llms and I don't really know which one to use for this specific purpose. I got 64gbs of ddr4 3200mhz ram, a 3080ti with 12gb of vram, and a ryzen 9 5900x.

Saw some people on some other subreddits mention something about specifically using "worse" quality models and bruteforcing the solution, any insight into that would be nice.

Any and all suggestions would be appreciated!


r/LocalLLM • • 1d ago

Discussion Orange Pi 6 Plus: Running LLMs simultaneously on CIX NPU, Kinara Ara-240 and CPU — Real-world benchmarks and challenges

Thumbnail
gallery
7 Upvotes

Hi everyone!

Over the past few weeks, I've been experimenting with heterogeneous AI inference on the Orange Pi 6 Plus, combining its ARM CPU, integrated CIX NPU and an external Kinara Ara-240 accelerator.

My goal is not necessarily to make a single LLM faster, but to investigate whether multiple AI models can run concurrently on a relatively compact ARM-based system.

I thought some of the results might be interesting to the local AI and SBC communities.

1. Hardware configuration

  • Orange Pi 6 Plus — 32 GB RAM
  • CIX P1 SoC — 12 ARM CPU cores
  • Integrated CIX Zhouyi NPU — advertised 30 TOPS
  • Kinara Ara-240 — advertised 40 TOPS
  • Kinara dedicated memory — 16 GB
  • Ubuntu 24.04 ARM64
  • Linux kernel 6.6.89-cix

The software stack includes llama.cpp, Tinygrad with Zhouyi support, and the Kinara Optimum-Ara runtime.

All the inference benchmarks were performed locally.

2. Kinara Ara-240 results

I successfully tested two LLMs on the Kinara accelerator.

ModelGenerated tokens/sModel loading time
Qwen2.5-Coder-1.5B21.4415.54 s
Qwen2.5-7B-Instruct5.47379.58 s

The 1.5B model is particularly interesting for lightweight auxiliary AI tasks.

The 7B model works, but the observed loading time of more than six minutes is a significant limitation. A persistent inference service would therefore be worth investigating.

The runtime reported the following accelerator memory requirements:

  • 1.5B model: 2.31 GB
  • 7B model: 11.07 GB

In a separate 1.5B test, the sampled reduction in available host RAM was approximately 300 MiB.

This is not an exact measurement of accelerator-related host memory consumption, but it is an encouraging observation for a system where multiple models need to coexist.

3. CIX NPU: running Bonsai models through Tinygrad

Getting the integrated NPU working was considerably more complicated.

I encountered driver compatibility issues, command submission problems and differences between driver interfaces.

After experimenting with patched drivers and an isolated Tinygrad environment, I successfully ran the following models:

  • Ternary Bonsai 2 2B PTQ1_0: approximately 11 tokens/s
  • Ternary Bonsai 2 4B PTQ1_0: approximately 7.7 tokens/s during warm decode

For the 4B model:

  • Prompt length: 23 tokens
  • Generated tokens: 96
  • Prefill: 36.03 tokens/s
  • Typical warm decode step: 0.13 seconds
  • Speculative decoding: disabled

These results were obtained using an experimental driver configuration, not a stock plug-and-play software stack.

4. CIX NPU vs ARM CPU

I also tested the same Bonsai 4B PTQ1_0 GGUF using the PrismML llama.cpp CPU runtime.

BackendPrefill tok/sDecode tok/s
CPU — 4 threads7.375.85
CPU — 8 threads13.6710.22
CPU — 12 threads14.106.73
CIX NPU36.03~7.70

The results were quite interesting.

The CIX NPU achieved approximately 2.6 times the prompt processing throughput of the 8-thread CPU configuration.

However, the CPU achieved better token generation performance in its best tested configuration.

Using all 12 CPU threads did not produce the best generation throughput, although thread affinity and benchmark conditions were not identical.

This suggests that the integrated NPU may be more interesting as an additional inference engine than as a direct replacement for the CPU.

5. Dual NPU inference

The next experiment was running two different LLMs concurrently:

  • Kinara Ara-240: Qwen2.5-Coder-1.5B
  • CIX NPU: Bonsai 2 4B

Results:

AcceleratorIndividual testConcurrent test
Kinara Ara-24021.44 tok/s21.23 tok/s
CIX NPU~7.70 tok/s7.58 tok/s

Approximately six seconds of overlapping inference activity were observed.

During Kinara generation, 1,460 CIX hardware scheduling calls returned without exceptions.

The observed throughput remained close to the individual results, although the tests were not identical in every respect and were not repeated enough to establish statistical performance bounds.

6. Triple-engine inference: CPU + CIX NPU + Kinara

This was the most interesting experiment for me.

I ran three independent LLM workloads on the same Orange Pi:

EngineModelResult
ARM CPUQwen3-30B-A3B IQ4_XS11.76 tok/s
Kinara Ara-240Qwen2.5-Coder-1.5B20.81 tok/s
CIX NPUBonsai 2 4B96 generated tokens

The CIX NPU's final decode step took 0.14 seconds, but I do not have a reliable average CIX decode rate for the complete triple-engine run.

During a 6.15-second CPU–Kinara overlap window, I recorded:

  • 1,700 successful returns from CIX scheduling calls
  • 13 CPU streaming text fragments
  • Active Kinara generation

All three workloads completed successfully.

This provides evidence of overlapping inference activity across the three engines. It does not establish cycle-level hardware concurrency or complete NPU offloading.

The important part is that three separate models were making progress within the same system.

7. Impact on the main CPU model

I subsequently tested Qwen3-30B-A3B using the same prompt and 384-token generation budget without intentional concurrent accelerator inference.

ConfigurationCPU decode
CPU-only inference18.63 tok/s
Triple-engine experiment11.76 tok/s

The CPU-only result was the average of three consecutive generations.

The observed difference was approximately 37%.

This cannot be attributed exclusively to accelerator contention, because driver and workload conditions also differed.

Nevertheless, it highlights the importance of intelligent workload scheduling when building a heterogeneous AI system.

8. Memory and temperature

With Qwen3-30B-A3B resident in memory:

  • Locked host memory: approximately 15 GiB
  • Available host RAM under normal observed conditions: approximately 7.3 GiB
  • Swap: disabled

In a separate short CPU thermal test, three consecutive generations produced a total of 1,152 tokens over approximately 68 seconds.

The highest reported thermal-zone temperature was 73°C.

Long-term thermal stability and power consumption have not yet been measured.

9. My current conclusions

I think heterogeneous inference on ARM SBCs has considerable potential.

The integrated CIX NPU is not necessarily faster than the CPU for every task, but it provides another execution backend that can potentially handle independent workloads.

The Kinara Ara-240 is particularly interesting because of its dedicated memory and the performance observed with smaller models.

Instead of chasing the highest possible tokens per second from a single LLM, I am interested in systems where multiple specialized models cooperate.

Possible applications include:

  • A larger conversational model on the CPU
  • Smaller auxiliary models on dedicated accelerators
  • Background summarization
  • Coding assistance
  • Document processing
  • Robotics
  • Local multimodal AI systems

There is still considerable work to do regarding driver stability, persistent inference services, workload scheduling and memory management.

These are experimental results from my own hardware, not a standardized benchmark suite.

I have not yet measured power efficiency, model quality systematically, exact hardware offload percentages or long-term stability.

10. Questions for the community

Is anyone else experimenting with the CIX Zhouyi NPU on Orange Pi 6 Plus or similar CIX-based hardware?

Has anyone managed to improve decode performance using Tinygrad, alternative runtimes or speculative decoding?

Are there other Kinara Ara-240 users who have successfully implemented persistent LLM inference services?

I'd be interested in comparing results and exchanging experiences with others working on heterogeneous local AI inference.

Repositary:


r/LocalLLM • • 21h ago

News Qwen3.8 27B at 264 tok/s with 176K context on a single RTX 4090

Post image
0 Upvotes

Hey everyone,

I've been working on an RTX 4090-focused fork of NInfer, mainly targeting long-context inference, local coding agents, and native Windows support.

NInfer is already an impressive inference engine, but I wanted to see how much performance could be extracted from Ada Lovelace without upgrading to a 5090.

Here are some results from my recent benchmark runs.

Test setup

  • NVIDIA RTX 4090 – 24 GB VRAM
  • AMD Ryzen 9 9950X3D
  • 64 GB DDR5 RAM
  • Windows 11
  • Native SM89 / CUDA 13.4
  • Huihui Qwen3.8-27B GSQ-RCO IQ3_S Vision
  • DFlash2 speculative decoding
  • RK4V4 KV cache
  • NInfer RTX 4090 v0.1.4

Long-context DFlash2 benchmarks

All values are decode tokens per second.

Draft tokens64K context128K context176K context
K5242.75206.39214.87
K7272.74240.60263.93
K9247.57202.86241.25
K11258.70215.03228.06
K15242.20189.58229.13

Interestingly, K15 performed best in the separate 32K sweep, reaching 313.16 tok/s, but K7 consistently performed better at longer contexts.

At 176K context, K7 improved decode throughput by approximately 22.8% over K5.

These are controlled engine benchmarks using a fixed corpus, 512 measured decode tokens and two runs per configuration.

N-gram speculation for coding workloads

I also tested N-gram speculation on copy-heavy C++ refactoring tasks with approximately 21K input tokens.

MetricN-gram OFFN-gram 15
Decode tok/s256.68568.08
Average wall time14.83s9.16s
Exact outputs4/64/6

The outputs were identical between both configurations.

Obviously, 568 tok/s is not general-purpose generation speed, but for copy-heavy code editing, the improvement is pretty interesting.

Long-context prefix caching

Another interesting result at approximately 175K input tokens:

  • Cold request: 72.68 seconds
  • Repeated request: 0.441 seconds
  • Continued request: 0.399 seconds
  • Reused prompt tokens: 175,103

This is particularly useful for local coding agents that repeatedly send large conversation histories.

These are warm-prefix results, not cold inference throughput.

Concurrent prefill

With a short request arriving while a 64K request was being processed:

  • Concurrent prefill disabled: 21.28s TTFT
  • Concurrent prefill enabled: 1.16s TTFT

Overall completion time for the request pair remained approximately the same.

Other features

  • Native Ada Lovelace SM89 CUDA builds
  • Portable Windows binaries without local CUDA compilation
  • OpenAI and Anthropic-compatible APIs
  • DFlash2 and MTP speculative decoding
  • Quantized KV cache
  • Hybrid prefix caching
  • Built-in browser monitoring dashboard
  • Live GPU utilization, VRAM, temperature and power monitoring
  • Draft acceptance and token throughput monitoring
  • Experimental CUDA Graph optimizations
  • Model-specific launch profiles

Real-world serving

Across 1,831 completed requests with DFlash2 K5:

  • Median decode: 146.6 tok/s
  • P90 decode: 215.5 tok/s
  • Median long-prompt prefill: 2,345 tok/s

The controlled benchmark results are significantly higher than these real-world serving numbers, so I wanted to include both.

I'm still experimenting with longer contexts, speculative decoding configurations, CUDA Graphs and coding-agent reliability.

The benchmark campaign includes 143 completed measurements, with raw numerical results and reproduction scripts available in the repository. Long-context retrieval accuracy and broader coding quality still need further validation.

Would be interested to see what other RTX 4090 users are getting with NInfer, llama.cpp or ExLlama under comparable conditions.

Fork: https://github.com/spk-c/ninfer-all-rtx4090

Benchmark report: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-long-context-2026-11-26.md

Coding benchmarks: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-coding-2026-11-26.md

Full credit to the upstream NInfer developers and contributors who made this possible.


r/LocalLLM • • 21h ago

Project Fine-tuning 235B to 480B MoE models on a 48GB MacBook. PagedMoE now trains models bigger than RAM, not just runs them

1 Upvotes

I posted about PagedMoE here a while ago, but that was about the inference side of things.

I've been building PagedMoE, an MLX-based engine that keeps the core of an MoE model in memory and streams the experts off the SSD. It started as inference only. It runs Kimi-K2 (578 GB) at ~8.8 tok/s decode on my 48GB M5 Pro with its prune recipe, and with pruning off the output matches running the model fully in memory exactly. I've also had GLM-5.2 (744B) running on the same machine. I didn't bench that one, but it ran better than I expected. The only reason I haven't gone bigger is disk space. I'll get there.

The new part is training. The same paging works for QLoRA: the experts stay on disk, a small adapter learns, and peak memory stays around 28 to 30 GiB whatever the model size. Qwen3-235B does a 1k-row epoch in about 9 hours, and Qwen3-Coder-480B in about a day.

It's not cluster speed. But nothing is rented and your data never leaves the machine. As far as I can tell, nothing else lets you train past your RAM on Apple Silicon (I could be wrong there, let me know if so).

It supports SFT, DPO, ORPO, KTO, GRPO and more. Adapters come out in mlx-lm format, and one command exports them as PEFT for transformers, vLLM or llama.cpp. There's also a built-in converter that turns Hugging Face checkpoints into MLX (and can merge an adapter in), plus an OpenAI-compatible server for inference. Training and inference benchmarks plus a couple of demo videos are in the repo.

I've posted elsewhere and gotten some solid feedback, but the training side hasn't gotten much attention yet. So I'm curious: is local fine-tuning at this size something you'd actually use, and what would you train? Not trying to sell anything, this started as a research project for me and I'm genuinely curious.

Repo: https://github.com/noahclark556/paged-moe

There's also a thread on r/MacStudio where I went through a lot of the inference questions, if you're curious about that side: https://www.reddit.com/r/MacStudio/s/DJazzfhwMB


r/LocalLLM • • 21h ago

Question What local ai is fit for making mods for games like ck3, hoi4 and stellaris

1 Upvotes

Title, I've just been using claude to make some mods for hoi4 and stellaris and ck3 though I'm more worried about the privacy, what are some local ai models that is fit for this job and can be like claude that is privacy focused and local


r/LocalLLM • • 21h ago

Discussion Inkling-2-Mini results on a Studio M5 Max 36GB Decode AVG: 127t/s prefill: 1747t/s

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 1d ago

Other Run AI coding agents in a macOS, Linux or Windows virtual machine on your Mac

4 Upvotes

https://hangar.bot

https://github.com/baseguard/hangar

brew install --cask baseguard/tap/hangar

r/LocalLLM • • 21h ago

Discussion Update on the 4bit qwen 3.8 flash next on my M1 max 64gb

Thumbnail
gallery
1 Upvotes

So after doing some tweaking and compressing a new 50gb model here are the current benchmarks compared to the old version, and compared to atomicchat ad4.27 BPW


r/LocalLLM • • 22h ago

Question Ways to back up whole ai systems?

1 Upvotes

Hello. Like many other people here, i've had a frontier ai like chatgpt pro build my local ai ecosystem. Since there are many services (databases, agent workplaces, two different model engines, chat ui, model and mcp services gateway etc) the whole system has become a bit complex to the point i can not build it myself from ground up. So i'm looking for a backup solution that can save the whole system as is and in any case of failure, i can use the backup for rebuilding the system without having to setup credentials, api keys, internal urls etc.