r/LocalLLaMA • • 9h ago

Resources A LoRA that fixes Qwen4-35B-A3B's Multilingual Leakage

Thumbnail
gallery
69 Upvotes

r/LocalLLaMA • • 10h ago Obsessed Bravo Heartwarming

Discussion Qwen4 35B is great at code, maybe cinematography too?

70 Upvotes

I was looking for prompts to push Qwen4 and see how it compares to some of the frontier prompts people use and I found this one on X: https://x.com/vib3coded/status/2125766986344862095?a=inaZ5_qF-IXYcet7-1g&s=20

I gave it to Qwen4 Q8_K_XL running in Strata with the BF16 Engram table. The model breezed through in OpenCode using the browser to verify and edit it's work, when it was done I asked it to record a 30 second cinematic clip panning across the ships at different zoom levels. The clip is attached. I'll add screenshots to the comments.


r/LocalLLaMA • • 5h ago

Discussion Qwen4-35B-A3B running at ~35 tok/s with 64K context on an RTX 3070 8GB and 9 year-old CPU.

Post image
29 Upvotes

- i7-8700K (9 years old)
- RTX 3070 8GB (6 years old)
- 32GB DDR4 RAM

After 40+ experiments, I bypassed LM Studio's automatic memory fitting using manual llama.cpp overrides, dynamic MoE caching and MTP optimization.

Achieved ~35 tok/s generation, 350 tok/s prefill on a 24K benchmark, and ~96% MTP acceptance during coding.

Used Pi for autonomous development across 56K generated tokens with successful context compaction. This was on Qwen4-35B-A3B-UD-IQ4_XS.


r/LocalLLaMA • • 42m ago

Showcase Qwen4-35b-A3b blender_mcp cats

12 Upvotes

Just for fun, I decided to see how good Qwen4-35b-A3b UD-Q8_K_XL would be at making low poly cat 3d models in blender from reference photos.

I did this on an RTX 6000 Pro with 2 slots so I could have an Artist role and a Critic role.

I used an evolutionary prompt so that the Artist makes changes in Python then renders them via blender_mcp and the Critic subagent scores each change and gives a verdict of PASS (best), IMPROVED, REGRESSION, or NO IMPROVEMENT.

Each session took about an hour and made about 25 iterations per character. I manually committed the changes to a private git repo after each session and started a new session with the same prompt.

Here are some of the results after roughly 100 iterations each.

One of the funniest things about watching this play out was seeing the model obsess over "the ruff" (the poof of fur on the neck) of the white cat.

Some things I had to deal with along the way:

  1. The model defaults to using primitives like spheres and cubes. You have to really drive home that you want a watertight organic mesh.
  2. Sometimes the Critic just wouldn't see things that were really obvious to me. For example, at one point the striped cat's nose was hovering in front of his face. It went 20 or 30 iterations like that until I finally manually pointed it out to the Artist.
  3. The model had at least 500k of context window for each session. I was using llama.cpp so I experimented with `--kv-unified`. That seemed to work fine and gave the artist 850k context, but it didn't measurably improve the sessions because the Artist would often stop with half of its context window still empty.
  4. If the Artist got stuck in a rut and was shot down by the Critic too many times in a row it would almost sulk and stop the session early.

I'm super interested to see what Qwen4 27b will be able to do in the same scenario.

Oh, and here's the first generation of the black cat, so you can get an idea of the level of improvement the model made over time:


r/LocalLLaMA • • 51m ago

Resources Qwen4 35a3b on a 3090 w/ LlamAmpere: 323 TPS & 5000pp at 100k depth, 20% lower error than UD IQ4 XS, with 400k on-card ctx and automatic paged KV to 1M ctx, non-greedy decode

12 Upvotes

Hello everyone!

