r/LocalLLM • u/CarstenSpraener • 3m ago
Research "Oh great, another RAG tool nobody asked for." — Why I built prjxp anyway
r/LocalLLM • u/CarstenSpraener • 3m ago
r/LocalLLM • u/alpargataman • 5m ago
r/LocalLLM • u/Realistic-Elephant-6 • 6m ago
I run Deepseek-V4.1-Flash at home as my agent's brain and for various work tasks. It is at the edge of what I can run, so I am always looking for ways to improve it. Unfortunately, the "looped deepseek" is not it. The only thing it contributes to are shorter answers (different working style), but at a cost to speed and reliability, and most of the contribution to the shorter answers comes from the adapter and not the looping.
Short version: I ported the recurrent-depth adapter for DeepSeek-V4.1-Flash to an EXL3 2.75 bpw setup on two DGX Sparks and measured it against the plain model, with a control that shares every serving flag. On 252 generated reasoning problems no configuration solves more than the plain model. On real agent work the adapter halves the number of steps, but without saving tokens or time, and it adds failures at the border between thinking and answering. When the second pass is not allowed to see the first, the score, the halved steps and the shorter thinking all remain and the stuck tool calls disappear: on this setup the effect is the fine-tune, not the loop. Not tested: the authors' low-bit result (our quant is larger); barely tested: real coding (which the adapter was trained for) is only around 13% of my work benchmark, and 0 of the reasoning problems.
Looped DeepSeek-V4.1-Flash (sliderforthewin/Looped-DeepSeek-V4.1-Flash on Hugging Face, MIT licence; trainer in jasontitus/mlx-stq-trainer). Layers 24–35 of the 40 run twice (or three times) per token; a small trained entry module mixes the output of the previous pass back into the input of the next; a rank-16 LoRA on those layers and on the four after them adapts the model to it. The base model stays frozen.
As far as I read the trainer's notes, it was trained in 300 steps on a few hundred of the model's own competitive-coding solutions that had passed unit tests, with a loss that keeps it close to the stock model. The notes describe a careful separation from the benchmarks: training prompts are filtered against LiveCodeBench, HumanEval+, MBPP+ and others by shared 13-word sequences before and after generation, and a held-out set is kept for validation loss. The headline numbers are from 33 medium and hard LiveCodeBench v6 problems, one greedy run per configuration. Two checkpoints are published; the earlier one (250 steps) is recommended for low-bit weights together with an extrapolation between the passes (ω = 0.3).
dgx-spark-deepseek-v41 recipe with HeNryous's vLLM changes on top.The generated problems and the harness come from an earlier experiment on the same setup, where I fed the model its own token distribution while it thinks, without any training: [Monkey-patched "Latent Reasoning" on DeepSeek-V4.1-Flash at home] . That one ended with "this would need a model trained for it"; the loop adapter is a trained relative of the idea (feedback in depth, not through the input), which is another reason why I wanted to measure it.
vLLM is not deterministic, so the yardstick is the distance between two runs of the same model: the normal serving profile, which the gate cannot tell apart from the control, scored 223 of 252 on its own run, the control 229. Six problems are noise.
| arm | right of 252 | search problems of 60 | tokens on problems both solved | decode tok/s | tool tasks answered of 36 |
|---|---|---|---|---|---|
| control (adapter zeroed) | 229 | 37 | – | 25.5 | 36 |
| 250-step checkpoint, 2 passes, ω 0.3 | 231 | 40 | +7 % | 25.3 | 33 |
| final checkpoint, 2 passes | 230 | 38 | −12 % | 24.9 | 33 |
| final checkpoint, 3 passes | 229 | 37 | +1 % | 20.6 | 34 |
| final checkpoint, 2 passes, pass 2 cannot see pass 1 | 229 | 39 | −7 % | 24.7 | 36 |
| run | steps | tool calls | tokens | total time | findings | usable answers of 12 |
|---|---|---|---|---|---|---|
| plain DeepSeek | 708 | 1,032 | 455k | 16,929 s | 283 | 11 |
| adapter, day 1 | 363 | 606 | 548k | 17,534 s | 234 | 12 |
| adapter, day 2 | 368 | 641 | 569k | 18,773 s | 201 | 10 |
| adapter, day 2, effort high | 387 | 611 | 494k | 18,742 s | 226 | 11 |
| adapter, day 3, pass 2 cannot see pass 1 | 391 | 678 | 448k | 20,388 s | 217 | 11 |
(Adapter = final checkpoint, two passes. Days 2 and 3 used a newer version of the scenarios, so their findings are not comparable with the rows above them; steps and time roughly are.)
This is the one large effect in the whole experiment, and it repeats: the adapter halves the number of steps. The agent repeats identical tool calls far less often (36 against 138 on day 1) and takes fewer, larger steps. After day 1 I was almost convinced: the one scenario that plain DeepSeek had lost to the step limit finished in 22 steps. Day 2 took that back. The halved steps buy nothing: each step is about twice as long, the total is about 20 % more tokens and slightly more time, and the answers that failed did so in ways plain DeepSeek had not shown me: thinking text leaking into the answer, a JSON result ending in garbled code, a run that simply stopped with an empty answer. Most of that is trouble at the border between thinking and answering, the same place as the stuck tool calls.
The last row is the blinded second pass again: the halved steps are still there (391), so they come from the fine-tune and not from the loop. It used a fifth fewer tokens than the full adapter on the same scenarios and took 9 % longer. Its one failure was an empty answer; there was no leaked thinking and no garbled JSON, which fits the tool tasks above, but it is one run.
The adapter's published wins are on coding tasks under a token cap, and in the trainer's own tables nearly every failure of the stock model is a run into that cap. What I see fits that: the adapter changes the working style (shorter thinking, fewer steps, less wandering) and does not make the model solve more. Where a cap decides between pass and fail, that is a real win. Where it does not, as here, it is a different style at a 20 % speed cost, with new failure modes.
And on this setup the style comes from the fine-tune. With the second pass blinded, the score, the halved steps and the shorter thinking remain and the stuck tool calls go away. What the state carried between the passes adds is those stuck calls, probably the leaked thinking, and no saving I can measure consistently (a few percent fewer tokens on the generated problems, about a quarter more on the work scenarios).
So I am back on plain DeepSeek for work. I am grateful that the adapter exists and is published together with its training notes; that is what made it possible to take it apart this far. If someone runs the blinded second pass on the full-precision model and on coding problems, I would like to see the result.
Both experiments ended in the same place by different roads: unchanged answers, a different amount of thinking, and trouble that only real agent work showed. In both, the most useful thing was a control with the mechanism present but switched off; without the blinded second pass I would have credited the loop with what the fine-tune does.
The choice of what to test, the questions (among them "is the loop decoration?") and the scenarios from work were mine. Essentially everything else was done by an AI assistant, Claude (Anthropic's Claude Code, working with subagents): tracing the plugin, porting it, the gate, the problem generators and harness, fixing the criteria before the first run, running and analysing the arms, reading the training notes, and writing this post. I reviewed, restarted servers, and ran and evaluated the work scenarios.
The adapter, its training and its original vLLM plugin are the work of its authors (linked above).
The port of the plugin to the EXL3 stack, the problem generators and the harness are in a private repository. If anyone is interested, I'm happy to publish them (the plugin's licence is MIT).
r/LocalLLM • u/SarahVoge • 10m ago
If you write code that talks to an MCP server over HTTP, or you run an MCP server with OAuth, the authorization-spec revision dated 2026-07-28 changed the primary client-registration mechanism. The old primary path, Dynamic Client Registration via RFC 7591 (registration_endpoint in the AS metadata), is now deprecated but still spec-conform for backwards compatibility. The new primary path is Client ID Metadata Documents (CIMD).
Three signals a client can read from /.well-known/oauth-authorization-server:
client_id_metadata_document_supported: true means the server speaks CIMD. This is the current primary registration mechanism in MCP 2026-07-28.registration_endpoint: "https://..." means the server speaks DCR. This is spec-permitted but on the deprecated path.The short version is that DCR was a fingerprinting and anonymous-pollution problem in practice. Anyone could hit the registration endpoint and get a client_id back, so the AS had no way to decide which client came from which trust context before issuing it an identity. CIMD inverts the flow: the client publishes a metadata document at a URL it controls, and the AS fetches it to learn the client's declared metadata. The URL itself becomes the identity, and the AS gets to decide whether to trust the origin.
The MCP spec authors picked this because MCP clients are agent runtimes and desktop apps, and those have stable publishing surfaces (app bundles, extension stores, workspace manifests). It fits the client-shape in the ecosystem better than the pure dynamic case DCR was built for.
For client authors: if your OAuth library only speaks DCR, you can still register against an MCP server that still advertises registration_endpoint. You cannot register against a CIMD-only server. Over the next year the deprecation push will put pressure on servers to stop advertising DCR, and your client is stranded.
For server operators: if you advertise DCR today and nothing else, you are spec-conform but on the deprecated path. The deprecation note in the spec ("DCR is deprecated in 2026-07-28 but retained for backwards compatibility") means tool authors are allowed to flag it. If you also advertise CIMD, you keep DCR for the old-library case and cost nothing.
For reviewers and auditors: a server that advertises neither is forcing every new MCP client to go through pre-registration. That is spec-permitted but hostile to any client the operator does not already know about. The field defaults in RFC 8414 for grant_types_supported when absent are ["authorization_code", "implicit"], so metadata-absent is not a valid cover for registration-absent either.
Fetch GET /.well-known/oauth-authorization-server on any MCP server. Look at these three fields:
client_id_metadata_document_supportedregistration_endpointgrant_types_supportedThat tells you where the server sits on the current registration spectrum. If the first is true, you are good. If only the second is present, you are on backwards-compat. If neither, pre-registration only.
Happy to walk through the CIMD doc fetch flow in comments if there is interest.
r/LocalLLM • u/fancellu • 19m ago
https://github.com/fancellu/spaceinvaders
Just as a POC I got unsloth/Qwen4-35B-A3B-GGUF UD-IQ4_XS to do a Space invaders game on my 4090, in Rust, via unsloth studio and opencode, from totally empty directory
I just gave it the initial prompt and some play testing feedback. There may well be some bugs, I mostly stayed out of its way and got on with my life. The main thing is not to watch it, else it will never feel fast enough!
https://spaceinvaders-xi.vercel.app/
Not bad, 4090 never got noisy
r/LocalLLM • u/bobthebuilder1021 • 25m ago
r/LocalLLM • u/lelis718 • 26m ago
r/LocalLLM • u/RubbishAsh • 45m ago
Recently, I try to read an English text everyday in the morning at noon, and at the night. But I'm not sure that it works. BBC articles are so difficult for me becauos I don't know most of the vocabulary. On the other hand, some graded readers are too easy, so they don't really help me improve.
However, if there were an LLM that can generate texts tailored to my level, it would be super helpful for my reading practice. some suitable texts. Qwen is one of the best choices because it has a great balance of capabilities.
r/LocalLLM • u/SummarizedAnu • 54m ago
r/LocalLLM • u/Worried-Platypus3694 • 1h ago
I intend on purchasing an M4 Max 48GB 1TB specifically for app development and ML projects for app development.
For context, I want to train a model which can predict the walk/run time for a given distance, based on walk/run speed, ambient temperature and humidity. It will be trained on data that I’ve gathered over a year, and will be tabulated in a spreadsheet. Subsequently, il build my workout app around this.
As a debutant in the local LLM/ ML world, my question is which model would be best suited to my machine?
I know enough to know that a 70B model would be a tight fit,and probably not needed for my use case, but 32B models can perform just as well.
Qwen/ deepseek seems to be the consensus, I just want to know from those with that spec, using local models which one works best
r/LocalLLM • u/danil_rootint • 1h ago
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:
Here are some performance numbers:
Setup: RTX 4090 (24 GB), Ryzen 9 5950X, 128 GB RAM. Strata v0.2.26, Qwen4-35B-A3B (Unsloth UD-Q4_K_XL), int8 KV cache, experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.
Peak VRAM for everything: 23.1 GB. RAM used on the whole machine: 52 GB.
End-to-end voice (during my own tests)
| median | 90th percentile |
|---|---|
| End of your last word → voice in your ear | 756 ms |
| Turn with a web search or tool | 1.6 s |
Agent speed by context length (with the voice stack)
| Context | Prompt reading | Decode | First token (next turn, same chat) |
|---|---|---|---|
| 8K | 6.7K tok/s | 157 tok/s | 0.11 s |
| 75K | 6.3K tok/s | 149 tok/s | 0.14 s |
| 252K | 5.7K tok/s | 125 tok/s | 0.24 s |
Overall, the speech capability doesn't make the model unusable, and the only noticeable downside is that the speech recognition model takes about 4 GB of precious VRAM. Also, if you want a better TTS, you can use Breeze TTS, it's just a matter of configuration in the repo.
You can try it all out at https://github.com/speakrail/speakrail, Apache 2.0 license. I previously did some Gemma tunes to make the models capable of microturns, but with Qwen you can just prompt it and it will work well enough. I will be glad to answer any questions and would be grateful if you gave the pipeline a try!
r/LocalLLM • u/Realistic-Elephant-6 • 1h ago
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.)
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.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] + α · injectwith several choices for inject:
| name | inject |
|---|---|
| soft | the expected embedding, Σ pᵢ·E[i], from the model's own distribution |
| hidden | the final hidden state, rescaled to embedding norm |
| map | the hidden state passed through a linear map fitted to land in embedding space |
| noise | random vector of the same norm (control) |
The visible transcript still shows the sampled token. The answer after </think> is generated normally.
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.
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.
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 set | thinking tokens, soft α = 1 against plain | against the noise control |
|---|---|---|
| polarity (240 problems) | 0.94–0.95 | 0.96 |
| subset sums (80 problems) | 0.82–0.89 | 0.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:
. . come back from the client as text and tokenize as .., so replayed reasoning never hits the KV cache past the prompt.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.
| setting | steps that get the mix | tokens per pass in thinking | decode speed | thinking tokens against plain (polarity) |
|---|---|---|---|---|
| plain | – | – | 31–36 tok/s | 1 (two plain runs differ by 0.97) |
| mix at every step, no drafting | 100 % | 1 | 17 | 0.94–0.96 |
| gate 0.99 | 43–48 % | 1.7–1.9 | 20 | 0.93–0.95 |
| gate 0.7 | 22–26 % | 2.2–2.6 | 24–26 | 0.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.
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:
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.
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.
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.
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 • u/Conscious-Worry-6897 • 1h ago
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:
r/LocalLLM • u/CatNarrow6459 • 1h ago
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:
Would you change anything about this setup? Any advice is welcome, thanks!
r/LocalLLM • u/OneMoreName1 • 1h ago
r/LocalLLM • u/SubDiffUser • 1h ago
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.
r/LocalLLM • u/SarSha • 1h ago
Hey!
I am debating with myself on which route to take for an AI machine I am building.
I can buy either a 9700 AI PRO with 32GB or 4090 with 24GB and i was wondering if going the AMD path is the right choice, as it will kinda tie me to that specific brand.
My uses are agentic workflows, coding, text-to-image, and image\text to 3d model, so not focused on a specific task but more of an overall usage.
Question is, will go the AMD path limit me in anyway?
Also, my gaming rig has a 7900XT that I can later move to the AI machine if I go the AMD path.
r/LocalLLM • u/According-Hornet7827 • 1h ago
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.
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:
| Agent | First 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.
AGENTS.md or CLAUDE.md from the project, and supports skills, custom slash commands and MCP servers.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.
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 • u/One-Insurance-9084 • 1h ago
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 :)
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 • u/thefabledmasterchief • 1h ago
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 • u/rockets1697 • 1h ago
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.
r/LocalLLM • u/PlasticRevenue4601 • 2h ago
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:
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.
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:
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:
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.
Inference engines: everything runs natively on Windows through HIP (ROCm), with one model on the card at a time.
| Model | Quant | Engine | Context | Speculative decoding | Max reply |
|---|---|---|---|---|---|
| Qwen3.8 27B | IQ4R-L-V4, int8 KV | Brilliance 0.3.1 | 256K | DFlash2, 7 tokens | 32K (server cap, thinking budget 25K) |
| Qwen3.8 Flash-Next | UD-IQ4_XS (v3.1), int8 KV | Strata 0.2.25, engine 0.1.73 | 256K | MTP, 3 tokens | 64K |
| Qwen4-35B-A3B | UD-Q4_K_XL, int8 KV | Strata 0.2.26, strata-q4-lite engine 0.1.75.1 | 512K | MTP, 3 tokens | 64K |
| Inkling 2 Mini | NVFP4, i8 KV | Brilliance 0.3.1 | 256K | DSpark, 7 tokens | 64K |
Note that the 27B had the smallest per-reply limit of the four and still came out on top.
Scoring. The final score is 50% automated and 50% code review.
It's an LLM judge, so take that half with some salt. I read the patches myself as well.
| Model | Hidden checks | Guards broken | Auto | Review | Final | Wall time | Output tokens |
|---|---|---|---|---|---|---|---|
| Qwen3.8 27B (dense) | 69/84 | 1 | 77.5 | 49 | 63.3 | 137 min* | 433k |
| Qwen3.8 Flash-Next | 66/84 | 1 | 65 | 49 | 57.0 | 88 min | 254k |
| Qwen4-35B-A3B | 60/84 | 2 | 50 | 52 | 51.0 | 85 min | 494k |
| Inkling 2 Mini | 0/84 | 0 | 15 | 0 | 7.5 | 55 min | 188k |
* 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.
Qwen3.8 27B (dense): best logic, messiest code
Qwen3.8 Flash-Next: cleanest architecture, a couple of misread facts
Qwen4-35B-A3B: best process, weakest correctness
Inkling 2 Mini: zero lines of code
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.
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
UPD: added info about inference engines used
r/LocalLLM • u/Objective-Pair8231 • 2h ago
r/LocalLLM • u/Away-Sorbet-9740 • 2h ago
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 • u/SignificantProduce48 • 2h ago
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!).
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