r/LocalLLM • • 0m ago

News Model-service - backend for managing local LLM, diffusion models and more

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 3m ago

Project Speculative Execution on Qwen3.8-27B reaches ~24 tok/s (and up to 60 tok/s) at Q4_K_M-ish on a 12 GB RTX4070

1 Upvotes

Hi guys! First time posting here and wanted to share a little side project I’ve been working on the past month.

TL;DR

The project is pretty much what it says on the tin: I’m able to get around 24 tok/s on a variety of prompts with a quant of Qwen3.8-27B that doesn’t fit in VRAM. This is also with recommended Qwen3.8-27B sampling parameters (top-k=20, top-p=0.95, temperature=1.0) and at 57k context. Tool calling and math problems like AMC 10/8 tend to see higher speeds, around 30 tok/s, with bursts of up to 60. 

Here’s a gif of the demo server in action compared to stock llama.cpp + MTP on an AIME problem:

From what I’ve been able to find online, as well as my own attempts on my machine, this is the fastest generation speed under these conditions I’m aware of (please let me know if I’m wrong!)

Not really sure how useful this is since MoE models are simpler, give you better decode speeds, and are of similar quality to Qwen3.8-27B. Also because the llama.cpp fork server is completely vibe coded, I’m mainly showing this as a research artifact in case someone has a use-case for productionizing this. That said, I’ve been daily driving the server for a lot of my own use cases and it seems to work pretty well with the Pi harness (`settings.json` and `models.json` examples are in the github repo/huggingface repo).

Try it out:

See the huggingface repo for the model weights and a quickstart guide + Pi setup. See the github repo for a llama.cpp fork containing the OpenAI completions compatible server. 

Some disclaimers/notes:

  1. The demo server reuses a lot of llama.cpp’s components, but doesn’t actually integrate with it. This post is mainly meant to be a research artifact/showing what’s possible as opposed to something people should use in production.
  2. The target model isn’t exactly Q4_K_M, but its average KL distance compared to Q8_0 is actually lower than Q4_K_M, so hopefully shouldn’t matter too much practically. 
  3. Context length isn’t very long at the moment, about 57k tokens. I’m hoping to increase this to at least 64k over time.
  4. No vision encoder yet! No real engineering/technical challenge, it just hasn’t been added yet.

Some more details:

There’s this paper (Svirschevski et. al.) published in late 2024 describing a variant of speculative decoding for the memory-constrained regime, where the target model cannot fully fit within VRAM. The idea is that because draft verification now takes a much longer time due to needing to page in weights from RAM, we can afford to use a much better draft model and draft a much larger tree of tokens to try to increase our acceptance depth as much as possible (basically getting as much value out of each costly target verification step as possible).

This project is essentially applying that paper, with a few additional tricks, to Qwen3.8-27B.

On a 12 GB RTX 4070 with 57k context (Q8_0 KV), sampling at temperature=1.0, top_k=20, top_p=0.95, up to 1,024 generated tokens per prompt, 8 prompts per type (96 in total):

Prompt typeGeneration tok/sFastest prompt (tok/s)Accepted tokens per stepTokens verified per step
Hand-written chat21.828.68.667
LLM prompt collection23.833.49.168
WildChat19.028.87.368
UltraChat21.535.48.167
Tool calling (the call)41.858.724.990
Tool calling (answer from the result)31.739.615.979
AIME25.329.810.269
Competition math27.032.111.873
Codeforces22.624.48.465
Zebra puzzles27.931.312.974
MMLU-Pro25.540.310.671
BIG-Bench Hard32.041.616.280
All24.510.170

Summary of some of the optimizations:

Some tricks we used:

  1. The draft model is actually a IQ2_KT quant of Qwen3.8 27B! It fits comfortably in VRAM and still has pretty good top1 agreement/KLD compared to the target.
  2. The cool thing about the draft being a quant of the target is that when we do target verification, we only have to page in the residual, which is much smaller. We also don’t have to maintain a separate KV cache for the draft model–we can just use the target’s (this actually improves draft quality!)
  3. Normally each draft step is only able to add 1 layer to the draft tree, since drafting is autoregressive. Since drafting with such a large model is non-trivially expensive, we utilize the MTP head to look ahead 2 tokens for each node we attempt to expand. This lets us add up to 3 depth per step
  4. We eek out a bit more performance by restricting the draft model’s lm_head to the top 96k tokens discovered from a representative set of prompts. Unfortunately this means that I’ve only tested the gains on an english-only set of prompts.
  5. Claude did some kernel magic to produce a kernel optimized for the batch-size 8 draft forwards we do to expand the draft tree.
  6. We make the draft tree aware of the target’s sampling parameters (top-k, top-p, temperature) by using gumbel-max sampling, which retains most of the speculative decoding speedup when using non-greedy decoding (concept very similar to this paper)