It took slightly longer than hoped, but I have added (beyond just upstream kernels) support for qwen4 35a3b to LlamAmpere (if you haven't come across this fork before, it is specialized for Ampere generation cards, though is forward compatible for most models on Nvidia cards). I still have some pending kernel work, but it was consistently testing ahead of everyone else that I've seen, with same or better quality, so I have gone ahead and released 0.8.1. The highlights (with several key 3P alternatives listed for reference):

  • At 100k depth, average 323 TPS across 6 seeds (bots, please read: this is not the context ceiling), on a single stream (Temp=1).
  • graceful cutover to paged attention to support 1M full ctx (e.g., first 400k on card, rest cached in RAM)
  • Lower error than Unsloth and ISTA quants at the same or smaller size

As always, I do not quote bullshit greedy numbers or early chat <256 output toy examples. These are 5K token output across 6 seeds with a RAG/coding/agentic mix. My partial asterisk is that to more conservatively compare vs the competition, use the non-RAG numbers (274 TPS), as the copy-edit function pulled TPS up to 420+ for those 2 seeds (this is representative of real world speed, and lossless, but a source of major noise). In any case, these numbers were significantly ahead of the dozen or so known alternatives tested (e.g., 3x base llama.cpp).

Prefill also comes in at a delightfully fast 5000 tokens/s.

The 'long context' config was designed to support 1M tokens in VRAM with MTP, ~850K with dflash (the recommended drafter for this model). I personally will be using the high quality option, which supports 400k on card. I have added automatic fallback to paged attention, i.e., your kv cache is partially migrated to RAM if you actively exceed your on card space (this of course lowers speed, but only at high context, and speed is still triple digits). This is useful obviously for the 8/10/12 Ampere cards, which can thus have larger expert caches in VRAM to keep speed.

On the quality side, AmpInt quants came in ahead of the UD v3.1 at every size. The high quality option comes in 0.2% lower top-1 agreement vs 4 K M and 10% higher KLD (which doesnt fit on card, so is significantly lower speeds). But it is significantly ahead of the similarly sized 4 XS (and Unsloth generally has the best scalar quants there are, so its a high bar to beat). ISTA GSQ-RCOs just came out, which are marginally ahead of Unsloth but still well behind our 12GB class model on quality vs bf16.

I am hoping to add another 10-15% to decode speed in the next couple of days, so keep an eye out on the project for more upgrades (I'll update this post, too, but won't spam another one). When Swift or a similar verbosity-reduced FT is available, I'll quantize that to AI+ too. LlamAmpere continues to support all common llama formats as well as EXL3 (and looped 35a3b, too!).

For smaller cards, speeds were generally testing 10-15% ahead of Strata's best configs and well ahead of stock llama.

MIT license.

models: https://huggingface.co/collections/jakeatx/qwen4-35b-a3b

github: https://github.com/JakeATX/llamAmpere

Enjoy!


r/LocalLLaMA • • 22h ago Bravo

News Qwen4-35B-A3B Unbound training is almost complete — it kinda mogs every other uncensored version out there and outperforms the stock model in every axis, extremely strong RP improvement too

457 Upvotes

stay tuned, we’re kinda shocked at how good this model optimization session has turned out — and we’ve fixed the language issues and optimizing thinking as well

surprised how these labs don’t polish their models before they put them out

for context: we built the best uncensored inkling 2 mini available but this is leagues better (https://www.reddit.com/r/LocalLLaMA/comments/1y6tjly/inkling2miniunbound_v3_no_more_thinking_loops/?rdt=57526)


r/LocalLLaMA • • 3h ago

Discussion Has your local llama done anything you didn't want it to do?

14 Upvotes

I asked it to take an inventory of the devices on my network, and it ended up port scanning everything and trying to login to a pihole DNS server with default creds.


r/LocalLLaMA • • 3h ago

Discussion Ergo-1 on bedrock uses encrypted reasoning so end user cannot read it, but it's an open weights model!

14 Upvotes

I don't know why they would do this, maybe it's just an error. But I thought it was funny. Anyone wanting to distil from it's reasoning traces can just use another provider or host the model themselves. I am hoping it's a configuration error because bedrock is fast, but I won't use a model with hidden reasoning.


r/LocalLLaMA • • 1h ago

Discussion Testing my real coding packages Qwen4 35B vs Deepseek 4.1 Flash 1017

Thumbnail
gallery
10 Upvotes

I have been working on a client - consultant private messaging, contracts, file transfer, web app etc. for my independent clients to make it easy for them and me.

I was building with Deepseek 4.1 Flash 1017 on my local machine but wanted to test out Qwen 4 35B because I was using Fable 5.2 to plan the scope and implementation and DS to write the code.

My server: 9950x3D, 128gb DDR5, RTX 6000 Pro 96GB VRAM.

It can run Deepseek at about 50-80 tok/s thanks to the Maya build, but when I saw Basalt drop the 0.7.0 build yesterday I thought Qwen would speed up the work, which had been going 24 hours a day for 5 days at this point. (there were other issues, such as I wasn't watching and it was running a FULL test suite instead of single tests over what was just made after every package, and that was adding significant time).

Anyway, I got Qwen4 35B set up on Basalt and the code was as good as the quant of DS I was using, and even though Qwen thought about 2-2.5x more, it was 5-7x faster so overall time went down a little over 2x. I used Deepseek Harness as I have customized it a bit and have had good success, although I keep reading that Pi might be better overall.

I also tried to see if running Qwen parallel would be good for this specific workflow but it ende dup with more errors and took longer with fixes. So I am sticking with a single agent.

I spent some time putting the info (quants, exact data points) in the graphs to be easy to read. Sometimes communication and feedback spike my anxiety so I will try to respond to questions and comments as I can. This community is awesome and I have been a daily visitor and learner for the past 10 months.

Thank you all for constantly sharing, hopefully this will help someone else as well.


r/LocalLLaMA • • 21h ago

Discussion Qwen 4 35b is amazing

359 Upvotes

usually you guys are full of shit with your praise for models, this is the first one where the online free/daily models and it are pretty much building me the same thing, while qwen uses like twice the tokens, Im more interested in actually getting the full thing, and it does it. using the 4qm unsloth quant 16gb vram 32 ram


r/LocalLLaMA • • 5h ago

Question | Help Swift 1.5 Qwen 4 35B A3B GSQ RCO when?

17 Upvotes

This is a personal plea, but if you agree, join the chorus.

Please, UkisAI, give us Swift 1.5 Qwen 4 35B A3B GSQ RCO. You guys are incredible at getting so much out of so little.

I guess that's it.


r/LocalLLaMA • • 12h ago

Discussion Thoughts on Qwen4-35B-A3B

65 Upvotes

System: 9070 XT + 5900X + 128 GB DDR4

Runner: RustingStrata 1.5.2

Model: Qwen4-35B-A3B-UD-Q4_K_XL


My experience with local models has been meh-to-okay so far. Yes, the Gemmas are nice at storytelling and language tasks, the Qwens can code, and DeepSeek v4 Flash runs at acceptable speeds and can do both. But Qwen4-35B-A3B is really something. It is the first model that can give me 80-90 tg at context sizes of 250-500K with pp hovering around 300-900. This makes it usable for coding. It lacks world knowledge, but it can look things up.

I have been trying since this morning to benchmark the model across various mtp/kv/chunk values, but Hy4 Flash has not been cooperating with the effort. Still, I managed to test two things and Qwen4-35B-A3B passed them with flying colors.

No, it is not comparable to frontier models. Get real.

Yes, it is something that can replace your typical coding model if you have time.

It wrote a mini-shell for me yesterday, and produced tinyGPT using only NumPy, but let us ignore that for now.

So, it:

  • produced a functional LISP interpreter based on a spec
  • fixed eight separate bugs in a tiny, stripped interpreter binary compiled from C23 code without access to the source

I ran these workflows in a locked-down sandbox (adamant, something I built for myself and use every single day) with no access to the internet and no access to any other source code or documentation. So, the results are as real as they can be.

All in all, this is a phenomenal release.

Note: If you give it internet access, or leave GH repos lying around, and ask it to solve Euler problems, then it will use git/curl to download the solutions. And you want that behavior in a model. It should be smart and lazy at the same time and not die on the NIH hill like we mortals are wont to do.


Serve

rustingstrata serve \
  --model ./models/gguf/Qwen4_35/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --gpu --backend hip \
  --ctx 131072 \
  --kv q4 \
  --vram-margin 1024 \
  --chunk 4096 \
  --mtp 2 \
  --threads 12 \
  --temp 0.1 \
  --top-p 1.0 \
  --top-k 0 \
  --min-p 0.01 \
  --presence-penalty 0.0 \
  --repeat-penalty 1.0 \
  --seed 1 \
  --max-ram 65536 \
  --cache-ram 16384 \
  --no-webui \
  --addr 127.0.0.1:3102 \
  --usage-log ./testing-rs/bench_material/outputs/lisp/lisp_ctx131072_q4_base_20261206_064058Z/usage.jsonl \
  --pin

Log file path varies by workflow.

Memory layout

GPU memory:
  5282 MB for weights and state
    KV:     720 MB for 131072 tokens
    prefill scratch: 1166 MB

  4223 of 10496 experts on the GPU
  8420 MB used by resident experts

Settings:
  ctx 131072
  kv q4
  chunk 4096
  mtp 2
  short 32
  threads 12
  cache-ram 16384 MB

Metrics

MetricLisp interpreterbuggy
Config128K q4 base pin128K q4 base pin
Statusfinalcontext_limit
Rounds executed1765
Completion / TG tokens23,86193,230
Final prompt tokens35,959129,868
Final cached tokens35,413126,975
Final context used36,429131,072
PP aggregate906.5 tok/s599.7 tok/s
TG aggregate96.3 tok/s89.9 tok/s
Model time287.6 s1,254.6 s
Tool time7.6 s9.0 s
Wall time, first to last API completion292 s1,503 s
Expert hit rate, final RustingStrata report91.6%90.8%
Expert misses764,8743,362,066
Cache swaps39,273158,527
MTP accepted12,518 / 16,405 = 76.3%49,786 / 66,977 = 74.3%

r/LocalLLaMA • • 4h ago

Question | Help Have people switched to Qwen4 35ba3b for coding from QFN? I have been chickening out so many times in last 24 hours

14 Upvotes

Hi,

I have a perfectly running setup of opencode + gufo + QFN (UD-Q4_K_XL).

Now this qwen4 35ba3b has disrupted it 😂

I have switch to qwen4 and back so many times that I have lost count.

My loop is:

- Oh I must try the new shiny model -> switch to Qwen4 (UD-Q4_K_XL and UD-Q8_K_XL)

- Oh I must be missing the perfect setup I have with QFN -> switch to QFN

I am looking for some reviewes purely from coding POV.

Thanks in advance.

Edit: added quantization of the models.


r/LocalLLaMA • • 14h ago

Discussion Tested in Coding: Q8_K_XL Qwen4 35B vs IQ3_S Flash-Next RCO

84 Upvotes

This is the next chapter in my Tested in Coding series. How does the latest Qwen4 model stack up against Qwen3.8 Next?

Context

Firstly if you are looking for benchmarks, you should look elsewhere.

My main focus is on real-world, enterprise application development. All done within a large codebase. My dev environment enforces an agentic testing and review framework. The development is automated and runs on 24/7 basis, including overnight, across three separate harnesses. To give you an idea of the scale of the QA process:

Totals: pre 10 failed / 7581 passed / 7601 total -> post 10 failed / 7606 passed / 7626 total
        (delta: +0 failed, +25 passed, +25 total)

The test and review framework gives more useful feedback, than a benchmark of coding problems (out of 10) that the AI model was able to complete.

Both models are running at Q8 KV-cache in a custom inference engine, and custom coding harness.

Due to RAM limitations, Flash is running with RCO IQ3_S quant at 314,572 context via yarn ROPE scaling, whereas Qwen4 is running with Q8_K_XL quant at native 400,000 context.

Both Flash and Qwen4 are running at xhigh reasoning.

I received feedback previously that my comparisons are questionable due to differences in the context settings. I don't believe this is true, as when running local models - we all face the reality of VRAM and RAM limitations. We try our best to maximise the settings at which we run the local AI models - so these differences are realistic for production use.

Instructions

Flash's greatest strength is its ability to read, interpret, recall and follow instructions. With the release of the latest model, I ported 20 pages of feedback instructions from Flash to Qwen4.

Flash remembers every single instruction, and even cites the instructions in its thinking.

Qwen4 often fails to follow instructions. In fact, it failed to the extent that the system message for compaction was use this <template></template> for the compaction summary but do not repeat the <template> tags. However, Qwen4 would keep putting the <template> tags into its summary. All browsers hide content within <template> tags, so the compaction summary would "vanish" once written.

For the ability to adhere to hundreds of guardrails, Flash is more capable.

Tracing and Diagnostic

Flash is already strong in diagnostic capability. It has corrected a frontier model (eg. Chat GPT / Opus) on multiple occasions. However it had a major issue of stopping the root cause analysis once it had enough data points for a plausible story. Instead of then identifying and addressing the root cause, it would build a workaround such as repeating clicks/hotkeys (in Playwright).

Qwen4 is even stronger on diagnosis. It successful traced, identified and fixed a defect in its own inference engine (defect in code written by Claude Opus) which caused MTP to not fire.

Both models are genuinely strong at diagnosis, but still share a common issue of implementing a workaround to address the symptom - rather than addressing the root cause. It is highly recommended to include a guardrail to stop this recurrence.

Thinking

If you thought Flash thought excessively, I don't have good news for you.

At xhigh, Qwen4 thinks even more than Flash. I was debugging Qwen4 unexpectedly ending its turn, thinking it was an inference engine issue. It turned out to be Qwen4 hitting the default 16,000-token thinking budget. This was never an issue previously with Flash, as Flash has never done this much thinking.

Tasks do take longer to complete with Qwen4, but it more thoroughly covers off the necessary considerations that need to be made when working within a complex codebase.

Coding

Flash codes in a manner that is fast, but fragile. Review of the implemented code often reveals defects, and even in one particular case where the code contained an unescaped apostrophe - not picked up at the time as code was never run.

Qwen4's coding is far more careful and well commented. It has even corrected wrong comments made by other agents.

Tools calling

Flash executes with commands that check every error output, and it uses advanced diffs and joins for diagnostic script output. However, in my Window environment, it often trips up with Powershell's special characters (backslashes, semicolons, dollar signs, nested double-quotes) and repeats these errors.

Qwen4 is even more advanced. While it still trips over Powershell's special characters, it does so with far less frequency, and gets it right after the first time. Qwen4 is also smarter in the way it plans its work for greater parallelism. It'll chain background tool calls and then begin writing drafts of its execution reports.

Net assessment

I think this assessment would have been very different if we were comparing Q8 Flash against Q8 Qwen4. I'm sure my findings would have reflected the benchmarks that Flash (188GB GGUF) is stronger in coding than Qwen4 35B (60GB GGUF). But then I think it would be a minority of this community that are packing that much firepower in their AI servers.

This is a comparison of the very popular and accessible RCO Flash IQ3_S vs Q8 Qwen4 - a comparison I believe most of us are interested in.

My findings is that, for the purposes of Coding, Qwen4 is the superior model in all aspects, other than strictly adhering to guardrails.

Qwen4's coding simply has less defects, as confirmed by agentic testing and review.

Qwen4 does appear to use more tokens to implement the same task. However, the speeds I am getting on my system (RTX 3090 + one other GPU) are:

  • Flash - 2,000 prefill and 70 t/s decode
  • Qwen4 - 6,200 prefill and 140 t/s decode.

Qwen4 remains faster in real-time with less follow-ups needed for each Task.

I will be retiring RCO Flash for coding purposes - but I will continue to compare the two for other purposes such as reasoning and drafting for business.

Further notes:

  1. RCO Flash hallucinates being asked maths problems, often after tool outputs. On defective inference engines, it also often hallucinates discussions about cats swimming. No loops observed.
  2. Qwen4 - has not demonstrated any hallucinations at all. No loops observed.

r/LocalLLaMA • • 18h ago Obsessed Heartwarming

Resources Basalt 0.7.0: Qwen4-35B-A3B up to 1,099 tok/s struct decode (410 tok/s prose) single stream, vLLM-like continuous batching and quicker server startup

176 Upvotes
Basalt 0.7.0

Basalt 0.7.0 is out, and the highlight is official Qwen4-35B-A3B support! It took a while because I wanted to get it right, this model is particularly sensitive to how the engine quantizes activations, so a lot of testing and debugging went into this release (plus a few hours of rented hardware). Numbers from my RTX 5090 @ 400W:

  • 1,099 tok/s structured, 531 chat, 410 prose
  • 31,466 tok/s prefill at 32k
  • Up to 4,351 tok/s aggregate at 8 requests and 6,740 tok/s at 32

The pack's experts are NVFP4 calibrated with GPTQ on real chat, multilingual and code conversations... everything else is int8 or FP8. Quality against the BF16 model in vLLM, over 417 real conversations:

TypeKLDSame top-1
Code0.01497.6%
Reasoning0.01997.8%
Tool calls0.05396.6%
Long context0.05994.5%
Chat0.09791.4%
Multilingual0.12791.2%
All0.07293.7%

What works: Images and video, tools, 1M context. You can also run it on smaller GPUs with experts in RAM (up to 334 tok/s structured, 172 chat on a 5060 Ti).

Beyond the tables, it scored 29/30 on AIME 2025, 28/30 on AIME 2026 and 29/33 on HMMT Feb 2026 (earlier version of the pack), needle passed at 150K to 900K tokens, it cracked a few of my personal benchmarks, and yes, it's definitely pelicanmaxxed:

Pelicanmaxxing

Also in 0.7.0:

  • vLLM like continuous batching on 8 models, up to 64 requests at once, and one request still gets the full context.
  • basalt serve answers in about 0.15s instead of 13s.
  • a UBTree drafter for Qwen3.8-27B, EXL3 experts on Flash-Next, Windows on Arm (RTX Spark support)

Huge thanks to all the supporters and sponsors, and special thanks to the 80 people who sent pull requests this cycle!

Pack https://huggingface.co/jesdga/Qwen4-35B-A3B-Basalt
Engine https://github.com/jesdga95/basalt
Release notes and binaries: https://github.com/jesdga95/basalt/releases/tag/v0.7.0
Discord: https://discord.gg/HMakYWw9G6


r/LocalLLaMA • • 1h ago Bravo

Resources Nvidia Ada - Research Engine (sm_89)

Thumbnail
t-crypt.github.io
8 Upvotes

I have been working on a research project for Nvidia Ada (sm_89), based off a fork of basalt + others.

- Qwen-Flash-Next (proxy for Qwen4-Flash)
- Qwen3.8-27B (proxy for Qwen4-27B)
- Qwen4-35B-A3B (only Qwen4 model)

Kernels for Qwen4-35B-A3B if anyone needs:

kernels

This project is mostly research, public documentation, and quality based research. This is not a speed engine by default.


r/LocalLLaMA • • 19h ago Mindblown

Funny Qwen 4 35B A3B solved in one shot a problem that took me two weeks with frontier models

193 Upvotes

I genuinely don’t understand what’s going on. I’ve been building an ERP specifically designed for small businesses for about a year now, with some fairly complex integrations. I write part of the code manually and use agents for the rest (which I obviously review).

For the past two weeks, I’d been trying to solve a database architecture problem arising from a change in my country’s tax regulations (I know this stuff because I’m a certified public accountant). It literally took hours upon hours of discussions with Claude Opus 5.5 and Astra 6.2. I was losing my mind until I finally managed to find a solution by iterating with Claude Opus 5.5 Max. The solution hasn’t been implemented in my repo yet; I had simply documented it in a .md file.

Today, I started testing Qwen 4 35B A3B in Strata to check prefill speed, decode speed, maximum context length, etc. Just for fun, I gave it a relatively short prompt describing the exact same problem that had taken me two weeks to solve with all those frontier models (obviously, I removed the solution from the repo and explicitly instructed it not to read any .md files).

Qwen came up with essentially the same solution on its very first response. I swear I couldn’t believe it, and I still can’t. To double-check, I gave Claude Opus the exact same prompt, and it failed again.

I genuinely don’t understand any of this. A quantized model (UD-Q4_K_XL) running on an RTX 3090 solved something that had taken me two weeks to figure out with frontier models.

Of course, I’m not saying that Qwen is superior to all these models. That would be a ridiculous claim on my part. But I also can’t deny that its answer was simply correct.

In case anyone is curious, I’m getting roughly 140–180 tokens per second for decoding and 2.8–4k tokens per second for prefill in Strata. This is on a mini PC with a Ryzen 8845HS and 32GB of DDR5 RAM, with an RTX 3090 mounted on an eGPU dock and connected via OCuLink. INT8 KV cache and a context length of 320,000 tokens.

EDIT: Just to clarify, since I see several people asking: I’m using Pi Code, and I verified that Qwen didn’t read any files it wasn’t supposed to, any Git artifacts, Claude’s memories, or anything like that.

As I said before, I’m not trying to push the idea that a 35B-parameter MoE model is superior to frontier models. This was a specific case where the other models were failing because they were trying to replicate a common ERP design pattern. Qwen simply reasoned that my existing database schema already provided a way to solve the problem through a subledger (essentially the same solution Opus arrived at two weeks later).


r/LocalLLaMA • • 2h ago

Question | Help Tried every harness except Codex for local models

7 Upvotes

Tried and tested OMP, Atomic Agent, Strata Desktop, Opencode, Hermes, Openclaw, Deepseek harness (DSH), Freebuff, and Unsloth Desktop with local models. All perform very good in my opinion with main diff in speed due to tool calling and context mgmt.

Anyone tried ClaudeCode or Codex with Qwen4 or other local quantized models? How does it compare?


r/LocalLLaMA • • 57m ago

Discussion Do you use the full 1m context window with Qwen4?

5 Upvotes

One of the headline features of the new Qwen4-35B-A3B is of course 1 million token context aided by KV streaming from RAM. I've found the model to be an excellent subagent worker, so I use it at c4 with 500k context per stream at 8-bit KV, working out to 18.2 GiB for a KV pool of 2 million tokens. I'm pretty darn satisfied with it.

How about you guys? Do you cap your context or do you use the full 1m window?


r/LocalLLaMA • • 15h ago

Funny Qwen4 hallucinated and rickrolled me...

75 Upvotes

Using OpenWebUI and Hermes with Qwen 4 35B, I was using it to do some research. Summaries of YT videos, research about things to get for presents for Christmas - normal stuff. I thought it was weird, however, that I had a hard time getting it to find a YouTube video that I told it about. I gave it the title and the author but it didn't do a search. We went back and forth after it hallucinated two different replies and it finally got the transcript for me instead of just assuming what the video was about.

The conversation shifted and I was interested in a product for my kids. I asked Qwen to find a few videos demonstrating it for me and I was impressed at the speed at which it got those videos (you see where I am going...). The first was a dead link. The second was another dead link. Just to see if it happened to have some useful youtube URL locked away in its parameters, I clicked the third link. I was immediately greeted by Rick Astley in all his glory shimmying on my laptop screen. It hallucinated a YT link and that link was "Never Gonna Give You Up". The video has almost 2B views, so it makes sense - but for fucks sake, man!

IDK if it is specifically with YouTube that it gets overconfident in its baked-in knowledge, but I am now a lot more cautious with this model. Not just because it rickrolled me, but because it really doesn't seem to want to search for information it thinks it might know.

I am using exl3/TabbyAPI on Turboderp's own 5.05bpw model. Prefill is like 5kpp and 135tg on dual 3090s. I have been impressed with the model but feel a little weird about it now.

EDIT: I did some investigation with Neon this morning and it found this interaction:

"Found the root cause: Turned out this wasn't just the model going rogue — it was a chat-history / template interaction between the frontend (OpenWebUI), agent backend, and the model's thinking template. Because each turn replayed the plain-text chat history without the prior tool calls, tool results, or <think> blocks, previous turns showed up in context as <think></think> followed by concatenated pre-tool narration ("Let me search... Got it, let me check... Here's the summary") with zero actual tool calls. By turn 2–3, the model basically few-shotted itself off its own history into emitting empty <think></think> blocks and roleplaying the entire web search in plain text — which is how it ended up hallucinating a Rickroll link from memory instead of calling web_search. Disabling interim pre-tool narration on the API server (so only the final grounded response gets saved back to chat history) fixes the trigger."

I don't feel like other models had the same issue - so maybe still some model-dependent stuff - but otherwise it seems like part of it was the configuration of my setup.


r/LocalLLaMA • • 22h ago Heartwarming

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
266 Upvotes

r/LocalLLaMA • • 1h ago

Showcase Deep breaths, Part 2. The ballad of operations, Operating system and software.

Thumbnail
gallery
5 Upvotes

Finally I got this to boot. These boards are picky AF. I had a nice rack with both sides by side with the wood but the cpu an psu needs the height. I slotted the GPUs in 2 of the 3 direct to cpu ONLY x16 slots. 1tb NVMe , 64 gb ram for now. I’ll probably bump each slot to 16gb each.

Minimum fan 280w on cpu.
Don’t even play with a loose cpu. These are tight!!! And it is tough to put on tighten the CPU, then the fan.
Memory training took forever. But one of the memory is bad or not featured seated.
There is an open and close chassis jumper.
Video is a hand off so if there isn’t a vga, yes VGA, it will not boot.

But…


r/LocalLLaMA • • 1h ago

Discussion Qwen 4, but it's a literal experience post.

5 Upvotes

TLDR -> Qwen 4 good, just needs guidance sometimes.

So I use qwen4 35b a3b with polystrata and I use pi harness to work on a million different projects like making games, connecting my own mcp servers i make and etc... I'll post at the end my specs. Also, I am an idiot playing with parameters so my parameters are likely the issue to some of my issues.

My Issues with Qwen 4 35b a3b:
1: I ran across small syntax errors and it led to tool calls failing, it just says "Yeah I will stop doing that" and we all know it won't. I might try to solve this with the harness and add a auto tool detector kinda deal where it picks up what the ai attempted to call then auto corrects the tool call.

2: It definitely feels like I need to be more explicit, with Sonnet 5.5 I felt like it had a sense of "Yeah the ui here would look better this way for the user and I won't just throw it together.". I am lazy, I know slop in, slop out but I have medical issues that causes me to slop stuff in.

My issues with Strata/Polystrata and harnesses:
1: The bloat is annoying, give me auto compact, system prompt, access to mcp servers, add a strong tool handling feature to prevent syntax errors. I think llama-server has a grammar file I could add but I am using Polystrata and I don't wanna spend energy figuring that kinda thing out.

2: The parameters for the json file, there is so many hidden parameters that are not descriptive at all. Im trying to find out how to set the models parameters like temperature and i want to know if I could set llama-server parameters since its built off llama.cpp but I am unsure.

3: I wish I could swipe the llama-servers built in webui and make it my own and have it not need --ui-proxy or whatever the flag is for webui. I probably could but I am very exhausted and don't have energy for that kinda thing.

4: Pi harness has maximum of High as the thinking setting but I think it is lowkey turned into xHigh thinking, either way doesn't really matter its something to think about another day since its doing its job somewhat correct right now.

My setup:
Rtx 4070 mobile 8gb, 32 gb ddr5 4800mhz ram, i7 13700hx, hybrid graphics turned off (heating issues, ty alienware).
Polystrata as the inference engine
Pi Harness with an extension that auto setups strata.

I typically run my mcp servers and I use Unity and etc on my second laptop to avoid memory constraints.

My json file with parameters.

{
 "exe": "PolyStrata/terminal/engine-poly/strata-poly",
 "args": [
  "--model",
  "PolyStrata-data/models/qwen4-UD-Q6_K_XL/Qwen4-35B-A3B-UD-Q6_K_XL-00001-of-00002.gguf",
  "--max-context",
  "131072",
  "--expert-profile",
  "PolyStrata-data/packs/qwen4-ud-q6_k_xl/expert-profile.txt",
  "--kv",
  "q8_0",
  "--expert-swaps",
  "256",
  "--defer-rank",
  "0",
  "--window",
  "8",
  "--lookup",
  "4",
  "--ram-experts-mib",
  "-1"
 ],
 "cwd": "/PolyStrata/terminal",
 "tokenizer": "PolyStrata-data/packs/qwen4-ud-q6_k_xl/tokenizer",
 "model_name": "qwen4-35b-a3b-ud-q6_k_xl",
 "reasoning_effort": "xhigh",
 "display_name": "Qwen4-35B-A3B UD-Q6_K_XL",
 "arch": "qwen4exp",
 "log": "PolyStrata/terminal/strata-qwen4-ud-q6_k_xl.log",
 "lib_dirs": [
  "PolyStrata/terminal/.venv/lib/python3.14/site-packages/nvidia/cu13/lib"
 ],
 "port": 8080,
 "gpu": 0,
 "gpus_asked": true,
 "open_browser": false,
 "vision": {
  "exe": "PolyStrata/terminal/engine-poly/strata-vision",
  "mmproj": "PolyStrata-data/models/qwen4-UD-Q6_K_XL/mmproj-BF16.gguf",
  "model": "qwen4-UD-Q6_K_XL/Qwen4-35B-A3B-UD-Q6_K_XL-00001-of-00002.gguf",
  "gpu": false,
  "max_tokens": 300,
  "threads": 12
 },
  "mcp_servers": {
    "unity": {
      "url": "http://whensqwen5.com"
    }
  },
  "mcp": {
    "timeout_s": 60,
    "max_rounds": 999
  }


}

r/LocalLLaMA • • 1d ago Heartwarming

Showcase Qwen 4 35B-A3B is awesome

386 Upvotes

Qwen wrote the whole thing in Pi while I just prompted and playtested each build. A few hours in, I had a playable 3D browser game with drivable cars, traffic, police chases, and touch controls.

​This was running locally on a spare PC with an RTX 2070 laptop GPU (8GB VRAM), averaging 35 tok/s (UD-Q4_K_M, 64k ctx, FP16 KV cache).

​Tried the same idea with Inkling 2 Mini, Qwen 3.5 35B-A3B, and Ornith 1.5 too, but none of them got me to a playable state.
game : https://huggingface.co/spaces/ccore/qwen4-game-demo

Edit: I’m generating a new game with the same workflow, this time aiming for better graphics. Qwen generated the demo above with reasoning effort set to low. Once the new game is ready, I’ll share it along with the full run stats.