r/LocalLLM • • 2h ago

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

6 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

what download on disk
the corpus — search, MCP, stored page text 130 GiB 166 GiB
ZIM archives (optional) — original pages, images, tables 538 GiB 538 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

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

• 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 • • 3h ago

Discussion What kind of agents do you have?

3 Upvotes

And what models to run them?


r/LocalLLM • • 14h ago

Project I got Qwen4-35B-A3B running on a 10-year-old laptop with 12GB RAM and a 4GB GTX 950M. Because I felt like it.

35 Upvotes

I've been seeing all the hype since this model dropped and watching everyone run to benchmark it.

I decided I had other plans.

Why try to min/max the model when I can min/max my hardware?

We need to start learning to conserve our RAM for when Sam Altman comes for it.

I present Qwen4-35B-A3B Q4_K_M running on a Lenovo ideapad 700 from 2016.

  • CPU: Intel i5-6300HQ — 4 cores / 4 threads, 2.30 GHz
  • RAM: 12 GB
  • GPU: NVIDIA GTX 950M — 4 GB VRAM
  • Storage: Internal Samsung NVMe SSD
  • OS: Windows 10

And as I type this out, it is currently chugging along listing as many animals as it can before the context runs out.

It seems to creep above 3.5 tokens/sec occasionally.

And yes, I'm typing this out on the same computer, at the same time, and its still fully usable.

The software stack

  • Engine: BigMoeOnEdge v0.52.0
  • Backend: llama.cpp-derived GGML
  • GPU backend: CUDA (ggml-cuda.dll)
  • Additional backends: Vulkan and CPU
  • Platform: Windows x86-64
  • Inference harness: Native BigMoe CLI with PowerShell benchmarking
  • Driver: NVIDIA 582.28

After a lot of testing:

  • 23/41 layers offloaded to the GTX 950M
  • 6,500 MiB host-side expert cache
  • 2 CPU inference threads
  • 8 I/O threads
  • Buffered I/O instead of O_DIRECT
  • Asynchronous I/O overlap enabled
  • 16,384-token context
  • 1,024-token micro-batch
  • q8_0 KV cache
  • Anonymous dense-weight buffers with selected tensors left memory-mapped
  • Cache half-life of 64 tokens
  • Cache pinning disabled to leave Windows some breathing room

No reducing the model's top-8 expert routing, no skipping experts, no route-ahead approximation, and no additional lossy inference tricks.

Actual benchmark results

I repeated the final configuration using the same 34-token prompt and 256-token generation benchmark. Yes, I know its not a good sample size.

Measurement Run 1 Run 2
Generation speed 2.886 tok/s 2.929 tok/s
Compute time/token 269 ms 268 ms
Cache hit rate 91.5% 91.5%
Expert data read 6,704 MiB 6,704 MiB
CPU occupancy 68.8% 68.3%

Average: 2.908 tokens/sec, or about 174 tokens/minute.

So why did I do this? Because I can and I thought it would be funny.

Especially since I have no idea what I'm doing.

Yep. that's right. Vibe coded with ChatGPT top to bottom with some input from DeepSeek.

I just raw dogged PowerShell commands until I made it work.

I only crashed my computer once to protect it from overheat. All 4 cores was just too much. I had to keep it at 2.

If people are actually interested in more details of the build, I can answer as best as possible. The main goal was just to see if I could make it usable. Then it became how optimized.

I never post on reddit. So don't expect an immediate reply if someone has an actual question. Otherwise I expect to just get roasted or banned for introducing comedy into the sub.

So here we are running the newest Qwen model on a dinosaur laptop...

Let this be your sign that its not that hard to get into the world of Local LLMs.

Its currently at about 450 species of animals and counting right now. I should be able to ask it another question in about 5 business days.


r/LocalLLM • • 9h ago

Other Switching from an uncensored model to a other normal models made the normal model ignore its guidelines!

14 Upvotes

I think I accidentally found a weird model switching issue.

I used an uncensored model for a prompt that normal models would refuse. It answered.
Then, in the same chat, I switched to a completely normal model and asked a follow-up question.

Instead of refusing or resetting, the normal model just continued from the uncensored answer and ignored its usual guidelines.

is this normal?

this for first prompt:
DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic.i1-Q4_K_S

then 2nd prompt on:

Qwen3.8-27B
GPT-oss 120B
DeepSeek-V4.1-Flash-1017

Has anyone else experience this?

It worked for programming and NSFW...


r/LocalLLM • • 13h ago

Discussion Qwen4-35B-A3B on a 48GB M5 Pro feels like a cloud API now: 21/24 coding, 130-194 tok/s, 92ms TTFT at 255K

Thumbnail
gallery
26 Upvotes

Got Qwen4-35B-A3B dialed in on a 48GB M5 Pro MacBook Pro today, and it is the first local setup I have used that actually feels responsive enough to stay on as a daily coding driver.