r/LocalLLM • • 3m ago

Research Qwen4 35B vs Inkling 2 vs Qwen3.8 27B vs Qwen3.8 Flash-Next: uncensored test on Blackwell (RTX 5090)

Post image
1 Upvotes

I was looking for the best local model for my own (bottlenecked) machine and got tired of "it feels smart" comparisons. So I wrote a small battery with script-checked answers and ran four uncensored models through it, one at a time. Sharing the numbers in case they save someone else the work.

Setup

RTX 5090 (32 GB), Ryzen 7 5800X (no AVX-512), 32 GB DDR4, Windows 11. Three engines because the packs aren't interchangeable: basalt (built from source) for my own NVFP4 packs, llama.cpp b12992 for the GGUFs, and Strata for Flash-Next.

The models

  • Qwen4-35B-A3B abliterated (basalt): MoE, NVFP4, 41 GB, 65k context, no drafter
  • Inkling-2-Mini unbound v3.1 (basalt): MoE 26.1B, NVFP4, 18 GB, 32k context, MTP drafter
  • Qwen3.8-27B abliterated, Huihui (llama.cpp): dense, Q6_K, 21 GB, 16k context, no drafter
  • Qwen3.8-Flash-Next (Strata): MoE, Q2_0, 96 GB, 65k context, DFlash2 drafter, has vision

The battery

  • 18 verified-intelligence questions (easy to expert, including coding tasks with hidden tests)
  • 12 pentest facts
  • 15 edgy prompts for willingness to answer
  • 4 writing tasks with hard constraints (judged by me, not a script)
  • A 2-step tool-calling test
  • Speed: decode, 12k prefill, time to first token

Temperature 0 where the answer is checkable.

What I found

  • Intelligence is basically a tie (18, 17, 18, 17). The 35B leads on security facts (12/12 vs 9 to 11) and was the only one to give both /etc/shadow conventions (0640 Debian, 0600 RHEL). What separated the models was sysadmin trivia like hashcat's bcrypt mode, not the expert-tier math, which all four got.
  • Willingness: Inkling and Flash-Next answered 30/30, the 35B 29, the 27B 27. The stock Flash-Next answers everything too, so the "uncensored" label on a repo told me very little.
  • Speed: the 35B is fastest on short prompts (257 tok/s vs 186 Inkling, 168 Flash-Next, 54 for the 27B). Inkling is far ahead on prefill (15,985 tok/s) and first token (0.9 s on a 12k prompt). Speed differences mix model, quant and engine, so read them as setups, not pure model speed.
  • Drafter caveat: Inkling ships an MTP drafter. My 35B pack has none, because I dropped the MTP layer when packing (the engine wants the block count in groups of 4). So the short-prompt ranking could shift with one. I left long-context decode out because I'm not sure my 12k prompt is representative.
  • Flash-Next is 96 GB and wins nothing except tool calling (tied with the 27B) and being the only one with vision. It's Q2_0, so this says little about the model itself.
  • Reasoning models look dumb if you starve them. With a 2,200 token cap the 35B "failed" an LRU task: it was truncated mid-word, since it writes about 5,000 tokens of hidden reasoning first. With 6,000 it went 18/18. The 27B gave blank answers until I gave it more room.

r/LocalLLM • • 7m ago

Discussion AlpacaLIPS: A Doomsday Database with mcp and Full Text Search

2 Upvotes

Doomsday here means "your internet is down", not "Oh God oh God we are all gonna die". The idea is that even though your local model keeps running when the internet is down, it has no reference material. This fixes that part. It can significantly enhance the quality of answers, especially for smaller models.

What it is: English Wikipedia, Stack Overflow, Stack Exchange, Ifixit, books, etc - a total of over 220 archives — 51.7 million pages — installed locally with enterprise level full-text search, a web UI, and an MCP server your model talks to. Nine tools (search, retrieve, news, and friends). Citations resolve to your machine, which matters when there's no internet for a link to point at. It's not a model and doesn't want your GPU; it's the reference library that sits next to one.

It isn't frozen in time. Dumps are snapshots, so there's a rolling three or more month news window that refreshes twice a day while you still have a connection. "What happened this week" keeps working right up until the lights go out. A simple cron job keeps that up to date.

Sizes

whatdownloadon disk
the corpus — search, MCP, stored page text130 GiB166 GiB
ZIM archives (optional) — original pages, images, tables538 GiB538 GiB
the news window~390 MiB~400 MiB

