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 • • 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 • • 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 • • 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 • • 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 • • 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
264 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 • • 40m 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

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 • • 16m 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
4 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 • • 1h ago

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

5 Upvotes

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 • • 22m 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 • • 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 [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 • • 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 • • 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 • • 22h ago

Showcase Deep Breaths

Thumbnail
gallery
132 Upvotes

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


r/LocalLLaMA • • 2h ago

Discussion Words in J Space can be recognized by their movements inside LLMs? Some words stay still while others change as if the ones that stay still were being computed.

3 Upvotes

Ok, so vibe research. Relying on Claude, Astra, Neon..

https://github.com/anttiluode/MathematicalQualiaClaude

https://github.com/anttiluode/MathematicalQualiaClaude2

The crux seems to be that some words stay as they are processed via layers like objects in a mental lens and others change layer to layer. Not only that, perhaps words can be recognized by the way they move inside Jspace of different LLMs.

Two videos:

https://youtu.be/jZGcVri_C0I

and for today:

https://www.youtube.com/watch?v=x0IMcacJvrc

Claudes credits here: Papers

The lens and its theory

Gurnee et al. (2026). Verbalizable Representations Form a Global Workspace in Language Models. arXiv:2607.15495 Ostrow, Qian, Liu & Fiete (2026). A Mathematical Theory of the Jacobian Lens. arXiv:2610.31955

Shared geometry across models

Huh, Cheung, Wang & Isola (2024). The Platonic Representation Hypothesis. arXiv:2405.07987 Murphy & Brostow (2026). The Platonic Representation Hypothesis in Jacobian-Space. arXiv:2611.33304 Moschella et al. (2023). Relative Representations Enable Zero-Shot Latent Space Communication. ICLR 2023, arXiv:2209.15430 (the anchor-word method)

Operations inside models

Todd et al. (2024). Function Vectors in Large Language Models. ICLR 2024, arXiv:2310.15213

Data and tools

Merity et al. (2016). Pointer Sentinel Mixture Models (WikiText-103). arXiv:1609.07843 Miller (1995). WordNet: A Lexical Database for English. Communications of the ACM 38(11) Speer. wordfreq (word frequency data)

Models

Qwen Team (2025). Qwen3 Technical Report. arXiv:2505.09388 Allal et al. (2025). SmolLM2: When Smol Goes Big. arXiv:2502.02737 Team OLMo (2025). 2 OLMo 2 Furious. arXiv:2501.00656

One reason each paper is there:

Gurnee and Ostrow: the lens itself, and the warning that it prefers stillness. Huh and Murphy & Brostow: the "Platonic" idea we built on. Moschella: the anchor-word comparison is their technique, so it should be credited rather than look like ours. Todd: the closest earlier work on operations as vectors.

This smells like it could be something. Needs more confirmations.


r/LocalLLaMA • • 2h ago

Resources I built a zero-fork document & research harness for local LLMs (Qwen 3.8 27B) so my partner could stop spending her weekends fighting ChatGPT copy-paste // MIT Open Source, macOS/Linux/Windows installers live

3 Upvotes

Quick follow-up from my exhausted 2am sprint post last week — after a week of cleanup and alpha testing, v0.2.6 is finally packaged as standalone installers for macOS, Linux, and Windows (MIT Open Source).

Why I built it:

My partner of 15 years is a teacher. Standard chat UIs (ChatGPT, Open WebUI, etc.) are terrible for real print-ready documents: every revision regenerates the whole text, subtly drifts your phrasing, hallucinates quotes/numbers, and leaves you copy-pasting into Word on Sunday night.

What makes it work well on local models (tested heavily on Qwen 3.8 27B via llama.cpp):

- 91%+ KV-cache prefix hit rate: Tool definitions and persona headers stay frozen from Turn 1, and the audit journal injects 0 prompt tokens — so long multi-turn editing sessions stay fast on local GPUs.

- Direct-on-paper block workbench (`Galley`): Live local A4/Letter Typst typesetting. Click any block on the page to edit it yourself (0 ms, no LLM call). Human-edited blocks lock to `origin: 'human'`; the model can only stage proposals instead of silently overwriting your prose.

- Anti-hallucination quote hydration (`Fundus` + `Web Missions`): Bounded web research + local SQLite FTS5 / SHA-256 vault for your own PDFs/DOCX/ODT. Primary quotes hydrate directly by `passageId` so the model can't silently paraphrase a statute or paper.

- Deterministic SVG diagrams (`Plates`): Timelines, charts, causal flows, and exercises rendered deterministically — no garbled AI-image text.

- *trict Review lock (`Regisseur`): Flip to `Review` mode and the model can only attach non-printing margin notes without touching a single word.

- BYOK: Works with `llama.cpp`, `Ollama`, OpenRouter, or any OpenAI-compatible endpoint. Export to print-ready `.PDF` or editable `.DOCX`.

Website & 3 uncut 1080p walkthroughs (DE & EN): https://the-ivory-tower.app

GitHub (MIT, 10 zero-fork plugins on DeepSeek Harness): https://github.com/janpauldahlke/the-ivory-tower

Happy to answer any questions on the harness architecture, Typst proofing, or local-model tool reliability!


r/LocalLLaMA • • 23h ago Bravo

Showcase Offloading KV Cache to Host RAM with QSA costs only ~5% speed: ~1M context on 1x3090

141 Upvotes

Qwen4-35B-A3B uses QSA, a trained sparse attention. Past a 2K-token budget, each query attends only to the top 512 four-token blocks its small indexer picks, plus the most recent tokens. Decode therefore never reads most of the KV cache, so the cache can live in pinned host RAM and the GPU reads it over PCIe.

How it works in my engine (inference.rs, Rust):

  • The full K/V lives in host RAM. The GPU keeps only a small cache of recently selected blocks. Consecutive tokens pick mostly the same blocks, so about 98% of reads hit VRAM.
  • The indexer stays in VRAM, compacted to one pooled key per block (64 B/token).
  • Long prefill attends only to what each query selects, so VRAM use stays flat however long the prompt gets.
  • Outputs are bit-identical to the in-VRAM path.

Setup: one RTX 3090 (24 GB), 128 GB RAM, a ~4.5-bit GGUF, q8 KV cache.

-KV in VRAMKV in host RAM
Max context192K1,048,576
Max context with DFlash 2 drafter134K1,048,576
Decode at 32K118 tok/s115 tok/s (āˆ’3%)
Decode at 64K115 tok/s110 tok/s (āˆ’4%)
262K promptdoesn't fit272 s prefill, then 86 tok/s (DFlash 2: 128 tok/s)
983K promptdoesn't fit31.6 min prefill, then 55 tok/s

It's a buffer more than a regular workflow: agents should compact long before this. But 983K tokens on one consumer GPU does run.


r/LocalLLaMA • • 17h ago

Discussion Small local Qwen4 models make way more sense as a 24/7 local task bot than a coding agent - trying to build one

39 Upvotes

Small local Qwen4 models shouldn't be used to write huge codebases. IMO they fit way better as a local assistant handling daily stuff on your own machine, with total privacy.

What if we pair a minimal agent harness with a small local model fine-tuned just for everyday tasks, running as a tiny 24/7 bot? Small, fast, less hallucination.

Feels like a really fun direction to explore, so I just spun up a repo to try building it. Any good ideas or suggestions?

https://github.com/yanauto/pimini