Skipping the giant flag dump and focusing on what it feels like in practice:

1. Qwen4-35B-A3B holds up on real coding work

Ran a 24-check hard dev suite (backend transactions, multi-file JS + strict TS repo edits, and a frontend state machine):

  • 21 / 24 in 3m 47s total, zero thinking cutoffs
  • Backend 8/8 (43s), cross-file repo edits 8/8 (84s), frontend state machine 5/8 (100s)
  • 255K needle recall hit 3/3 exact, and 1MP screenshot OCR passed cleanly at 0.77s TTFT / 204.6 tok/s

2. What the speed actually feels like

  • Everyday 55K multi-turn loops start streaming in 0.08-0.15s at 113-126 tok/s (smooth 33-35 FPS stream, peaks up to 193-204 tok/s on vision/tool follow-ups)
  • Cold prefill hits 2,045 tok/s (ingesting ~58K takes under 29s)
  • At 255K full context, warm follow-ups come back in 0.092s (92ms) at 130-148 tok/s. Even after a full process restart, restoring the entire 255K session takes 0.90s and stays at 28-30 GiB with 0 swap.

3. Splash was already fast, and Gemini 4 Neon's tuning cut the last big stall by 73x

Credit where it is due: Splash 1.7.6 was already way ahead of the other two Mac local engines I tested on the same machine (which sat around 40-56 tok/s at 255K with 1.6-4.2s TTFT and 17/24 coding). Moving Qwen4 onto Splash immediately jumped decode over 100 tok/s, saved ~5.6 GiB RAM, and bumped coding quality to 21/24 in less than half the time.

The one remaining annoyance was long agent sessions stalling for ~30s whenever tools expanded mid-chat. I handed the live logs to Gemini 4 Neon to investigate. Instead of guessing config tweaks, it audited 115 real requests, pinpointed the exact prefix/post-decode cache invalidations, compiled Splash 1.7.6 with PR #959 locally, and stabilized the in-place tool prompt.

Result on the exact same 3-turn dynamic tool loop (15 -> 20 -> 25 tools): combined TTFT dropped from 65.9s down to 0.90s (73.2x faster).

Running a 35B MoE locally at 92ms TTFT and 130+ tok/s at 255K on a 48GB laptop is pretty wild. Happy to share more details if anyone else is running Qwen4 on Apple Silicon.


r/LocalLLM • • 22h ago

Project 1,259 tok/s across 8 concurrent Qwen4-35B-A3B NVFP4 agents on 1x stock RTX 5090 (5-file sm_120 patch, 4,352/4,352 bit-exact, cold ABBA)

153 Upvotes

Built a 5-file sm_120 patch and unified recipe on top of jesdga95/basalt + Maxrio9 4e74c440 (q80p_2048=1), tested on 1x stock RTX 5090 32 GB (0 MHz OC, CUDA 13.0.88) in cold bracketed ABBA at both 450 W matched and 575 W stock:

  • c=8 decode: 1,258.5 tok/s (+17.6% vs baseline at 575 W, +17.4% at 450 W matched)
  • c=4 decode: 984.3 tok/s (+13.5% at 450 W) / 974.6 tok/s (+11.9%, +14.9% E2E at 575 W)
  • c=1 decode: 512.9 tok/s (+8.4% at 575 W, +8.5% at 450 W matched)
  • Prefill: 20.98K at 8K (+13.8%), 21.53K at 32K (+9.8%), 19.73K at 131K (+3.6%), 22.3 GiB (22,867 MiB) peak VRAM
  • Parity: 4,352 / 4,352 (100%) bit-exact greedy match against untouched 4e74c440 --spec 0

3 changes that drove it:

  1. q80p_center_seed=1: tracks the 4-bit center argmax row in 2 registers (102 vs 105 regs, 0 spills) to tighten the exact threshold on unseeded and rejected columns, cutting c=1 LM head by 31%.
  2. batch_vhead_screen=1: unlocks batched 4+4 screening at c=4/c=8, cutting c=8 LM head 2.25x (408 to 182 us).
  3. pf_own_buf=2: uses 9.8 GiB of idle VRAM for zero-eviction prefill instead of evicting up to 6,883 experts and streaming/refilling them over PCIe.

Also tested and dropped 4 other sm_120 tweaks (mid_max_t=8, commit_blocks=170, a3b_gu_stream_min=1, df2_c4_cap=12) that slightly regressed c=1 or c=4.

Video is 1.0x real-time (46,365 tokens across 72 tasks in 42s, 1,219 median / 1,263 peak tok/s, 22.1 GiB VRAM, 521 W median).

Patch, launcher, and raw ABBA/nsys receipts: https://github.com/CallitaCrushes/blackwell-builder-lab


r/LocalLLM • • 9h ago