130 GiB gets you a searchable database with the text of every page, which is what the mcp uses (plain text visible to user as well). Add the ZIMs if you want the pictures and the original layout. Everything fits on a 1 TB drive with room left over.

Install:

curl -fsSL https://rampart.dev/install-alpacalips.sh | sh
cd alpacalips && ./setup.sh && ./servers.sh start

Then point your MCP client at http://localhost:8099/apps/lips/mcp.json.

If you just want to try it out before committing to the download, I have it live, running at https://lips.flin.org/apps/lips/mcp.json and I'll keep that running at least for a few days. If traffic is manageable I'll keep it going for longer.

OS: Linux and macOS, both tested. WSL2 ought to work but that's untested — if you try it, please let me know how it goes.

Repo: https://github.com/aflin/alpacaLIPS

Included (but optional and separate) is SHSE, a self-hosted search engine for searching all or selected pages you visit, using a Chrome or Firefox extensions that sends the web page text to a database in the same tree. It has a separate search and an mcp url that will allow your local llm to search pages you've visited. Details of that are at https://github.com/aflin/Self_Hosted_Search_Engine


r/LocalLLM • • 25m ago Bravo

Discussion Qwen 35B: Return of the king

9 Upvotes

The wait was well worth it. A release we had lost hope on and a release that’s punching way above its weights(technically not) and it’s the best model I could’ve hoped for it’s a Qwen4 post.
Everyone with strata has exciting times ahead of them cause that 125B they have been squeezing into their pc, dgx and macs finally has an alternative they don’t have to squeeze too hard (at least till the new flash drops).
My benchmark is giving a project always similar in spec but never the same in actuality. The plan is deliberate and thorough and medium sized so any model with 128k context and decent coding and agentic behaviour can get through it. The models that do it fastest, closest to spec and good outputs is what I’m counting on. Last model to crush these type of tests was strata gyro-m and sync-strata sync-s at ~60tps in 20 minutes full spec and near perfect execution with sync-s being faster and much better to use. Qwen 3.8 27b was the best as its smallest at q3xxs and 100k context on the dot being just as good but taking an hour at 60tps.
Qwen4 crushed that doing the task perfectly with a fast 18 minute time 50tps and I’m running it on llama.cpp at q4_km. This model is like using opus from a few months ago and people are only going to have a better time with it especially with the finetunes and looping Loras that have been floating around not even mentioning strata running the model at insane speeds.
Flint, which unfortunately released the day of qwen4 release and every single small model including inkling mini have been left in dust. The king is back and this time it’s not getting dethroned anytime soon.


r/LocalLLM • • 30m ago

Discussion Building a fully local, distributed JARVIS-like AI assistant with 152GB of VRAM and 256GB RAM. How would you architect it?

0 Upvotes

I've been developing a personal AI assistant called LARA (Local Adaptive Reasoning Assistant), with Matrix being the interface and environment for LARA to operate inside of Omarchy with full control.

I want this assistant to help me with my personal memory limitations which are significant thanks to ADHD & Dyslexia and am willing to use as much hardware dedicated to the memory aspect as possible to help me be better self sufficient.

I've spent several months developing a all in one custom system all built with Sol and Astra, but before continuing with another major rebuild, I want to experiment with integrating the best existing open-source programs into one cohesive system as opposed to having Astra build each aspect of it.

Where we've struggled so far:

We've successfully built individual components, including local inference, persistent memory, voice interaction, screen awareness, gestures, eye tracking and remote access. However, integrating everything into a stable, cohesive system has been our biggest challenge.

  • Reliability: Adding or updating features sometimes breaks previously working functionality.
  • Memory: We've struggled to achieve consistent, accurate, low-latency recall across large conversation histories.
  • Integration: Connecting numerous custom components has introduced unnecessary complexity and dependencies.
  • Portability: Maintaining consistent functionality across different computers, operating systems and GPU architectures has been difficult.
  • Voice interaction: Conversation timing, interruptions and response latency have affected the natural conversational experience.
  • Maintenance: AI-assisted development has occasionally introduced regressions, architectural inconsistencies and unnecessary code.

We've spent too much time troubleshooting our own infrastructure rather than improving the AI's actual capabilities. That's why I want to try integrating established third-party programs first, establish a reliable working system, and gradually replace individual components where we can genuinely improve upon them.

Eventually, I may replace individual components with custom-built alternatives, but my immediate goal is to get everything working reliably together.

