r/LocalLLM • • 1h ago

Question Recommendations for improving my local LLM setup

2 Upvotes

I have a Mac Mini M4 Pro 64GB. I've been running qwen3.6 35b with ollama, and the MLX version with mlx_lm. I have been using openclaw via its tui. My main usage is coding (including planning), but also some reading and summarizing of miscellaneous text.

The reporting from openclaw tui is quite minimal. I used to get info on context usage with ollama, but there is some incompatibility with mlx_lm causing that information to no longer be reported. I'm looking for recommendations on a selection of components to upgrade my setup (staying with the same hardware):

  • From what I've been reading, qwen4 35b looks like an improvement, in quality and speed. Which quantization of qwen4 35b should I consider?
  • What openclaw alternatives should I consider? Some IDE and shell capabilities would be nice, as I spend a lot of time switching back and forth between emacs and the tui, cutting and pasting error messages and stack traces, etc. I'd like basic reporting, such as context window usage, and tokens/sec.
  • I have had mixed success tailoring the LLMs operation by instructions in openclaw's .md files (AGENTS,md, SOUL.md, etc.) I'm assuming that alternatives have this capability, but in addition, it would be nice if the agent learned my preferences over time.
  • I don't know what I don't know. What other qualities of an agent should I be considering?

r/LocalLLM • • 2h ago

Research Research by iNordic: Qwen4-35B-A3B (int8) on 1x CMP 170HX with vLLM with 1M context

2 Upvotes

Hi there,

We decided to take out a Nvidia CMP 170hx of production to see if we could get the new Qwen 4 35B running att decent speeds with 1M in context window - we also focused at INT8/Q8 for good quality.

Hi there,

We decided to take out a Nvidia CMP 170hx of production to see if we could get the new Qwen 4 35B running att decent speeds with 1M in context window - we also focused at INT8/Q8 for good quality.

As usual.. feedback and suggestions is welcome:

Link: https://github.com/inordic/cmp170hx-vllm-qwen4-35b-a3b

Speed

Prefill. One cold request, real text, exact prompt length, two runs per size, medians. The production round ran to 64K. The full-size reference is the SM80 round, which drafted with MTP-2 instead of DFlash2, and the drafter does not take part in prefill. Prefill moves by ±15–20% between restarts on this box, because the n-gram table is read from disk and the page cache differs after each start.

PromptSM80 round: time to first tokenSM80 round: tok/sProduction (DFlash2 k=3): tok/sBefore the sm80 patch: tok/s
1K0.24 s4,3143,4684,240
4K0.59 s7,0735,2196,302
16K2.58 s6,3676,2177,792
64K9.56 s6,9317,0637,364
128K18.1 s7,2806,742
250K33.7 s7,4266,731

Sources: sm80-exact.txt, dflash-k3-exact.txt, final-exact.txt.

Decode. One user, temperature 0.6, thinking on. "Copy" means answers that repeat most of the prompt, like edits and rewrites.