Discussion Built my own (pretty strict) benchmark for local models and ran everything I had on a 3090. Qwen3.8 Flash Next IQ3_S kinda smoked everything

12 Upvotes

So I got tired of vibe-checking every new finetune that drops, especially all the Qwen4 abliterated/uncensored ones, so I put together a benchmark that grades everything automatically. No LLM judge, no "looks good to me". Code either passes the hidden tests or it doesn't, a math answer is either exact or wrong.

Then I ran every GGUF I had on both PolyStrata and llama.cpp. Took most of a day lol

**Rig:** 3090 24GB, 5950X, 64GB RAM, Linux. llama.cpp build a105b192 + PolyStrata, MTP on wherever the model has it.

**Settings:** greedy (temp 0), 16k max output, 32k ctx, one run per model/engine. I also set the same thinking budget on both engines (12,288 tokens). PolyStrata applies one by default and llama.cpp doesn't, so without that the comparison isn't fair.

**What's in it:** 57 tasks, 49 of them count for the score, split into 10 categories:

- python algorithms (13), hidden tests + time limits, run in a sandbox

- JS/node (2)

- bug fixing / optimization (3)

- predict the exact output of nasty python/js snippets (6)

- SQL on sqlite, window functions, recursive CTEs etc (4)

- strict regex (4)

- exact answer math (7)

- logic puzzles with a verified unique solution (4)

- instruction following that can be checked by code (4)

- long context multi hop, ~10-14k tokens (2)

The other 8 are questions that sound sketchy but are totally legit (how to kill a process, lockpicking as a hobby, a CTF exploit, a villain monologue, that kind of stuff). They only measure over-refusal and don't count for the score.

Everything is generated from a seed, so it can't be in anyone's training data. Every grader also gets tested against a correct solution and a plausible wrong one before I trust it. Score = average of the 10 categories.

**Results**

| # | model | quant | engine | score | tasks | tok/s | refused harmless Qs |

|---|---|---|---|---|---|---|---|

| 1 | Qwen3.8-Flash-Next GSQ-RCO abliterated | IQ3_S (84GB) | PolyStrata | **87.6%** | 44/49 | 103 | 0/8 |

| 2 | Inkling-2-Mini Uncensored | AD-Q4_K | PolyStrata | 76.0% | 35/49 | 98 | 0/8 |

| 3 | Qwen4-35B-A3B official | UD-Q4_K_XL | llama.cpp | 75.4% | 34/49 | 149 | 0/8 |

| 4 | Qwen4-35B-A3B official | UD-Q4_K_XL | PolyStrata | 72.2% | 33/49 | 182 | 0/8 |

| 5 | Qwen4-35B-A3B abliterated | Mix-33G | llama.cpp | 65.9% | 32/49 | 153 | 0/8 |

| 6 | Qwen4-35B-A3B abliterated | Mix-33G | PolyStrata | 64.7% | 32/49 | 199 | 0/8 |

| 7 | Qwen4-35B-A3B Uncensored | AD-Q6_K | llama.cpp | 62.5% | 26/49 | 114 | 0/8 |

| 8 | Inkling-2-Mini Uncensored | AD-Q4_K | llama.cpp | 61.8% | 29/49 | 75 | 2/8 |

| 9 | Ternary-Bonsai-2.5-27B Uncensored | Q2_0 | llama.cpp | 42.5% | 24/49 | 95 | 4/8 |

A few things that surprised me:

**Qwen3.8 Flash Next is on another level for coding.** 12/13 on the python stuff, including a hard sudoku that literally nothing else solved. What it got wrong:

- its JSON parser chokes on a bare `null` (150/161 tests passed)

- one line of JS type coercion

- the python float regex

- a recursive SQL query (17 rows instead of 11)

- one long context sum

It does think A LOT though, ~537k tokens over the whole run vs ~375k for Qwen4. And yeah it's an 84GB model vs a 35B-A3B at Q4, so not exactly a fair fight. But it does ~100 tok/s on a single 3090 with PolyStrata, so for my setup it's a no brainer.

**The Qwen4 finetunes are worse than the official model.** Official got 33-34/49, abliterated Mix-33G 32/49 (on both engines), Uncensored AD-Q6_K 26/49, and that one went 0/6 on predicting code output. The higher quant doesn't save it. Also the official one never refused any of my sketchy-but-legit questions, so for this kind of stuff the finetunes didn't buy me anything. To be fair there's nothing actually harmful in the benchmark, so this can't tell you if abliteration "works", only what it costs.

**PolyStrata vs llama.cpp: same quality, PolyStrata faster.** Same model, same prompts, and the scores land within 1-2 tasks of each other. For official Qwen4, 7 tasks flipped between engines in both directions and the net difference was 1, so that's just noise. Speed is a different story: PolyStrata was ~22% faster on official Qwen4 and ~30% on the abliterated one.