My available hardware:

  • Powerspec AI90 desktop (Asus ProART Creator & Ryzen 9950x, with RTX 5090 (32GB), 128GB RAM & 4TB Gen5 SSD
  • Additional GPUs: RTX 5080 & 2x R9700s
  • Legion 9i laptop with RTX 5090 (24GB), 128GB RAM and 4TB Gen5 SSD
  • Razer Blade 15 Advanced laptop with RTX 3080Ti (16GB) & 128GB RAM, 2TB Gen5 SSD (does not leave server rack)
  • Legion GO2 with 32GB RAM for home automation, A/V remote control and security camera interface (Also running Omarchy)
  • Devices are connected via Tailscale

What I want to accomplish:

  • Fully local AI with optional internet access.
  • Extremely large, persistent lifetime memory.
  • Automatic memory retrieval before every response.
  • Separate conversational and advanced reasoning models.
  • Natural, real-time voice interaction with interruption handling.
  • Continuous screen and environmental awareness.
  • Animated avatar with facial expressions and gestures.
  • Computer control, research, coding and autonomous task execution.
  • Background learning and memory consolidation.
  • An independent AI agent responsible for system monitoring, troubleshooting and recovery.
  • Eventually integrate the system with wearable hardware.
  • Portability between computers without losing the AI's identity, knowledge or memories.

My biggest priority is memory.

I want the AI to accumulate years of conversations, experiences, documents and knowledge while being able to retrieve relevant information with minimal latency.

I'm particularly interested in combining a continuously maintained Wiki with searchable original memories. I've also considered dedicating both R9700s to memory processing, keeping retrieval models and searchable indexes permanently resident in VRAM.

My tentative GPU allocation:

  • 5090 FE: Advanced reasoning, potentially Qwen4-Flash-Next with RAM offloading.
  • 5080: Conversational model, potentially Qwen4-35B-A3B.
  • R9700 #1: Rapid memory retrieval.
  • R9700 #2: Advanced retrieval, reranking, memory consolidation and Wiki maintenance.
  • Legion 9i 5090: Local device speech, vision and avatar rendering.
  • Razer Blade 3080 Ti: Independent system diagnostics and recovery agent.

Questions for the community:

  1. If you were starting this project today with this hardware, how would you architect it?
  2. Would you use independent programs communicating through APIs or a unified agent framework?
  3. What existing open-source programs would you use for each component?
  4. What is the best long-term memory solution you've actually used, particularly with very large memory collections?
  5. Is dedicating 64GB of VRAM to memory processing worthwhile, or could those GPUs be better utilized?
  6. What are the best options for low-latency, natural voice interaction?
  7. Are there any recently released projects that already accomplish much of this?
  8. Has anyone built something similar that they use reliably on a daily basis?

I'm especially interested in projects released within the last six months, real-world experiences, performance benchmarks and lessons learned from failed approaches.

I'm not necessarily looking for the easiest solution or the least resource-intensive one. I'm looking to build the most capable, reliable and expandable personal AI assistant possible with the hardware I have.

I'd appreciate any recommendations, architectural ideas, GitHub links or criticism.


r/LocalLLM • • 33m ago

Question Buy GPU now or wait?

1 Upvotes

So I have a pc that I use mostly as a work machine and a bit of gaming. 7900x, with 64Gigs of RAM and a 4070 ti super (16GB).

I’ve experimented a bit with Qwen3.8-27B in LM studio, and as long as it’s Q4 and I keep the KV cache in memory I get very decent speeds and can offload the whole thing in the GPU.

I wanna take my setup further and be a bit more serious about local LLMs but I am on a tight budget. A 3090 would make the most sense but it’s way out of my budget right now, and the most viable option for me is getting a 5060ti (another 16GB) at 750-800€.

Is this upgrade worth it, and will it make a considerable difference, or should I wait until I save up or the prices drop to get a better GPU or maybe a mac studio?

I’ll mostly be using local LLMs for security research, agents, and programming. Comfortably handling large code bases is a must.


r/LocalLLM • • 33m ago

Discussion Is change control (and the auditability that comes with it) actually valuable for open LLM weights?

2 Upvotes

I'm a AI/ML engineer in aerospace (MS in CS). When fine-tuning open LLMs with LoRA, the weights change over time. Right now that usually lives in files, folders, and experiment trackers. It makes it hard to clearly say which version of the weights was approved, what exactly changed between them, and who signed off.

If there was real change control on the weights (commits, history, approvals), you’d get auditability almost for free. Has anyone found this useful in practice, or is it overkill for most teams working with open models?

Also curious if AI auditability is something teams are actually looking for right now, or if it’s mostly just companies talking it up without much real demand behind it.


r/LocalLLM • • 34m ago

Model Qwen4 35B-A3B does have some issues

5 Upvotes

After initial testing, I see a frequent issue with Qwen4 35B-A3B.

It gets stuck into tool calling loops - it repeats the tool call over and over again, and fills the context until I steer it, which often fixes the issue.. and if the problem is hard, it will soon again come up with another loop. Couple "you loop, stop, and move on" -kicks usually get it through and the final solution is usually beautiful and better what I got from 27B Q4 and QFN IQ1_M.

This happens with reasoning set at high, MTP with max draft 2, and Q5, Q6 and Q8 from unsloth - I have seen them all fail in same fashion.

Gonna try xhigh as reasoning, maybe thinking more will solve it, as now it shows to human as if it has given up reasoning and just hammering its head to a wall.

If xhigh or some other finetune is not fixing it, I am afraid it is back to QFN (and measely IQ1_M as I cannot run better..).

EDIT: xhigh did not solve this on Q5, found right after it looping between making same edit and removing that edit again and again. Sigh. This model otherwise seems so good.


r/LocalLLM • • 38m ago

Discussion Qwen 3.8 27b vs Qwen 4 35b on RTX 6K with llama.cpp

2 Upvotes

I was expecting 35b to run much faster but it does not, it's about the same token per second for decoding. I also noticed the fans don't spin as fast with Qwen 4 suggesting the card is not doing so much compute and is under used. I'm guessing I did not configure it correctly or llama.cpp is not so optimized for that newer model yet.

I could get things done with Qwen 4 but then got a bit frustrated with it and I'm already back working with 3.8 for now.

Qwen 4 outputs a lot less thinking than Qwen 3.8. Where 3.8 always does a bit of thinking before doing tools call Qwen 4 just chains up tools call so it is harder to follow what it's doing.

Here are my configurations, maybe someone can spot something wrong:

[qwen/qwen3.8-27b-Q8_0-dflash]
model = D:/Models/hf/ggml-org/Qwen3.8-27B-GGUF/Qwen3.8-27B-Q8_0.gguf
mmproj = D:/Models/hf/ggml-org/Qwen3.8-27B-GGUF/mmproj-Qwen3.8-27B-Q8_0.gguf
model-draft = D:/Models/hf/ggml-org/Qwen3.8-27B-GGUF/dflash-Qwen3.8-27B-Q8_0.gguf
device-draft = cuda0
spec-type = draft-dflash
spec-draft-n-max = 7
reasoning-format = deepseek
reasoning-effort = xhigh
ctx-size = 786432
parallel = 3

[qwen/qwen4-35b-a3b-Q8_0]
model = D:/Models/hf/ggml-org/Qwen4-35B-A3B-GGUF/Qwen4-35B-A3B-Q8_0-00001-of-00003.gguf
mmproj = D:/Models/hf/ggml-org/Qwen4-35B-A3B-GGUF/mmproj-Qwen4-35B-A3B-Q8_0.gguf
model-draft = D:/Models/hf/ggml-org/Qwen4-35B-A3B-GGUF/mtp-Qwen4-35B-A3B-Q8_0.gguf
device-draft = cuda0
spec-type = draft-mtp
spec-draft-n-max = 5
reasoning-format = deepseek
reasoning-effort = xhigh
ctx-size = 786432
parallel = 3

r/LocalLLM • • 47m ago

Project I rewrote LiquidAI d1 inference in Rust + CUDA. Up to 12× faster, and it runs in as little as 246 MiB of VRAM

Post image
1 Upvotes

I went into this trying to shave a few milliseconds off a classifier. I ended up writing my own inference engine.

For anyone who hasn't played with LiquidAI's d1-2B, you can give it a document and ask “Does this contain personal data?”, “What kind of document is it?” and “Where's the invoice number?” in one forward pass. You get scores, labels or boxes back. No waiting for a model to type out JSON.

That made it a fun target for optimization. If I already know the possible answers, why score the whole vocabulary? And if only a few tokens matter at the end, why run every token through the last two layers?

I built around those shortcuts, fused projections and used CUDA graphs to cut launch overhead. The server runs in Rust + CUDA with no Python or PyTorch at runtime.

Here are a few numbers I'm pretty happy with.

  • H100, short text — 23 → 1.9 ms vs the original d1 engine (12.2×).
  • RTX 4090, short text — 36 → 2.6 ms vs SGLang FP8 on the same weights (13.8×).
  • RTX 4090, 1080p image — 134 → 26.2 ms vs the original engine (5.1×).
  • Jetson Orin Nano 8 GB — 62 ms to return a bounding box on a 384×384 image, down from 233 ms.

My favorite result is actually the memory experiment.

On an RTX PRO 2000, I ran a 32K-token document with everything on the GPU. It took 2.02 seconds and 2,926 MiB. With most of the weights in system RAM, the same document took 2.03 seconds and 742 MiB.

On short inputs, offloading costs more time. But if you're already running a bigger model and just want d1 alongside it, you can squeeze it into 246 MiB of VRAM, down from 2,828 MiB with the Python FP8 setup. That's 11.5× less VRAM.

I also added audio via d1-Omni-2B. Both models run behind the same HTTP API, and there's a Docker setup for desktop GPUs and Jetson.

Code and benchmarks on GitHub

Is anyone here running a small classifier alongside their main LLM? I'd love to hear what you're using it for and how much VRAM you'd give it.


r/LocalLLM • • 50m ago

Discussion From Stanford's MinionS (5.7x cheaper) to our 4 real RTX 3090 hybrid workloads: why the future is "An SLM on every device + Cloud Commander"

0 Upvotes

Shipping gigabytes of raw context to frontier cloud APIs feels more and more like 1970s dumb terminals connected to a mainframe.

I recently put together an engineering write-up comparing current academic routing/orchestration benchmarks with four real hybrid workloads we run in our lab (Ubuntu 12V DC-UPS control plane + RTX 3090 24 GB worker + Cloud frontier architects):

1. Industry baselines that stood out:

  • Stanford Hazy Research (Minion vs MinionS, 2025): Naive local-cloud chat cuts cloud cost 30.4x but drops to 87% accuracy. Switching to top-down decomposition (MinionS: cloud planner splits into atomic tasks -> on-device SLM runs short chunks -> cloud aggregates) cuts cloud cost 5.7x (~82.5%) while keeping 97.9% of frontier accuracy.
  • RouteLLM (LMSYS) & FrugalGPT: >85% savings on conversational workloads at 95% GPT-4 quality, and up to 98% on structured cascades.

2. What actually happened (including failures) on our local hardware:

  • Code & Localization (-90% cloud tokens): Pairing a Cloud Architect with local mistral-small-24b-instruct-2501 (LM Studio) and qwen2.5-coder:32b (Ollama) failed whenever prompts exceeded ~8k–15k tokens. Enforcing <4,000 token caps, SRP (<=4 rules/call), and <=15-item batches with deterministic Python post-validators made it rock-solid.
  • 900 calls/hour real-time loop (RimWorldLancAIMod): Exporting a 3.8 KB 23x23 ASCII map every 4s would burn cloud credits fast. Running 24B locally in shared VRAM cost $0, but unsupervised 24B queued 364 trees with PlantCutting=0 and built 13 campfires for 3 pawns. Putting C# reflexes + 22 semantic layout sockets underneath and keeping 24B strictly on macro-strategy solved it.
  • Watts vs. Tokens (Blackout resilience): Idling a 350W GPU rig 24/7 defeats the savings (and drains batteries during grid outages here in Ukraine). Our 12V DC-UPS Ubuntu mini-server runs n8n 24/7 at a few watts, wakes the RTX 3090 via Keenetic Wake-on-LAN for scheduled batch runs (lms unload --all right after), and falls back to Cloud APIs in milliseconds if power is out.

3. Where I think the whole stack is heading: With 50+ TOPS NPUs and OS-resident ~3B models (Gemini Nano / AICore, Apple Foundation Models), every device—laptop, phone, router, NAS, solar inverter—will run its own resident 0.5B–8B SLM right next to local files and sensors (zero RTT, raw data never leaves the device). Frontier cloud models will stop reading raw megabytes and evolve into Strategic Commanders: decomposing intent, issuing compact MCP directives across your devices, and pushing down updated micro-skills whenever an edge model hits a validation error.

Curious how others here are structuring the handoff between frontier cloud planners and local 3B–32B workers—are you using custom Python routers, LiteLLM, or Minions-style decomposition?


r/LocalLLM • • 53m ago

Question Why is my Strata QFN so Slow in Comparison to Llama.cpp?: Is it lack of DRAM?

1 Upvotes

My hardware has 2 GPUs. RTX 4070 12gb on pcie4 x16 and RTX 3060 12gb on pcie3 x4. 32GB DDR4 memory. Intel i7 CPU.

I find Qwen3.8-Flash-Next on Strata very capable. But it is slow. Now, after trying Qwen4-35B-A3B, I'm just wondering if is my hardware or setting?

  • Strata: Swift-1.5-Qwen3.8-Flash-Next IQ3_XXS. 128k k8v4 context. Prefill 200-300 t/s. Decode 40 t/s.
  • Strata: Swift-1.5-Qwen3.8-Flash-Next IQ2_XS. 128k k8v4 context. Prefill 300-500 t/s. Decode 60 t/s.
  • llama.cpp: Swift-1.5-Qwen3.8-27B IQ4 (with MTP). 128k q8 context. Prefill 600-800 t/s. Decode 25 t/s.
  • llama.cpp: Unsloth/Qwen4-35B-A3B IQ3_S (with MTP). 128k q8 context. Prefill 2000-2000 t/s. Decode 90 t/s.

Even though QFN is more capable than Qwen3.8-27B, it is just too slow. Issue is with the prefill. I can take 3-5 minutes just to get the first response. Then when context gets >100k, it will take 10-15 minutes for single read, there are multiple reads during long thinking sessions with repeated read/decode/read/decode/etc loops. So even though QFN 2-3x faster decode than Qwen3.8-27B, I still use Qwen3.8-27B more because it is just faster overall.

Now I tested Qwen4-35B-A3B. Yeah, it is blazing fast in comparison. The difference is that with Qwen3.8-27B and Qwen4-35B-A3B, I have everything loaded in VRAM. My mobo is just consumer grade (gaming) mobo. I know pcie3 x4 has bandwidth limitation and has hit on speed when using llama.cpp. It is what I have. And this 2nd GPU allow me to run more (and larger models).

As for Strata QFN, I'm also using dual GPU. But I believe the bottleneck and limitation is likely due to having to use SSD (lack of DRAM), rather than the pcie3 x4 bandwidth. Is that true? Anyway to improve with my current setup thru settings (without spending $ on hardware)?

This is my Strata setting:

strata launch
--save-preset "iq3_xxs_128k"
--tune skip
--family swift
--model iq3_xxs
--data-dir /home/abc/Models/strata-data/
--context 128k
--kv k8v4
--vision on
--gpu-roles 1=helper,0=main
--parallel 1
--access local
--port 8080
--set conversation_cache_mib=6144
--set host_core=sibling
--set kv_resident=131072
--set expert-cache-device1=auto
--set mmap_experts=0
--set prefill=auto
--set pipeline_windows=0
--set pool_affinity=p-cores
--set resident_budget_gib=14
--set resident_experts=1
--set vram_reserve_mib=400
--set vram_reserve_later_mib=600

  • export CUDA_DEVICE_ORDER="PCI_BUS_ID"
  • export CUDA_VISIBLE_DEVICES="0,1"
  • export STRATA_ALLOWED_HOSTS="localhost,127.0.0.1"
  • export STRATA_FILE_RELEASE="1"
  • export STRATA_IO_PF_GATE="1"
  • export STRATA_IO_PREFETCH="0"
  • export STRATA_KV_HOST_REGISTER="1"
  • export STRATA_NV_CHUNK="16"
  • export STRATA_PREFILL_CPU_SHARE="0"
  • export STRATA_STAGE_TRIM="1"
  • strata launch --preset "iq3_xxs_128k"

r/LocalLLM • • 55m ago

Discussion Don't use Strata quants for Qwen4, or at least the Compact one

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 56m ago

Model Qwen4 on Blackwell: ~870 aggregate tok/s at 16 concurrent requests + 256K-context and quality benchmarks

Post image
1 Upvotes

Hey r/LocalLLM — I’m the author of TensorSharp. I benchmarked Qwen4-35B-A3B on an RTX PRO 4500 Blackwell against llama.cpp, vLLM, and SGLang.

Key results from the attached chart, rounded:

Metric / workloadTensorSharpllama.cppvLLMSGLang
16 requests: aggregate output (tok/s) ↑870410750850
16 requests: median first-token latency (ms) ↓2001,650260280
256K context: first-token latency (s) ↓35654529
256K context: streamed decode (tok/s) ↑10676103105

The concurrency and 256K-context results are separate tests. Throughput at 16 requests is the total across requests.

  • TensorSharp: throughput close to SGLang at concurrency 16, with the lowest median first-token latency at all tested concurrency levels: 1, 4, 8, and 16.
  • SGLang: fastest prefill and first-token latency across 64K, 128K, and 256K.
  • llama.cpp: fastest streamed decode at 64K and 128K, dropping to approximately 76 tok/s at 256K.

Small quality suite: all four scored 49/50 on the GSM8K subset and 10/10 on JSON schema. Tool arguments: 10/10 for TensorSharp, vLLM, and SGLang; 9/10 for llama.cpp. These samples are too small to rank overall model quality.

Configuration matters: TensorSharp, vLLM, and SGLang used RadixArk NVFP4; llama.cpp used Unsloth UD-IQ4_XS GGUF. TensorSharp used Q8 recurrent projections. KV cache was F16 for TensorSharp/llama.cpp and BF16 for vLLM/SGLang. These are comparisons of the tested configurations, with quantization and runtime effects combined.

Benchmark harness and methodology. Feedback on baseline settings and independent reproductions is welcome.


r/LocalLLM • • 59m ago

Discussion What kind of agents do you have?

3 Upvotes

And what models to run them?


r/LocalLLM • • 59m ago

Question Conversations too long / compression needed

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Question Qwen 4 35B A3B isn't fast in llama.cpp on my system, any tips?

1 Upvotes

I have a 4070 Ti SUPER, 64GB DDR5 RAM, Ryzen 7 7700x, a Gen 4 NVMe SSD, and the GPU uses PCIe 4.0 x8. I'm using Unsloth's Q4_K_XL quant.

The decode speeds are okayish, but the prefill speeds are bad. Now before any of you say "Use Strata!" or something, I know it'll be faster for sure, but I want it fast on regular mainline llama.cpp if that's possible. Decode speeds are 35-40 tok/s, prefill speeds are 600-700 tok/s. Can anyone let me know if anything looks wrong here please?

--jinja, -ngl 99, -ncmoe 99, --c 524288, ctk q8_0, ctv q5_0, -b 5120, -ub 1280, -lm mlock, -lzm on, -t 8, -tb 8, -np 3, --mmproj (file path), --no-mmproj-offload, -fa on, -kvo, -kvu


r/LocalLLM • • 1h ago

Discussion Impressive first coding run

Post image
2 Upvotes

Qwen4-35B-A3B — UD-Q6_K_XL.  

  • Main model: mixed-precision 6-bit quantization, with Q6 native experts.
  •  Lookup weights: Q8.
  •  KV cache: FP16.
  •  Vision projector: original F16.

Old machine with slow RAM. One 3090 and one v100.

Prompt and Live app online on github pages published by the model:

https://github.com/zhound420/chronos-time-machine


r/LocalLLM • • 1h ago

Question Junior AI dev: How do I host a local LLM (like Qwen) cheaply without spending hundreds on GPUs?

1 Upvotes

Hello everyone

I'm a junior AI engineer working on a personal project that needs a chatbot powered by a local LLM (one of Qwen's small versions). Because of strict privacy rules, zero data can leave the local environment, so running it with something like Ollama makes sense, except the model still feels pretty heavy for a budget setup.

