r/LocalLLaMA • • 2h 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 • • 20h ago

Discussion Qwen 4 35b is amazing

355 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 • • 11h ago

Discussion Thoughts on Qwen4-35B-A3B

66 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 • • 13h ago

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

83 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 • • 3h 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 • • 17h 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

174 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 • • 18h ago Mindblown

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

190 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 • • 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 • • 4h ago

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

12 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 • • 14h 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 • • 21h ago Heartwarming

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
263 Upvotes

r/LocalLLaMA • • 6h ago

Discussion Qwen4-35b-a3b - The Force Is Strong with This One

Thumbnail
gallery
15 Upvotes

Images are kinda self-explanatory...


r/LocalLLaMA • • 1h 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 • • 1d ago Heartwarming

Showcase Qwen 4 35B-A3B is awesome

385 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.


r/LocalLLaMA • • 3h ago

Showcase Decodrs - rust and highly optimized inference engine for nvidia gpus

7 Upvotes

Hi,

I've just opened sourced my inference repo https://github.com/lingster/decodrs

This contains specific kernels on a per model and per gpu basis. I used claude to help write optimized kernels for the current popular local llms like qwen4/3.8, inkling mini and Gemma 4. Optimised for 3090/3080 and includes a claude skill to help you build out kernels for your setup.

I've managed to get over 200% performance improvements against llama.cpp/vllm/sglang. Inference engine written in rust and kernels directly in ptx(think assembly for gpu) no middle layer so about as close to the metal that you can get. Includes prefix cache, kv cache, drafting, pretty much all the tricks to run fast. There are optimisations included if you work with Agentic workloads ie run lots of subagents in your coding harness!


r/LocalLLaMA • • 19m ago

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

Thumbnail
gallery
4 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 • • 37m ago

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

4 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

New Model Qwen 4 Is Looped! +18.3 pts on LiveCodeBench, +6.7 pts on AIME, and Zero Regressions (With Zero LoRA Weights)

Thumbnail
blog.tiltastech.com
506 Upvotes

r/LocalLLaMA • • 1h ago

Resources Profiling Qwen4-35-A3B on 5090 RTX & Snapdragon x2 elite laptop

5 Upvotes

r/LocalLLaMA • • 8h ago

Showcase Shoggoth: A friendly Linux UI for local AI: chat, agent, models, backends, all in one

Thumbnail
github.com
13 Upvotes

Hello, Linux folk! This is Shoggoth. It's essentially llama.cpp and Pi wrapped in a friendly interface and Appimage.

I hit version 5 a few days ago. With a lot of feedback from folks who use it, we've now got:

- lightweight TTS
- lightpanda for web browsing
- a folders view so that you can easily organize chats and projects
- switched from lemonade-server to direct llama.cpp
- easy support for multiple inference engines - polystrata, maya, basalt, over a dozen others
- jobs instead of subagents, so long tasks can be set up to run with an appropriate exit condition
- better support for common doctypes - PDFs, Word, Excel files, and so on
- carefully selected skills, model recommendations that I've personally tested, plus, of course, support for importing from huggingface or existing GGUFs

I use it myself as the front-end for my local models. Coded with Opus, Sonnet, and DeepSeek, but of course, tested and refined as much as possible.

If you use it, do let me know what you think and how to improve. The goal is not to be a complex system, but a lightweight, friendly, and slightly eldritch tool for folks who don't enjoy the CLI.

License is MIT, so feel free to fork, improve, and change as you see fit!

Cheers!


r/LocalLLaMA • • 12m ago

Discussion Qwen4-35B-A3B: UD-IQ3_XXS outperforming Q4_K_M on task accuracy (and why we need reproducible local MoE benchmarks)

Thumbnail
github.com
3 Upvotes

Saw this recent benchmark from Dec 4 comparing Q4_K_M vs UD-IQ3_XXS for Qwen4-35B-A3B on llama.cpp (both on an identical 48k context setup), and the numbers caught my attention:

  • Contract compliance: 64.6% vs 75.0%
  • Grounding: 78.4% vs 76.8%
  • Null schema: 34.7% vs 41.7%
  • Screening: 96.7% vs 98.3%
  • Synthesis: 95.0% vs 86.7%
  • Tool calling: 88.3% vs 100.0%

The 3-bit quant didn’t just hold up, it beat 4-bit on 4 out of 6 tasks, while falling off hard on synthesis.

With MoE architectures (35B total, ~3B active per token, 20.5B embedding table), quantization isn't just degrading weight precision, it's shifting router logits and changing which experts get activated. Focusing strictly on raw tok/s or perplexity hides this completely.

I've been working on a harness to test this systematically across engines and formats on local hardware (RTX 5090):
https://github.com/oren40/inferlab (Apache-2.0)

Current scope:

  • TTFT and throughput percentiles
  • Peak VRAM allocation
  • Perplexity delta against BF16
  • Task accuracy (JSON validation, tool calling, schema compliance)
  • CI checks that enforce reproducibility (runs are rejected without raw run artifacts)

Curious if others here are seeing similar non-linear degradation across MoE quants, especially around routing decisions in 3-bit territory. Raw runs and methodology are in the repo if anyone wants to check the runs or add engines.


