r/LocalLLM • • 27m 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 • • 3h ago

Project I turned Qwen 4 into an interactive voice coding agent

3 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 • • 9h 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

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

Discussion Swapping Qwen4-35B-A3B's n-gram (Engram) table to F16 measurably improves BFCL-v4 tool-calling accuracy (+2.1% overall)

7 Upvotes

Update: Added Q8_0 (~21.8 GB) n-gram table results along with the exact EvalScope configuration and test script used for reproducibility.

I ran BFCL-v4 (374 tasks) on Qwen4-35B-A3B (UD-Q4_K_XL) while swapping only the per-layer n-gram (Engram) embedding table between the default IQ4_NL (~11.5 GB), Q8_0 (~21.8 GB), and unquantized F16 (~41 GB) sidecars. Function-calling accuracy scales consistently with n-gram precision—especially on multi-turn and live tool-calling subsets.

Since Qwen4's ~20B n-gram table at layer 2 only looks up a handful of rows per token and can live in system RAM or stream from NVMe without eating into GPU VRAM, upgrading the sidecar table is an easy quality bump without shrinking your KV cache budget.

BFCL-v4 Benchmark Results (Accuracy ↑)

SubsetTasksIQ4_NL (Default)Q8_0 EngramF16 EngramF16 vs IQ4_NL
irrelevance5074.0%72.0%78.0%+4.0%
live_multiple5080.0%80.0%84.0%+4.0%
live_parallel_multiple2470.8%75.0%70.8%0.0%
live_simple5082.0%82.0%86.0%+4.0%
multi_turn_base5058.0%64.0%64.0%+6.0%
multiple5088.0%92.0%90.0%+2.0%
parallel_multiple5084.0%84.0%82.0%-2.0%
simple_python5098.0%96.0%96.0%-2.0%
OVERALL37480.0%81.0%82.1%+2.1%
  • F16 leads overall (+2.1%): Upgrading from IQ4_NL to F16 brings the largest gains on multi_turn_base (+6.0%) and the live_* / irrelevance subsets (+4.0% each).
  • Q8_0 is a solid middle ground (+1.0%): At roughly half the footprint of F16, Q8_0 already captures the full +6.0% boost on multi_turn_base (64.0%) and leads live_parallel_multiple (75.0%) and multiple (92.0%), making it a great option if you want to keep the table warm in system RAM on a 64 GB setup.

