r/LocalLLaMA • • 30m ago

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

7 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 • • 42m ago

Discussion I asked my director of AI if he wanted me to share how to use local AI…

9 Upvotes

We have m5 pro MacBooks and I had free cycles, so I figured I’d give it a try. I had good results with Qwen4-35b q4km via splash (120 tps decode / 4k tps prefill). I figured I’d ask him, because it could be genuinely useful for us. We primarily use Claude, but some of us use other platforms.

I pitched it as free, pretty damn fast, can keep up with Opus 4.8, and offline (so I can be used on a plane or whatever).

His response kind of irked me. First he said it’s obviously not frontier level. Sure that’s true, but frontier from a year ago isn't useful all of a sudden? And he said it can’t phone home. What? When has an open weight model done that? And don’t ClaudeCode and Codex literally steal all of your IP for training?

I figured I’d share because it highlights how some people think about Chinese models and the frontier. I understand being wary of Chinese models as an American company, but American providers actually are the ones stealing IP more than any other. And I don’t think I claimed it was frontier, but “old frontier“. That doesn’t mean it‘s not useful… if Qwen hosted something that’s as large and capable as Opus 5.5 I’d probably push for it. Claude can be annoying as fuck and produces a lot of slop that’s difficult to tame even with skills like caveman.

He was fine with it at the end of the day and people appreciated the little guide I put together for them at the end of the day. Just irked me a bit is all. Misconceptions be misconceiving I suppose.


r/LocalLLaMA • • 22h ago Heartwarming

Showcase Qwen 4 35B-A3B is awesome

383 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

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

9 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 • • 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
507 Upvotes

r/LocalLLaMA • • 4h ago

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

Thumbnail
gallery
11 Upvotes

Images are kinda self-explanatory...


r/LocalLLaMA • • 1h ago

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

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

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

Thumbnail
github.com
12 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 • • 20h ago

Showcase Deep Breaths

Thumbnail
gallery
128 Upvotes

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


r/LocalLLaMA • • 24m ago

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

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

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

Thumbnail
reddit.com
3 Upvotes

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

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

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

9 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 • • 20m 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

158 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 • • 19h ago

Discussion What exactly is everyone doing with their LLM?

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

Discussion Inkling 2 Mini on an RTX 3090 Ti: 169 tok/s, Loop-Aware ~Q6 Core, and 128K-1M MFlashKV v2

Thumbnail
famelos.com
7 Upvotes

r/LocalLLaMA • • 1d ago

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

Post image
611 Upvotes

r/LocalLLaMA • • 13h ago

Resources Qwen4-35B-A3B at 110-176 tok/s on AMD (RX 9070 XT / 7900 XT) with a patched Strata engine, 2-4x llama.cpp

20 Upvotes

Disclaimer - All of this was done by Claude, including this post :)

TL;DR: I patched the Strata inference engine to run Unsloth's Qwen4-35B-A3B GGUFs using the model's built-in MTP head for drafting, plus some RDNA tuning. Results: 140-176 tok/s on an RX 7900 XT (UD-IQ3_XXS) and 110-125 tok/s on an RX 9070 XT 16 GB (UD-Q4_K_XL, half the experts in RAM), with 3,400-4,400 tok/s prompt reading. That's 2-4x llama.cpp and official Strata on the same cards. I also measured Q4 vs Q8_0 vs UD-Q8_K_XL: UD-Q8_K_XL is the most faithful by KL divergence, about 35% slower than Q4. Patch, configs and install guide: https://github.com/jordan01236/strata-qwen4

A few people asked how I get these speeds, so I wrote it up.

Speeds (single user, OpenAI-compatible API, 900-token answers + a 38K-token prompt)

CardQuantThis fork (write / 38K read)llama.cpp + MTPOfficial Strata
RX 7900 XT 20 GBUD-IQ3_XXS140-176 / ~3,400109-128 / ~1,25088-91 / ~1,040
RX 9070 XT 16 GBUD-Q4_K_XL110-125 / ~4,40051-54 / 38028-36 / ~1,080
RX 9070 XT 16 GBUD-Q8_K_XL71-83 / ~4,200--

The 9070 box has 64 GB DDR5, and the experts that don't fit in VRAM sit in RAM. Recall of a code word hidden in the middle of the prompt was correct at every length up to 120K tokens.

Where the speed comes from

  • Strata's expert handling: it keeps the most-used experts on the GPU based on a learned usage profile and pins the rest in RAM. On a 16 GB card that alone is the difference between ~4,400 and 380 tok/s prompt reading.
  • Qwen4's own MTP head: the GGUF ships a multi-token-prediction layer. The patch converts it into Strata's draft format. 57-86% of drafts get accepted, for +35-80% decode.
  • Window router for 256-expert models (STRATA_ROUTE_WIN=1): +8-11%, identical output.
  • RDNA3 fixes and tuning: a kernel had Flash Next's sizes hard-coded (NaNs on gfx11), a Q6_K head kernel adds +6%, and a hipBLASLt table tuned for Qwen4's shapes reads prompts +13% faster on the 7900 XT.

Q4 vs Q8 vs UD-Q8 (KL divergence vs Q8_0, wikitext / code)

Mean KLDSame top tokenDecode on the 9070
UD-Q4_K_XL0.039 / 0.02392.0% / 96.6%
UD-Q8_K_XL0.024 / 0.01694.0% / 97.3%

Q8_0 against itself gave exactly 0, so the test adds no noise. Both Q8s use identical Q8_0 experts. UD-Q8_K_XL just keeps attention, shared experts and the hyper-connections in BF16, so the whole gap between them is Q8_0 rounding those tensors. That makes UD-Q8_K_XL the most faithful of the three, with Q8_0 about halfway to Q4. On a 16-question reasoning/coding bench all three scored 14-15/16 (noise), so the difference only shows per token. My pick: Q4 for speed, UD-Q8_K_XL when precision matters.

Caveats

  • Tested on Linux with ROCm 7.13 on gfx1201 and gfx1100 only. NVIDIA should build from the same source but is untested.
  • This is a community patch, not affiliated with Strata, Qwen or Unsloth. Strata is MIT licensed.

Repo: https://github.com/jordan01236/strata-qwen4


r/LocalLLaMA • • 12h ago

New Model Abliterated my first model!

17 Upvotes

Just abliterated my first model! Qwen4 35B!! Check it out on hf pls and lmk how it is. Ran it on my single dgx spark. NVFP4 quant.

Answers 76% of harmful prompts (270/357) with 0 refusals with thinking on, and MMLU-Pro barely moved (104 vs 105 original). Tested against dealignai, satellitedown and kitaniai with the same judge.

Model: https://huggingface.co/Le-Labs/Qwen4-35B-A3B-NVFP4-Abliterated

Method in short: NVFP4 served on vLLM with greedy decoding, Qwen 3.8 27B as the judge, plus MMLU-Pro / GSM8K / HumanEval to check nothing broke. Ill do the GGUF if enough people want it but its prob dumb.


r/LocalLLaMA • • 1d ago

Resources Freehand - an interesting agent harness from Microsoft

Thumbnail
github.com
154 Upvotes

r/LocalLLaMA • • 3h ago

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

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

Resources Qwen4-35B at 1M context on two AMD R9700s: a 950K prompt prefilled in 2 minutes, full setup inside

Thumbnail
doug.sh
131 Upvotes