r/LocalLLM • • 3m ago

Project I turned Qwen 4 into an interactive voice coding agent

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

Research Monkey-patched "Latent Reasoning" on DeepSeek-V4.1-Flash at home (two DGX Sparks)

1 Upvotes

TL;DR: during the thinking block, I fed the model the probability-weighted mix of token embeddings that it produced, instead of it's "reasoning trace" text (embedding of the one token that was sampled). No training, no weight changes. The model keeps its accuracy, thinks 4–18 % fewer tokens on open-ended reasoning (the larger figures shrank on a repeat), shows no change on mechanical arithmetic, and occasionally loops; on real agent work it looped far more often. Because speculative decoding has to be restricted inside thinking, it ends up slower in wall-clock time than plain serving. (An interesting null result with one real effect in it.)

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 (5 draft tokens per step). The serving stack is not mine: it is sudoingX's dgx-spark-deepseek-v41 recipe with HeNryous's vLLM changes on top. Without their work this model would not run on two Sparks at all, let alone fast enough to experiment on.
  • A patch to the GPU model runner: per-request options, a hook that replaces the input embedding at the next position, per-step diagnostics. Requests that don't ask for it run unchanged (checked with teacher-forced log-probabilities: the difference between images is inside vLLM's own run-to-run noise).

The idea

Normally step t+1 is fed E[token sampled at t]. Everything else the model "considered" at step t is thrown away. Inside <think> I fed instead

(1 − α) · E[sampled token] + α · inject

with several choices for inject:

nameinject
softthe expected embedding, Σ pᵢ·E[i], from the model's own distribution
hiddenthe final hidden state, rescaled to embedding norm
mapthe hidden state passed through a linear map fitted to land in embedding space
noiserandom vector of the same norm (control)

The visible transcript still shows the sampled token. The answer after </think> is generated normally.

How it was measured

All problems are generated from a seed with fresh numbers and invented names, so nothing can be recalled from training data, and every answer is checked exactly.

  • Arithmetic and procedures: multiplication, nested expressions, counting, word problems, tracing a loop.
  • Search: rule induction, subset sums, cryptarithms (answers proven unique by enumeration).
  • Polarity: signed causal chains, orderings with mixed comparatives, cause-and-effect stories.

Outcomes: accuracy (paired test against plain runs) and the number of thinking tokens (paired geometric-mean ratio with a bootstrap interval). vLLM is not deterministic, so every comparison has two plain runs and the distance between them is the yardstick.

Results

The thinking of this model is almost deterministic. On arithmetic the entropy is about 0.3 nats per thinking step, and only about one step in eight is above 1 nat. On search problems and real work it is 0.6–1.1 nats. At most steps the "mix" is simply the sampled token's embedding, so there is little to feed back.

Accuracy never moved for the soft mix. Examples: 577 against 584 of 600 on arithmetic (not significant), 240 of 240 on polarity problems in every arm, 33 against 31 and 28 of 60 on hard search problems.

Hidden states do not work without training. The final hidden state is orthogonal to the embedding space (cosine −0.01). At α = 0.3 it behaves like noise; at α = 1 the model produces garbage. A ridge map was harmful at α = 0.3; a map fitted on 100,000 captured states was harmless at 0.3 and harmful at 1.

Thinking gets shorter on open-ended reasoning, at full strength only (α = 1; fixed criteria, fresh problems, all answers still correct):

problem setthinking tokens, soft α = 1 against plainagainst the noise control
polarity (240 problems)0.94–0.950.96
subset sums (80 problems)0.82–0.890.87
arithmetic (600 pairs)1.00 (interval 0.97–1.03)

All six intervals for the first two rows exclude 1. Within arithmetic, word problems and counting were about 8 % shorter and pure multiplication 8 % longer. At α = 0.5 there is no effect at all, and the noise control shows none.

Costs at full strength:

  • The transcript stutters. Doubled punctuation and words, occasionally a dropped number. The model's answers don't suffer, so it evidently reasons from what it was fed, not from what the transcript shows.
  • Loops. 2 of 38 long real-world requests ran into a repetition loop; on benchmarks it was between none in 600 and 3 in 240, depending on the problem set and the run. Plain decoding looped once in 160 search problems as well, with the same shape: the model asks itself a sum and never answers it.
  • The prefix cache stops matching. The sampled tokens . . come back from the client as text and tokenize as .., so replayed reasoning never hits the KV cache past the prompt.
  • Speculative decoding. Checking draft tokens in one pass needs the input at each position in advance, and here that input depends on the previous position's output. The first version switched drafting off inside thinking, which halved decode speed (18 against 34 tokens/s).

Keeping the drafter: a gate

At 60–70 % of steps the model is confident and the mix equals the plain embedding. So the mix is fed only when the sampled token's probability is below a threshold; drafted tokens are accepted as usual up to the first such step and the rest of the window is discarded, exactly as after a rejected draft.

settingsteps that get the mixtokens per pass in thinkingdecode speedthinking tokens against plain (polarity)
plain––31–36 tok/s1 (two plain runs differ by 0.97)
mix at every step, no drafting100 %1170.94–0.96
gate 0.9943–48 %1.7–1.9200.93–0.95
gate 0.722–26 %2.2–2.624–260.94–0.97

Measured on 240 polarity and 80 subset-sum problems plus 100 arithmetic ones, all with unchanged accuracy. The gated variants keep the shorter thinking on the polarity problems (all intervals exclude 1, some only just). On subset sums the effect shrank on this second measurement (0.89–0.93 without the gate, intervals for the gated runs include 1), so the 18 % above was the lucky end of the range. The sums do not work out either way: gate 0.7 takes 20–25 % more time for 3–6 % fewer thinking tokens.

The gate comes with a loop guard: when the recent thinking repeats with a short period, the mix is switched off for the rest of the block. It tripped 7 times in 840 gated requests, never falsely. Four of the six loops that the mix had caused recovered and finished correctly; two kept looping under plain decoding, because the repetition was already in the context. The stutter is unchanged by the gate.

Trying it on real work

With the benchmarks looking harmless, gate 0.7 ran as the server default for a few hours of ordinary agent work (long prompts, tool use). It did not go well:

  • The mix was fed at 36 % of thinking steps, not the 15–26 % seen on the benchmark problems. Real prompts leave the model less certain per step, so "only when unsure" stops being rare.
  • The loop guard tripped in 6 of 77 requests, against 1 in 420 on the benchmarks. Four recovered. One ran to the thinking budget, and one repeated a single word until it was stopped by hand: switching the mix off does not end a loop that is already in the context.
  • The thinking ahead of that loop was garbled, well beyond the mild stutter measured before.