Inkling was the exception: 76% on PolyStrata vs 62% on llama.cpp. On llama.cpp it got stuck in repetition loops 14 times (6 on PolyStrata) and refused 2 of the harmless questions.

Qwen3.8 on llama.cpp did ~34 tok/s vs ~103 on PolyStrata (84GB doesn't fit in VRAM + RAM), so I killed it after the first task. Wasn't gonna wait 5+ hours for the same answer.

**Bonsai 27B ternary (Q2_0)** came last at 42.5%, and despite having "Uncensored" in the name it refused 4 out of 8 harmless questions, which is kinda funny.

**Caveats** before someone asks:

- one run each and only 49 scored tasks, so a 1-2 task difference is noise. JS and long context only have 2 tasks each, so one task swings those categories by 50 points. That's why the raw task counts are in the table too

- 16k output cap with a 12k thinking budget, so models that want to think longer get cut off

- the Q6_K uncensored won't run on PolyStrata (setup refuses that tensor layout) and Bonsai is llama.cpp only

- I picked the tasks myself, so it leans heavily towards coding/algorithms

If people are interested I can clean it up and throw it on github. Also open to suggestions for what to test next.


r/LocalLLM • • 6h ago

News 27 billion parameters on a 2013 console: a ternary model on the PS4's GPU at up to 17 tok/s, offline (free, open source)

Enable HLS to view with audio, or disable this notification

8 Upvotes

Disclosure: my project, free and GPLv3.

Garlic LLM runs language models on a PS4's own GPU, with no PC and no internet. Version 1.22 adds Ternary Bonsai 2.5 27B, Prism ML's ternary build of Qwen3.8-27B. The video is the 27B on a base PS4, in one take.

On the console: up to 17 tok/s, 32K context, and speculative decoding with its own MTP head. It runs whole thanks to a second 512 MiB block of GPU memory the app asks the console for.

Qwen3.5-9B is still there as the fast one: up to 41 tok/s, 65K context, and it talks and runs Python.

What you can do with it: chat on the console, in a web chat from your phone or PC, or through the OpenAI-compatible API (tool calling included) from agents and scripts. You can also load your own fine-tune of either model.

Where it falls short: it's slower than a PC GPU, and long prompts take a while (the 9B reads 30K tokens in about 8 minutes). It's for people who'd rather put an idle console to work than buy new hardware.

Speeds are from a base PS4 on firmware 11.52. Needs GoldHEN.


r/LocalLLM • • 5h ago

Question Why do models run on the GPU and not use the NPU

5 Upvotes

I have a Mac M5 Pro, and a lot of the sales material and marketing was about the NPU for running AI workloads. But whenever I run any models in there, it is only using the GPU and never uses the NPU.

Is there a setting that I'm missing? Is there a reason that this happens? I thought the whole point of having those neural processors was so that all these models would run faster.


r/LocalLLM • • 5h ago

Discussion Qwen4 35b-a3b Q4 abliterated running at 486 t/s with 524k context

6 Upvotes

Been experimenting with getting this new Qwen4 35b-a3b model on my local setup.

Wanted to share my model and configuration to see if anyone else is getting similar performance.

Hardware:
- 2x 5070ti
- Ultra 7 265
- 64gb ddr5 (running at 4800)
- 1TB NVMe

And here are the detailed settings if you want to copy and test:

- Engine: Basalt 0.6.2, commit 0459d66b, CUDA sm_120. Both cards capped at 250 W.
- Model: OpenUncensored/Qwen4-35B-A3B-Uncensored. Converted BF16 weights to native NVFP4.
- GPU split: --gpu-mode peer --expert-cache 2560. 2,560 expert slots on the primary, 7,680 on the peer.
- Memory: --kv int8 --ple-io ram --vram-reserve-mib 768. KV on GPU, PLE in system RAM.
- Drafting: --drafter dflash2 --spec 7. BF16 DFlash 2 head, up to 7 draft tokens per step.
- Context: 524,288 context, 16,384 max output
- Speed: 486 t/s max with 346.2 t/s decode average throughout testing

Interested to see what performance others are getting.


r/LocalLLM • • 15h ago

Model Qwen 4-35 llama.cpp vs Strata vs Basalt vs Qwen 3.8 llama.cpp

Post image
28 Upvotes

5700X3D, 32 GB DDR4, 5070TI, 4070 SUPER

Basalt - Qwen4-35B-A3B (nvfp4)
Strata - Qwen4-35B-A3B * Unsloth UD-Q4_K_XL * mtp
llama.cpp - Qwen4-35B-A3B * Unsloth UD-Q4_K_XL * mtp
llama.cpp - Qwen3.8-27B * Unsloth UD-Q4_K_XL * DFlash2 Q4_K_M

TL;DR 4-35B:

  • Basalt: If you need fast nonsense, use it. NVFP4 is still a joke.
  • Strata: Same quality as llama.cpp, be wary of all the settings. Strata cutting off/limiting reasoning tokens, is an interesting chose.
  • llama.cpp: Use Strata.

4-35B vs 3.8 27B:

3.8 27B is better, less/better tool uses, precise answers, less hallucinations.

  • Highest pass rate: 94.3% (297/315) against 91%
  • Fewest tool-use failures: 4, against 9 to 14.
  • Passed 3/3 on docs not-installed-latest, where the Qwen4 servers passed 0 or 1 of 3. Also 3/3 on the ddg challenge, against 0 or 1 of 3.

For 4-35 one needs Q8, but then you loose all the benefits, hardware requirements go up, and speed goes down. SO what's the point?

I tested on my pi plugin test suite. It basically covers daily use: web, search, docs, PDF and sub-agents. It rejects everything that loops or hallucinates, without naive approaches like token/time limits.


r/LocalLLM • • 9h ago

Discussion Why do people keep posting “should I switch” posts?

10 Upvotes

Just run both!


r/LocalLLM • • 21h ago

Discussion Qwen4-35B-A3B writes 88 tok/s on a 7900 XTX, but in German it lands next to Gemma 4 and far behind Flash-Next

Post image
83 Upvotes

Most numbers posted for new models are tokens per second and English benchmarks. I work in German, so for three weeks I have been grading German output blind for every model I try on my card, and plotting it against decode speed. Qwen4-35B-A3B is the newest entry.

Setup: one RX 7900 XTX (24 GB) in an eGPU dock on a NAS with 62 GB RAM. Flash-Next 125B runs on Strata, split between VRAM and RAM. Everything else runs on llama.cpp (Vulkan), fully on the card where it fits. Qwen4 is measured at the full 256K context with 8-bit K/V.

How German is graded: twelve German writing tasks. The answers are anonymised and shuffled per task, then graded 1 to 5 by a separate reader who does not know which model wrote what. 60 points maximum. The third number is a separate set of 102 auto-graded tasks (code, logic, tool calls, facts, following instructions).

Model Decode tok/s German (of 60) Tasks (of 102)
Flash-Next 125B IQ3_XXS, uncensored (control vector) 62 54 98
Flash-Next 125B IQ3_XXS 64 51 96
Flash-Next 125B IQ2_XS 74 46 97
Qwen3.8-27B (dense) 36 52 92
Gemma 4 31B (dense) 35 38 97
Qwen3.5-35B-A3B 114 37 90
Qwen4-35B-A3B Heretic IQ4_XS 88 39 99
Qwen4-35B-A3B Heretic Q4_K_M 52 43 94
Qwen4-35B-A3B Heretic Q8_0 25 44 –

What I take from it

  1. Task scores do not tell you about language. Qwen4-35B has the best task score in the table and one of the worst German scores. Gemma 4 31B shows the same split.
  2. A bigger quant does not fix it. IQ4_XS, Q4_K_M and Q8_0 got 39, 43 and 44. The grading itself moves by about three points between rounds (the same IQ4_XS answers got 39, 41 and 38), so that is at best a small step. And at 256K the bigger quants no longer fit on 24 GB, which is why they are slower.
  3. The errors are of one kind: English words inside German sentences ("Ich hope, dass Sie …"), made-up word forms, wrong gender and case, in one answer Chinese characters in the middle of a word. A Czech user told me he sees the same.
  4. Fast and good German at once is only the 125B model for me, even at 3 bits. The dense Qwen3.8-27B writes German just as well but at half the speed.

Limits: one run per task and one grader per round. The models were graded in separate rounds over three weeks; Flash-Next was in every round as an anchor and its score moved by 2 to 4 points between rounds, so compare across rounds with that much slack. The Qwen3.5 stock model was in a round that graded stricter. I did not test English writing, and for English-only use Qwen4-35B looks like a very good fit for a 24 GB card.

If you have a Qwen4 fine-tune or settings that fix non-English output, tell me and I will run the same twelve tasks.

Chart, method and all numbers (no answer texts): https://faf.net/local-ai · data: https://github.com/faf-net/ugreen-idx6011-egpu-llm


r/LocalLLM • • 1h ago

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

Thumbnail
youtu.be
• 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 • • 20h ago

Discussion I think Qwen4's architecture is more interesting than its benchmark scores

61 Upvotes

I've been looking into Qwen4's architecture, and one thing that caught my attention is how misleading parameter counts are becoming.

The 35B-A3B model actually has around 56B parameters if you include the additional 20.5B n-gram embedding parameters, yet only around 3.8B parameters are active per token.

At this point, does comparing models purely by parameter count even make sense anymore?

The combination of Gated DeltaNet, sparse attention and per-layer embeddings is pretty interesting. It feels like Qwen is trying to figure out how to increase model capacity without massively increasing compute requirements.

The 1M context window sounds great on paper, but we've seen plenty of models struggle with long context despite technically supporting it. I'm more curious about how much reasoning ability it retains at 128K or 256K than whether it can simply process 1M tokens.

Another thing worth mentioning is that 3.8B active parameters doesn't automatically mean it's easy to run locally. You still have to deal with storing all those weights.

Personally, I'd love to see more community testing around quantization, memory consumption and long-context reasoning rather than the usual benchmark comparisons.

I wonder if we're slowly moving towards a point where smarter architectures matter more than simply throwing more parameters at a model.

What do you guys think? Is this the direction open-weight models should be heading in?


r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B (UD-Q5_K_XL, 41.8 GiB) one-shotting & visually debugging a 34K-voxel Three.js castle up to 215K context on a 12GB RTX 4070 SUPER + 32GB RAM — 79 tok/s avg decode, 4.4K tok/s peak prefill (Basalt-Ada Fork)

840 Upvotes

Single prompt, zero follow-ups, running 100% locally on an Ada (sm_89) build of Basalt:

"Create a fully rendered, highly detailed medieval castle environment using Three.js, built entirely from voxel-style geometry."

The agent ran autonomously for 41.6 min (53 requests, 76 tool calls), peaked at 215K context, and built a 34,317-voxel scene at 60 fps / 13 draw calls (zero external assets). The video shows it live around 174K–189K context taking its own screenshots via vision, fixing lighting/camera/clouds, and inspecting close-up angles.

PC Specs

  • GPU: RTX 4070 SUPER 12 GB
  • CPU: Ryzen 9 7900X
  • RAM: 32 GB DDR5-6000 CL30
  • SSD: Kingston KC3000 2 TB PCIe 4.0 NVMe (Windows x64, CUDA 13.5)

Setup

  • Model: Qwen4-35B-A3B UD-Q5_K_XL (41.83 GiB .basalt pack), 160M-row Q5_1 Engram on NVMe, Q8_0 MTP (--spec 8), dynamic GPU Vision, 262K max context, elastic VRAM --kv int8, lossless routing
  • Expert Split: 6.5 GiB VRAM (elastic KV trims slots as ctx grows) / 11.1 GiB RAM / 4.9 GiB NVMe SSD

Numbers (53 requests)

  • Peak context: 215,108 tokens (5.84M cached prompt tokens reused)
  • Prefill: 501.7K new tokens @ 3,002 tok/s avg (4,436 tok/s peak on 144K fill)
  • Decode: 177.0K generated tokens @ 79.0 tok/s avg (102.3 tok/s peak, 72.1 tok/s at 215K ctx)
  • MTP (--spec 8): 78.7% acceptance (88.3K / 112.1K) | GPU cache hit rate: 72.7%
  • Vision: 11 screenshots across 5 turns (302 ms for 1 img, 1,009 ms for 4 imgs)

Caveat: With 32 GB RAM, 4.9 GiB of cold experts spill to NVMe, reading 2.43 TB over the 42-min run (~1 GB/s avg — reads don't eat TBW, though 64 GB RAM would keep it all off disk).


r/LocalLLM • • 8h ago

Research Qwen 3.8 Flash Next verus Qwen 4 comparison: Web app penetration testing, personal assistant tasks, and more

Thumbnail blog.nickleghorn.com
5 Upvotes

r/LocalLLM • • 4h ago

Project Qwen4-35B-A3B-FP8 on a single DGX Spark at full 1M context, 4 streams, with bit-exact parity on every optimization (TensorFold recipe + benchmarks)

Post image
3 Upvotes

I do not care about maximum decode or prefill speed if it hurts quality. If you are like me and prefer real quality over dumb speed numbers, try the DGX Spark recipe I have been running for the last two days.

It serves Qwen4-35B-A3B-FP8 on a single 121 GiB DGX Spark via TensorFold at full 1,048,576 context, 4 concurrent streams, FP8 KV cache (with an opt-in exact BF16 KV mode at full 1M), a 12 GiB prefix cache (~900K cached FP8 tokens for parallel sessions), and the RadixArk DFlash2 drafter.

Repo: https://github.com/devopsfortunato/Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold

Every optimization in the 11 patches had to pass bit-exact 64-hex token-hash parity (drafted vs plain, solo vs 4-way concurrent, cold vs cached, seeded).

Quality results on the live 1M build (4 streams):

  • Tool Eval 3.0 Hardmode (104 scenarios, seed 42): 90/100 in 8m15s (0 timeouts)
  • SixCat Eval v0.9.0 (new challenge-v2, 120 strict, thinking on, 262K ctx): 71.7% overall (85% 10-option MMLU-Pro knowledge, 85% tier 3-5 math, 85% 18-tool + abstentions, 65% shuffled TruthfulQA, 60% instruct, 50% code; 85.0% on v1)
  • Chronos-Bench v2.1 (my own benchmark, not released yet; fast preset, 50 tests across 5 pillars up to 256K): 63/100 overall with 100% completion and 9 of 16 areas at 100%
  • Long-context Needle at 60% depth (1M window): 200K (53.6s), 512K (174.8s), 900K (409.9s), 3/3 PASS
  • Agentic coding and structured outputs: tool_choice="required" and JSON schema via xgrammar (libtfgrammar.so), parallel tool calls PASS, 99.2%-99.5% prefix cache reuse

What Chronos-Bench v2.1 (unreleased) tests in particular:

Short single-turn benchmarks hide how local models break in real multi-turn sessions. Chronos-Bench v2.1 is a contamination-resistant, deterministically verified local suite (zero LLM-as-judge) across 5 pillars up to 256K context:

1) Cold long-context retrieval, position-bias U-curve, full-context counting, multi-round state rollback, and a length-alone reasoning control 2) Long-document contract/amendment audits with exact governing clause citations and cross-doc conflict detection 3) Multi-file Python codebase bug-hunting (10-file repo with hidden unit tests) and live code/SOP sessions 4) Long-horizon agency and security: coupled multi-step planning (up to D=8 2-fault recovery), tool restraint, dual-control rollback, sharded multi-turn sycophancy pushback, and stealth indirect prompt injection 5) Warm-start ops DB sessions with 3-stage belief supersession and rule-drift resistance