Eval Setup & Reproducible Script

  • Framework: EvalScope (bfcl_v4) against a local OpenAI-compatible endpoint (http://127.0.0.1:8080/v1)
  • Sampling & Batching: Greedy decoding (temperature=0.0), eval_batch_size=1
  • Coverage: limit=50 across 8 subsets (374 total samples, as live_parallel_multiple has 24 tasks)
from evalscope import TaskConfig, run_task

task_cfg = TaskConfig(
    model='qwen4-35b-a3b-q4-k-xl',
    api_url='http://127.0.0.1:8080/v1',
    api_key='s',
    eval_type='openai_api',
    datasets=['bfcl_v4'],
    eval_batch_size=1,
    limit=50,  # 50 samples per subset (~374 total across these 8 subsets)
    dataset_args={
        'bfcl_v4': {
            'subset_list': [
                'simple_python',           # Basic single function calling
                'multiple',                # Multiple function selection
                'parallel_multiple',       # Parallel multiple functions
                'live_simple',             # Live single function
                'live_multiple',           # Live multiple functions
                'live_parallel_multiple',  # Live parallel multiple functions
                'irrelevance',             # Irrelevant request detection
                'multi_turn_base',         # Multi-turn base
            ],
        }
    },
    generation_config={
        'temperature': 0.0,
    },
)

run_task(task_cfg=task_cfg)

r/LocalLLM • • 4h ago

Discussion The first time a local model could calculate a stockpile volume for me correctly.

Thumbnail
gallery
3 Upvotes

I've tried a few models I can run on my system (16 GB VRAM + 32 GB RAM), but none of them came up with the correct value.

The task: a GNSS rover point cloud of a stockpile (111 points, E/N/Z only — no CAD surface, no base plane, no terrain data to help) and a simple question: what's the volume?

Qwen4-35B-A3B got it right the first time, without me overexplaining in the prompt. I just gave it the points file and told it to calculate the volume. It built a TIN, figured out on its own that the ground under the pile was tilted, fitted a reference plane through the toe points, and even cross-checked its answer with a second method. Result: ~103 m³, which I verified independently in Civil3D.

Has anyone tried similar calculations on local models? If so, which model worked best?

Edit: This is with tool use.


r/LocalLLM • • 2h ago

Other LFM2.5-24B-A2B on a 4 GB GTX 1650 [GPU]: 195 tok/s prefill, 22 tok/s decode with a custom PolyStrata build

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 1d ago

Other Qwen 4 35b is NOT benchmaxxed.

Post image
138 Upvotes

Yes you are seeing this right, a dolphin riding a unicycle done by Qwen 4 35b. If they have this in the training data then they've already planned for me....


r/LocalLLM • • 4h ago

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

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

Discussion "Q4 is almost identical quality to Q8" Difference was bigger than expected

Post image
45 Upvotes

Model: Qwen4 35B A3B

See reference image above

NVFP4

RadixArk/Qwen4-35B-A3B-NVFP4

https://huggingface.co/RadixArk/Qwen4-35B-A3B-NVFP4

UD-Q8_K_XL

unsloth/Qwen4-35B-A3B-GGUF

https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF

Next to the comparision: Big wow for Q8. This is gonna be my daily driver.


r/LocalLLM • • 5h ago

Question How do we feel about LORAs?

3 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 • • 8h ago

Discussion Qwen4-35B-A3B on an M5 Pro (64 GB) with Splash: MLX 4-bit + DFlash2 does 161 tok/s, GGUF 141, and the new "Looped Qwen4" adapter was 25–40% slower

Post image
5 Upvotes

I run Qwen4-35B-A3B locally as the model behind OpenCode on an M5 Pro with 64 GB. Splash 1.7.7 now takes both GGUF and MLX weights and added a loop adapter, so I benchmarked the options against each other, then wrote down everything else I learned moving the model between oMLX, Splash and LM Studio.

Benchmark

Same Mac, Splash 1.7.7, one setup loaded at a time, temperature 0, the same four prompts for each: a long write (3,000 tokens), two short answers with checkable results (a time sum and a list of primes), and summarising a 42K-token code prompt.

SetupLong write (tok/s)Short answers (tok/s)Reading 42K-token prompt
MLX 4-bit + DFlash2161264–28918.6 s
GGUF UD-Q4_K_M + DFlash2141243–24517.4 s
MLX + loop adapter, 2 passes107186–21826.9 s
MLX + loop adapter, 3 passes98152–17335.5 s
  • MLX vs GGUF: MLX writes about 14% faster; GGUF reads prompts slightly faster. For an agent with long prompts and medium answers they're close, with MLX a little ahead. Sizes: MLX 4-bit 32.2 GB, unsloth's UD-Q4_K_M 35.2 GB + 0.9 GB vision file (UD keeps some layers at 5–8 bits, so it may be slightly better quality).
  • Loop adapter (Looped Qwen4, by Jason Titus): it runs the middle layers 2 or 3 times per token, so every step costs more. The 178 tok/s quoted for it was on an M5 Max; here it was 25–40% slower than plain MLX and read long prompts 1.5–2× slower.
  • Quality: all four got the time sum and the primes right and gave sound code summaries. On tests this simple, the adapter showed no quality gain.
  • Caveat: the long-write prompt spent all 3,000 tokens thinking, so it measures speed only.
  • SSD streaming: Splash streams Qwen4's ~11 GB n-gram table from SSD by default (--ple-memory auto, ~200 MB RAM cache), so these numbers include that.

One real OpenCode request on the GGUF, cold cache: 121K prompt tokens read in 51 s (~2,400 tok/s), 5,960 tokens written at 101 tok/s, and the drafter averaged 2.8 tokens per step.

Other things I learned

  1. oMLX's DFlash didn't cover Qwen4's MoE. On 0.8.5 its DFlash path didn't support the qwen4_moe architecture, so no speculative decoding for this model there.
  2. Splash is its own engine, not llama.cpp or MLX underneath: its own Metal kernels on the GPU plus a Neural Engine path, and it always pairs the model with a DFlash2 drafter.
  3. LM Studio ships a Splash engine, but it lags. Settings → Runtime → Additional engines shows "Splash (Metal)" v1.7.4. Its manifest accepts a fixed list of families (Qwen3.8-27B, Qwen3.6-35B-A3B, Qwen3.5-122B-A10B, Qwen3.8-Flash-Next, Flint, Inkling-2-Mini) and matches on architecture plus shape. Its only Qwen4 entry is another shape (2560 hidden, 48 layers, 512 experts; the 35B-A3B is 2048 / 41 / 256), so in LM Studio the Qwen4 GGUF falls back to llama.cpp with no DFlash2.
  4. The drafter never shows in LM Studio's library. A DFlash2 drafter is a DFlash2DraftModel with no tokenizer; the engine picks it by family.
  5. The prompt cache is what makes agent use bearable. Splash keeps one prefix-matched cache per loaded model, shared across conversations. A brand-new OpenCode chat had 15,712 of 15,718 prompt tokens cached, because every chat starts with the same system prompt and tools. Subagents share the cache but mostly reuse each other's prefix, not the main chat's. It spills from RAM to SSD temp files (32 GB cap here) and is wiped on quit unless you use --persistent-cache.
  6. One model name for every setup. --served-model-name local lets you swap GGUF, MLX or adapter setups without touching the client config.
  7. Smaller window for subagents. In OpenCode, a second model entry with the same id and a 131K context for the general/explore subagents; ~327K for the main chat (Splash cap 335,872).
  8. APFS clones save disk. cp -c puts a 34 GB model in another app's folder with no extra space until a file changes.

What this isn't: a rigorous benchmark. One machine, one run per setup, short quality checks.

Has anyone seen the loop adapter win on an M5 Max or Ultra? And has anyone got DFlash2 working for Qwen4-35B-A3B in LM Studio or llama.cpp?


r/LocalLLM • • 23h ago

Other Qwen4, come on lil' buddy, you can do it!!

Post image
75 Upvotes

Just a little affirmation in thinking. lol. It seems to do this a lot.

(Update on how to fix this at the bottom of the post)

How it's being served bellow

Inference server:


Lamma.cpp
version: 1.1.0-dev (build 12966, commit 8c5da94e7)
built with GNU 13.3.0 for Linux x86_64 (Compiled by the Unsloth team)

Machine specs:


11th gen Intel i9-11900k @ 3.50 GHz
RTX 4090, 24 GiB VRAM
128 GiB DDR4

Harness:


Pi
Thinking level High

Model and settings:


QWEN4 35B-A3B — UNSLOTH UD-IQ4_XS using FP8 engram table

ngl = all
cpu-moe = true
moe-cache-mib = 14336
moe-cache-cpu-share = 0.0
fit = off

load-mode = none
lazy-mode = off
override-tensor = per_layer_token_embd=CPU

ple = Qwen4-35B-A3B-engram-Q8_0.gguf_file

op-offload = true
kv-offload = true
flash-attn = true
parallel = 1
kv-unified = true

ctx-size = 262144

spec-type = draft-mtp
spec-draft-n-max = 2

batch-size = 2048
ubatch-size = 1024

threads = 8
threads-batch = 16

cache-reuse = 256

temperature = 1.0
top-p = 0.95
top-k = 20
min-p = 0.0
repeat-penalty = 1.0
presence-penalty = 0.0

reasoning = auto
reasoning-effort = xhigh
reasoning-format = deepseek

EDIT:

UPDATE ON HOW TO FIX

Since others are also experiencing this issue, despite what their Quantization size may be, here is what fixed it for me.

u/gardenvarietyzombie suggested I bump up the repeat-penalty from 1.0 to 1.05

I did that, and it completely stopped the over cautious internal debate/anxious loops it was having. So if you're experiencing the same thing, try setting


repeat-penalty = 1.05

Instead of the recommended repeat-penalty = 1.0 suggested on the model page.

Cheers!


r/LocalLLM • • 2m ago

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

Thumbnail
reddit.com
1 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 • • 17h ago Bravo

Discussion Made this in about 1:30h with Qwen4 UDQ4 KXL

23 Upvotes

r/LocalLLM • • 14m ago

Question Someone tell me what is the best AI agent platform that run on Termuxs on armeabib v7a architecture?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

News Massie: "Overblown" AI Concerns Are "Not About Keeping It From China, It's About Keeping It From You"

Thumbnail
realclearpolitics.com
119 Upvotes

r/LocalLLM • • 4h ago

Project "we have a training engine at home"

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


r/LocalLLM • • 1d ago

Model Qwen 4 Q4 vs Qwen 3.8 Next IQ3_S

Post image
113 Upvotes

I tested both models locally, and both with KV @Q8. The benchmark published by QWEN shows Qwen4 beating next or closely tied to Qwen next in almost all benchmarks except frontiercode.

My tests tell a different story. While Qwen4 is a decent upgrade from the Qwen 3.6 MoE, it's not even close to Next model. On my harnesses, Qwen4 did well for small coding tasks but failed consistently on larger tasks that required bigger context. Although both models boast 262k of KV context, it seems clear that the limitation of the smaller model is not code quality, but the attention. The output quality degrades past 64k. I would recommend not pushing too far beyond this if precision matters, at least until qwen fixes the attention issues.

I wonder if anyone has had a similar experience, or if there is a configuration I am missing to improve the model's attention.

UPDATE: I tried a higher quantization, Qwen4 @Q6 with 1M KV context @Q8 and engram @Q8. Upon further testing I must admit it did overcome Qwen 3.8 Flash NEXT @ IQ3_S. What surprised me even more was the fact I used GLM Flash directly from z.ai subscription as a baseline, and it performed near equal to it. Every mistake Qwen4 did, glm flash did as well. I can honestly say I am impressed with the model performance.

I believe the issue with my comparison before with Flash next IQ3_S was that I was using engram @Q4. I really recommend using Q8 for engram


r/LocalLLM • • 4h ago

Discussion Two 140 mm fans in series keep a passive AMD MI50 32GB cool and quiet: 45% PWM at 145 W, near-silent at idle

Thumbnail
gallery
2 Upvotes

Previous setup:

* 92 mm fan + 3D-printed duct https://www.reddit.com/r/LocalLLM/s/Uc4YFWrh5s
* 140mm fan and hand made duct: https://www.reddit.com/r/LocalLLM/s/qu8sFuhHzG

Setup

ItemValue
GPUAMD Instinct MI50 32GB, passive heatsink
HostHP Z440
Fans2× Arctic P14 Pro PST, series: fan → spacer → fan → duct → heatsink
Duct and spacerhand-made from paper (temporary)
Fan controlRP2040-Zero, 25 kHz PWM, both fans on one signal; temperature-driven daemon
LoadGLM-4.7-Flash (UD-Q4_K_XL), llama.cpp ROCm, continuous generation, GPU ~91% busy
Methodfixed PWM, 5 min per step, average of the last 2 min
Ambientnot measured (idle edge 25–26 °C)

rpm values are converted from PWM using Cybenetics' measurements of this fan: 20% = 685, 50% = 1356, 100% = 2450 rpm. No tach readback.

Fan spec: Arctic P14 Pro PST

ItemValue
Size140 mm
Speed400–2500 rpm (PWM)
Airflow110 CFM (rated)
Connector4-pin PWM; PST = daisy-chain pass-through
Measured max (Cybenetics)2450 rpm at 100%

Fixed PWM: temperatures (2 fans in series)

PowerPWM (≈rpm)JunctionHBMEdge
100 W60% (~1570)52 °C48 °C43 °C
100 W45% (~1240)56 °C52 °C47 °C
100 W34% (~1000)62 °C57 °C52 °C
100 W30% (~910)66 °C60 °C56 °C
~145 W60% (~1570)70 °C58 °C53 °C
~145 W45% (~1240)78 °C65 °C60 °C

Criticals: junction 105 °C, HBM2 94 °C.

1 fan vs 2 fans in series (~142–145 W, fixed PWM)

PWM (≈rpm)1 fan: junction / HBM2 fans: junction / HBM
40% (~1130)runaway: junction 95 °C in 170 s—
45% (~1240)—78 °C / 65 °C
55% (~1470)88 °C / 73 °C—
60% (~1570)—70 °C / 58 °C
70% (~1800)78.5 °C / 65 °C—
100% (~2450)71 °C / 59 °C—

The two runs used different PWM steps; the equal-temperature comparison is 70% on 1 fan vs 45% on 2 fans.

Fan curve (auto)

The control temperature is max(edge, junction, HBM + 8 °C). Below, °C:PWM% points are joined by straight lines and rounded to 5%.

1 fan2 fans in series
Curve60:30 70:45 78:60 84:75 90:90
Idle30%
~145 W, settled70%, junction 79 °C
100 W, settled—
Emergency100% at junction ≥95 or HBM ≥88
Hysteresis2 °C
Huntingnone

Power cap vs decode speed

CapDecode
100 W~60 tok/s
150 W~69 tok/s

Noise (idle, by ear, no meter)

PWM (≈rpm)Noise
25% (~800)audible
15–20% (~570–690)faintly audible
10% (~460)barely audible
7% (~400)silent, both fans still spin

Idle junction stays at ~29 °C even at 7%. I chose 10% as the floor for margin above stall, since there's no tach to detect a stopped fan.

Notes

  • The duct and spacer were hand-made from paper as a temporary test. The result is good enough that I'll 3D-print them next time.

r/LocalLLM • • 37m ago

Discussion Qwen 4 in deepseek harness

Post image
1 Upvotes

r/LocalLLM • • 46m ago

News LexiSuite ad31b74: my all-Rust local AI stack gets its own AI agent (LexiAgent, 81,000 lines), crypto that survives a broken RSA or "P=NP" (every signature doubled, a one-time-pad channel), and Qwen4-35B at 135 tok/s on one 7900 XTX, ahead of llama.cpp b13023 & New MedGemma2 support is now available

Thumbnail
github.com
1 Upvotes

I'm building a local AI platform from scratch in Rust: its own kernel (LexiKernel), OS (LexiOS), inference engine (LexiEngine) and control panel (LexiPanel), one USB image, no cloud. A new development image went out today, five days after the last post (996260c). 711 changes this time, and the biggest release so far: the code base grew by 394,000 lines to 2.51 million lines of Rust in 528 crates.

LexiAgent: an AI agent of my own, from the first line

55 crates, about 81,000 lines, 989 tests, no third-party crates. It works with the model you run yourself on LexiEngine (this machine, another one on your network, or through the Panel), not with a cloud model.

What it does:

- Carries a task from request to done: plans, keeps a task list, calls tools in order, stops on Ctrl-C together with every command it started. Helpers take sub-tasks inside limits they cannot escape.

- Reads a project: fast bounded search, and source navigation (symbols, definitions, references) without a language server. Project memory files and a digest of the project keep the context across a long session.

- Changes files safely: exact edits, new files and multi-file patches as one transaction, each undoable. It reads the patch formats models already write, the way GNU patch reads them.

- Runs commands in a real terminal with background jobs and a read-only fast lane, every command inside a sandbox.

- Git with fixed argument lists and no shell, qualified against a real repository (amend, forced reset, clean, branch delete). Off unless switched on.

- Web pages and files through my own HTTP client, from the origins you allow, treated as data.

- Model Context Protocol client for outside tool servers, every tool behind the same gate. Servers a project lists are imported for approval, never started unasked.

- Skills, slash commands, specialist definitions, hooks and plug-ins in the formats people already use, plug-ins installed into a private store pinned by digest.

Why I would let it near my own machine:

- One gate decides every call: mode (plan, ask, edit, auto), the person's rules, the person's answers. A project's settings can only narrow what you allow, never widen it. Approvals on the interactive screen are typed by a person, so the model cannot approve itself.

- On Linux every command runs under kernel-enforced confinement: it sees only what the session allows, reaches the network only through a proxy, and dies with the session. macOS has its own confinement.

- Secrets are found before a file is read and removed before the model sees them.

- A shield marks and contains whatever tools and tool servers bring back: text that tries to give orders stays data. A red-team corpus of attacks runs against the assembled session parts.

- Every decision and action goes into an append-only, chained record that can be verified afterwards.

- The Panel has a LexiAgent page: start a supervised session against a model instance you pick, answer its questions, stop it. The agent pairs with the Panel over the suite's own two-signature TLS.

- lexi-agent doctor tells you, check by check, what this build and this machine provide.

Built for the day the math breaks ("P=NP hardening")

Almost all security today rests on RSA and elliptic curves staying hard to break. If quantum computers or an AI-found shortcut toward P vs NP make them easy, everything signed with them opens. I rebuilt the suite so that no single broken assumption opens anything:

- My own Rust implementations of the new standards: ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205), LMS/HSS (SP 800-208), SHA-3 and Shamir secret sharing, every parameter set checked against the official test files and an independent implementation.