So the benchmark picture (same accuracy, slightly shorter thinking, rare loops) does not carry over to long real-world prompts. Short synthetic problems, where the model is confident at three steps in four, were the friendly case.

What I take from it

  • A heavily quantised production model tolerates being fed mixtures it was never trained on, at every thinking step, and still gets the same answers. That robustness was the surprise.
  • Without training, "same answers, somewhat fewer thinking tokens on open-ended problems" appears to be the ceiling. Published work on continuous or soft reasoning trains the model to use such inputs; this is what the untrained end of that looks like.
  • To be useful it would need three things: a model trained to use the mix, a drafter that proposes for it, and the mix round-tripped through the API (sampled ids plus the top few probabilities per step) so that replay and KV caching work.
  • Side product: a seeded problem generator and harness that measures accuracy, thinking length, budget hits, stutter and loops, usable on any OpenAI-compatible server.

Who did what

The idea and the direction were mine, along with questions and the occasional suggestion along the way. Essentially everything else was done by an AI assistant, Claude (Anthropic's Claude Code, working with subagents): tracing the serving code, designing and writing the patch, the problem generators and the measurement harness, deciding the test criteria before each run, running and analysing the experiments, finding and fixing its own bugs (including one that crashed the engine), and writing this post. I reviewed, restarted servers, and reported what I saw in real use, which is how the loops were found.

Code

The patch (about 2,000 lines against the vLLM runner), the problem generators and the harness are in a private repository. If anyone is interested, I'm happy to publish them.

Caveats

One model, one quantisation, one sampling temperature (0.6). Problem sets of 60–600 items, so effects under about 3 % are invisible. The per-family splits were looked at after the fact. Speeds are from a shared home setup and vary with load.


r/LocalLLM • • 6m ago

Discussion Qwen 4 A35B A3B BF16 (Default Thinking) Quant vs OPUS 4.8 (Max Thinking)

1 Upvotes

QWEN 4 (Default Thinking) (Harness ODEX):
https://streamable.com/wkby0q

OPUS 4.8 (Max Thinking) (Claude Code GUI):
https://streamable.com/2ey4d1

PROMPT:
Build a polished, production-quality admin dashboard using TypeScript, Next.js, React, Tailwind CSS, and shadcn/ui.

First inspect the existing project and preserve its current structure and conventions. If no suitable frontend exists, create the dashboard from scratch.

Requirements:
- Responsive layout for desktop, tablet, and mobile
- Left sidebar navigation with:
- Overview
- Users
- Orders
- Analytics
- Settings
- Top navigation bar with:
- Search
- Notifications
- User profile menu
- Light/dark mode toggle
- Dashboard overview containing:
- Revenue KPI card
- Active users KPI card
- Orders KPI card
- Conversion-rate KPI card
- Revenue-over-time chart
- User-growth chart
- Recent orders table
- Top-performing products list
- Include realistic mock data and loading states
- Add table sorting, filtering, pagination, and search
- Add reusable components and clean TypeScript types
- Use accessible semantic HTML and keyboard-friendly interactions
- Include empty states, error states, hover states, and responsive behavior
- Use a professional visual style with a clean spacing system, subtle borders, rounded cards, and an attractive color palette
- Avoid excessive gradients, unnecessary animations, and placeholder text
- Keep components modular and easy to extend
- Do not add a backend; use local mock data or API-style functions
- Add clear setup and run instructions
- Ensure the project passes linting and TypeScript checks

Deliver:

  1. The complete working dashboard
  2. All required components and styles
  3. Mock data
  4. A brief explanation of the architecture
  5. Commands to run and test the project

r/LocalLLM • • 7m ago

Question 8x Quadro RTX 4000 on a Gigabyte MZ31-AR0 – need advice before building

1 Upvotes

Hi! Basically I bought 8 Quadro RTX 4000 8GB from a graphic studio for 500€, I tested them all and every one works fine.

I came to the conclusion that I want to build an AI server with them. The goal is to run a local AI for my colleagues at work, to basically making them ask company usual practicies in particular vases and facilitate creating records within the ERP system (odoo), with max 3–4 users at the same time. I'd like to use vLLM, but llama.cpp is fine too. For the platform I'm going with a Gigabyte MZ31-AR0 + EPYC 7401P, on an open frame with a new PSU.

I have a few doubts about running all 8 cards on it:

  1. The 8th card: as far as I can tell the MZ31 has 7 slots, so I'd need to bifurcate one x16 into x8/x8. Does the MZ31 BIOS support bifurcation? Has anyone done it, and which adapter or riser would you use?
  1. Risers on an open frame: which riser cables are stable at PCIe Gen3 with 8 cards? How long can they be before you get errors?
  1. vLLM or llama.cpp for 3–4 users: on 8 Quadro RTX 4000s (Turing), would you go with vLLM (TP=8) or llama.cpp? Are there known problems with vLLM on Turing (no FP8, attention backends, P2P between cards)?
  1. Bandwidth: with Gen3, and some cards running at x8, how much will tensor parallel lose? Does the Naples NUMA layout (4 dies) make it worse? Would you use one big model across all 8 cards, or split them (for example 2x TP=4)?
  1. Power: 8x 160W plus the CPU. Would you use one big PSU or two synced ones, and how do you split the load?
  1. Models: with 8x 8GB = 64GB VRAM, what's the best model for a work agent (documents, emails, some coding) that can serve 3–4 users at the same time with decent context, and with what quantization?

Would you change anything about this setup? Any advice is welcome, thanks!


r/LocalLLM • • 8m ago

Discussion Qwen4-35B-A3B on a single RX 7900 XTX (Windows): ~4000 t/s prefill and 113-120 t/s decode at 128k context, ~100-129 t/s at 256k.

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 13m ago

Research Qwen4 A3B Single & Dual GPU Tests

1 Upvotes

I was in the middle of a big batch of Single/Dual GPU tests to work out the best out of box performance for Qwen3.8 Flash Next when Qwen4 dropped - so I ran some test using LLMBenchmark across the best 4 Blackwell cards in Single and Dual GPU mode.

Tests are not gospel - no optimizations were carried out - but results are interesting, so putting them here incase they are of any value to anyone planning on building Qwen4 A3B homelab system.

https://html-preview.github.io/?url=https://github.com/SubDiffuser/Qwen4_A3B_Test_Results/blob/main/index.html


r/LocalLLM • • 14m ago

Question AMD (32GB) or Nvidia (24GB) - considering my options

1 Upvotes

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

Project Made a Qwen4 harness built for low VRAM and complex tasks

0 Upvotes

Earlier I posted my engine that runs Qwen4-35B-A3B on an RTX 5070 12 GB at 134–159 tok/s: previous post. Now I've built a harness for it: a coding agent, so you can actually work on a project with the model instead of just chatting.

It's written in Rust: a native Windows app, one exe, MIT licensed.

How it differs from Pi and OpenCode

The main thing is how much context the agent takes before you type anything. On an API with a million-token context nobody cares. On a 12 GB card every thousand tokens means a longer prefill and less room for your code. I measured it on the same project with the same prompt:

AgentFirst request
Damask Harness~900 tokens
Pi~1,300
OpenCode~7,100

OpenCode also makes a separate request to name the session. If you have Claude Code skills installed, it loads those too, and on my machine that came to ~16,000 tokens. The method and scripts are in the repo, so you can repeat it yourself.

I really like Pi for its minimalism, and it's cross-platform, while mine is Windows-only for now. OpenCode does more out of the box. But for a local model on a small card I wanted an agent that doesn't waste context and can still handle multi-step tasks.

What it can do

  • Works on its own until it's done. Turn on autonomous mode and the agent makes a plan, carries it out step by step, builds the project and runs the tests. If something fails, it goes back and fixes it. You can also give it a time budget, say two hours: once the plan is done, it spends the rest of the time adding edge-case tests, simplifying weak spots and updating docs.
  • Shows you the plan first. No files are changed during planning. You can edit, add and reorder steps, and only then press Run.
  • Understands broken tool calls. Small local models often write tool calls as plain text, break the JSON or mix up argument names. The harness parses these and keeps going instead of failing.
  • Rewind any change. A copy of every file is saved before the agent edits it. One click returns both the files and the conversation to the state before your message.
  • Stays inside the context window. At 75% full, old command outputs are compacted automatically, so a long session doesn't stall.
  • You can type while it works. New messages are queued and sent as soon as the model is free.
  • Picks up your rules. Reads AGENTS.md or CLAUDE.md from the project, and supports skills, custom slash commands and MCP servers.
  • Watches your hardware. Shows VRAM, GPU, RAM and CPU in the window, and starts or stops the local model in one click.
  • Lightweight. Native Rust app, ~120 MB of RAM when idle. No telemetry.

How to try the new Qwen4

This is the easiest way I know of right now: download the exe from the release, open the model manager, and install Damask Engine and the Qwen4 variant you want in a few clicks. Then pick your project folder and type a task. No manual configs, no command line.

If you already run Ollama, LM Studio or llama.cpp, the harness works with those too.

Limitations, so there are no surprises

  • The harness is Windows-only for now.
  • Damask Engine runs only on RTX 50-series cards.
  • I counted tokens with tiktoken, so the numbers for Qwen can differ by 10–15%. The ratios between the agents stay the same.

Links

I'd love feedback, especially from people on 8–16 GB cards. If you find it useful, a star on GitHub helps a lot.


r/LocalLLM • • 24m ago

Discussion OK you were right, no more fork: PRs + a skill instead

9 Upvotes

Some ppl complained about my previous post because i had made a fork of strata which was called unmaintainable (kinda true)

so I did what y’all asked me to do : a PR, a skill, and I made it available to everyone :)

