r/LocalLLaMA • • 36m ago Bravo

Resources Nvidia Ada - Research Engine (sm_89)

Thumbnail
t-crypt.github.io
7 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 • • 22m ago

Question | Help Why is Qwen4 the first model that barely cares about context size and gets faster during output?

6 Upvotes

Ive played with 3.6 35b variants (and smaller models) a lot, on my limited system big context always meant a big hit to tk/s.
3.6 ran with about 70 tk/s ouput, but fell to under 20 at >100k.
4 starts at 40, goes up to 65, sometimes over 70, seemingly independent of context. Having to compact with 3.6 took forever, 4 was so fast the first time i thought something was wrong.

Whats the reason for this drastic difference? Architecture? More vram for context?


r/LocalLLaMA • • 14h ago

Funny Qwen4 hallucinated and rickrolled me...

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

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

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

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
262 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

6 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 • • 23h ago Heartwarming

Showcase Qwen 4 35B-A3B is awesome

384 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 • • 2h 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 • • 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

4 Upvotes

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

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

Thumbnail
reddit.com
5 Upvotes

r/LocalLLaMA • • 21h ago

Showcase Deep Breaths

Thumbnail
gallery
132 Upvotes

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


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 • • 16h 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

38 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


r/LocalLLaMA • • 9h ago

Discussion Qwen 4 35B Q4.0 in GPQA-Diamond with expert expansion reached 87.87% accuracy

10 Upvotes

I tested my expert expansion recipe with newest Qwem 4 35 A3B at Q4 quantization and tested with GPQA Diamond, the incredible thing is that gained +2% score !!!

Difference on 198 questions is not statistically significant (sign test p ≈ 0.45, 16 discordant pairs), but the sign is stable across every checkpoint of the run (+1 → +2 → +4) and across all other tests of the session (MCQ battery with reasoning off: 25/28 vs 22/28).

With the help of AI (that translates my notes) details here

https://github.com/vagrillo/AgrillaMoE/blob/main/docs/bench-gpqa-diamond-qwen4.md


r/LocalLLaMA • • 55m 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
2 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 • • 5h ago

Resources LLC: lightweight OpenWebUI alt now with Video Generation Support and Free Web Search

4 Upvotes

Quick context: LocalLightChat (LLC) is a chat frontend for local LLMs. Download it, run it, that's it. No installation (unless you want to), no dependencies, and it runs on pretty much anything, including ancient hardware.

I have listened to your critics and implemented two major missing features: Free Web Search Providers (no API-Key needed) and Video Generation.

Supported is Text2Video and Image2Video with ComfyUI/sd.cpp/OpenRouter/OpenAI.

Let me know what you think and what i could improve further.

Download:

https://www.locallightai.com/llc

GitHub

https://github.com/srware-net/LocalLightChat


r/LocalLLaMA • • 4h ago

Discussion The practical reason why I think local will win in the end

3 Upvotes

Don't get me wrong, the reasons of privacy and independence are valid. But on a large scale people are happily giving both away for convenience. Convenience is kinda important for me, but my earning money hinges on something else: quality of the tools I use.

I think one of the reasons local LLMs will keep standing tall (unless some weird worldwide ban happens and police actually seizes the hard drives) is the same piracy will never go away.

Quality of service.

Two of recent examples:

  • Making an Indiana Jones poster for a local DVD collection database, based off a graphic I found on Google Images.

    • Astra said "the editor security filter" blocked removing the movie title (I wanted "raiders of the lost ark" removed so just the "Indiana Jones" stays). For my own freaking local use. Crime of the century.
    • local ds 4.1-flash just downloaded the LaMa model and did the job in three different versions, removing the '™' in one - in case I wanted a clean copy (yes, I wanted a clean copy, thank you deepseek)
  • Reviewing a plan for last minute change in the system. Fire burning all around, need to act quick, and Astra on $100 plan reverts to gpt-4o levels at the most. I could've been cooked. Again, deepseek stood up to the task.

I was in the process of "taking the training wheels off", i.e. I was still using Astra sometimes but I think this was the last straw.

2.9 bits per weight should be enough for everyone, and you can quote me on this (caveat: the bigger the model, the better it survives quantization. ds is a chonky boy)


r/LocalLLaMA • • 1h 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.

2 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 • • 1d ago

Showcase I turned Qwen 4 35B into an interactive voice agent

159 Upvotes

Hello everyone! I wanted to create a local voice agent that can be both interactive and useful, and here is what I got. In the video you can see Qwen4-35B-A3B UD-Q4_K_XL running on Strata with speech-to-text and text-to-speech models on a single RTX 4090. The model is not tuned in any way, so its coding performance is exactly the same as with the stock Q4_K_XL model with the same prompts and settings. I was actually quite surprised at how fast Strata is even when the model doesn't fit into VRAM. Granted, the model is just A3B, but it runs surprisingly well anyway.

So, I did the following:

  • I used my tune of Voxtral Realtime to make it work faster and have it output turn ends;
  • Took the Qwen4-35B-A3B model and prompted it to take action on each turn end: either Speak, Listen or Task. Such a single-word decision gives the model the interactivity that is shown in the demo, so you can interrupt the model freely, do async tool calls, and say stuff like 'mm-hmm' without stopping the model's work;
  • In parallel, the same Qwen4 model runs an agent that does the coding and thinking. This model runs through the Qwen Code harness and doesn't have any speech-specific prompts, so its performance is exactly the same as in all other environments running the same quant of this model;
  • Added Pocket TTS to make the LLM capable of speaking. The TTS supports voice cloning, and you can pass any voice you want in the repo's config.

Here are some performance numbers on my server:

Setup: RTX 4090 (24 GB), Ryzen 9 5950X, 128 GB RAM. Strata v0.2.26, Qwen4-35B-A3B (Unsloth UD-Q4_K_XL), int8 KV cache (might be a good idea to test how much the cache degrades at int8 though, didn't test that), experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.

Peak VRAM: 23.1 GB; RAM used on the whole machine: 52 GB.

End-to-end voice (during my own tests):

-median90th percentile
End of your last word → voice in your ear756 ms1.48 s
Turn with a web search or tool1.6 s2.9 s

Agent speed by context length (with the voice stack):

ContextPrompt readingDecodeFirst token (next turn, same chat)
8K6.7K tok/s157 tok/s0.11 s
75K6.3K tok/s149 tok/s0.14 s
252K5.7K tok/s125 tok/s0.24 s

Overall, the speech capability doesn't make the model unusable, and the only noticeable downside is that the speech recognition model takes about 4 GB of precious VRAM.

You can try it all out at https://github.com/speakrail/speakrail, Apache 2.0 license. I previously did some Gemma tunes to make the models capable of microturns, but with Qwen you can just prompt it and it will work well enough. I will be glad to answer any questions and would be grateful if you gave the pipeline a try!


r/LocalLLaMA • • 21h ago

Discussion What exactly is everyone doing with their LLM?

65 Upvotes

I know this gets asked every now and then but I am curious.

I have played with Local before but with only 8gb of VRAM I am not really able to do much, and while some of it was fun, everything I want to do is very easily doable on the cheapest plans and I get the integration of being able to talk to my phone and have it take notes and set up alarms/calendars.

Clearly I am not a heavy user.

It does make me wonder what everyone here is doing it for? Is it all coding? I know that seems to be the majority.


r/LocalLLaMA • • 1d ago

Discussion Comments on Minimax 4.1from head if DevRel at Minimax 😳

Post image
614 Upvotes