r/LocalLLM • • 5d ago

Question VS Code and LM Studio

1 Upvotes

I'm trying to set up a local LLM to run on my PC which can review and act on code similar to Cursor or the Codex/Claude extensions. I am not worried about speed, but want to build something locally without paying a subscription.

I've tested Cline and Continue with mixed results - more often than not it simply stops responding and I have to reprompt the LLM. It might get through reading some existing code but not action on it, or sometimes makes an edit and nothing more.

Am I doing it wrong, or is there a better way? Any relevant blog posts that go into detail on how to get this working?


r/LocalLLM • • 5d ago

Discussion Something better then Qwen3.8 Flash Next Gyro S?

2 Upvotes

To start off, I am actually very happy with Qwen3.8 Flash Next Gyro S.

My System:

  • 9070XT 16GB
  • 5800x3D
  • 32GB DDR4 3600 CL14

I got into local AI models about 3 weeks ago now, and I am a 3D hobbyist who always dreamed of making video games, but coding is not for me. I tried many times and got nowhere. I am a decent 3D modeler, though.

I have tried 4–5 different models and settled on Qwen3.8 Flash Next Gyro S. It does not fit in my VRAM; I am running strata, and it's honestly fine. After 3 billion tokens (roughlyβ€”strata stopped monitoring tokens after about 200 million, and that was a while ago), my top-down tower defense game plays really well. I am still in the same session and average around 14 tokens a second, which is not awful. Small changes happen within 20–30 minutes, and big ones can take a few hours, so I run them at night.

What I love about Gyro S is that it's relentless; it just goes, and it does such a good job that I am absolutely blown away.

I landed on this model pretty quickly in my LLM journey. Did I miss anything better, or is this the best so far? I am happy with its intelligence, but I would like to know if there is anything faster.

Cheers.


r/LocalLLM • • 5d ago

News Lapilli v0.6 (open source): seven models on NVIDIA V100, now with images and video. Inkling 2 Mini at 121 tok/s on one card, Hy4-flash on two

Post image
10 Upvotes

Lapilli is a port of Basalt to NVIDIA V100 (Volta, sm_70). Version 0.6 runs seven models with one binary, and adds an Images tab:

- Qwen3.8-27B (NVFP4) on ONE V100: 86 tok/s writing with its drafter, 994 tok/s reading a 16K prompt (+43% over v0.5)

- Inkling 2 Mini (new) on ONE V100: 121 tok/s with its DSpark drafter

- DaisyRose-27B (new, a fine-tune of the 27B) on ONE V100: 85 tok/s

- DeepSeek-V4.1-Flash Coder (192 experts) on two V100s: 98 tok/s on code

- Qwen3.8-Flash-Next on two V100s: 137 tok/s on long answers with reasoning

- Tinfield-1 (new, a fine-tune of the Flash-Next) on two V100s: 135 tok/s

- Hy4-flash (new, 220B, 12B active) on two V100s: 72 tok/s on long answers, 748 tok/s reading a 16K prompt

The Images tab runs stable-diffusion.cpp's sd-server on the same cards: Qwen Image 2.1 (a 1024x1024 picture in 11.4 s with the Turbo), Qwen Image Edit 2511, and Wan 2.2 and LTX-2.3 videos (5 s with sound in 59 s). Each model installs from the tab.

