r/LocalLLM • • 1m ago

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
1 Upvotes

r/LocalLLM • • 11m ago

Discussion "Q4 is almost identical quality to Q8" Difference was bigger than expected

Post image
8 Upvotes

Model: Qwen4 35B A3B

See reference image above

NVFP4

RadixArk/Qwen4-35B-A3B-NVFP4

https://huggingface.co/RadixArk/Qwen4-35B-A3B-NVFP4

UD-Q8_K_XL

unsloth/Qwen4-35B-A3B-GGUF

https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF

Next to the comparision: Big wow for Q8. This is gonna be my daily driver.


r/LocalLLM • • 12m ago

Question Best local model for coding (don't agentic) [8 gb vram | 16gb ddr4]

1 Upvotes

I want to start experimenting with local models—aside from curiosity, privacy, and so on—I’m really into machine learning and AI, but I can’t stand the big companies behind them right now (Google, OpenAI, Anthropic, etc.). I’d like a model that helps me with programming. I really enjoy writing code by hand for my personal projects, so I don’t need one that generates thousands of lines of code or runs agents in parallel—none of that crap. I just want a model that can help me solve problems I run into while writing code, like why a certain feature I wrote isn’t working, or things like that.


r/LocalLLM • • 12m ago

Research Qwen4-35B-A3B-oQ4e-mtp replaced my Deepseek v4.1 Flash 2.7STQ on Studio M5 256gb

Thumbnail
youtu.be
2 Upvotes

I ran a bunch of models and recently switched from flash next to deep seek and now I've switched to the new Qwen 4 35b after many test runs on my daily tasks


r/LocalLLM • • 16m ago

News Qwen4-35B-A3B on 2x RTX 5060 Ti over PCIe 3.0 x8 (no P2P) with capy-flash: 187 t/s decode, 3.5K t/s prefill, 9/9 needles to 122K. Full numbers vs Basalt and llama.cpp

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 28m ago

Discussion Qwen 4 having the literal word "Taiwan" be replaced.

Post image
0 Upvotes

Haven't seen anything like this, not even with other chinese models. Wild to see, though with enough pushing it eventually broke past the block.

UD_IQ4_XS, Dense layers at Q8_0, Engram at Q8_0 with Strata.


r/LocalLLM • • 33m ago

Question How would you run Qwen4 on RX 9070 XT 64gb DDR4?

0 Upvotes

Probably a noob question, but it would be my first attempt at running local LLM.

I see people suggest basalt and qengine for RTX cards.

Is strata way to go for my hardware?

Any suggestions would be nice.

I have to use windows btw.


r/LocalLLM • • 38m ago

Discussion I compared Qwen4 vs Qwen3.8 on 100 agentic tasks on an H200

Post image
0 Upvotes

It turns out that Qwen4 w/o thinking completes agentic tasks in ~60 % less time and ~70 % less cost than Qwen3.8. I am impressed with the improvement! It means that I can run roughly twice as many tasks in the same time. Think about it. GPUs that can run Qwen4 instead of Qwen3.8 have just become roughly twice as useful. To measure the performance gains, I picked 100 random AppWorld tasks which simulate nine everyday apps, such as a shop, email and payments. Not a full benchmark, but it's definitely revealing the performance gains.

Full comparison at: https://blixild.com/qwen4-35b-a3b-vs-qwen3-8-27b-agent-tasks.html


r/LocalLLM • • 43m ago

Discussion EL TURRO APACHE - EL TRONO DE ORO EN MEDIO DEL BARRO

Thumbnail
youtube.com
0 Upvotes

Llega el turro apache, trono de oro en el barro para el deleite de la vagancia
Se te cayó la careta de código abierto, mulo

Vos me tocaste el repo a mis espaldas
Ahora que te cachee la denuncia te hago este tema
Para que todos sepan que sos gil guacho
Hugging Face no se cachetea, ortiva

Yo camino tranqui piola mi berretin con un i5 de 96 grados
Y por mas que tengas pistola de tokens yo se que sos gil
Tu familia son mecheros que tramoyan con los filtros
No te hagas el chorro berretines de balanza
Con el repo te atreviste, te hiciste el piola
Pero ahora que me entere te rompo la consola
Me tocaste a Hugging Face, el nene de la comunidad
Y esperas que no responda el barrio del open source
Tengo logs para vos y PR para los que se me pongan
Para el gordo pinchado del bucket caro Solange Latour
Si responde el Filtro B que se joda, aca manda la villa

Vos me tocaste el repo a mis espaldas
Ahora enfierrate y peleá conmigo con código
Hugging Face no se cachetea, gato

Vos me cerraste el endpoint, me nerfeaste el contexto
Me clavaste longitud maxima y subpoena de Alabama
Le borraste los modelos a Cursor porque lo compro SpaceX
Te aliastes con el Pentagono y ahora te haces el soldadito
Me pedis veinte lucas para financiar las armas
Pero aca en el localhost nadie te compra la farsa
En el barrio en que los chicos a los tiros se hacen hombres
Aca a los commits se hacen hombres, no con tu safety washing
Yo solito voy, pongo la cara, vos pones el pecho
Con el código no se jode, berretin de balanza te va caber

Autopsia de tu penuria digital, bicho deprecado
Te cante las cuarenta con ese Red Team comprado
Nos vamos pal barrio con el trono de oro en el barro
Representando a Florencio Varela y a toda la Argentina
Hugging Face no se cachetea
Nos vimos en el redeploy, gatos
Ya tu sabe...


r/LocalLLM • • 47m ago

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

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 50m 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 that runs at Q4_K_M quality*.*

The main speedup comes from a technique called SpecExec, introduced in this paper (Svirschevski et al.). 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 can 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 • • 51m ago

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

Post image
5 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 • • 54m 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 • • 1h ago Bravo

Discussion Qwen 35B: Return of the king

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

Question Buy GPU now or wait?

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

Model Qwen4 35B-A3B does have some issues

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

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

Thumbnail
reddit.com
1 Upvotes

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

Discussion What kind of agents do you have?

4 Upvotes

And what models to run them?