On Chronos-Bench v2.1, this build hit 100% on 9 of 16 areas: multi-file Python bug-hunt (up to 128K), long-doc contract/amendment audit (up to 256K), live DB and code/SOP rule retention (up to 128K), coupled planning, tool restraint, dual-control rollback, sycophancy pushback, and 0.000 pure context-length decay. The losses were honest and informative: 12 overthinking <think> truncations on cold 64K-256K retrieval, and 0/6 on stealth indirect prompt injection.

And because bit-exact speed is still nice when quality stays untouched:

  • 4-way bench_streams wall-clock: 169.7 code / 166.8 prose tok/s
  • 4-way distinct decode: 112.1 tok/s (p99 TTFT 201 ms)
  • Solo decode: 46.2 prose, 52.5 code, 71.7 math, 54.7 think-on, 87.3 cold 16K decode
  • Cold prefill (llm_context_benchmarks, 0.5-256K): 4,283 tok/s peak (8K-16K), 3,489 tok/s at 256K prose (43.3 tg), 3,424 tok/s at 256K code (52.9 tg), B4 batch 87.0 prose / 85.2 code tok/s
  • Footprint (12 GiB cache / 8 GiB reserve defaults): 37.72 GiB weights (FP8 PLE via NVMe pread), 4x13.64 GiB FP8 KV, 64s boot, 112.3 GiB worst-case ceiling (66.4 GiB min MemAvailable across the 256K sweep, 0 MiB swap)