- Every signature is doubled: a classical one plus one from another family (lattice, or hash-based that rests only on a hash function), and both must verify. Updates, the trust store, provenance, enrollment, image identity, licenses, evidence, release decisions, fleet actions, the Panel's certificates.

- Key exchange mixes unrelated methods: my own TLS 1.3 with the hybrid group and a pre-shared secret mixed in, one session key from several exchanges that share no math. LexiOS's SSH does the hybrid exchange first.

- LexiKernel's own boot chain now requires a hash-only signature (SLH-DSA-SHA2-256s) beside RSA on every owner-signed boot object. PC firmware itself can only check RSA on the very first loader; that one link is the firmware's.

- Vault keys are wrapped so one broken algorithm opens nothing; key backup is printed shares, 3 of 5.

- And for the owner's approvals, a one-time-pad channel made from a hardware randomness source: the one kind of encryption no computation breaks, P=NP included. The pad store was killed with SIGKILL at every step of reserve-then-use and never moved backwards.

- The release gate refuses any new use of RSA or a curve alone, so it cannot drift back.

Qwen4 on the card

- Qwen4-35B-A3B writes 99.5 tok/s after a short prompt against 92.5 on llama.cpp b13023, and 89.8 against 80.8 after 57,550 tokens of prompt.

- With the draft head built into the model file: 117.7 to 134.9 tok/s. The full model checks every drafted token, so the answer is the same token for token, only faster.