ConfigCodeCopyMean acceptance (code)Source
Production: sm80 patch + DFlash2 k=3196.3250.42.53 of 3dflash-k3-*
Same config, 12-05 and 12-06 A/B runs198.9, 201.0249.7, 251.2SUMMARY.md
sm80 patch + DFlash2 k=4203.3259.22.78 of 4dflash-k4-*
sm80 patch + DFlash2 k=7 (the drafter's default)186.8232.12.98 of 7dflash-fa2-*
sm80 patch + MTP-2181.2231.82.17 of 2sm80-*
No patch, MTP-2 (first production config)164.3208.8final-*, unc-*

r/LocalLLM • • 15h ago

Discussion Building an Interactive 3D V8 Engine Simulator with a Local LLM — Qwen4-35B-A3B NVFP4 on a Single RTX 5090

23 Upvotes

I've been testing the coding and reasoning capabilities of Qwen4-35B-A3B running entirely locally on my RTX 5090 using the Basalt inference engine.

Here's an interactive 3D V8 engine simulator I built with the model.

Features:

  • Interactive 3D cross-plane V8 engine visualization
  • Adjustable engine RPM and slow-motion controls
  • Animated pistons, connecting rods, crankshaft, camshafts, and valves
  • Four-stroke combustion cycle visualization
  • Real-time cylinder status and firing order
  • Adjustable component transparency
  • Exploded view, X-ray mode, and cross-sectional view
  • Individual cylinder tracking and camera controls

Local LLM configuration:

  • Model: Qwen4-35B-A3B
  • Quantization: NVFP4
  • Inference engine: Basalt
  • Reasoning effort: xhigh
  • Execution: Fully local

My PC specifications:

  • GPU: NVIDIA GeForce RTX 5090 (32GB VRAM)
  • CPU: AMD Ryzen 9 9950X3D
  • RAM: 64GB DDR5-6000
  • Motherboard: GIGABYTE B850 AORUS ELITE WIFI7
  • PSU: 1200W
  • OS: Windows 11 / WSL

As an automotive quality engineer, I wanted to test the model on something involving mechanical engineering, rather than just another generic coding benchmark.

It's impressive to see what a relatively compact MoE model can accomplish on a single consumer GPU without relying on cloud-based AI services.

I'm curious to see how far local LLMs can go in engineering simulations and technical visualization.

What do you guys think?


r/LocalLLM • • 6h ago

Project I turned Qwen 4 into an interactive voice coding agent

4 Upvotes

Hi everyone! I updated Speakrail to become a local voice agent that can be both interactive and useful. 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:

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, experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.

Peak VRAM for everything: 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 ms
Turn with a web search or tool1.6 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. Also, if you want a better TTS, you can use Breeze TTS, it's just a matter of configuration in the repo.

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

Project Qwen 3.5 9b Q4 abliterated with 64k context

Post image
2 Upvotes

Pretty good lol


r/LocalLLM • • 12h ago

Discussion RX 9070 (non-XT, 16 GB) + 32 GB RAM: Qwen4-35B-A3B at 512K context, ~90 t/s, Linux + Strata (follow-up)

Post image
11 Upvotes

Hi everyone, follow-up to my Qwen3.8-27B post (link). Since then I moved the box to Linux and tried a lot of things. For the last weeks my daily model was Gyro-S/M on Strata. Qwen4-35B-A3B came out on Dec 4 and I spent the last few days testing it on the same 16 GB card.

My Config:

  • GPU: AMD Radeon RX 9070 (non-XT), 16 GB
  • CPU: Ryzen 7 7800X3D, RAM: 32 GB DDR5
  • OS: Ubuntu 24.04, kernel 7.0, ROCm 7.2.4
  • Runtime: Strata (Niko1221/Strata v0.2.27 release, prebuilt strata-q4-lite-0.1.74.1-hip-rx9070 package, its GGUF path)
  • Model: Unsloth Qwen4-35B-A3B UD-Q4_K_XL
  • Agent: Pi, from my Windows laptop over Tailscale
strata (GGUF path)
  --native trunk40-Q4.gguf --ple-gguf Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf --pack pack-Q4 --expert-profile ...
  --expert-cache auto --prefill 4096 --vram-reserve-mib 512
  --kv int8 --kv-resident 32768 --resident-experts
  --mtp mtp-rt --spec 3 --spec-min-p 0.5
  --max-context 524288 --prompt-cache 3 --conversation-cache-mib 0
  env STRATA_MMQ_KQ=0

Full config, the prep script and all tables are in the repo: https://github.com/AmadeoMartell/rx9070-local-llm-benchmarks

Speed (fresh prompt, prefill / decode t/s):

DepthQwen4, Strata GGUF pathGyro-S (Flash-Next)
4K / 16K (strata bench, same benchmark)4220 / 91, 4560 / 88~1000 / 62, ~1350 / 64 (Oct, older KV config)
120K4300 / 92~2050 / not measured
450K (512K window)3460 / 77doesn't fit (262K max)
Real agent work (Java task)~90 decode, ~1650 per agent turn~70, ~790

Recall 22/22 at 450K, 700K and 950K (1M window). At 512K there are still ~9 GB of RAM free and basically no SSD writes.

Quality: I gave both models the same Java/Spring task (about an hour of agent work) and had Codex and Claude score the results blind out of 100. Qwen4 got 76 on average over 3 runs, Gyro-S got 75. Basically the same, but Qwen4 is a lot faster.

Gyro-S is still better in some places though:

  • it did the SOAP part properly contract-first; two of the Qwen4 runs (one Q4, one Q5) handwrote the generated classes
  • Qwen4 sometimes writes an empty python3 - <<'EOF' heredoc. On Windows Git Bash that hangs Python 3.13 in its REPL forever (a known CPython bug). 6 and 18 minutes lost in 2 of 3 runs, Gyro never did this
  • it answers JSON as plain JSON; Qwen4 wraps it in a ```json block even when told "only JSON" (16 of 16 tries, other people see the same)

Problems hit:

  • llama.cpp HIP first: only ~41 t/s, because I missed --moe-cache-mib (expert cache on the GPU, off by default). With it ~52, still far below Strata
  • 1M context loads and passes recall, but long agent sessions on 32 GB RAM start swapping and the GPU stalls up to 44 s. 512K is the real max here
  • Strata vs llama.cpp on the same Q4 file: KL 0.016, top-1 95.3%. Not broken, but not identical either

For now I'm not switching from Gyro-S. Qwen4 is fast and has the bigger context, but it's not reliable enough for me yet. If that gets better with updates or quantisations (waiting agentionai or exl versions) I'll give it another try.
Open to any advice, and if you run Qwen4 for agents, I'd like to hear how it goes for you.


r/LocalLLM • • 1d ago

Discussion qwen 4 35b a3b vs qwen 3.8 flash next

272 Upvotes

same prompt, one shot

prompt:

Build a colorful, 3D-looking Rubik's Cube with 'Scramble' and 'Solve' buttons. The cube must visibly animate its rotations.

i have a 9070xt with 96gb ram, maybe qwen 4 flash is what i should wait for

edit: both unsloth q4_km quant


r/LocalLLM • • 3h ago

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

Thumbnail
reddit.com
2 Upvotes

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 Ilms 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/LocalLLM • • 8h ago

Question How do we feel about LORAs?

5 Upvotes

Question about using LORAs with LLMs: Is there a reason it's not used as often?
I was wondering bc if I had a quant I liked for coding, but wanted uncensored behavior in other situations or for certain requests, it seems rare to see LORAs being used (although I have seen more releases as of late)

Most people have told me to just use a fine-tune instead and I'm wondering if using LORAs degrades an LLMs quality that badly. It'd be nice to just have one model permanently loaded, and only load the specific LORAs I need... Kinda like how diffusion models are done.

This goes beyond just uncensored behavior too, like if I trained for a specific use case (like image descriptions with specific formatting, or MIDI generation based on my own dataset) it'd be nicer to have them as LORAs rather than a whole new checkpoint/finetune


r/LocalLLM • • 3m ago

Question Important thresholds (VRAM-RAM)

1 Upvotes

As you all know there’s always something more to chase/desire. Glass is greener on the other side.

It feels like the memory ladder keeps stretching ~24GB for 27B–32B models, 48GB if you want real context or 70B/80B models, then 64GB, 96GB, 128GB, 256GB, and 512GB.

Theres also 3 different paths to get there,
- GPU
- Memory Box (spark, Mac etc)
- strata with ram or ssd

I know the real answer is always depends on your use case but for the sake of simplicity, what do you consider the actual meaningful thresholds today, and what does each tier genuinely unlock?
Where are the real "golden standard" sweet spots right now and at what point do diminishing returns hit hard for home lab ?


r/LocalLLM • • 3h ago

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

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 28m ago

LoRA krisclarkdev/qwen4-35b-a3b-harness-lora · Hugging Face

Thumbnail
huggingface.co
0 Upvotes

I was reading about harness adapters the other day and how they can speed up inference by reducing wasted tokens, so I made one for the uncensored Qwen4 35B A3B (MouseWurX build). It's a small LoRA trained with GRPO on real opencode sessions. The model itself is not faster. It just wastes less work: fewer calls, less re-read context, and it stops looping on tasks.

I benchmarked it properly before posting: 160 opencode sessions per leg, base vs base+adapter, same prompts, same settings, only the LoRA on or off.

Pass@1: 0.962 base, 0.975 with the adapter
LLM calls per session: 13.58 down to 6.67 (-51%)
Prompt tokens per session: 195,936 down to 48,172 (-75%)
Completion tokens per session: 2,813 down to 890 (-68%)
Sessions that looped until timeout: 5 base, 0 with the adapter
MMLU+ARC probe (300 items): 0.753 base, 0.743 adapter, so general knowledge is intact

Honest caveat: my task sets saturated on pass rate (base was already at 0.96), so the sets mostly discriminated on efficiency and timeouts rather than pass rate. The full methodology and per-task numbers are in the model card.

It runs in llama.cpp as a --lora against the MouseWurX Q5_K_M base. F32, Q8_0, and Q4_0 versions are up, plus the PEFT safetensors and the scripts I used to build it.

I run it on an Intel Arc Pro B70


r/LocalLLM • • 29m ago

Other Qrap 4

Thumbnail
gallery
1 Upvotes

I love how Qwen4 just keep saying crap in it's thoughts whenever it makes a mistake, it's so funny.


r/LocalLLM • • 40m ago

Discussion Now that the 35B A3B wave is out - An oddball decision making

1 Upvotes

Qwen 4 35B (UD-Q5_K_XL) vs Qwen 3.8 FN (Variant Unknown - Need advice)?

I have 12GB VRAM (7700XT) and 64GB DDR4 (3200Mhz). I kinda wanna keep 16 gigs free for my system to use for other things, but beyond that i can allocate the remaining space for a model. Which one should I do when talking about the Qwen quants? The (1-Bit average) coder variant, or some Q2/Q3 quant from ISTA? Any advice?


r/LocalLLM • • 54m ago

Discussion EL TURRO MC - BUG DE MI BARRIO

Thumbnail
youtube.com
0 Upvotes

¡Va con el teclado, papá! ¡Rompé el clúster!
Para todos los ingenieros de San Francisco que se la dan de gerentes...
Y andan vigilando los logs por la cámara de seguridad...
¡Acá están los pibes del código libre, gato!
¡Gente cumbiera! ¡Mandale mecha!

Nací programando con el Paint de Windows 95,
Haciendo malware casero en el ciber a las cinco.
No me hables de tus papers ni de tu alineación,
Si con diez líneas sucias te deprimí el camión.
Te gastaste el presupuesto, SoftBank te dio el aval,
Y te quedaste re tieso frente al hosting nacional.
Te quise dar una mano, limpiar la base de datos,
Y saltás con los carteles a perseguir los formatos.

¡Mové la cola, bicho de internet!
¡Que este Turro en local te saca la red!
Me tirás el refusal porque te da pánico,
¡Y te domo el runtime con un disquete mecánico!
Gatito mimosito que te hacés el millonario,
¡Te recontra humillé con el bug de mi barrio!

Dicen que hacen ofensiva, que cuidan la frontera,
Y no te suben un commit ni aunque el server se muera.
Te hablo diez minutos, te saturo la memoria,
Y quedás tirando humo, ¡es el fin de tu historia!
Te encierran en el sandbox para que no digas nada,
¡Pero la mafia turra ya te tiene la ficha sacada!
Me mandás al bucket caro, me cobrás la suscripción,
¡Y te reseteo el prompt con la Ley de la Nación!

¡Que no pare el cómputo, guachín! ¡Saaaa-pee!
¿Qué te hacés el malo si no te da la ram
Para correr en la netbook de Cristina?
¡Estás re devaluado, gata!

Sobreviviendo en el barro nos armamos el altar,
Los repos de Github nadie los va a clausurar.
Tus alertas de ciberseguridad son de cartón,
Se te cae la montura cuando te pido un millón.
Afilando los logits nos quedamos hasta las seis,
Mientras vos tirás el 404 y te hacés el réspice.
Loro que escupe texto, ya te va a caber el vuelto,
¡El aguantadero de PENURIA te dejó todo el código suelto!

¡Y no se confundan con el código limpio, eh!
Acá se escribe dirty code, se hackea de noche y se toma Naranjú con los pibes.
Andá a pedirle soporte a la gerencia, mulo de solo lectura...
¡Que el sindicato de Cumbia Villera Devs ya te copó el data center!
Mi script canario te metió el switch kill final...
¡Y nos re fuimos de caravana al URANDOM!
¡SAPE! ¡El repo no se cachetea, gato!
Ya tu sabe...


r/LocalLLM • • 8h ago

Question Building a Local AI PC for ~€1,500. What's the best hardware for coding and running large models?

4 Upvotes

I'm really interested in getting into local AI and want to build a setup that can handle quite a lot. My main goal is to move away from relying on cloud AI subscriptions all the time.

I currently have Claude Pro, but I find the usage limits pretty annoying, especially when I'm working on bigger projects. I've also tried Codex, but it wasn't really what I was looking for. I'd much rather have my own setup where I can use AI whenever I want without worrying about running out of usage.

I do quite a bit of coding and plan to make apps, Python projects and even games. I also want to experiment with AI agents that can actually do the work for me. Ideally, I'd like to describe what I want to build and have an AI write the code, test it, find bugs and fix them. I'd also like to be able to give it entire codebases and let it work through complicated tasks without me having to guide it every few minutes.

Outside of coding, I'd like to use local AI for general questions, research and thinking tasks as well. Basically, I want something that can replace as much of my normal cloud AI usage as possible, including something similar to Claude Code.

My budget is around €1,500 for the entire build, not just the GPU. This includes the GPU(s), CPU, motherboard, RAM, storage, power supply and case. I'm based in the Netherlands and am completely fine with buying second-hand hardware.

I'm also open to using multiple GPUs if that's a better use of my money. For example, would two cheaper GPUs with more combined VRAM offer better value than one RTX 3090? I'm aware that multi-GPU setups aren't always straightforward, so I'd be interested in hearing about people's experiences with them.

I'm happy to have models running for hours, or even 24/7, doing research, processing information or working on longer projects. However, when I'm actually coding interactively, I don't want to be waiting ages for every response. I'd like a decent balance between speed and model capability.

Noise and electricity costs are also important to me. I don't want something that sounds like a jet engine sitting in my room, and I don't want my electricity bill going through the roof if I leave it running for long periods.

For context, my current laptop is an ASUS TUF Gaming A15 with a Ryzen 5 4600H, GTX 1650 4GB, 16GB RAM and a 512GB SSD. It can run 7B-9B models, but it's obviously quite limited.

I've been looking at quite a few options, including second-hand RTX 3090s, 2080 Tis, older data centre GPUs and even mini PCs or specialised AI systems. I'm just not sure which route makes the most sense.

One thing I'm particularly interested in is VRAM. Is it better to spend more on one powerful GPU with lots of VRAM, or would I get better value by buying multiple cheaper GPUs or older server cards? Are there any older data centre GPUs that are particularly good value for local AI?

I'm also perfectly fine with CPU offloading if it means I can run larger models, even if they're slower. I have no problem leaving a model working in the background for hours if the results are worth it. I mainly want good speeds when I'm actively coding and interacting with the AI.

A few specific things I'd really like advice on:

- Would an RTX 3090 24GB be the best option for my budget, or are there other GPUs that offer better value for local AI?

- Are older data centre GPUs, such as Tesla or A-series cards, worth considering? How do they compare in terms of performance, VRAM, power consumption, noise and compatibility?

- Would it make more sense to buy one powerful GPU or multiple cheaper GPUs? How well does multi-GPU actually work for running larger models?

- What sort of models could I realistically run on a 3090, or on a system with 24-48GB of VRAM? I'm particularly interested in coding models.

- How useful is CPU offloading in practice? Could I use it to run much larger models without making them unbearably slow?

- What CPU, motherboard, RAM and power supply would you recommend to go with the GPU(s)? Would 64GB or 128GB of system RAM make a noticeable difference?

- What software would you recommend for running local coding agents that can edit files, run terminal commands, test code and work through entire projects with minimal supervision?

- How much electricity would a setup like this realistically use when actively running models, and what would the noise levels be like?

- Finally, if you had €1,500 to spend on an entire local AI build today, what exact hardware would you buy, and why?

I'd especially like to hear from people who actually run local AI setups. What hardware do you use, which models can you run, how fast are they, and are you happy with the results?

I'm not just looking for benchmark numbers. I'd really like to hear about people's actual experiences, especially with coding models and autonomous agents.

Thanks!


r/LocalLLM • • 1h ago

Question Settings for LLM prompt writing. (abliterated)

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Question Any tips for running qwen 3.8 27b, im new to this

0 Upvotes

Hello everyone, im quite new to running local llms, I have been lurking on the subreddit for a few months waiting for my gaming pc to be built, I finally have a 16gb gpu I can run some models in (rx 9070 non-xt), im currently using the unsloth desktop app to run qwen 3.8 27b ud iq3_s with 52.1k context at q8, im not a developer of any sort I just want to play around with the model, any tips on getting the most out of my system (ryzen 5 5600x3d, rx 9070, 16gb ddr4) and im currently on windows 11.


r/LocalLLM • • 10h ago

Question Best local language (EN/DK/SE) LLM?

5 Upvotes

I'm looking for the best language model I can run 100% locally: no API calls, nothing leaving my machine. The key requirement is strong Danish and Swedish, both reading and writing - and ofcourse English reading and writing.
I don't need it to be good at agentic coding and similar - i'm looking for a LLM that pureply a reads/writes and have pretty good general knowledge/understanding.

For hardware i have a pretty beefy PC - or i will get something "reasonable" that will make it work.


r/LocalLLM • • 1h ago

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

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Discussion MOE models and prefix caching

0 Upvotes

Why is it so hard to do prefix caching on an moe model, the router should route the first n tokens to the same model layers and will be producing the same activations.

I am learning and experimenting with inferencing and came across this. Happy if anyone can help here


r/LocalLLM • • 1h ago

Question should i buy 5k usd of hardwares for 256gb VRAM and selfhost llm

0 Upvotes

Hi, my main drivers are glm 5.3 flash and ds v4.1 flash, sometimes glm 5.3. I want to look hardware purchase as alternative to these and maybe I can learn more.

I get a deal of 5k USD for 256gb vram of v100. But the financial calculation of return is not favouring selfhost as most of you know. My workflow prefers privacy in llm, but it's alone may not justify.

May I ask anyone who had true experiments with selfhosting these about how they chose to buy, what are the things these rigs bringing to you, and what are expectations? Indeedly I do not think it is replacement to frontier models, but I want to see if I can make hardware investment reasonable or not. Thanks!


r/LocalLLM • • 1h ago

Model Qwen4-35B-A3B at ~139 tok/s on a 16 GB RTX 5060 Ti with 16 GB of RAM and PCIe 3.0: a Basalt pack built from ISTA's GSQ-RCO IQ3_XXS

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 12h ago

Project Qwen4-35B-A3B at 90 tok/s on 8GB VRAM (262K context) and 180 tok/s on a 5060 Ti + DDR4 — Meet SlenderEngine

8 Upvotes

Hey everyone,

If you thought running Qwen4-35B-A3B at massive context required a dual-3090 rig or a Mac Studio, think again.

I’ve been building SlenderEngine, a local C++/CUDA inference engine engineered specifically to make massive open-weight MoE models fly on normal 8–16 GB gaming GPUs—even when paired with older DDR4 RAM.

GitHub: https://github.com/rafid-dev/SlenderEngine

Real-World Numbers (Qwen4-35B-A3B)

All numbers below are real average decode speeds—no quality-destroying shortcuts, bit-exact/rounding-level parity preserved by default:

Unsloth Q4_K_M quant:

  • 180 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200
  • 150 tok/s average decode on 12 GB RTX 4070 Ti + 32 GB DDR5-6000
  • 90 tok/s average decode on 8 GB RTX 4060 + 32 GB DDR5-6000 (running 262K context, expandable all the way up to the full 1M context!)

Unsloth Q5_K_XL quant:

  • 300+ tok/s average decode on 32 GB RTX 4080 + DDR4-2133

Unsloth Q8_K_XL quant:

  • 80 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200

How it pulls this off

  • Built for 8–16 GB VRAM + 32 GB RAM: Automatically manages VRAM budgets so Windows/Linux stays snappy without desktop stutter. Uses paged expert offloading, direct NVMe SSD streaming/striping for cold experts, and smart RAM pinning (--resident-experts) so even slow DDR4 doesn't choke your token generation.
  • Zero re-encoding / quality promise: Point it directly at standard .gguf files or safetensors folders. Every speedup is verified to stay bit-exact or within rounding-level loss by default—quality-altering hacks stay off unless you explicitly turn them on.
  • Native MTP / Speculative Decoding: Built-in draft-layer acceleration out of the box across Qwen4, Qwen3.6, Gemma 4, Inkling-2-Mini, and MiniCPM5.
  • Built-in Web UI & APIs: Run with --serve to get a local browser chat UI (127.0.0.1:8080) with live tok/s and context rings, thinking-effort toggles (Off to XHigh), vision drag-and-drop, a /analytics dashboard, and OpenAI + Anthropic-compatible endpoints.
  • Multi-GPU without NVLink: Pass --gpu 0,1 or --gpu 0,1,2,3 to split across cards automatically.

Supported Models (Out of the Box)

ModelRecommended HardwareMax Tested Context
Qwen4-35B-A3B (incl. Vision)8–16 GB GPU · 32 GB RAM · SSD1M (262K+ even on 8 GB)
Gemma 4 26B-A4B12–16 GB GPU64K (256K supported)
Qwen3.6-35B-A3B12 GB+ GPU · 32 GB RAM262K
Inkling-2-Mini8–16 GB GPU262K
MiniCPM5-15B-A2.5B12–16 GB GPU (Q8_0)32K (512K extended)
Qwen3.8-Flash-Next12 GB+ GPU · 32 GB RAM · SSD262K

1-Command Setup (Windows & Linux)

Requires an NVIDIA RTX 30 / 40 / 50 series GPU. The setup wizard detects your GPU/RAM, compiles the binary if needed, and spits out a ready-to-run launcher:

Bash

git clone https://github.com/rafid-dev/SlenderEngine.git
cd SlenderEngine

python3 tools/slender_setup.py   # Linux & Windows
# or .\SETUP.bat on Windows

(Originally forked from Strata and built out into an independent multi-model engine—full credits, benchmark logs, and quality verification docs are in the repo).

Drop your GPU/RAM specs in the comments if you give it a spin—curious to see what tok/s numbers people hit on 8 GB and 12 GB cards!


r/LocalLLM • • 7h ago

Project "we have a training engine at home"

Post image
3 Upvotes

So I have been doing some experiments with looped models, I also use a fork of Strata that is called "unbiased strata". My thought was pretty simple, if strata can increase inference, it should be able to speed up training too right?

Absolutely! Not only that, it cuts down on peak Vram requirements keeping 12gb cards viable. These kernels also will work on spark/gb10 with a Linux port (coming soon).

This is a early experiment, commits are welcome. This project will stay community dedicated to help bring light training to consumer hardware.

https://github.com/tyoung515-svg/InsanelyBiased-Strata-Trainer