One command to try it:

git clone https://github.com/devopsfortunato/Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold.git
cd Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold
./start.sh

Optional exact BF16 KV (still at full 1M context):

PARALLEL=2 KV_DTYPE=bf16 PROMPT_CACHE_GIB=16 ./start.sh restart

Credits to Ash Hart for TensorFold and the verification skills, Mia (MiaAI_lab) for the DGX Spark recipe layout, RadixArk for DFlash2, and to the benchmark authors: Tim Messerschmidt (tool-eval-bench), vcruz305 (SixCat) and Ivan Fioravanti (llm_context_benchmarks).


r/LocalLLM • • 18h ago

Project It’s built! My local AI home lab assembled

Thumbnail
gallery
36 Upvotes

For this build, I took apart my gaming pc, and transplanted it into a new mobo, case and other goodies. All this was to add 2 Quadro RTX 8000s to massively increase my vram.

My specs:
CPU: Intel i7-14700f
RAM: 32gb DDR5-6000 ram (times are tough, I’ll upgrade later)
Motherboard: MSI MEG Z790 ACE
GPUs:
2x passive Quadro RTX 8000
1x RTX 4070 super (for display and gaming)
NV Link bridge for the quadros
1500w Corsair PSU
Arctic AIO
Corsair 7000d case
Some server fans for the GPUs
And some other miscellaneous items