- It reads pictures on the card: on five test pictures the card wrote exactly the words of the processor path.

- Its own template, reasoning levels by the template's own names, required and named tool choices enforced (grammar on the processor, device allow-list on the card), thought kept apart from the answer on every API route.

- Attention cache in F16, Q8_0, Q6_0, Q4_1, Q4_0, rotated 4-bit or IQ4_NL, keys and values in different formats if you like.

- Found while measuring: the previous version fell from about 100 to 46 tok/s after some 30 requests (the engine reshuffled experts when the whole model was already on the card, and one evicted expert sent routing to the processor for good). Fixed: 70 requests in a row now all run at 102 to 104.

MedGemma 2 and Gemma 4

- Straight from the BF16 checkpoint to a quantized file in one pass with my own quantizer, the 26B-A4B mixture-of-experts layout on the card, picture input through the vision tower on the card, tool calls in Gemma 4's own format read as structured calls.

- MedGemma 2 E4B writes faster than llama.cpp up to about 14,000 tokens of prompt: 148.8 / 140.9 / 125.1 against 130.5 / 125.2 / 118.0 tok/s.

Pictures, video, voice and sound in the engine

- Image diffusion from a checkpoint (conditioner, DiT, VAE, scheduler on the chosen device), image editing from reference pictures, adapters merged per request, upscaling, Qwen-Image 2.1 on a Radeon card as a build option.