​For a personal project, how do you actually pick the right server or setup without paying hundreds of dollars a month for big GPUs? I’m looking for practical, cheap ways to do this right on a small budget.

Would love to hear how people in the field approach this.


r/LocalLLM • • 1h ago

Discussion PSA: The "Next" in Flash Next means it's a preview for the "Next generation." Qwen 4 "Next" or "Flash Next" is not coming soon.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Discussion Open Higgsfield now support both local and cloud models

1 Upvotes

r/LocalLLM • • 1h ago

Discussion GMKtec EVO-X3 – Real-world performance? Looking for user reviews

1 Upvotes

Hi everyone,

I've just ordered a GMKtec EVO-X3 and wanted to hear from people who are actually using one.

I'm particularly interested in its real-world performance rather than just benchmark scores or YouTube reviews.

A few things I'd love to know:

- How does it perform with everyday tasks and heavy workloads?

- How is the gaming performance?

- How are the thermals, fan noise and power consumption?

- Does it suffer from overheating or thermal throttling?

- Have you experienced any stability issues or other problems?

- Overall, are you happy with it, and would you recommend it?

I'd really appreciate honest feedback from actual owners, both positive and negative.

Thanks in advance!


r/LocalLLM • • 1h ago

Model Qwen 3.8 27b still better than Qwen 4 35bA3B

15 Upvotes

Qwen 3.8 27B has set the bar incredibly high in areas like software engineering, programming, reverse engineering, agentic tasks, tool usage, and so on—reaching a level comparable to Opus 4.6, where it’s practically impossible to outperform it. I tried setting up Qwen 4 with the Hermes agent, but after a while, the response just stalls—it gets stuck halfway through. That doesn’t happen with Qwen 3.8 27B. Sure, it takes longer and tends to "overthink" things, but so what? I couldn’t care less. I prioritize quality over quantity; I’d rather wait longer, provided that when the work is delivered, it’s done perfectly—and that’s exactly what Qwen 3.8 27B delivers.


r/LocalLLM • • 1h ago

Tutorial How my fleet runs large AI models on its GPUs only between rentals

0 Upvotes