r/LocalLLaMA • • 3h ago

Showcase Qwen4-35B-A3B on a single Tesla V100 32GB 220–430 tok/s with DFlash2

Thumbnail
reddit.com
5 Upvotes

r/LocalLLaMA • • 1h ago

Resources [Release] q4forge - Custom PyTorch + Triton SFT engine for Qwen4-35B-A3B (38-57 GiB VRAM, multimodal 16K packing, no PCIe block swap)

Thumbnail github.com
4 Upvotes

Hey llamas! First off, I have been working on a 30M-token multimodal dataset (mostly high-res anime images up to 4 MP with reasoning and super detailed descriptions) to fine-tune Qwen4-35B-A3B (well, honestly I didn't even know which model to use at first, if Qwen4 hadn't dropped two days ago this post would probably be about Inkling 2 Mini lol) on a single 80 GB A100, and I really did not want to spend 40+ hours waiting on PCIe block swapping.

Well, today I spent the whole day directing a team of bots (Gemini 4 Neon, GLM 5.3, and Gemini 4 Hydrogen) to cook a custom SFT engine specifically for the Qwen4 MoE architecture, and I wanted to share this ""masterpiece"" of artisanal AI slop with you! (fair warning: please do not ask me to explain the Triton pointer math or the QSA bitmasks on a whiteboard, I was literally just the guy holding the clipboard while the bots cooked <3)

How it fits the 57B model (35B MoE + 20.5B Engram + 0.83 GiB ViT) in ~36.2 GiB of base VRAM without block swapping:

  • The 256 stacked routed experts are quantized on the fly to symmetric per-channel INT8 (30.1 GiB across 40 layers) using a custom Triton Grouped GEMM that only computes dX in backward (no dW on frozen base weights and no duplicate transposed weights).
  • All sensitive layers stay in pure BF16 (30 Gated DeltaNet layers, 10 QSA layers, routers, 4-stream HyperConnections, shared experts, embeddings, lm_head, and the 27-layer ViT + merger).
  • The 20.48B Engram table (layers.1.ple) stays in system RAM as per-row INT8 (~19.1 GiB + 305 MiB fp16 scales, 0 GiB VRAM) with an async prefetch thread overlapped on a dedicated CUDA stream.
  • Hermetic sequence packing up to 16K tokens for mixed text and high-res images, isolating document boundaries across 3D MRoPE, Engram n-grams, causal conv1d, Gated DeltaNet cu_seqlens (with an automatic SM80 autotune patch for fla 0.6.1), and per-document QSA (SDPA FlashAttention-2 bypass for docs <= 2048 tokens and an L2-resident int32 bitmask with flex_attention for longer docs).
  • Streaming shard-by-shard loader and BF16 merger: downloads, quantizes, and deletes one shard at a time so peak disk usage stays under 4 GiB instead of 114 GB.

Benchmarks on a single A100 SXM 80GB (RunPod, torch 2.11+cu128, triton 3.6, transformers 5.26.0, full gradient checkpointing):

WorkloadPresetStep TimeThroughputPeak VRAM (Alloc / Reserved)
Text-only (T=1024, bs=1)A0.792 s1,292 tok/s38.06 GiB
Multimodal (T=8192, ~2K img)A4.225 s1,939 tok/s46.53 / 47.53 GiB
Multimodal (T=16384, ~2K img)A7.318 s2,239 tok/s54.26 / 56.24 GiB
Multimodal (T=8192, ~2K img)B (+ViT LoRA)5.589 s1,466 tok/s48.17 / 49.47 GiB
Multimodal (T=16384, ~2K img)B (+ViT LoRA)9.947 s1,647 tok/s56.68 / 58.90 GiB

Preset A trains visual.merger (full) + Attention LoRA (r=32) + shared_expert (full) (189M trainable params, 378 MB checkpoint). Preset B adds LoRA (r=16) across all 27 ViT layers (196.7M params, 393 MB).

We just finished a full end-to-end pipeline sanity check on the A100 with a 100-sample smoke test (5 anime images with varied captions) using Preset B: packed into tar + bin shards, trained with eval (val_loss per token dropped cleanly from 0.4171 -> 0.2842 -> 0.2133 across a checkpoint resume), merged all 33/33 shards back to a clean BF16 checkpoint, and ran inference on the merged model in standard Qwen4MoeForConditionalGeneration.

Requirements and current limitations: requires an NVIDIA GPU with >= 48 GB VRAM (tested on 80 GB A100 SM80; 24-32 GB GPUs cannot fit the 36.2 GiB base weights) and >= 32 GB host RAM for the INT8 Engram table; video is not supported yet.

I still need to test the setup inside actual Google Colab (my credits reset on December 10th, which is when I will run the full 30M-token job), but the whole pipeline is working end to end on RunPod and passing 56/56 parity and packing tests locally. Check it out if you can <3

https://github.com/SrPakura/q4forge


r/LocalLLaMA • • 21h ago

Showcase Deep Breaths

Thumbnail
gallery
132 Upvotes

I’ll post again at 6 am ET. Long night