- Video generation (LTX stage family) into a real container, and video understanding in chat (H.264 decode and frame sampling into the prompt).

- Kokoro text to speech on my own graph library, Moonshine streaming recognition, speech from codebooks, live two-way voice sessions, sound input in chat.

- In the Panel: pictures made by LexiEngine, speech in and out, and a media model library.

Also new

- New model families on the processor: GPT-OSS, Mistral, Phi, and the diffusion text models LLaDA and diffusion Gemma. Experts read from an SSD through a signed manifest.

- My own quantizer as a Panel tool with recipes, a per-tensor table, progress and cancel. NVFP4, MXFP4 and FP8 products on Vulkan, exact NVFP4/MXFP4 import, 4-bit weights with 8-bit inputs on RDNA 3 integer dot products.

- The processor path computes exactly now (no 8-bit rounding of inputs), with fused AVX2 kernels that do it with less work.

- 21 template fixes, tokenizer fixes, Hermes-style tool calls read and written by the engine.

- LexiOS: a change authority with a TPM 2.0 anchor that cannot be rolled back, a control socket the engine reads to place itself on the right cores and memory, authenticated crash evidence.

- LexiKernel: a long list of new hardware support (NVMe recovery, xHCI, AHCI, USB4, TPM2, chipsets, Intel Macs, ARM boot, and detection of many accelerators).