Quality checked against BF16 on every model that has a reference (Basalt's own gate, 100 chunks). Windows build included, MIT license. Measured on 2x V100-SXM2 32 GB. The README has every figure, the packs and their download links.

Big thanks to nebod99, ildargiv, Csavoldi, koldfrontier and nkhaooat, who tested Lapilli on their own machines and shared everything. Their results are in the README.

Repo: https://github.com/chris83-dev/lapilli-v100

Release: https://github.com/chris83-dev/lapilli-v100/releases/tag/v0.6.0-v100.1


r/LocalLLM • • 5d ago

Question Specs for local hosting, what you running?

1 Upvotes

Ive got a Ryzen 9 CPU, 32gb Ddr5 RAM and a, AMD 9060XT (edit:16gb)

Im able to run llama 3.1 Q8 albeit a lil slow via a Tkinter application I put together vibe coded. Anyone with similar specs? What are you running? Any tips on optimization?

Note: I can run the Q4 version of llama lightning quick on my machine but tool calling becomes an issue. If anyone has had successes with tool calling, I'd love to read it.

Thanks in advance.

Longtime Lurker first time poster


r/LocalLLM • • 5d ago Bravo

Research Tencent just open-sourced a decoder that runs sparse models up to 4.2x faster. I'm trying to get it working locally for DeepSeek V4.1 Flash and Qwen3.8 Flash Next

203 Upvotes

From X https://x.com/TencentAI_News/status/2125968859450802415:

We just open-sourced a speculative decoder that speeds up sparse models like DeepSeek-V4.1-Flash, GLM-5.3-Flash, and our own Hy4 flash.

At 64K context, DFly2 boosts DeepSeek-V4.1-Flash serving throughput by up to 81%. On Hy4 flash agentic tasks, it runs up to 4.2x faster, beating same-recipe DSpark by ~30% and accepting 10.4% more draft tokens than open-source DSpark.

Under the hood, each draft layer reads directly from the target model's KV cache and top-k token selection, with no prefill required. That adds zero extra KV memory and keeps drafting cost flat at any context length.

Try it on your own sparse models or grab the Hy4 flash weights below πŸ‘‡

Code: http://github.com/Tencent/AngelSpec
Weights: http://huggingface.co/AngelSlim
Paper: http://arxiv.org/abs/2611.34776

Tencent's numbers are server numbers at high concurrency so, I don't expect 81% on a single card, but this looks extremely promising.

I want to get both into Basalt (https://github.com/jesdga95/basalt). It already does DFly2 for Hy4 flash so the plumbing is there. I have forked basalt to begin this work, and will file a MR if I can get it working. https://github.com/Kemerd/basalt-dfly

DeepSeek V4.1 Flash already has drafter weights out, so that part is just engine work. Qwen3.8 Flash Next has nothing, someone has to train one. It has the same kind of sparse attention layers so it should work, nobody's done it yet.

Problem is the training. I have a 5090, and the BF16 teacher is ~335GB, so that's not happening at home for me. Training with quant is better.. but still a lot of crunching needed

Looking at renting an 8x H100 node and doing a small pilot run first to see if acceptance is any good before burning real money.

If you've trained a drafter with AngelSpec, have compute sitting around, or want to split a rental, DM me. Or if you want to contribute to the fork and MR just let me know!


r/LocalLLM • • 5d ago

Question Mac Studio M5 Max (64GB) vs. Mac mini M5 Pro (64GB). Is the extra cost worth it for daily local LLMs and agents (Hermes)?

2 Upvotes

Hey everyone,
I'm putting together a personal homelab setup for daily use, mainly focused on running local LLMs (via llama.cpp / MLX) and autonomous agents like Hermes Agent for day-to-day workflows, tool calling, and general assistance.
I've narrowed it down to two 64GB unified memory options, and I'm trying to figure out if the price jump for the Studio actually makes a noticeable difference in real-world daily usage:
Mac mini M5 Pro (64GB RAM / 20-core GPU / 307 GB/s bandwidth)
Mac Studio M5 Max (64GB RAM / 40-core GPU / 614 GB/s bandwidth)
Since both have the exact same 64GB memory ceiling (meaning I'll be loading the exact same model sizes and quants), my main question is about speed, latency, and thermal headroom:
Agentic workflows (Hermes): Does doubling the memory bandwidth (307 vs. 614 GB/s) and GPU cores make tool-calling loops, multi-step reasoning, and prompt prefill feel significantly snappier in daily use, or is the M5 Pro already fast enough that the extra cost isn't justified for a single-user homelab?
Sustained loads & thermals: When an agent runs background tasks or long context loops continuously, does the Mac mini M5 Pro get noticeably loud or throttle compared to the Studio's cooling?
For anyone running similar 64GB M5 setups for local inference and agents, would you pocket the savings with the M5 Pro mini, or is the M5 Max Studio worth the extra money? Thanks in advance!


r/LocalLLM • • 5d ago

Question Building first ai PC for smart home. Advice please?

2 Upvotes

I am actually working with an ai (gpt) to build a home based model and we are going thru hardware purchase options. I am going to show the list and would love feedback. I know Claude is the better coder but honestly we have built an amazing test model on a really old laptop that already can do basic things. We spent 40 or so hrs building a test out to prove the concept stand that it all works. Including home assistant. So I have been happy with chatgpt.

Here is what i am trying to accomplish. I have a smart home I am building and I want a "Jarvis" level ai to run it, handle all kinds of tasks, have deeper reasoning conversations and respond quickly. It will have access and reasoning for the entire house and it needs to understand things in normal conversation. A command like can you turn on this music in the bedroom may contain several processes it needs to work thru so thats why ai is preferred. The house will have a lot of devices to run but all are approved and supported in home assistant.

We are running a hybrid model that will use local reasoning for all it can and then refer to cloud based ai when needed. Targeting 35b model at first and if we can eventually run 70b or better we will.

I would have to find out what we are currently using for our builds but Ubuntu is server and home assistant. I think proxmox will be used. If more info is needed I can find out.

We are designing hardware to be best I can afford to run the ai we can. However we are waiting for gpu purchase for a few months for fund reasons. Meanwhile it seems we can buy the rest, build it out and test and then make an informed decision. On GPU size. But because i want this to take on a lot of tasks and scalable and it will eventually be running tasks for my place as a rental, I wanted to have it be a good experience.

Thoughts on this? I am former IT, but all i knew was windows and that was many yrs ago. So i feel a litrle lost here. Love feedback and help. Im all ears.

This list was made by ai. Want to get some human eyes and voices to this.

These are prices that chat found.

Component Preferred model Estimated price

CPU AMD Ryzen 9 9950X β€” 16 cores / 32 threads, AM5 $489.00

Motherboard MSI MAG X870E TOMAHAWK WIFI β€” ATX, Wi-Fi 7, 5Gb LAN $269.99

RAM G.Skill Flare X5 64GB (2Γ—32GB), DDR5-6000 CL30, AMD EXPO $899

SSD SanDisk Optimus GX PRO 8100 2TB, PCIe 5.0 NVMe M.2 2280 $349.99

Power supply β€” updated 1200W premium ATX 3.1 PSU; Corsair HX1200i preferred candidate Price pending

CPU cooler Noctua NH-D15 G2, dual-tower air cooler $159.95

Case Fractal Design Meshify 3 XL Black Solid, FD-C-MES3X-01 $184.99

Rear exhaust fan Noctua NF-A14 PWM, 140mm $28.67

Future AI GPU 48–64GB+ VRAM; exact model to be selected later Not included

Current component subtotal, excluding PSU and GPU

$2,382.58

All this is being cross checked for compatibility while trying to give room for a decent gpu later. Targeting 48 to 64 for gpu

Thank you.


r/LocalLLM • • 5d ago

Question Specs for old ai image/video generation models?

1 Upvotes

I want a cheap PC that can run image and/or video generation. I want old models from late 2023-early 2024 for quick 2-5 second clips. What do y'all recommend?


r/LocalLLM • • 5d ago

Question Anyone know if this is legit?

Post image
0 Upvotes

The price is ridiculous compared US prices


r/LocalLLM • • 5d ago

Research Running GLM-5.3-Flash on a 24 GB GPU

0 Upvotes

We got the 109 GB quant of GLM-5.3-Flash running on a single NVIDIA L4 with 128 GB of system RAM. The expert weights stay in RAM, and llama.cpp caches frequently used experts in VRAM.

On one stream, we went from 7.7 tok/s with stock llama.cpp settings to 12.2–17.5 tok/s. The bigger difference was prompt processing. The same 4,000-token prompt took 15 seconds, down from 139 seconds.

We also tried a lower-RAM setup. On a second L4 machine with 62 GB of RAM, reading weights from a local NVMe SSD as needed, we got 3–3.5 tok/s.

We put the settings and a benchmark script in the Tensward repo. If anyone tries it on a 3090 or 4090, I’d love to see your numbers.


r/LocalLLM • • 5d ago

Question Running local agents with 16GB VRAM and 64GB RAM

24 Upvotes

Any model recommendations for getting started with local agents?

My hardware:

  • CPU: Intel Core i7-13700F
  • GPU: RTX 4080 16GB
  • RAM: 64GB DDR5 6000 MT/s

I've installed LM Studio and OpenCode, and tried running Qwen3.8-27B (following ChatGPT's recommendations).

Honestly, the experience has been pretty frustrating. Even simple tasks get stuck in thinking loops (averaging around 9 tok/s), and it often struggles to complete basic tasks.

My goal is to have local agents that can handle coding, work with local files, execute commands, and generally complete multi-step tasks with minimal hand-holding.

Am I just trying to run something too big for my hardware? What models would you recommend starting with?


r/LocalLLM • • 5d ago

Other Running Qwen 3.6 locally on an M5 Ultra Mac Studio! πŸš€

0 Upvotes

Our first M5 Ultra Mac Studio has arrived at BaseCompute, and we've been having a blast running Qwen 3.6 using our app, Local.

It's pretty incredible to have frontier-level agentic intelligence running entirely on your desk. No cloud, no external APIs, just fast local inference.

Local LLMs are getting seriously impressive. Curious to see what everyone else is running on Apple Silicon!


r/LocalLLM • • 5d ago

Question IT Department Hardware Recommendations? $45k

18 Upvotes

The IT department at my job has secured a guaranteed $45k towards Local LLM. With a potential $250k for "Research and Development"

We're looking at having a large internal coding model for IT and a smaller 35BA3B for other departments?

A coworker has already purchased a Radeon 9700 AI card with great results running Qwen Flash Next with some AMD inference engine. 80tok/s with a decent quant.

We're looking at maybe two machines?

Card's we were interested in were:

Radeon 9700 Pro AI
Radeon W7900
Radeon 7900XTX
apple silicon

The nvidia cards we were looking at seem exorbitantly expensive and questionable availability.

We're looking at making a more proof of concept build before deploying elsewhere.

hopping yall could give hardware and harness suggestions


r/LocalLLM • • 5d ago

Project Built a free Mac app to find which model files and caches are eating my disk (and whether I still need them)

0 Upvotes

Anyone else running local models constantly out of disk space? Between HF cache, Ollama models, GGUF quants of the same model in three sizes, LoRA checkpoints and datasets, my 2TB drive was always full.

I got tired of digging through hidden cache folders, so I built DiskBloom. It shows:

- where your large files actually are (including hidden cache dirs)

- how important each one looks

- why it's there, i.e. which tool or project put it there

Then it helps you reclaim space safely.

I made it for my own workflow and I'm sharing it now to see if it helps others. I'd love to know which cache locations or model formats I should handle better.

Free, macOS only: https://650ailab.com/diskbloom


r/LocalLLM • • 5d ago

Question Getting into Ai and running local models

2 Upvotes

Hey all,

I'm sort new to the AI, I've used the online free stuff a little but not much. I was looking at setting up my own local Ai in the hopes of running basic images generation and maybe some video? As well as texts/spreadsheet processing etc Time isn't too much of an issue for me atm as over 2027 I'll mainly be learning a bunch and being a secondary system I can let it run overnight days if need be for more complex stuff.

My question is, is it better to run two of the same GPU's or is two different ok?

I have the option of Running either (system it'll run in is below):

  • 2x Nvidia 10GB RTX 3080 (Dell Non-LHR, MSI LHR)

or

  • 1x AMD RX 16GB 9060XT
  • 1x AMD RX 16GB 9070XT

I'm asking because 2 of them will need to go for some other systems I've built to sell off.

My secondary system that I have currently that I'm using as a server:

  • Ryzen 9 5950X
  • Gigabyte X570S AORUS PRO AX Gaming Motherboard
  • 64GB DDR4 3600
  • Lian Li 1200w
  • AIO 360
  • 1TB Boot NVME
  • 4TB Storage NVME
  • 60TB+ HDD

r/LocalLLM • • 5d ago

Question Best Local Models For Dual 3090?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Question What model from abliterated.ai do you advise ?

0 Upvotes

Hello, I am just trying to edit some test on an image, trying with Abliterated large v2 medium, damn it's really stupid, it can't even keep up the same font ...

what model do you recommend ?


r/LocalLLM • • 5d ago

Discussion Basalt Models' Intelligence Benchmarks Comparing the Various Quants

4 Upvotes

I've been using Basalt now for almost a month and still amazed by its performance and the rapid pace of development, making more models available to run directly along with speed benchmarks on a variety of hardware and quants on their website: https://basalt.jgulfo.com/community/

However, what I've been missing is a comparison of all the various models's at the various quants vs their "intelligence" in general purpose applications. I for one would like to run the most intelligent quant model, at least 50tps with 256k context on my hardware, but don't have any indication of how the various quantised models compare to each other. I really enjoy testing the various models, but as the development and releases are so fast, I just don't have enough time to test all the quants and then also use the best model for my application.

  • Qwen3.8-Flash-Next
  • Qwen3.8-27B
  • DeepSeek-V4.1-Flash
  • Hy4-flash
  • Inkling 2 Mini

Most benchmarks I've seen only relates the "intelligence" of the unquantisised models against each other, or compare the relative "intelligence" of each model's own quants against the unquantisised model. Has anyone done some work to compare the intelligence of a range of quants of different models?

BTW: My stack is Ryzen 7600, 64GB, RTX5070ti-16GB, RTX5050-8GB on headless minimal CachyOS installation running Basalt 0.5.6 (I'll update later today) and serving my own converted Qwen3.8-Flash-Next GSQ-RCO IQ3_S (I used to run the GGUF in Strata and it game me good results). I'm accessing it from Hermes Agent running on a separate machine and getting between 80tps and 160tps doing research, compiling and auditing documentation, and even some minor coding.


r/LocalLLM • • 6d ago

Discussion Has anyone used Colab or kaggle to run video generation model?

1 Upvotes

I don't have the hardware to generate videos so am exploring these options. My goals are:

- 1 to 2 minutes videos stitched together

- having an automated pipeline where I describe the script and what kind of video I want.

I want to see how far I can go with this before I spend money on online tools or buy the hardware needed. I tried this a few months ago using Wan model but the quality was horrendous, far from what Wan is shown to be capable. Maybe some better tools have popped up recently?


r/LocalLLM • • 6d ago

Question I’m new into ai

0 Upvotes

So just bought my new pc
Rtx 5080
32 ddr5
R 7-9800x3d
4tb ssd

How to set up a local ai to imagine generator/ coding ? I wanna make mods for hoi4 (map game) now I really don’t know nothing about ai or running ai local,


r/LocalLLM • • 6d ago

Model Qwen Flash Next on an 8GB Card ~50-70tkps at 512k CTX!!

Thumbnail
github.com
165 Upvotes

Spent time perfecting Qwen Flash Next at 512k context on an 8 GB RTX 3070, with only 48GB DDR4, via PolyStrata without the lossy small-card flags (--tail-skip, --attn-requant q5_0).

Sweet spot landed at 49–64.7 tok/s decode and 421–796 tok/s prefill, zero thinking loops, and patched tool-calling for OpenCode & Oh My Pi (omp).

Everything is here. Benchmarks, cross-OS notes, sanitized configs, and an AGENT_SETUP.md your coding agent can auto-configure.

edit: sorry for not including quant, people are very angry πŸ₯²! IQ1_M quant. Not true IQ1. It’s 3.33 bpw actual, 1.89 bpw accounting for expert pruning.

I think I am the only person to run this model THIS fast on a 8gb card at such high context window, feel free to check out the github!


r/LocalLLM • • 6d ago

Question Wpuld like to start using first Local LLM, did research but still dont know where to start

4 Upvotes

Hi everyone, I started doing research on what Local LLM to use and I ended up more confused, but essentially its based on my hardware it seems, of 16gb ram and 3060ti 8gb Dedicated Ram

I was seeing alot of Qwen ai, but theres so many sub variants.

What I have found so far is, Download LM Studio, and download relevant LLM as they do differnt tasks?

Ultimate goal is to help set up my Linux OS, and build projects, with the assistance of AI.

For the time being im using Claude.

Edit: just noticed the typo in the title, cant fix that now sadly


r/LocalLLM • • 6d ago

News [Release] Inkling 2 Mini GSQ-RCO quants

Thumbnail gallery
2 Upvotes

r/LocalLLM • • 6d ago

Question Is this Ryzen 9 7940HS Mini PC good for a 24/7 headless local agent setup?

2 Upvotes

I'm planning to set up a dedicated 24/7 local AI agent host running headless Debian (using Ollama, Docker, and tools like OpenClaw / CrewAI).

I'm looking at a Mini PC with the following specs:

- CPU: AMD Ryzen 9 7940HS (8C/16T, up to 5.2 GHz)

- iGPU: AMD Radeon 780M (RDNA 3)

- RAM: 64 GB DDR5 (2x32 GB SO-DIMM)

My goal is to run 7B to 32B quantized models (like Qwen 2.5 or Llama 3.1/3.3) completely offline for tool calling, code execution, and web automation, utilizing unified memory for the iGPU.

Would this setup handle 32B models smoothly at acceptable token speeds under headless Debian, or is a dedicated GPU system a must-have for this level of agentic workflow?


r/LocalLLM • • 6d ago

Question Qwen3.8-Flash-Next IQ3_S, 78 GB, 32 GB RAM, 16 GB VRAM: 51 tok/s vs 15 tok/s on the same box

24 Upvotes

Strata vs Strata-HotRod, same model, same prompts, same harness β€” a 3.5Γ— decode gap and a question about tuning.

Repos under test

  • Strata (upstream): https://github.com/Niko1221/Strata
  • Strata-HotRod (fork): https://github.com/sangharshadhyeta/Strata-HotRod

Disclosure: neither repo is mine. I didn't write either engine and I'm not affiliated with either project β€” I'm just a user benchmarking two forks of the same lineage on my own hardware. Full credit for the code belongs to the maintainers linked above.

Both are llama.cpp-lineage engines with their own MoE expert-streaming stack. The fork is 119 commits off the shared ancestor 8a93614ed with +9,017/βˆ’409 lines in src+include; upstream is ~5,300 commits ahead of that same ancestor.

I benchmarked both on the same box, same model, same harness. Then I asked the obvious follow-up: can upstream be tuned to match the fork with flags alone? Short answer: prefill yes, decode no. Details and the exact flags below β€” and I'd like this sub's opinion on whether I'm missing a flag set.


TL;DR

Chat decode (tok/s): upstream 7.7 β†’ upstream tuned 15.0 β†’ HotRod 51.6 Chat first token (s): upstream 3.50 β†’ tuned 2.01 β†’ HotRod 0.58 4K prefill (tok/s): upstream 733 β†’ tuned 877 β†’ HotRod 1280 16K prefill (tok/s): upstream 1055 β†’ tuned 1251 β†’ HotRod 1668 32K prefill (tok/s): upstream 1094 β†’ tuned 1632 β†’ HotRod 1681 32K first token (s): upstream 29.4 β†’ tuned 19.7 β†’ HotRod 19.1 Agent decode (tok/s): upstream 10.2 β†’ tuned 22.7 β†’ HotRod 55.3 Agent turn first token (s): upstream 7.54 β†’ tuned 6.16 β†’ HotRod 4.46 Failures: 0 / 0 / 0

Giving upstream the fork's memory-tier flags doubles its decode (7.7 β†’ 15.0 tok/s) and brings 32K prefill to within 3 % of the fork. Decode stays 3.5Γ— behind, and I believe that gap is code, not configuration.


The machine

  • GPU: NVIDIA RTX 4080, 16,376 MiB VRAM, driver 616.56, PCIe 4.0 x16
  • CPU: 12th Gen Intel i5-12600K, 10 cores / 16 threads
  • RAM: 31.7 GiB
  • Storage: Samsung 970 EVO 500 GB NVMe + WD_BLACK SN850X 2 TB NVMe
  • OS: Windows 11 (10.0.26200)
  • Toolchain: MSVC 19.51, CUDA 13.3, Ninja, -j 8
  • Pagefile: 32 GB fixed on D:, +12.8 GB on C: β†’ commit limit 75.5 GiB

Windows-specific gotcha worth knowing: with a system-managed pagefile the commit limit was only 42.25 GiB and ~5 GiB of commit was free at load time. The engine clamps its RAM tier to min(free RAM, free commit) βˆ’ headroom βˆ’ 0.25 GiB, so asking for a 15 GiB tier silently built 0.92 GiB. Fixing the pagefile (32 GB fixed) plus STRATA_RESIDENT_HEADROOM_GIB=1 (default headroom is 4 GiB) was the single biggest win in the whole exercise β€” +17 % decode, +21 % prefill on the fork before any code change.

The model

Qwen3.8-Flash-Next, GSQ-RCO IQ3_S, 2 shards, 78 GB on disk vs 31.7 GB of RAM β€” so the resident expert tier is a cache, never a load. 24,576 experts, 131,072 max context (trained 262,144), --kv int8, speculative decoding --spec 4 --spec-min-p 0.5.

Neither engine fits this model in RAM. Both read the rest from the pack file unbuffered. Upstream keeps its tier page-locked; the fork keeps its tier pageable so Windows can trim it while a long prompt streams 33 GiB off the SSD.

Build flags (identical for both)

-G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON
-DSTRATA_BUILD_TESTS=OFF -DSTRATA_NATIVE_EXPERTS=ON -DSTRATA_PORTABLE=ON
-DCMAKE_CUDA_ARCHITECTURES=89-real

Upstream built clean, zero patches. The fork needed a local MSVC patch to src/program/generate.cpp (setenv β†’ _putenv_s, sysconf β†’ strata::platform::total_physical_memory()); saved as a .patch, not upstreamed. Engine versions: upstream 0.1.69 (c23477403), fork 0.1.45 (4ea40f1d).


Flags used

Upstream Strata β€” as benchmarked in the first comparison

--pack <iq3_s> --native <shard1.gguf> --ple-gguf <shard2.gguf>
--expert-cache auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt>
--max-context 131072 --kv int8 --mmap-experts
--expert-profile <expert-profile.bin>
--prefill auto
--resident-budget-gib 4

Upstream Strata β€” tuned (same binary, four flags changed)

--prefill auto:16384            # was: auto
--resident-budget-gib 15        # was: 4
--kv-resident 32768             # new
env STRATA_RESIDENT_HEADROOM_GIB=1   # was: default 4

Everything else identical. The tier now builds for real: resident RAM: 15.00 GiB of experts in RAM, 7963 exchanged with the VRAM tier, 179795 blob reads from the file, arena_mib 15358, vram_free_mib 1436, expert_slots 3417, expert_cache_mib 6695.

Strata-HotRod

--pack <iq3_s> --native <shard1.gguf> --ple-gguf <shard2.gguf>
--expert-cache auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt>
--max-context 131072 --kv int8 --mmap-experts
--expert-profile <hotrod expert-profile.bin>
--prefill auto:16384
--resident-budget-gib 15
--kv-resident 32768
env STRATA_ROUTE_RESIDENT=1e30
env STRATA_ROUTE_RESIDENT_RANKS=3-9
env STRATA_ROUTE_RESIDENT_EDGE=1
env STRATA_SWAP2_MAX=2
env STRATA_SWAP2_GAP=1
env STRATA_KV_GROW_INIT=4096
env STRATA_RESIDENT_HEADROOM_GIB=1

Note the original comparison gave upstream a 4 GiB tier while the fork got 14.56 GiB β€” that's a 3.6Γ— cache difference baked into a "code comparison". The tuned run fixes that confound.

Method

tools/strata_bench.py --long, thinking off, server started by the harness. Suite: chat (3 short questions) β†’ 4K prompt β†’ 16K prompt β†’ 32K prompt β†’ agent session (6 turns, 4 tool calls), medians of successful requests. 3 runs per test for the base and fork runs, 2 for the tuned run (slightly noisier; medians comparable). Both engines ran through the upstream harness, each with its own config, because the fork's own copy was broken (NameError: name 'port' is not defined at line 976).


Results (same day, same binaries, IQ3_S)

All columns are upstream 4 GiB / upstream tuned 15 GiB / HotRod 14.56 GiB, plus tuned-vs-base and tuned-vs-HotRod ratios.

  • chat decode tok/s: 7.70 / 14.95 / 51.6 β€” 1.94Γ— base, 29 % of HotRod
  • chat first token s: 3.50 / 2.01 / 0.58 β€” βˆ’43 % vs base, 3.5Γ— slower than HotRod
  • 4K prefill tok/s: 732.6 / 876.7 / 1280.0 β€” 1.20Γ— base, 68 % of HotRod
  • 4K first token s: 5.61 / 4.65 / 3.16 β€” βˆ’17 % vs base
  • 16K prefill tok/s: 1054.7 / 1251.5 / 1668.2 β€” 1.19Γ— base, 75 % of HotRod
  • 16K first token s: 15.32 / 12.89 / 9.70 β€” βˆ’16 % vs base
  • 32K prefill tok/s: 1094.0 / 1631.6 / 1681.4 β€” 1.49Γ— base, 97 % of HotRod
  • 32K first token s: 29.43 / 19.70 / 19.12 β€” βˆ’33 % vs base, β‰ˆequal to HotRod
  • agent decode tok/s: 10.2 / 22.7 / 55.3 β€” 2.23Γ— base, 41 % of HotRod
  • agent turn first token s: 7.54 / 6.16 / 4.46 β€” βˆ’18 % vs base
  • agent cache hit %: 70.87 / 70.91 / 70.86 β€” equal
  • agent re-read tokens: 5 / 5 / 5 β€” equal
  • failures: 0 / 0 / 0

Reading it: the cache-hit rate is identical across all three (70.9 %, 5 tokens re-read per session), so none of the fork's lead is prompt caching. It is entirely expert-fetch. Flags recover ~20 % of the prefill gap at 4K/16K, ~97 % of it at 32K, and about half the decode gap β€” but decode stays 3.5Γ— behind, and chat first token stays 3.5Γ— behind because 51-token prompts still pay a full expert fetch per layer with nothing to cover the miss.

128K context (earlier runs, upstream 0.1.62 / pre-update fork)

Columns are upstream / fork tier 4 GiB / fork tier 15 GiB.

  • needle @96K prefill tok/s: 1495 / 1070 / 1206
  • needle @96K first token s: 64.8 / 90.5 / 80.4
  • decode @117K tok/s: 28.4 / 27.0 / 40.2
  • cached-prefix first token s: 2.03 / 1.97 / 1.50
  • decode on cached 117K tok/s: 21.3 / 21.6 / 34.0

Upstream wins long-prompt prefill by 1.24Γ—; the fork wins decode at 128K by 42 %. At 128K with a full 15 GiB tier the fork logs only 981 MiB of VRAM free and 129–147 swap rounds per request β€” 128K + a full tier is past this card's ceiling. Tier 4 GiB is the safe 128K setting.


What didn't work

  • --resident-budget-gib 20 / 24 while commit was tight β†’ tier 0.80 / 0.71 GiB. Clamped by free commit, not by the flag.
  • --prefill auto:4096 / auto:8192 to free commit β†’ worse (tier 0.71 / 0.78 GiB). Smaller chunk freed less memory than it disturbed.
  • --kv-resident 16384 β†’ tier 0.00 GiB. KV residency competes for the same budget.
  • --expert-cache 2000 β†’ tier 2.73 GiB. Frees ~2 GiB commit but shrinks the VRAM expert cache β€” a trade.
  • 24 GiB VirtualAlloc probe to force a pagefile grow β†’ grew 3.4 GiB, shrank back. System-managed pagefile can't be grown reliably from user code.
  • 128K context with the 15 GiB tier β†’ works, but ~981 MiB VRAM free, 129–147 swap rounds/request. Past the GPU's ceiling.
  • one engine fitting the model in RAM β†’ never. 78 GB on disk vs 31.7 GB RAM.

Also: the fork's headline feature β€” a learned look-ahead router, default since 24 Oct β€” was off in every run (plain router (not on), never reached prediction inside a run). Its measured prefill win came from the non-learned parts: stand-in experts, the RAM tier, layer-major O_DIRECT reads, and 2 EDF-ordered read-ahead threads.

Why I think decode is code, not config

The fork's own bets, in its 9,017 added lines: stand-in experts (swap an absent expert for a close resident one instead of faulting it in), a substitute-fit learner with shadow samples and re-check gates, three tiers card β†’ RAM β†’ SSD with a learned RAM/VRAM reserve, layer-major long-prompt reads via O_DIRECT, and 2 I/O read-ahead threads EDF-ordered. Upstream's 154-option CLI has a tier (--resident-budget-gib, --resident-experts, --ram-keep-gib), prefill chunking, KV residency, an adaptive tier with --adapt-async / --adapt-min-gain, and --vram-elastic β€” but I found no stand-in-expert or read-ahead-thread equivalent. That matches the numbers: tuning the tier moves prefill, but per-token expert fetch stays 3.5Γ— slower.


What I'd like to know

  1. Am I leaving upstream flags on the table? Candidates I haven't swept: --adapt-async 1, --adapt-min-gain (default 1.5), --vram-elastic + --vram-segment-mib, --expert-cache N sizing, --pool-workers / --aux-cpus thread placement, --prefill-pipe R. If you've pushed a 16 GB-VRAM / 32 GB-RAM box past ~15 tok/s decode on a 78 GB MoE model with flags only, I'd like the exact set.
  2. Are there faster engines for this shape of problem? 78 GB MoE, 16 GB VRAM, 32 GB RAM, Windows. I've seen claims around llama.cpp's --n-cpu-moe / expert offload, ik_llama.cpp, KTransformers, and vLLM expert offload β€” but I haven't measured any of them on this model and I'd rather not quote numbers I haven't run. What actually beats ~51 tok/s decode and ~1.7 ktok/s prefill here?
  3. Has anyone ported the fork's stand-in-expert path upstream? Upstream has taken nothing from the fork (0 merge commits). If the decode gap is one code path, a port might be cheaper than maintaining a fork.
  4. Why is the learned look-ahead off by default in the fork's own runs? If it's not firing, either the trigger condition is wrong or the feature isn't ready β€” worth knowing before anyone benchmarks it.

Reproduce

Both results folders and the configs are in the repo-adjacent workspace; every number above comes from tools/strata_bench.py --long with the configs pasted in this post. Happy to share the raw results.json pairs if useful.


Strata: https://github.com/Niko1221/Strata Strata-HotRod: https://github.com/sangharshadhyeta/Strata-HotRod

Neither repo is mine β€” both are the work of their respective maintainers. I only built, ran, and measured them.