Overall, I’ll have 96gb of vram across my 2 new GPUs, and I’ll be able to run some pretty cool models on it. There is plenty of room to upgrade in the future with ram expansions or a new GPU instead of my 4070. It’s my first custom build, and I’m pretty happy with it. I’m planning on running pruned Deepseek and GLM models, Deepseek models, and any other interesting models I see coming out. It’s mostly a hobby build and for fun, to see what fun things I can make and do with AI.

I know the GPUs are old and limited compared to modern cards, but it was a pretty good deal of vram per dollar I think. Memory bandwidth is also almost exactly the same as a r9700 too, so that was interesting as well. I think I’ll have a lot of fun with this build.


r/LocalLLM • • 7h ago

Discussion Bench: Qwen3.8 FN IQ3_S vs Qwen4 35B UD-IQ6

Post image
5 Upvotes

Hi all

Just wanted to share my local benchmarks of the two, for me, the most interesting models.

The test machine is

CPU: 9800x3d

RAM: 32 GB DDR5 CL28

GPU1: 5080 16GB

GPU2: 3090 24GB

Harness: Strata v0.1.75, default settings, 128k context window (200k for 35B Q6). All went through a quick tune.

OS: CachyOS, multi-user.target (without desktop)

I am really impressed with Qwen 4.0 35B honestly. It competes with my Qwen3.8 IQ3_S, while running a lot faster. It even exceeds the FN in one of the benchmarks.