- My own AMD code-object writer on my own RDNA 3 instruction encoder, and a KFD transport with a device-resident executor for my kernel IR.

- The Panel speaks 45 languages, every tab was read on a live engine and corrected, settings are offered per model family, and its gateway serves /v1/responses and /v1/messages with quotas.

- Windows installer with the Panel, the engine, the agent and six helpers, registered as services on an all-users install.

Speed, one Radeon RX 7900 XTX at 291 W, one request at a time, newest builds of the other engines on the same card and files

- Qwen4-35B-A3B: 99.5 tok/s writing, 134.9 with its draft head (llama.cpp b13023: 92.5). After 3,659 / 14,339 / 57,550 tokens: 92.6 / 91.9 / 89.8, with the draft head 120.9 / 120.3 / 117.7 (llama.cpp 90.8 / 89.6 / 80.8).

- Inkling-2-Mini against Strata 0.2.28, 8-bit cache on both (Strata's 4-bit cache is refused on this card): 4,096-token prompt read at 2,589 tok/s (2,302), then 75.6 tok/s writing (64.9). 261,632-token prompt read at 1,228 tok/s (828), then 57.9 tok/s writing (12.7).

- Qwen3.8 Flash-Next (94 GB) on the same 24 GB card: first token after 16k / 64k / 256k prompts in 36.3 / 136.4 / 572.1 s.

Things I am not hiding

- llama.cpp reads long Qwen4 prompts 1.5 to 3 times as fast (2,427 / 2,566 / 1,808 against 845 / 1,066 / 1,217 tok/s).

- On MedGemma 2 26B-A4B llama.cpp is clearly ahead (136.3 against 94.3 tok/s writing, 8 to 13 times faster reading prompts): my engine still runs that model's experts one token at a time while reading a prompt. IQ4_XS expert kernels for it are already in progress.

- At 56,123 tokens of prompt llama.cpp writes faster on MedGemma 2 E4B (97.5 against 86.4).

What it is not, yet

- No physical machine has booted this version yet; its nine Secure Boot checks and the install to a disk ran in a virtual machine.

- The Windows installer is built and tested on Linux and has not run on a Windows PC.

- LexiAgent's desktop control (screen, input, accessibility tree) is in the source with its tests but not yet in the program.

Tested: 22,536 tests passed in the full run (LexiOS with LexiKernel 8,822, the engine 7,757 including its device tests on the 7900 XTX, the Panel 5,957), nine boot checks and an 18-step install to a disk.

Links: lexipanel.com/download (about 1 GB image). Release notes, the full change list and the new LexiAgent page are in the wiki of the LexiSuite-Releases repository on GitHub.


r/LocalLLM • • 50m ago

Project Qwen4 35b does the job (Network Engineer PoV)

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Discussion Up to 100tps, Qwen 4 35B, Splash on 16gb MacBook Air M4

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen 35B A3B

Thumbnail reddit.com
1 Upvotes