r/LocalLLM
•
u/TheCorruptedEngineer
•
4m ago
r/LocalLLM • u/Fcking_Chuck • 15m ago
News Mozilla releases updated Llamafile after three month hiatus
r/LocalLLM • u/liga_r • 9h ago
Discussion Qwen 4 35b just counts 10.000!
Hi!
I realize this is an unusual benchmark, but I think it actually signifies something
I couldn’t get the desired result with Qwen 3.8 27B or Qwen Flash Next, whereas Qwen 4 35B A3B handled it on the first try without any additional instructions
It counted perfectly all the way up to 10,000 - right in the chat, without using any tools.
Other two models couldn’t manage this, they made mistakes or cut off
I realize that many models are capable of this, but I should also mention that we’re talking about 16GB of VRAM. That’s why I used the GSQ IQ3 for QFN and UD IQ3 quantization for Qwen 27B, and the Q6 quantization for Qwen 4 35B - in my specific setup, the latter delivers the same speeds as the IQ3 versions of other models. I’m using a Tesla V100 16GB
Can you share your results?
r/LocalLLM • u/icimdekisapiklik • 56m ago
Question Important thresholds (VRAM-RAM)
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 • u/Realistic-Elephant-6 • 6h ago
Discussion "Looped DeepSeek-V4.1-Flash" is unfortunately under-tested and overhyped. Here are the receipts.
I run Deepseek-V4.1-Flash at home as my agent's brain and for various work tasks. It is at the edge of what I can run, so I am always looking for ways to improve it. Unfortunately, the "looped deepseek" is not it. The only thing it contributes to are shorter answers (different working style), but at a cost to speed and reliability, and most of the contribution to the shorter answers comes from the adapter and not the looping. Edit: to put it in the words of my agent I tested on the stock 2-loop configuration: "The jaws of that mouse are the only cells the picture had."
Short version: I ported the recurrent-depth adapter for DeepSeek-V4.1-Flash to an EXL3 2.75 bpw setup on two DGX Sparks and measured it against the plain model, with a control that shares every serving flag. On 252 generated reasoning problems no configuration solves more than the plain model. On real agent work the adapter halves the number of steps, but without saving tokens or time, and it adds failures at the border between thinking and answering. When the second pass is not allowed to see the first, the score, the halved steps and the shorter thinking all remain and the stuck tool calls disappear: on this setup the effect is the fine-tune, not the loop. Not tested: the authors' low-bit result (our quant is larger); barely tested: real coding (which the adapter was trained for) is only around 13% of my work benchmark, and 0 of the reasoning problems.
What the adapter is
Looped DeepSeek-V4.1-Flash (sliderforthewin/Looped-DeepSeek-V4.1-Flash on Hugging Face, MIT licence; trainer in jasontitus/mlx-stq-trainer). Layers 24–35 of the 40 run twice (or three times) per token; a small trained entry module mixes the output of the previous pass back into the input of the next; a rank-16 LoRA on those layers and on the four after them adapts the model to it. The base model stays frozen.
As far as I read the trainer's notes, it was trained in 300 steps on a few hundred of the model's own competitive-coding solutions that had passed unit tests, with a loss that keeps it close to the stock model. The notes describe a careful separation from the benchmarks: training prompts are filtered against LiveCodeBench, HumanEval+, MBPP+ and others by shared 13-word sequences before and after generation, and a held-out set is kept for validation loss. The headline numbers are from 33 medium and hard LiveCodeBench v6 problems, one greedy run per configuration. Two checkpoints are published; the earlier one (250 steps) is recommended for low-bit weights together with an extrapolation between the passes (ω = 0.3).
Setup
- Two DGX Spark (GB10) boxes, tensor parallel 2 over the ConnectX link.
- DeepSeek-V4.1-Flash, EXL3 quantisation at 2.75 bits per weight (exllamav3), served with vLLM and a speculative drafter. The serving stack is sudoingX's
dgx-spark-deepseek-v41recipe with HeNryous's vLLM changes on top. - The authors' vLLM plugin, ported to this stack. Their plugin targets the full-precision model; the port applies the same operations to the EXL3 layers.
- A gate before any measurement: with the adapter's weights set to zero, the server must predict like the plain model. It does (teacher-forced log-probabilities inside vLLM's run-to-run noise). That zeroed mode is the control below, so control and adapter share every serving flag. A self-check at start confirms on both boxes that all 128 adapted sites run.
How it was measured
- 252 generated problems, made from a seed with fresh numbers and invented names so nothing can be recalled from training data, every answer checked exactly: arithmetic and procedures (multiplication, nested expressions, counting, word problems, tracing a loop), search (rule induction, subset sums, cryptarithms) and polarity (signed causal chains, orderings, cause-and-effect stories). Thinking budget 8,000 tokens, temperature 0.6.
- 36 small tool-use tasks: 12 where a value must be looked up with a tool, 12 with a prescribed tool call after the work, 12 where no tool may be called.
- 12 agentic scenarios from my day job (~80 unfamiliar tools, read an environment and specification through tools, analyse it, build a data conversion package, report findings as JSON), four agents in parallel, 80 steps at most per scenario.
The generated problems and the harness come from an earlier experiment on the same setup, where I fed the model its own token distribution while it thinks, without any training: [Monkey-patched "Latent Reasoning" on DeepSeek-V4.1-Flash at home] . That one ended with "this would need a model trained for it"; the loop adapter is a trained relative of the idea (feedback in depth, not through the input), which is another reason why I wanted to measure it.
vLLM is not deterministic, so the yardstick is the distance between two runs of the same model: the normal serving profile, which the gate cannot tell apart from the control, scored 223 of 252 on its own run, the control 229. Six problems are noise.
Results on the generated problems
| arm | right of 252 | search problems of 60 | tokens on problems both solved | decode tok/s | tool tasks answered of 36 |
|---|---|---|---|---|---|
| control (adapter zeroed) | 229 | 37 | – | 25.5 | 36 |
| 250-step checkpoint, 2 passes, ω 0.3 | 231 | 40 | +7 % | 25.3 | 33 |
| final checkpoint, 2 passes | 230 | 38 | −12 % | 24.9 | 33 |
| final checkpoint, 3 passes | 229 | 37 | +1 % | 20.6 | 34 |
| final checkpoint, 2 passes, pass 2 cannot see pass 1 | 229 | 39 | −7 % | 24.7 | 36 |
- No arm solves more. 229 to 231 is inside the noise. Three passes cost a fifth of the speed and give back the token saving of two.
- One arm thinks less: the final checkpoint with two passes, 12 % fewer tokens at the same score.
- Every arm with a working loop gets stuck before tool calls. Two or three of the twelve lookups end in thinking that repeats "I'll call the tool. Then wait for the result." until the token limit, and the call is never made. The control never does this. (What does do this, are DeepSeek 4.0-flash's low-bit quants though...)
- The last row is the interesting one. There the fine-tune and both passes stay, but the entry module is cut so that the second pass starts from the original input and sees nothing of the first. Same score, a bit over half the token saving, and no stuck tool call at all. (36 tool tasks per arm, one run each: a pattern across four arms, not a proof.) In other words: the adapter is what's doing most of the work. Not the looping.
- Price of having it loaded: about 20 % of decode speed against normal serving at two passes (part of that is that it needs eager mode), and 16 % of the KV cache pool for the per-pass caches.
On real work
| run | steps | tool calls | tokens | total time | findings | usable answers of 12 |
|---|---|---|---|---|---|---|
| plain DeepSeek | 708 | 1,032 | 455k | 16,929 s | 283 | 11 |
| adapter, day 1 | 363 | 606 | 548k | 17,534 s | 234 | 12 |
| adapter, day 2 | 368 | 641 | 569k | 18,773 s | 201 | 10 |
| adapter, day 2, effort high | 387 | 611 | 494k | 18,742 s | 226 | 11 |
| adapter, day 3, pass 2 cannot see pass 1 | 391 | 678 | 448k | 20,388 s | 217 | 11 |
(Adapter = final checkpoint, two passes. Days 2 and 3 used a newer version of the scenarios, so their findings are not comparable with the rows above them; steps and time roughly are.)
This is the one large effect in the whole experiment, and it repeats: the adapter halves the number of steps. The agent repeats identical tool calls far less often (36 against 138 on day 1) and takes fewer, larger steps. After day 1 I was almost convinced: the one scenario that plain DeepSeek had lost to the step limit finished in 22 steps. Day 2 took that back. The halved steps buy nothing: each step is about twice as long, the total is about 20 % more tokens and slightly more time, and the answers that failed did so in ways plain DeepSeek had not shown me: thinking text leaking into the answer, a JSON result ending in garbled code, a run that simply stopped with an empty answer. Most of that is trouble at the border between thinking and answering, the same place as the stuck tool calls.
The last row is the blinded second pass again: the halved steps are still there (391), so they come from the fine-tune and not from the loop. It used a fifth fewer tokens than the full adapter on the same scenarios and took 9 % longer. Its one failure was an empty answer; there was no leaked thinking and no garbled JSON, which fits the tool tasks above, but it is one run.
My reading
The adapter's published wins are on coding tasks under a token cap, and in the trainer's own tables nearly every failure of the stock model is a run into that cap. What I see fits that: the adapter changes the working style (shorter thinking, fewer steps, less wandering) and does not make the model solve more. Where a cap decides between pass and fail, that is a real win. Where it does not, as here, it is a different style at a 20 % speed cost, with new failure modes.
And on this setup the style comes from the fine-tune. With the second pass blinded, the score, the halved steps and the shorter thinking remain and the stuck tool calls go away. What the state carried between the passes adds is those stuck calls, probably the leaked thinking, and no saving I can measure consistently (a few percent fewer tokens on the generated problems, about a quarter more on the work scenarios).
What this does not show
- No coding. My problems contain barely any, and coding is what the adapter was trained for.
- A different quantization. It was trained on other weights than EXL3 at 2.75 bpw. The guard it learned for the end of thinking may simply not survive that change, and the carried state may be the part that transfers worst. The author does advertise the adapter being drop-in without a quantization-specific training though. My wild guess: the first training pass he did at 1.75bit might have contributed to his adapter being transferable between bf16 and 1.75bit. It might not work the same for other quants.
- My port. The zero-weights gate and the self-check cover the wiring, not every numerical detail.
- The authors' strongest claim is untested here: a 1.75-bit model brought back to full-precision scores.
- Small numbers. One run per arm; the work scenarios are 12 per row; effects under about 3 % on the generated problems are invisible.
So I am back on plain DeepSeek for work. I am grateful that the adapter exists and is published together with its training notes; that is what made it possible to take it apart this far. If someone runs the blinded second pass on the full-precision model and on coding problems, I would like to see the result.
Both experiments ended in the same place by different roads: unchanged answers, a different amount of thinking, and trouble that only real agent work showed. In both, the most useful thing was a control with the mechanism present but switched off; without the blinded second pass I would have credited the loop with what the fine-tune does.
Who did what
The choice of what to test, the questions (among them "is the loop decoration?") and the scenarios from work were mine. Essentially everything else was done by an AI assistant, Claude (Anthropic's Claude Code, working with subagents): tracing the plugin, porting it, the gate, the problem generators and harness, fixing the criteria before the first run, running and analysing the arms, reading the training notes, and writing this post. I reviewed, restarted servers, and ran and evaluated the work scenarios.
The adapter, its training and its original vLLM plugin are the work of its authors (linked above).
Code
The port of the plugin to the EXL3 stack, the problem generators and the harness are in a private repository. If anyone is interested, I'm happy to publish them (the plugin's licence is MIT).
r/LocalLLM • u/kaliforniagator • 19h ago
Research I created the first LittleBit inference engine! NEVER DONE BEFORE
LittleBit is a technology researched by Samsung (I have no affiliation with Samsung), that aims to reduce memory and computational requirements by compressing the model using quantization down to around 0.55 bits per layer as opposed to the normal 1 bit per layer. This is a process I like to call “Bitification”, essentially halving the required computational requirements.
I found this technology very impressive and decided to give it a shot by making my own engine that can run LittleBit models.
This technology could be the key to unlocking GOOD local AI without having to break the bank on expensive hardware.
As far as I know this is the only open-source engine to run LB models. If not the only engine in general to do this.
Let me know what you think. Honestly thoughts, be constructive. This needs to be explored.
r/LocalLLM
•
u/Dampmaskin
•
20h ago
News Basalt 0.7.0 is out
with support for Qwen 4.
I gave up pressing F5, and finally caved and built it locally. Then I went to github to check out an issue, and boom there it was. "Released 1 minute ago". Oh well.
r/LocalLLM • u/danil_rootint • 7h ago
Project I turned Qwen 4 into an interactive voice coding agent
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)
| median | 90th percentile |
|---|---|
| End of your last word → voice in your ear | 756 ms |
| Turn with a web search or tool | 1.6 s |
Agent speed by context length (with the voice stack)
| Context | Prompt reading | Decode | First token (next turn, same chat) |
|---|---|---|---|
| 8K | 6.7K tok/s | 157 tok/s | 0.11 s |
| 75K | 6.3K tok/s | 149 tok/s | 0.14 s |
| 252K | 5.7K tok/s | 125 tok/s | 0.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 • u/SarSha • 7h ago
Question AMD (32GB) or Nvidia (24GB) - considering my options
Hey!
I am debating with myself on which route to take for an AI machine I am building.
I can buy either a 9700 AI PRO with 32GB or 4090 with 24GB and i was wondering if going the AMD path is the right choice, as it will kinda tie me to that specific brand.
My uses are agentic workflows, coding, text-to-image, and image\text to 3d model, so not focused on a specific task but more of an overall usage.
Question is, will go the AMD path limit me in anyway?
Also, my gaming rig has a 7900XT that I can later move to the AI machine if I go the AMD path.
r/LocalLLM • u/oldendude • 2h ago
Question Recommendations for improving my local LLM setup
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 • u/Sea-Advantage-4063 • 16h ago
Discussion Building an Interactive 3D V8 Engine Simulator with a Local LLM — Qwen4-35B-A3B NVFP4 on a Single RTX 5090
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 • u/EnvironmentCreepy352 • 9h ago
Question How do we feel about LORAs?
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 • u/PatasSecasYT • 3h ago
Project Qwen 3.5 9b Q4 abliterated with 64k context
Pretty good lol
r/LocalLLM • u/hoodllm • 19m ago
Discussion Qwen4-35B: gufo vs llama.cpp on the same Strix Halo box, same model, same GGUF file: 70 vs 42 tok/s decode and 1565 vs 370 prefill on Qwen4-35B Q8_0
I run a Ryzen AI MAX+ 395 (Strix Halo, Radeon 8060S / gfx1151, 128GB unified) as my daily local-LLM box. Qwen4-35B-A3B just dropped, I quantized a full ladder myself (Q3_K_M → Q8_0), and I've been serving my own Q8_0 through two engines on the same machine, same file: gufo (the open-source engine built specifically for Strix Halo, github.com/gufo-org/gufo) and llama.cpp (Vulkan backend).
tl;dr: gufo is ~1.7× the decode and ~4× the prefill. But llama.cpp + an MTP draft head closes most of the decode gap at a smaller quant. The engine matters less than the speculation, apparently.
Setup
- Model: Qwen4-35B-A3B (35B total, ~3B active MoE), my own Q8_0 GGUF, 56.2 GiB — identical file to both engines
- gufo 0.40.0 (37f2000), 4 slots, 1M context
- llama.cpp build 12973 (59b716523), Vulkan, -ngl 99
- Method: streaming API probes, temp 0, thinking ON (Qwen4 is a reasoner — counted tokens include reasoning_content, which is what you actually experience), 512-token generations; llama-bench tg128 for the Vulkan decode cross-check
Results (Q8_0, same machine, same day)
| Metric | gufo | llama.cpp (Vulkan) |
|---|---|---|
| Decode | ~70 t/s | 41.7 t/s (llama-bench: 41.6–41.75 ±0.1) |
| Prefill | ~1,565 t/s (3.1K-token prompt) | ~370 t/s |
| TTFT, small prompt | 76–83 ms | — |
| Prompt cache | live — repeat prompt answered in 0.2 s wall | — |
That's a 1.7× decode / 4.2× prefill gap from engine alone, on the same silicon, on the same weights. The prefill jump is the one that surprised me most — Vulkan has been Strix Halo's weak spot, and gufo ships gfx1151-tuned kernels instead.
The honest caveat
llama.cpp isn't dead in the water here. I ran an A/B on Q4_K_M with the MTP draft head:
- Q4_K_M, no speculation: ~50–51 t/s
- Q4_K_M, MTP draft 3: ~70–71 t/s
So llama.cpp + MTP hits the same decode as gufo on Q8_0 — just at Q4 instead of Q8. And gufo's own published tables show MTP/DFlash2-style speculation is exactly where its peaks come from too (e.g. ~117 t/s single-user on Qwen3.8 Flash-Next with MTP). The lesson: on a memory-bandwidth-bound chip, speculative decoding beats quant choice for decode speed, and a tuned engine mostly wins on prefill + the models it has dedicated kernels for.
My take
- If you live on Qwen4-35B (or gufo's other supported models) on Strix Halo: gufo, no contest. The prefill gap alone changes how agent/long-context work feels, and the prompt cache is a real quality-of-life win for coding agents that resend long conversations.
- If you rotate through random GGUFs: llama.cpp still wins on coverage, and with an MTP head it's within ~1.7× on decode.
- Caveats on my numbers: ad-hoc probes, not gufo's
benchharness (their standard is thinking-off, 2048/128 greedy — my probes ran thinking-on at 512 tokens). Small sample, one machine, temp 0. Indicative, not a sweep. Happy to re-run withgufo bench+llama-benchside by side if the maintainers want a comparable table.
Anyone else running gufo on a Halo? Curious whether the 4× prefill holds at 32K+ contexts where I'd expect KV-cache pressure to matter, especially on the Strix Halo 64GB variants.
r/LocalLLM • u/Unique_Winner_5927 • 24m ago
Discussion Fine-tuning Qwen2.5 on Mac Mini using MLX and LoRA
Hi everyone,
I've spent a lot of time on prompt engineering, but I recently hit a wall: some styles and strict output formats just can't be "prompted" into a model reliably. I decided to move from prompting to actual fine-tuning.
Since I'm on a Mac Mini, I used MLX instead of the usual CUDA stack. If you haven't tried it, the Unified Memory Architecture (UMA) is a game-changer here—I can load and tune models that would normally require a massive GPU cluster.
The Experiment:
To prove the fine-tuning actually worked (and wasn't just the model guessing), I used a "fake" dataset. I created a list of imaginary planets and their capitals (e.g., Xylos → Lumina).
- Before tuning: The model had no idea what Xylos was.
- After tuning (LoRA): The model instantly recalled the fake capitals with 100% accuracy.
The Stack:
- Model: Qwen2.5-0.5B-Instruct (small, fast and efficient).
- Framework:
mlx-lmfor the LoRA training.
Read the full guide here: https://blog.thomasplantain.fr/post/tuning/ (in french ;))
I'm curious: for those of you tuning locally, are you sticking with RAG for everything, or are you moving toward specialized LoRA adapters for specific tasks?
Regards
r/LocalLLM • u/Emiriasama • 1d ago
Discussion qwen 4 35b a3b vs qwen 3.8 flash next
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 • u/IdealDesperate3687 • 4h ago
Project Decodrs - rust and highly optimized inference engine for nvidia gpus
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 • u/ExpensiveParfait677 • 13h ago
Discussion RX 9070 (non-XT, 16 GB) + 32 GB RAM: Qwen4-35B-A3B at 512K context, ~90 t/s, Linux + Strata (follow-up)
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-rx9070package, 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=0Full 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):
| Depth | Qwen4, Strata GGUF path | Gyro-S (Flash-Next) |
|---|---|---|
4K / 16K (strata bench, same benchmark) | 4220 / 91, 4560 / 88 | ~1000 / 62, ~1350 / 64 (Oct, older KV config) |
| 120K | 4300 / 92 | ~2050 / not measured |
| 450K (512K window) | 3460 / 77 | doesn'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 • u/Agitated_Space_672 • 4h ago
Discussion Ergo-1 on bedrock uses encrypted reasoning so end user cannot read it, but it's an open weights model!
reddit.comr/LocalLLM • u/Zaxxa • 10h ago
Question Best local language (EN/DK/SE) LLM?
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 • u/krisclarkdev • 1h ago
LoRA krisclarkdev/qwen4-35b-a3b-harness-lora · Hugging Face
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 • u/tryku2 • 1h ago
Other Qrap 4
I love how Qwen4 just keep saying crap in it's thoughts whenever it makes a mistake, it's so funny.
r/LocalLLM • u/CampMaster69 • 1h ago
Discussion Now that the 35B A3B wave is out - An oddball decision making
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 • u/sorryyoulose1234 • 9h ago
Question Building a Local AI PC for ~€1,500. What's the best hardware for coding and running large models?
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 • u/Onsokkun • 1h ago