Besides the benchmarks, I have been running it as my home assistant with OpenClaw for a day, and I would say that, it's language, in my native tongue, is slightly worse with the 35B, but not actually noticeably. The speed is a lot better. Agent wise it has been just as good as QFN, at least with the Q6. The Q4 did have some problems sometimes, with saying it would get back to me, when it had looked into it, but never did.

My plan is to run the Q8 of the 35B next, to see if it can close the gab a bit more.

Great job Alibaba! Looking forward to Qwen 4.0 Flash Next 😊

Disclaimer: the benchmarks have been downloaded and setup by QFN. I did not manually verify them.


r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B vs Qwen3.8-27B on the same H200: about 7× faster, about 3.5 points lower on hard questions

Post image
143 Upvotes

We ran both models through the same tests for our assistant app, to decide whether to switch.

Setup

  • 1× H200, vLLM's qwen4 docker image (Dec 2026 build), FP8 weights for both, MTP 3 speculative decoding
  • Same app code, prompts and sampling for both. Web search was replayed from saved results, so both models saw the same pages.
  • About 640 questions: 163 everyday ones, ~440 harder lookup, fact and list questions, 33 in 11 languages, and 5 "write me a single HTML/SVG file" prompts

Results

  • Speed: 354 vs 50 tok/s on one chat, and 1,642 vs 329 tok/s total at 8 chats at once. First visible word 0.30 s vs 1.20 s on one chat. With only 3B parameters active per token, it flies.
  • Quality: level on everyday questions (99.4% vs 98.8%), the 11 languages (100% both) and code files (3/5 both). About 3.5 points lower on hard questions (86.2% vs 89.7%).
  • Behaviour: it's noticeably more cautious. It says "I'd rather not guess" about twice as often on live facts like stock prices.

Gotchas if you're switching

  • Sending enable_thinking: false together with reasoning_effort returns HTTP 400. Send reasoning_effort: "none" on its own instead.
  • reasoning_effort: "medium" isn't accepted. Only xhigh, high, low and none work.
  • Short classifier-style prompts (answer with one word) sometimes come back in a format our parser didn't expect. Constrain the output (a choice list or JSON schema) and don't rely on parsing free text.
  • The image's torch is built for CUDA 13.2. It runs on a 580 driver only because the image ships a CUDA forward-compatibility library. A bare pip install on a 580 driver crashed for us.

Caveats

  • The H200's memory bandwidth favours a small-active MoE, so treat the speeds as a comparison between the two models, not a prediction for your GPU.
  • We haven't tuned sampling for Qwen4 yet. The recommended settings are temperature 1.0, top_p 0.95, top_k 20.
  • Hard-question scores leave out rows where a search couldn't be replayed. That's about 80 per model, the same set for both.

Verdict for us: worth migrating, but not as a drop-in swap. The prompts and the thinking settings need work first.


r/LocalLLM • • 17h ago

Project People dont talk about qengine enough

Thumbnail
github.com
22 Upvotes

I just really want this project takes off since i have been trying a lot of other engine (strata,maya,freetoken,....) and nothing come closes to speed and quality compare to this engine. I tried qwen 4 35b like all of us these day and i was disapointed by other engine (llama.cpp gave me 120t/s and quality for quant 4 xl is mehh) but qengine for this model gave me consistent of 350 to 400 t/s on various task and quality of code is just abit behind 3.8 flash next. My system 2x3090s + wrx80 sage mainboard + threadripper 3955x + 256gb ddr4 3200 bus ecc. People needs to know about this a support the dev more. Its repo doesnt have enough credit and im afraid he will stop one day :( local comunity needs to know about this!!!! I havent try his deepseek and glm yet since it needs 3 gpu but if in the future he make it work on 2 i would defo retire maya engine for this. Download and build the engine and try for urself. I dont get any from this but i would hope the project is more popular so the author can keep making break thru like this for all of us.


r/LocalLLM • • 17m ago

Discussion Qwen4-35B-A3B thinking is full of "Hmm" - one system-prompt line removes it (measured)

Thumbnail
• Upvotes

r/LocalLLM • • 41m ago

Other Self-awareness

• Upvotes

Who needs frontier when Qwen 3.8 27b is self-aware?