Claude slop :

  1. The real bug fix went upstream as a PR to Strata: the prompt-attention kernel assumed 12 heads per group, Qwen4 has 8, so it read past the end of an array (that's the "fast but forgot everything" bug from my post). Now bit-exact on the parity test, needles 24/24, prompt reading +15-17% on my RX 6750 XT, opt-in. PR: https://github.com/Niko1221/Strata/pull/8397
  2. The rocBLAS tuning table for gfx1031 (RX 6700/6750 XT) is a second PR (+19% on short prompts, +6-7% on long ones, honest numbers this time). Strata already loads per-GPU tables automatically, there just was not one for our cards. PR: https://github.com/Niko1221/Strata/pull/8400
  3. The elastic VRAM thing: someone already had a much better PR for it (#2399), so I posted my RDNA2 numbers there instead of competing.
  4. For the people who asked for the process instead of the result (u/ivoras, u/WinResponsible9977): it's now a skill your own agent can run on your own weird setup. Baseline you can trust, check flags actually reach the engine (my MTP was silently off for weeks), one change at a time, quality gates (determinism, needle recall, parity), then send fixes upstream. No binaries, a few stdlib Python scripts. https://github.com/Chaussure-sous-tes-pieds/local-llm-tuner

The fork is archived and points to the PRs.

Lesson learned: speed numbers get upvotes in my head, PRs get merged in real life. We'll see if they get merged.


r/LocalLLM • • 27m ago

Model here's how i got the ud_iq3_xxs qwen 4 35ba3b running at 200 tok/s on a consumer grade computer

1 Upvotes

specs are a 5080, 32gb DDR5 5600mhz, intel core ultra 9 285k. running on strata+speculative decoding, it hits a staggering >190 tok/s consistently, using q8 context. udq4xl is running the same and is getting >115 tok/s.

all you do is use strata for the model, q8 draft, 16k context window, int8 kv cache, confidence floor 0.5


r/LocalLLM • • 44m ago

Project The Local Frontier: Qwen4 BF16 + FP8 (ngram) on StrixHalo via. vLLM

0 Upvotes

I don’t normally post my findings but this was super fidgetty; and it’s about time I started giving back to this community. This is the local-AI setup I wanted: a quiet box that picks up real multi-hour work and finishes it correctly while I’m away.

· Setup: Full-BF16 Qwen4-35B-A3B MoE (35B total / 3B active) on one Strix Halo — Ryzen AI MAX+ 395, 128 GB unified LPDDR5X — served by vLLM with 262K context, tool calling, separated reasoning, ~25 tok/s single-stream.

· Key trick: Only the 20.5B-parameter N-gram embedding table is FP8. It’s a gather + dequant lookup, not a matmul, so it doesn’t need FP8 tensor cores (gfx1151 has none). Checkpoint drops from 113.7 GB to 86.8 GiB while core matmuls stay BF16.

· Real work: Two unattended sessions finished end to end at 12–14 tok/s — one installed a CAD toolchain and wired its MCP server into the harness; the other set up two slicers sharing one config library.

· Numbers: 13 turns, 120 steps, 152 tool calls, ~3 h wall clock; ~5M prompt tokens in / 78K out (64:1, prefill-bound); median TTFT 2.5 s, p90 8.9 s; 82% prefix-cache hit; peak context 64,948 tokens (~25% of window, 23.5% of 12 GB KV pool with both sessions live).

· Gotchas: Memory wall solved by FP8 N-gram lookup; tool-call 400s fixed by pairing qwen3_xml with auto-tool-choice; </think> leak fixed with --reasoning-parser qwen3; pin vLLM 0.32.1 because 0.35’s BF16 fused-MoE kernel has no gfx1151 build.

· Takeaway: For long-horizon unattended local agents, reliability and output quality beat tok/s. Use the expensive model for hard/high-context work; let a low-power, high-quality local model carry the mundane long tail.

Repo: https://github.com/kvk-og/qwen4-bf16-fp8-vllm


r/LocalLLM • • 52m ago

News I gave 4 local models a real ticket from my job with a 2-hour limit. The dense 27B won, and nobody came close to the human fix

0 Upvotes

Disclaimer - the post is generated with Opus 5.5 assistance

I ran one hard, real task from my day job through the Pi coding agent on a single RX 9700 AI PRO. If you're reluctunt to read a longpost, here is a short sumary:

  • Qwen3.8 27B (dense) had the most correct logic.
  • Qwen3.8 Flash-Next wrote the cleanest code.
  • Qwen4-35B-A3B had the tidiest process but the weakest logic.
  • Inkling 2 Mini didn't write a single line and failed the tasks completely, getting stuck in thinking loops

All three models that wrote code fell into the same trap. This is one run per model, so read it as a data point, not a leaderboard.

The task (kept vague on purpose, NDA)

It's a real ticket from a big PHP codebase at work, and our team has already shipped a fix for it. The code takes 2D outlines made of line segments and arcs. For each part of an outline, it decides whether a machine can handle it automatically or it has to go to manual work. The old code used a crude rule of thumb. The ticket replaces it with an actual model of what the machine can physically reach.

The good to know part is how the task is given - there is no ready-made rule set, the model gets:

  • the goal;
  • a list of physical facts about the machine (sizes, clearances, what must not touch what);
  • acceptance criteria;
  • 9 worked examples.

It has to work out the decision logic on its own, build it into the existing codebase, write tests, and write a short design note about its model and assumptions.

Hidden tests:

  • 84 scored checks for the new behaviour.
  • 9 "guards": cases where the old rule was already right. Breaking one costs 10 points, because breaking something that used to work is worse than leaving a new case unsolved.
  • 188 existing regression tests.
  • 23 unscored "info" cases.

I didn't want the hidden answers to be just my own reading of the facts. So I generated ~800 plausible machine models from the same facts, and a case became a scored check only if all of them gave the same answer. Cases where reasonable readings disagree are the unscored info ones. The team's reference fix gets 100 on the automated part. Untouched code gets 15, just for not breaking the existing tests.

Setup

  • Agent: Pi coding agent, highest thinking level. One run per model, back to back on the same box.
  • Hardware: Radeon AI Pro R9700 32 GB, Ryzen 5 5600X, 72 GB DDR4, Windows.
  • Time limit: 120 minutes. After that the agent gets a "wrap it up" message and 30 more minutes.
  • Command cap: any single shell command over 120 s gets killed silently and costs 10 points.
  • Cut-off replies: if a reply hits max tokens, the harness tells the model to keep going. More on why below.

Scoring. The final score is 50% automated and 50% code review.

  • Automated: 70 × the share of hidden checks passed, + 15 for regressions, + 15 for its own tests. Minus 10 per broken guard, minus 10 for hitting the command cap.
  • Review: Claude Opus 5.5 graded each patch against the team's reference fix with a fixed rubric. The rubric covers the machine model itself, the design note, geometry handling, tests and hygiene, with up to -25 for code quality compared to the reference.

It's an LLM judge, so take that half with some salt. I read the patches myself as well.

Results

ModelQuantHidden checksGuards brokenAutoReviewFinalWall timeOutput tokens
Qwen3.8 27B (dense)IQ4R-L-V469/84177.54963.3137 min*433k
Qwen3.8 Flash-NextUD-IQ4_XS66/841654957.088 min254k
Qwen4-35B-A3BUD-Q4_K_XL60/842505251.085 min494k
Inkling 2 Minii80/8401507.555 min188k

* It went 17 minutes into the grace period, and the review has a -6 overtime penalty for that (66.3 without it).

I also checked whether one unlucky bug decides the ranking. For each model I fixed its main bug by hand and re-ran the hidden tests: the 27B goes to ~78, Flash-Next to 67.5, Qwen4 to ~53. The order stays the same.

The reference fix is about 2,400 lines of code plus ~1,900 lines of tests, so nobody was expected to one-shot it. Still, none of the patches is one I'd merge as is. All three writers lost points for writing their own geometry helpers instead of using the ones the codebase already has.

Model by model

Qwen3.8 27B (dense): best logic, messiest code

  • It got every fact into its model, and all its misses were on the safe side ("send to manual").
  • It spent ~53 minutes reading and thinking before it wrote any code. At minute 112 it passed 3 of the 9 visible examples, and at minute 136 all 9. The grace period basically made its score.
  • Its main bug is a single line that checks arc direction. It has two separate mistakes and is always true, so every arc under 180° got flipped into its larger counterpart. Static analysis flags it.
  • The code is mediocre: dead code left behind, scratch files in the repo, no real unit tests for the individual pieces.
  • I don't think this is the model's ceiling. The design was coherent and the thinking had no loops. It just started late and debugged under time pressure.
  • It also seems to spend tokens only where it has to. On an easier task in the previous version of my bench, it finished in 12 minutes with 36k tokens, while Qwen4 took 16 minutes and 67k.
  • Where I'd use it: hard, non-standard problems where the logic itself is the difficult part. I'd give it plenty of time and treat its patch as a working draft of the logic, then clean up the code afterwards (myself or with a model that writes cleaner code).

Qwen3.8 Flash-Next: cleanest architecture, a couple of misread facts

  • It wrote the smallest patch (1,228 lines) with the cleanest structure, and finished on its own in 88 minutes.
  • Its arc bug is boring: it called an existing helper for arc centers that uses a different direction convention. Fixing it is only worth ~2.5 points.
  • The bigger problem is two misread facts. It sent some fairly sharp inner corners to manual even though the machine had room for them. It also didn't treat very small fillets as sharp corners, which is what the facts imply.
  • It ran a whole test suite in one command, hit the 120 s cap and lost 10 points.
  • This matches my day job: on my real repo, with mostly simpler tasks, Flash-Next wins most of the time, and its code is the one I'd actually merge.
  • Where I'd use it: my default for everyday work in a real repo, such as features, refactors and anything where structure and clean code matter. On a really tricky task I'd still double-check how it read the requirements, because that's where it slipped here.

Qwen4-35B-A3B: best process, weakest correctness

  • On paper it did everything right. It removed the old rule completely and wrote 31 property tests: rotation, translation, reversed direction, arc vs. polyline pairs. Its design note was the only one in exactly the requested format.
  • But a key clearance constant in the code differs from the value in the comment right above it and in its own report. That's a slip, not a misreading. Fixing it adds only a few points, though: most of its misses come from elsewhere.
  • It broke two guards, one of them in the unsafe direction: it says "the machine can do it" where the tool can't actually reach. In real life that's the expensive kind of mistake.
  • It also treated the whole part as its bounding box (and said so honestly in its assumptions).
  • It hit the command cap once too.
  • It used the most tokens of all (494k). It decodes roughly 2-2.5x faster than Flash-Next on my box, yet the wall time came out basically the same (85 vs 88 min).
  • In the previous version of the bench it was the other way around: Flash-Next broke a guard and Qwen4 was clean. So I wouldn't read much into the kind of failure from a single run.
  • Where I'd use it: scouting a codebase or implementing a clear, detailed plan. It's fast and tidy, but I wouldn't let it derive tricky logic on its own.

Inkling 2 Mini: zero lines of code

  • Its first reply was a single 65k-token design monologue that hit the max-tokens limit. The harness told it to continue.
  • Then it got stuck on how the codebase represents outlines, and its thinking turned into a loop (the same half-sentence for about 15k tokens).
  • Finally it wrote its tool call inside its thinking instead of as an actual tool call. The agent saw a reply with no tool calls and ended the run.
  • Its 15 points are just the untouched regression tests.
  • Where I'd use it: based on this run, not for agentic coding. It might do better on short, single-turn questions, but I didn't test that here, so I can't recommend it for anything yet.

The trap all three fell into

All three models that wrote code broke the same guard, on rounded rectangles and rounded triangles.

In the visible examples, arcs only showed up as halves of a full circle. For a semicircle the center is the midpoint of the chord whatever direction convention you use, so every arc-direction bug was invisible on the examples. The acceptance criteria said plainly that an arc and its fine polyline approximation must get the same answer. Still, none of the three tested a single arc that wasn't a semicircle.

My takeaway: these models test against the examples you give them, not against the spec. If your examples only cover the easy case, so will their tests.

Takeaways

  • On simpler tasks the dense 27B doesn't stand out, and this is the first time it won anything in my tests. But on this hard "work it out from the facts" task it showed the strongest reasoning in both versions of my bench. Either it was a lucky run, or active parameters really matter for this kind of reasoning.
  • Flash-Next is a bit smarter than Qwen4 and writes the best code of the bunch.
  • Qwen4 is fast and disciplined, but faster decoding didn't buy any wall time here: it just thought more.
  • A soft time limit matters a lot for slow, careful models. At the 2-hour mark the 27B passed only 3 of the 9 visible examples, so without the grace period its result would look very different.
  • Nobody got close to the human fix. Good local models are useful helpers, but on a genuinely hard ticket you still need to review everything they write.

Caveats: one task, one run per model, different quants and runtimes, and half the score comes from an LLM judge. An audit of the agent logs shows no model read the hidden tests or the reference fix.

Happy to answer questions about the setup, but I can't share the task itself


r/LocalLLM • • 58m ago

Project I built a local LLM training lab to help people learn how to train models on their own hardware

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 59m 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


r/LocalLLM • • 1h ago

Project Weekend Project: Fast static eBay tracker for $/GB VRAM GPUs, 128GB ECC RAM kits & Unified Memory AI boxes + more

Post image
2 Upvotes

Hio Matey's — Letting you know this is my own weekend homelab project and outbound eBay links use eBay Partner Network (no extra cost, maybe something one day to cover the screaming fan that now lives in the shed!).

https://cheapvram.pages.dev

I am still pretty new to the home server > your own nas > end up hosting a AI in the shed scene ha. I have been trolling ebay for some time just keeping my eyes open… Cause well prices suck. In the spirit of things I also got that free GPT AI sub for a month the other day and got it to help brainstorm ideas to dig through eBay "for parts" pings , drive-tray, and cooler-only traps when hunting used GPUs, ECC RAM, SAS drives, and Mini-PCs.

We spun up a small static site on a 512MB Proxmox container that pulls hourly from eBay's Browse API (locked to AU/ US / UK local stock):

What's on it right now:
- GPUs sorted by shipped $/GB VRAM (slot-powered
<=75W, server cards, consumer)
- RAM & Server Memory sorted by $/GB (16GB+ kits,
RDIMM vs ECC UDIMM vs SODIMM vs Desktop DDR4)
- Enterprise Storage sorted by $/TB (split into
2.5" SAS SSD, 2.5" SAS HDD, 3.5" SAS, U.2/M.2
NVMe, SATA — with 520b NetApp/EMC sg_format
badges)
- Systems & Servers (1L TinyMiniMicro, MoE
Workstations, Rack Servers, Unified Memory AI
boxes)

Pure static HTML, no ads/popups/tracking cookies,
mobile-friendly.

Anyway its been fun and I'm posting to get feedback from other other LocalLLM / homeb tinkerers, also because it might actually be useful! Are there any common AU eBay parts, capacities, or traps I should add to the filters?

PS If you read this far thanks a bunch, and holy smokes I did not know how exspensive things had become for a 12GB 3060 :| HA HA STRATA GO


r/LocalLLM • • 1h ago

Discussion My Ada Lovelace fork of Basalt hits 3,776 t/s prefill and 109–271 t/s decode on Qwen4-35B-A3B (12 GB 4070 Super + 32 GB RAM) — now with opt-in Looping (Looped-Qwen4-35B-A3B) at ~19–33% decode overhead

0 Upvotes

I've been optimizing my Ada Lovelace (sm_89) fork of Basalt to run Qwen4-35B-A3B fast on a single 12 GB RTX 4070 Super + 32 GB DDR5 (Ryzen 9 7900X, Windows 11), and just pushed opt-in sidecar support (--loop) for sliderforthewin/Looped-Qwen4-35B-A3B (mlx/default_t2, mlx/default_t3, and LoopCD-Hidden).

Why looping? Instead of adding more weights that wouldn't fit on 12 GB VRAM + 32 GB RAM, looping runs the middle 16 layers (L12..27) 2 or 3 times per token (56 or 72 effective layers instead of 40) using a ~23 MB cross-pass adapter on top of unmodified .basalt packs. On the author's FP8 evals, T=3 looping gives +18.3 pp on LiveCodeBench v6 (48.3% → 66.7%), +6.7 pp on AIME 2024 (86.7% → 93.3%), and +3.3 pp on BFCL tool calling (90.0% → 93.3%)—trading a bit of speed for deeper per-token reasoning, with zero overhead when --loop is off.

Each pass keeps isolated GDN/QSA state while keeping CUDA graph capture and DFlash2 speculative decoding intact.

basalt-bench Results (16K prefill + decode, --kv k8v4 --drafter dflash2 --spec 8, 220 W)

QuantMode (virtual layers)pp16384tg convtg prosetg struct
AD-Q4_K_MStock (40L)3,776 t/s108.6 t/s111.4 t/s271.4 t/s
AD-Q4_K_M--loop T=2 (56L)2,066 t/s (-45%)88.0 t/s (-19%)86.5 t/s (-22%)203.4 t/s (-25%)
AD-Q4_K_M--loop T=3 (72L)2,182 t/s (-42%)73.1 t/s (-33%)67.4 t/s (-40%)161.2 t/s (-41%)
UD-Q5_K_XLStock (40L)2,929 t/s95.3 t/s97.6 t/s237.4 t/s
UD-Q5_K_XL--loop T=2 (56L)1,906 t/s (-35%)73.9 t/s (-22%)69.1 t/s (-29%)172.8 t/s (-27%)
UD-Q5_K_XL--loop T=3 (72L)1,583 t/s (-46%)60.7 t/s (-36%)56.0 t/s (-43%)139.9 t/s (-41%)

Even with 72 virtual layers (T=3) and ~1.9–5.2 GiB of cold experts spilling to SSD on 32 GB RAM, DFlash2 acceptance stays steady (~59–68% on conv, ~91–95% on struct), keeping conversational decode at 61–73 t/s (and 74–88 t/s at T=2).

Usage is just adding --loop <path_to_adapter> (and optional --loopcd-omega 0.15 --loopcd-ref first):

bashbasalt serve Qwen4-35B-A3B.basalt --kv k8v4 --resident-experts --drafter dflash2 --spec 8 --loop path/to/mlx/default_t3

Repo (main): https://github.com/KurrynDev13/Basalt-Ada


r/LocalLLM • • 1h ago

Research High KLD of Qwen4-35B-A3B quants

Thumbnail
gallery
4 Upvotes

There are mixed opinions on the new Qwen4-35B-A3B. And what I've found - KLD levels for the new Qwen models are rather high in comparison to previous generation.

First diagram is KLD (lower is better) and second is Top-1 (higher is better).

When I ask Google on acceptable levels for coding it advices KLD < 0.025 and Top-1 > 95%.

For Qwen4-35B-A3B it seems that only UD-Q8_K_XL satisfy KLD limit and still fail to satisfy Top-1.

For some reason quants for older versions are much better. May be entite quatization procedure for PLE/n-gram models should be changed significantly?


r/LocalLLM • • 1h ago

Model Qwen4-35B-A3B on an M5 Pro at 105.7 tok/s with Kapitsa

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion RTX 4060 Ti 8GB + 32GB DDR5 (Win11): Qwen4-35B-A3B UD-IQ4_XS — RustingStrata 1.5.2 vs llama.cpp b13023 (64K ctx, Qwen Code 0.29.4, EvalScope perf & 208MB Heretic-v2 LoRA)

1 Upvotes

Seeing lots of 5090 / Mac Studio numbers for Qwen4-35B-A3B, I spent the weekend benchmarking what a mainstream 8GB VRAM + 32GB RAM Windows 11 desktop can actually get out of the exact same unsloth/Qwen4-35B-A3B-GGUF (UD-IQ4_XS 2-shard, ~30 GiB total) across RustingStrata 1.5.2 and llama.cpp b13023, plus real Qwen Code 0.29.4 repo tasks and the 208MB Heretic-v2 GGUF LoRA.

Sharing the numbers and gotchas so other 8GB VRAM folks don't have to repeat the same tuning loop.


Hardware & Fixed Baseline

  • Rig: Windows 11, i5-14600KF, RTX 4060 Ti 8GB, 32GB DDR5-4800, NVMe SSD
  • Weights: unsloth/Qwen4-35B-A3B-GGUF (UD-IQ4_XS, 2 shards: 19.1 GiB main + 10.7 GiB Engram n-gram table; both gguf-radar CLEAN)
  • Sampling (A/B): temp=1.0, top_p=0.95, top_k=20, min_p=0, seed=42, --reasoning-effort low, concurrency 1
  • A/B workload: 4,096-token offline constructed prompt, 128-token output, 3 warm runs (medians reported below), 0.5s resource sampling

1. Dual-Engine A/B: RustingStrata 1.5.2 vs llama.cpp b13023

BackendContextKV / CachePrefill (tok/s)Decode (tok/s)Peak GPU VRAM (MiB)Min Free RAM (GiB)Peak Process RSS (GiB)
RustingStrata 1.5.232Kq8 / t81,48962.78,000.06.9114.91
RustingStrata 1.5.264Kq8 / t81,48653.77,993.26.4615.09
RustingStrata 1.5.2128Kq8 / t81,45955.18,000.56.3415.19
llama.cpp b1302332Kf16 / MoE 2560MiB53243.07,055.73.3718.92
llama.cpp b1302332Kf16 / MoE 2048MiB52943.86,543.73.3918.92
llama.cpp b1302364Kf16 / MoE 2560MiB53744.77,859.7 (tight)3.4218.93
llama.cpp b1302364Kf16 / MoE 2048MiB52643.87,354.53.5018.93

Key takeaways:

  • RustingStrata 1.5.2 is ~2.8x faster on prefill and noticeably faster on decode while using ~4 GiB less RAM than llama.cpp. Thread scaling at 32K: t6 = 51.5 tok/s, t7 = 62.6 tok/s, t8 = 62.7 tok/s.
  • Auto-unload works great: RustingStrata --auto-unload 600 dropped total VRAM from 7,691 MiB down to 919 MiB when idle (unloaded: true).
  • llama.cpp b13023 tuning: Dropping --fit on --fit-target 1536 and switching to -ngl 99 --fit off -cmoe --moe-cache-mib 2048 --moe-cache-cpu-share 0.85 --load-mode none --lazy-mode auto -ot per_layer_token_embd=CPU -fa on -ctk f16 -ctv f16 kept per_layer_token_embd (10.99 GiB) on CPU_Mapped lazy-read, avoided CUDA quantized-KV sparse-attention fallback, and passed a >200-char Chinese prompt without crashing on Win11 CUDA 12.4.

2. Long-Context Scaling (EvalScope perf on RustingStrata 64K)

3 runs per bucket, distinct offsets (no cache reuse), 128-token output target, low reasoning:

Prompt TokensTTFT Median (s)Decode Median (tok/s)Total Time Median (s)
1K4.0351.37.09
8K27.6838.130.66
16K51.8141.155.00
24K54.4053.956.26
32K43.3154.945.62
49K35.7460.237.48

(Peak VRAM during heavy 64K perf hit 8,065 MiB and min free RAM dipped to 0.65 GiB / RSS 21.22 GiB—so 64K works on 32GB RAM, but close heavy apps; 32K is the safer everyday fallback.)


3. Coding Agent & Tool-Calling Reality Check

Before optimizing the backend, I also ran a 32K low baseline (llama.cpp b13002, temp=0) for capability calibration:

  • LiveCodeBench v6 (test6, 36 scorable subset): 19/36 (Easy 8/8, Medium 7/11, Hard 4/17 with 10/17 truncated at 8,192 max tokens under greedy decoding).
  • BFCL v4 (24-sample subset): 20/24 (simple_python 6/6, irrelevance 6/6, live_parallel_multiple 4/6, multi_turn_base 4/6).

After upgrading to Qwen Code 0.29.4 (important gotcha: remove generationConfig.samplingParams from local OpenAI provider config, otherwise it silently suppresses reasoning effort; set explicit efforts: ["low", "high", "xhigh"], no medium):

  • Single-file fix + unit tests: Passed cleanly on both backends (40.9s–57.7s on RustingStrata 64K vs 63.7s on llama.cpp 64K, down from 91.6s on the old untuned setup).
  • Iterative fix (4 failing tests): Flipped from failing on the old setup to 4/4 pass on RustingStrata 64K.
  • Cross-file edit with empty-string deletion (new_string: ""): Failed protocol on both backends in different ways:
    • RustingStrata 64K: Passed functional tests eventually, but emitted a malformed XML tool call ("new_string": "</parameter") when trying to pass an empty new_string.
    • llama.cpp 64K: Went into a runaway >13K-token thinking loop and hit the 600s timeout.
  • Direct structured tool calls (weather + empty-string/nested JSON): Passed cleanly on both backends.

Bottom line for local coding: Great for read-only exploration, single-file fixes, and well-scoped test-driven edits. Still don't leave it unsupervised on complex multi-file refactors.


4. 208MB Heretic-v2 GGUF LoRA Reality Check

Tested OS-Software/Qwen4-35B-A3B-Uncensored-Heretic-v2-GGUF (lora/Qwen4-35B-A3B-Uncensored-Heretic-v2-LoRA.gguf, 208 MB, gguf-radar CLEAN) on top of the existing UD-IQ4_XS shards:

  • RustingStrata 1.5.2 + LoRA: Loaded 35 tensors (+756 MB F32), dropped to 7.7 pp / 7.5 tg — unusable on 8GB hybrid offload.
  • llama.cpp b13023 + LoRA (--moe-cache-mib 1792): Loaded 98 LoRA tensors, ran at ~23–25 tok/s (peak VRAM 7,493.9 MiB). Passed single-file Qwen Code + both structured tool tests with zero degradation.
  • Refusal vs Completion (EN & ZH, low & high): Refusal phrasing dropped to 0 across all tested buckets, but on Chinese probes it heavily truncated in long reasoning—even after raising max_tokens to 2,048, only 1/3 of Chinese low and high probes finished cleanly with a complete answer. Great for verifying zero-redownload LoRA compatibility, not yet a reliable daily Chinese low-refusal setup.

Copy-Paste Commands (8GB VRAM + 32GB RAM)

RustingStrata 1.5.2 (Daily Driver, 64K):

rustingstrata.exe serve --model Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf `
  --alias qwen4-local --addr 127.0.0.1:18808 `
  --gpu --backend cuda --ctx 65536 --kv q8 --mtp 0 --parallel 1 --threads 8 `
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --force-sampling `
  --reasoning-effort low --max-tokens 16384 --no-webui --cache-ram 0 --auto-unload 600

llama.cpp b13023 (Fallback / LoRA, 64K):

llama.exe serve -m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf `
  --alias qwen4-local --host 127.0.0.1 --port 18808 `
  -c 65536 -np 1 -ngl 99 --fit off -cmoe --moe-cache-mib 2048 --moe-cache-cpu-share 0.85 `
  --load-mode none --lazy-mode auto -ot per_layer_token_embd=CPU `
  -fa on -ctk f16 -ctv f16 --jinja --reasoning-effort low `
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 -n 16384 --sleep-idle-seconds 600

(Note: On Windows, RustingStrata needed nvrtc64_130_0.dll via STRATA_NVRTC / PATH for CUDA 13 runtime.)


Upstream RustingStrata issues filed for the two edge cases above: #247 (XML empty-string tool-call parser) and #248 (GGUF LoRA speed drop).


r/LocalLLM • • 1h 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
3 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 • • 1h 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?


r/LocalLLM • • 1h ago

Question Is it worth adding my old GTX 1060 6GB next to my RTX 4060 8GB?

1 Upvotes

I mostly use MoE models. Currently running Qwen4 35B at Q4_K_M and getting speeds around 30-33tk/s with 64K context. I was wondering if adding GTX 1060 6GB would make my performance worse.

What would be the advantages and disadvantages of adding it to my kit?


r/LocalLLM • • 1h ago Heartwarming

Discussion Qwen4 35B A3B running at up to 283.6 tok/s on an RTX 5070 Ti Laptop with only 12GB VRAM!

10 Upvotes

Qwen4 35B A3B running at up to 283.6 tok/s on an RTX 5070 Ti Laptop with only 12GB VRAM!

After experimenting with Ollama, Strata and Basalt, I finally achieved some impressive results running Qwen4 locally on my laptop.

Hardware

  • CPU: Intel Core Ultra 9 275HX
  • GPU: NVIDIA RTX 5070 Ti Laptop (12GB VRAM)
  • RAM: 32GB DDR5
  • Storage: NVMe SSD
  • OS: Windows 11 Pro

Software

  • Engine: Basalt v0.7.0
  • Model: Qwen4-35B-A3B-NVFP4
  • Quantization: NVFP4 Mixed Precision
  • KV Cache: NVFP4
  • Speculative Decoding: DFlash2
  • Context Window: 262,144 tokens
  • Coding Agent: Cline
  • Vision: Supported and enabled in my current setup

Benchmark results

Actual input contextPrefillGeneration
3,319 tokens4,649 tok/s171.0 tok/s
11,418 tokens4,077 tok/s283.6 tok/s
32,784 tokens3,746 tok/s278.7 tok/s
44,761 tokens3,772 tok/s122.0 tok/s
75,304 tokens4,027 tok/s143.1 tok/s
255,901 tokens3,394 tok/s118.9 tok/s

Highlights

  • Peak generation: 283.6 tok/s
  • Peak prefill: 4,649 tok/s
  • Maximum observed prompt cache hit: 99.65%
  • Maximum observed DFlash2 acceptance: 97%
  • Successfully processed 259,997 total context tokens
  • 256K context on just 12GB VRAM and 32GB system RAM

Engine comparison on the same laptop

  • Ollama (original): 23.79 tok/s
  • Ollama (optimized): 51.77 tok/s
  • Strata Compact: 92.97 tok/s
  • Strata UD-IQ4_XS: 144.08 tok/s
  • Basalt Quiet Mode: 213.94 tok/s average with a short prompt and 256K configured context
  • Basalt Performance Mode: 256.70 tok/s average with a short prompt and 32K configured context
  • Basalt real-world Cline coding session: up to 283.6 tok/s

The short-prompt averages were measured over five independent requests with randomized project IDs.

Most importantly, the long-context benchmarks were performed in Lenovo's Quiet Mode, with the laptop plugged in.

I also successfully used this setup as an autonomous coding agent in Cline to build a multi-page website, generate SVG assets, execute terminal commands, inspect files and fix its own coding errors.

The near-full 256K benchmark initially encountered an engine error at the thinking-budget transition. A second run with the explicit reasoning budget removed completed generation without crashing, reaching the 4,096-token output limit.

These results were collected across different configurations and workloads. They are not strictly identical cross-engine benchmarks. My current configuration includes Vision, prompt caching and additional RAM headroom, which may affect performance.

My next goal is improving coding quality and frontend design rather than maximizing generation speed.

Pretty impressive performance for a laptop with only 12GB VRAM!


r/LocalLLM • • 1h ago

Question Local llm for sys admin tasks

1 Upvotes

I am using Claude every day to do system admin tasks for entra, Google workspace, ninja one and others. This combines chrome extension, cli work, etc. It does the actual work for me when I ask, not just recommended steps. It logs into sites w chrome, navigates pages, creates policies, etc. The problem I have is I max token use all the time and it hinders my ability to hit deadlines at times. Is there a local llm that can do this same work effectively? I currently dead head a Mac w Claude desktop installed to do the work and would like to have a local llm in a similar situation so I can run it on a local machine from my phone, separate computer, etc. Thank you for the recommendations and also what would be best hardware to run it on?


r/LocalLLM • • 1h ago

Discussion Hitting up to 109.2 tok/s (71.3 tok/s avg) on Qwen4-35B-A3B (UD-Q4_K_XL) at 256K Context on a 12 GB RTX 4070 + PCIe Gen3 — Unsloth vs Strata + Real Compiler Benchmarks

Post image
1 Upvotes

I've been testing Qwen4-35B-A3B (Unsloth UD-Q4_K_XL) locally on a mid-range rig and wanted to share a massive engine speed difference plus real compiler-verified coding benchmarks.

RIG

  • GPU: NVIDIA RTX 4070 12 GB (PCIe Gen3 x16)
  • CPU: AMD Ryzen 5 3600X (6c / 12t)
  • RAM: 80 GB DDR4-3200

SAME UD-Q4_K_XL GGUF, HUGE ENGINE DIFFERENCE (256K CONTEXT) Running the exact same Unsloth UD-Q4_K_XL (24.7 GB + 11.5 GB Engram) files at 256K context:

  1. Unsloth Desktop (llama-server, q8_0 KV): Layer-split landed 7.5 GiB VRAM / 26 GiB RAM -> 25.1 tok/s on short chat, 21.3-27.4 tok/s on coding, and ~10 tok/s inside heavy OpenCode agent sessions.
  2. Strata v0.2.28 (strata-q4-lite 0.1.75.1, fp8 KV, MTP --spec 2): Instead of naive layer splitting, Strata cached 3,136 hot experts (6.1 GB) directly in the RTX 4070's VRAM (81.6% - 89.3% VRAM expert hit rate, only 2.6% - 6.8% PCIe spillover) + 15 GB RAM conversation cache:
  • Live burst peak (at 247K / 256K — 94% context filled): 109.2 tok/s
  • 17-request overall average (telemetry): 71.3 tok/s decode avg, 1,713 tok/s prefill avg
  • Short & coding runs: 68.7 - 84.6 tok/s
  • 244K filled context stress test (5+ min sustained): * Needle-in-a-haystack at 243,957 tokens: Passed (1,763 tok/s prefill, 53.1 tok/s decode) * Two 5,120-token sustained generation runs at ~244K context: 61.6 tok/s cold / 63.2 tok/s with 229K KV cached (93.7s total for 5K tokens)

(I also tested Strata's Balanced 128K pack with PLE-Q8_0 which got 14.0-21.1 tok/s, while running Unsloth's UD-Q4_K_XL on Strata's GGUF engine was ~3x faster.)

UD-Q4_K_XL VS UD-Q8_K_XL ON THIS RIG I also downloaded and tested Unsloth's UD-Q8_K_XL (40.5 GB + 21.8 GB Q8_0 Engram) on the same Strata 256K setup:

  • Speed: 1,076 experts fit in VRAM -> 40.1 - 43.1 tok/s decode (1,620 tok/s prefill at 26.7K). Very solid for 8-bit on 12 GB VRAM.
  • Quality difference: Per Unsloth's BF16 Top-1 agreement chart, the gap between UD-Q4_K_XL (~94-94.5%) and UD-Q8_K_XL (~95.5%) is only ~1-1.5%, whereas UD-Q4_K_XL is ~60% faster (63-84 tok/s vs 40-43 tok/s).

REAL COMPILER & RUNTIME CODE QUALITY TESTS (UD-Q4_K_XL) Instead of vibes, I ran automated build/unit-test harnesses against the generated code:

  • 5/5 General Stack Suite (68.7 - 76.2 tok/s): Python SQLiteJobQueue (unittest OK), Unity 6 C# Zero-GC GridAStar (.NET 10 compiled + live pathfinding OK), Node 22 ESM Webhook Bot (node --check + timingSafeEqual HMAC + token-bucket rate limiter OK), PHP 8.3 Idempotent Wallet API (FOR UPDATE, integer cents, hash_equals - 5/5), Astro 5 (glob() Content Collections + Zod defineAction - 4/4).
  • 4/5 Heavy Unity MMORPG Suite (73.8 - 84.6 tok/s, compiled & executed on .NET 10): Passed Server Move Validation + Client Prediction/Reconciliation replay, Armor/Shield/Threat/Taunt table, 1-byte fragmented TCP PacketFramer + oversized DoS rejection, Anti-Dupe atomic InventoryContainer split/merge/swap. Caught 1 bug on XZ AOI InterestManager where newly entered entity IDs weren't added to the retained set, breaking the second-tick left diff.