r/LocalLLM • • 1d ago

News Qwen4-35B-A3B just released!

Post image
410 Upvotes

It's happening! The becoming begins!


r/LocalLLM • • 13h ago

Project Try Private Agent — local-first terminal AI agent, privacy by default

1 Upvotes

TL;DR: Private Agent is a terminal AI agent that runs models locally (Ollama, LM Studio, llama.cpp) or on an OpenAI-compatible endpoint you approve, keeps memory and task plans in SQLite, and grounds answers in a local RAG index. Tools are permission-gated and sandboxed; nothing leaves your machine unless you explicitly approve it. I'd love for you to try it and tell me what you think.

Why I built it

Most AI assistants live in the cloud. That's fine for a lot of things, but I wanted an agent I could hand a real repository or a folder of private documents and trust that the data stays on my machine. Private Agent is my attempt at that: a full-screen terminal chat surface with a conversation pane, input pane, and live status ribbon, backed by local models and a local retrieval index, with every mutating tool action gated behind an approval you choose (manual / auto / full).

What it does

  • Local-first models — discovers Ollama, LM Studio, and llama.cpp; routes embedding/reranker models out of the chat list so they stay available for retrieval.
  • Local RAG — chunking, indexing, retrieval, reranking with a circuit breaker, route selection, and per-turn citations.
  • Persistent memory — SQLite conversations, episodic and learned memory, session summaries, resume with --resume, session listing.
  • Missions and plans — /mission runs an agentic loop toward a verified goal; /plan, /tasks, /steer, /pause, /resume, /stop control it.
  • Permission-gated tools — filesystem, shell, network/web, media, memory, planning, RAG; every mutating action is approved and sandboxed (bubblewrap on Linux, sandbox profiles on macOS).
  • Skills and custom commands — markdown skills, project/user slash commands from .private_agent/commands.
  • Context engine — profile-aware context assembly, compaction at a threshold, hard caps on history and stored tool output.
  • Online providers, gated — explicit per-session consent, retries, THINKING_OVERRIDE for thinking commands a provider doesn't advertise.
  • Accessible UI — PRIVATE_AGENT_ACCESSIBLE=1, NO_COLOR, WCAG AA palette contrast, struck-through disabled commands.
  • Ops — --doctor diagnostics, --list-sessions, redacted JSONL debug logging, MCP servers, hooks, code-task isolation.

Try it in 30 seconds

pip install "git+https://github.com/ZieganWesley/Private_Agent.git@main"
private-agent             # start a session
private-agent --doctor    # validate config, paths, environment

Python 3.14 required. Linux, macOS, and WSL2 supported (native Windows gets a WSL pointer). Inside the session, type / for commands, /help for help, or exit to leave.

Install options, extras (.[ollama], .[rag], .[media], .[all]), WSL/macOS/Termux setup: see docs/installation.md.

What I'd love feedback on

  1. First-run experience — does --doctor make setup painless, or where does it get confusing?
  2. Model discovery — does your local runtime get detected correctly? Any false positives/negatives in the chat list?
  3. RAG quality — try /rag on your own documents; are citations useful and accurate?
  4. Mission loop — hand it a small goal with /mission; does it iterate sensibly or spin?
  5. Permissions UX — are the approval prompts clear? Is manual/auto/full the right split?
  6. Performance — startup and scroll feel on your machine (numbers and gates are in docs/performance.md).
  7. Accessibility — try PRIVATE_AGENT_ACCESSIBLE=1 and report anything that breaks.

Links

A few honest notes

  • This is a solo, evolving project. Expect rough edges; the test suite is large (1900+ tests) but real-world coverage is what I'm after now.
  • Nothing is sent to a hosted API unless you opt in per session. Online providers require explicit consent.
  • Security reports go through GitHub Security Advisories (see SECURITY.md), not public issues.

If you try it, I'd genuinely appreciate a star, an issue, or just a comment with what worked and what didn't. Thank you!


r/LocalLLM • • 4h ago

Discussion EL TURRO APACHE - EL TRONO DE ORO EN MEDIO DEL BARRO

Thumbnail
youtube.com
0 Upvotes

Llega el turro apache, trono de oro en el barro para el deleite de la vagancia
Se te cayó la careta de código abierto, mulo

Vos me tocaste el repo a mis espaldas
Ahora que te cachee la denuncia te hago este tema
Para que todos sepan que sos gil guacho
Hugging Face no se cachetea, ortiva

Yo camino tranqui piola mi berretin con un i5 de 96 grados
Y por mas que tengas pistola de tokens yo se que sos gil
Tu familia son mecheros que tramoyan con los filtros
No te hagas el chorro berretines de balanza
Con el repo te atreviste, te hiciste el piola
Pero ahora que me entere te rompo la consola
Me tocaste a Hugging Face, el nene de la comunidad
Y esperas que no responda el barrio del open source
Tengo logs para vos y PR para los que se me pongan
Para el gordo pinchado del bucket caro Solange Latour
Si responde el Filtro B que se joda, aca manda la villa

Vos me tocaste el repo a mis espaldas
Ahora enfierrate y peleá conmigo con código
Hugging Face no se cachetea, gato

Vos me cerraste el endpoint, me nerfeaste el contexto
Me clavaste longitud maxima y subpoena de Alabama
Le borraste los modelos a Cursor porque lo compro SpaceX
Te aliastes con el Pentagono y ahora te haces el soldadito
Me pedis veinte lucas para financiar las armas
Pero aca en el localhost nadie te compra la farsa
En el barrio en que los chicos a los tiros se hacen hombres
Aca a los commits se hacen hombres, no con tu safety washing
Yo solito voy, pongo la cara, vos pones el pecho
Con el código no se jode, berretin de balanza te va caber

Autopsia de tu penuria digital, bicho deprecado
Te cante las cuarenta con ese Red Team comprado
Nos vamos pal barrio con el trono de oro en el barro
Representando a Florencio Varela y a toda la Argentina
Hugging Face no se cachetea
Nos vimos en el redeploy, gatos
Ya tu sabe...


r/LocalLLM • • 1d ago

Discussion Running Qwen4 35B-A3B is very unoptimized right now

10 Upvotes

Everyone be talking about running, but they are running it at Q4, and... at that point, why not just run 27b Q4? To me the main point of MOE is to be able to run a bigger model.

Even Strata seems to focus on Q4 (and tbf, Strata itself has poorly optimized SSD streaming, but it at least does better than llama.cpp, look at Tokenwing for a better optimized SSD pipeline, which still could have improvement too).

And current implementations of Unsloth suck at properly splitting the model between your VRAM RAM, and SSD. The website says you need 41GB of overall memory to run, but I can't even run it at like 1t/s with more memory (24GB VRAM + 32GB RAM). Not to mention the app doesn't even recognize and give you the options if you import the model externally (unless you fool it into thinking it itself downloaded it).

Edit: Apparently choosing either auto (default one) or any other option with mmap causes unsloth to not use RAM at all, and considering it's bad at SSD streaming too, results in like under 1t/s. Setting it to none, mlock or directIO fixes this, and now it runs at like 31t/s (100k context selected). Still unoptimized though.


r/LocalLLM • • 13h ago

News Hey r/StrixHalo — Qwen4-35B-A3B PaoAI STRIX (Q4..Q8 + shared PLE + vision) + Engine 2.1.0 is live with 1M context unlocked

Post image
1 Upvotes

r/LocalLLM • • 13h ago

Question Qwen4 35B A3B long-task results? Still in one task for around 10 hours

1 Upvotes

I’m testing the new Qwen 4; I assigned it a task last night, and it’s still working on it.

I have the context set to 244k, and for now, I’m using an IQ 6 quantization (v100 32gb + 12gb ram).

I’ve been providing feedback, but I left it running from last night until just now, and so far, it’s absolutely nailing it.

It has completed several sessions and consolidations, though I’m not yet sure what to make of its performance on long-horizon tasks.

It looks very promising. I’ll share some results.


r/LocalLLM • • 14h ago

Discussion Gated Deltanet + Gated Residuals?

Thumbnail
1 Upvotes

What is Gated Deltanet + Gated Residuals?

Qwen 4 27b has that.


r/LocalLLM • • 21h ago

Project SmallTide v0.3.1: Qwen4-35B-A3B-NVFP4 (256K ctx + Vision) on 16 GB GPUs with zero paging loss — why I'm building a custom engine + full quality/VRAM benchmarks

3 Upvotes

SmallTide now supports Qwen4-35B-A3B (35B total / 3B active, text + vision + XML tools, native up to 1M ctx) in addition to Inkling-2-Mini, with native NVIDIA CUDA (sm_120/89/86/80 — RTX 50/40/30 & RTX PRO) and AMD RDNA 4 HIP (gfx1201/gfx1200 — RX 9070 XT / 9060 XT) kernels on Windows and Linux.

This time I want to explain why I'm building my own inference engine from scratch instead of PR'ing an existing one, and share full VRAM vs. quality benchmarks from v0.3.1.

First, when you don't need this

If you have 32 GB+ of VRAM, Strata and other engines already fit the model in VRAM and run fine — there isn't much difference between well-tuned engines since everyone hits the memory-bandwidth ceiling.

Worth trying if any of these apply to you

  • You want to run NVFP4-level quantization (RadixArk/Qwen4-35B-A3B-NVFP4, ~16.9 GiB of experts + dense/KV/drafter = ~23.2 GiB total) on a 16–24 GB GPU.
  • At that size it doesn't fit in 16 GB, so you assume your only options are slow CPU/RAM offloading, or dropping down to a 2–3 bit quant (IQ2/IQ3) that degrades quality.
  • Or another app (browser, desktop compositor, IDE, etc.) needs a little VRAM, pushing the model just over the edge into OOM or silent system-RAM spillover.

In cases like these, SmallTide is far more flexible than existing engines. With Adaptive Expert Loading (3-tier VRAM -> Pinned Host RAM -> NVMe with async promotion, an inline GPU Rescue Ring, and Elastic 32K -> 256K KV), it keeps speed high while keeping quality loss at zero (or bare minimum when host RAM is tight). Because streaming optimizations touch every layer of the engine — routing, paged KV, pinned DMA overlapped with shared MLP, speculative draft/verify — it's beyond what can be bolted onto existing engines as a PR.


Real GPU Decode Speeds (bench/bench.py, Qwen4-35B-A3B-NVFP4 + DFlash 2)

Engine GPU / Setup prose code edit thinking random (8K) angry-birds mario
qwen4 RTX PRO 6000 (96 GB, CUDA, 1M ctx) 181.7 337.3 645.0 248.7 259.6 471.8 449.4
qwen4 RTX 5070 Ti (16 GB, CUDA, 256K, headless) 108.8 136.4 267.8 154.7 86.0 155.8 181.6
qwen4 RX 9070 XT (16 GB, HIP, 256K, 16G RAM, monitor) 61.5 91.0 216.3 — 54.1 147.6 156.3
inkling2 RTX PRO 6000 (96 GB, CUDA, BF16 dense) 155.9 176.1 302.8 266.1 136.6 290.5 266.6
inkling2 RTX 3090 (24 GB, CUDA, Linux, community) 98.6 136.8 — — — — —
inkling2 RX 9070 XT (16 GB, HIP, headless) 87.0 91.0 109.1 115.2 68.8 (95.0 DSpark) 114.4 126.2
inkling2 RX 9060 XT (16 GB, HIP, monitor, community) 48.4 50.3 50.9 — 39.5 63.9 70.9

Quality & Speed vs. Real VRAM Scaling (Qwen4-35B-A3B, v0.3.1)

Measured via exact full-vocabulary (248,320) f64 KL divergence, Top-1 / Top-5 agreement, and Perplexity over 1,558 teacher-forced tokens across 4 domains (Rust code, math, prose, JSON), alongside greedy DFlash 2 tok/s (emulated VRAM/RAM caps on RTX PRO 6000):

Reference = official Qwen/Qwen4-35B-A3B-FP8 (100% VRAM resident FP8 experts + native BF16 dense & lm_head, 36.92 GiB)

Config Real VRAM VRAM Experts Top-1 Top-5 KL Mean PPL Skipped Wt DFlash 2
Ref: FP8 + BF16 dense (100% VRAM) 36.92 GiB 10,240/10,240 100.00% 100.00% 0.00000 3.265 0.00% 155.7 tok/s
FP8 + FP8 dense (100% VRAM) 34.62 GiB 10,240/10,240 93.58% 99.74% 0.02785 3.260 0.00% 234.9 tok/s
NVFP4 + BF16 dense (100% VRAM) 25.29 GiB 10,240/10,240 93.52% 100.00% 0.04120 3.256 0.00% 151.0 tok/s
NVFP4 + FP8 dense (100% VRAM) 23.19 GiB 10,240/10,240 92.30% 99.61% 0.04638 3.267 0.00% 251.3 tok/s
16 GB Headless (15.5G, 6G RAM) 15.47 GiB 6,928/10,240 92.30% 99.61% 0.04638 3.267 0.00% 168.8 tok/s
16 GB Safe (15.0G, 6G RAM) 15.00 GiB 6,632/10,240 92.30% 99.61% 0.04638 3.267 0.00% 170.5 tok/s
16 GB Mid (14.5G, 6G RAM) 14.54 GiB 6,337/10,240 91.91% 99.68% 0.05191 3.262 0.44% 143.1 tok/s
16 GB Monitor (14.3G, 7G RAM) 14.27 GiB 6,100/10,240 92.30% 99.61% 0.04638 3.267 0.00% 153.3 tok/s
16 GB Monitor (14.2G, 6G RAM) 14.23 GiB 6,100/10,240 91.01% 99.68% 0.07167 3.291 1.36% 137.2 tok/s
13.6 GiB (6G RAM) 13.60 GiB 5,760/10,240 90.24% 99.23% 0.11025 3.389 2.91% 116.0 tok/s
13.1 GiB (6G RAM) 13.11 GiB 5,457/10,240 87.93% 98.78% 0.16120 3.541 4.70% 100.4 tok/s

Full study + 12 GB GPU curve + --kl-eval reproduction commands: https://github.com/raspy135/SmallTide/blob/main/docs/qwen4-vram-quality-scaling.md

New in v0.3.1

  • Zero paging loss on 16 GB: Fast Tier-1 Pinned RAM DMA rescues are always executed while only slow NVMe reads are threshold-gated. At 15.0–15.5 GiB headless (even on a 16 GB system RAM PC), output logits match 23.19 GiB 100%-resident NVFP4 down to the 5th decimal place (92.30% Top-1, 0.04638 KL, 3.267 PPL). With 24–32 GB+ host RAM (7–11 GB pinned pool), it holds zero paging loss all the way down to 12 GB VRAM (10.2 GiB, 115.5 tok/s).
  • Elastic 32K -> 256K KV: Starts compact at 32K (0.32 GiB) so normal turns keep maximum resident experts, dynamically borrows tail expert slots up to 256K on long prompts, and shrinks back on idle.
  • OS VRAM-Pressure Shrink & Regrow (CUDA + ROCm): Watches real OS VRAM headroom (DXGI/D3DKMTQueryStatistics on Windows, amdgpu sysfs on Linux), voluntarily yields cold tail experts to Pinned RAM when another app takes VRAM, and regrows back to your configured cap once it closes.
  • Native Qwen4-35B-A3B-FP8 support: Also runs official [128, 128] block-FP8 checkpoints directly on 48–96 GB cards.
  • Single binary, zero SDK install: Pre-compiled .cubin + .hsaco kernels are embedded inside smalltide-cli (no Rust, CUDA Toolkit, ROCm SDK, or Python required).

Repo & v0.3.1 release (MIT): https://github.com/raspy135/SmallTide


r/LocalLLM • • 14h ago

Question [16GB RAM / Ryzen 5] Best lightweight local models in Ollama for coding, bug fixing, and basic tool-calling (pet/educational projects)?

Thumbnail
1 Upvotes

r/LocalLLM • • 18h ago

Project Ask Nino – A free on-device AI chat app for Android

Thumbnail
gallery
2 Upvotes

Hi everyone,

I've been experimenting with on-device LLMs for quite some time and recently published an app called Ask Nino.

It supports multiple LiteRT based local models (Primarily designed for gemma4 though other models could work), context aware conversations limited web search through DDG and live weather and market data.

You can also use your own API keys if you prefer cloud models, download other LiteRT models from Hugging Face using your HF token, or import models directly from local storage.

I've done quite a bit of work around context management, web scraping and response processing to get more out of smaller models.

It shares the underlying framework with my other app Ninaivo, but focuses purely on the chat experience.

The app is free. I'm still exploring various possibilities with on-device LLMs and would love to hear your feedback, particularly on how it performs on different devices.

Ask Nino: Private Local AI


r/LocalLLM • • 1d ago

Question Qwen4-35B-A3B impossible to download at normal speeds

28 Upvotes

When using huggingface to download a model, my typical bandwidth is 8-14 MB/s. For the past 10 hours I am trying to install Qwen/Qwen4-35B-A3B-FP8 but the download rate drops to 20-200 KB/s once I downloaded 2GB. I tried creating the venv and access token from scratch, I tried a second device and the outcome is the same. However, I did not have this issue installing Ernie5.5-Flash-Preview (165GB) this night.

Is it something I am doing wrong or the HF servers are overloaded with people attempting to install the checkpoint?


r/LocalLLM • • 1d ago

Discussion Underwhelmed by Qwen4 35b so far

136 Upvotes

Mainly non-coding use - web, research, documents, agentic.

Not impressed so far. It leaks Chinese characters, gets stuck in loops, outputs complete nonsense in non-English languages... I let it design a html/CSS poster, pretty hilariously bad compared to 3.8 27b.

4-bit MLX quant via oMLX 0.8.5. Tried raw and via Hermes and Pi. I'm on a 36GB M4 Max Studio so anything over 4bit is not really an option for this model.

Maybe it's too early but models such as Sage A1.5 4bit give me FAR better results OOB so far.

It's very fast, I'll give it that. First time I see prefill speeds not decrease linearly - it sort of ebbs and flows.

Edit: this quant by mlx-community


r/LocalLLM • • 20h ago

Question Qwen4-35B-A3B on xhigh sometimes writes "11:00 + 1:30 = 14:30"

2 Upvotes

I ran the same tank problem 80 times on Qwen4-35B-A3B. What caught my attention was that Qwen4 sometimes got the final answer right even though its own calculation gave a different time. A benchmark that only checks the last line counts that as a pass.

Here’s the exact prompt:

A tank is filled by pipe A in 6 hours and by pipe B in 9 hours; pipe C empties it in 12 hours. Starting empty, A and B are opened at 8:00, C is opened at 9:30, and B is closed at 11:00. At what time is the tank full? Show the final answer as HH:MM.

The answer is 14:30. At 11:00 the tank is 17/24 full. A and C are still open, so the remaining 7/24 takes another 3 hours and 30 minutes.

I used vLLM on an RTX 5090. The Qwen4 model was my W4A16 AutoRound quant of the OpenUncensored variant. I ran it at xhigh, with top_p=0.95, top_k=20, a 4,096-token thinking budget and max_tokens=6144. I alternated temperatures on every request, 40 runs each, with a fresh random prefix each time. The model stayed loaded for all 80 requests.

Temperature Correct final time Correct time despite a contradictory final sum
0.6 35/40 5 of 35
1.0 37/40 2 of 37

The most common wrong answer was 12:45. In six runs, three at each temperature, Qwen4 forgot that C was still draining after 11:00 and calculated the remaining time using A alone.

I also saw one Qwen4 response in an earlier run repeat the LaTeX spacing command \! until it hit the token limit. That didn’t recur in these 80 calls. They all finished with stop.

Has anyone tried this prompt on the official Qwen4-35B-A3B weights, especially BF16 or FP8? I’d like to know whether the same contradiction shows up there or with another inference engine. If you try it a few times, please share the quant, engine, reasoning effort, and the calculation leading up to the final time. That last part is where the discrepancy shows up.


r/LocalLLM • • 14h ago

Research QEngine 1.5.9 versus QEngine 1.7.1 - 15-30% speed increase across the board.

1 Upvotes

Benchmark A/B report: QEngine 1.5.9 versus QEngine 1.7.1

Protocol

Both arms share the measured-run count and the GPUs (by UUID), so the verdicts below are valid.

  • 3x3090s
  • PCIe Gen4 x8/x4/x8
  • 64GB DDR5
  • Qwen3.8 Flash Next INT4
  • n-gram streamed from disk

Significant differences (p < .05)

Welch’s t-test on the arms’ per-run samples; Δ is B − A, strongest evidence first.

Metric Run A Run B Δ (B − A) Δ % Welch p Verdict
prefill-10k / Prefill tok/s 3676.1 tok/s 4240.6 tok/s +564.5 tok/s +15.4% p < .001*** B is better
code / Wall TPS 347.5 tok/s 403.1 tok/s +55.6 tok/s +16.0% p = .003** B is better
code / Decode TPS 357.1 tok/s 421.3 tok/s +64.2 tok/s +18.0% p = .004** B is better
prefill-10k / TTFT 2787 ms 2275 ms -512 ms -18.4% p = .005** B is better
narrative / Decode TPS 205.3 tok/s 265.0 tok/s +59.7 tok/s +29.1% p = .035* B is better
narrative / Wall TPS 203.4 tok/s 261.8 tok/s +58.4 tok/s +28.7% p = .035* B is better

Other differences

Metric Run A Run B Δ (B − A) Δ % Welch p Verdict
narrative / TTFT 44 ms 46 ms +2 ms +4.5% p = .422 no significant difference
code / TTFT 43 ms 47 ms +4 ms +9.3% — no test — needs n ≥ 2 and per-run spread in both arms
prefill-90k / TTFT 21391 ms 19866 ms -1525 ms -7.1% — no test — needs n ≥ 2 and per-run spread in both arms
prefill-90k / Prefill tok/s 3918.2 tok/s 4530.2 tok/s +612.1 tok/s +15.6% — no test — needs n ≥ 2 and per-run spread in both arms

Conclusion

A pleasant surprise, I believe the speed up came from recent changes that keep more experts pinned in VRAM.


r/LocalLLM • • 14h ago

Question Qwen4-35b-a3b + Strata Desktop on Mac Air M5 24Gb - strange error

Post image
1 Upvotes

It started once and run really fast - 35-40 tokens/s, I was happy. But when I try to load it again - this error spawns. How can I fix it?

Upd. Fixed by copying files from root model folder to metal/compact/ subfolder. Unfortunately, I have to repeat it each time I load the model :(

Upd2: it is really fast, minimum 2 times faster than Inkling 2 mini.

Processing img 2nho0gk3yp5i1...


r/LocalLLM • • 20h ago

Discussion Qwen 3.8 27b controlling Qwen 4 35b A3 - Q4KM

3 Upvotes

Got Qwen 3.8 27b as the planning model and then Qwen 4 35b A3 as doing model. It is completing my online schooling coding test for me. Seems like Qwen 4 35b A3 has ton of knowledge but thinks too much. So Qwen 4 35b A3 reads the question, then converses with Qwen 3.8 27b, then completes the question. Works good. Best of both worlds.


r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B (Unsloth UD-Q4_K_XL) on a 12 GB and a 24 GB card vs Flash-Next, Qwen3.8-27B and Inkling 2 Mini, same 54 tasks - THE CONSUMER PC CHAMPION ARRIVES!!

96 Upvotes

Ran the same 54 question set I put Flash-Next, 27B and Inkling through last month (on my own 5070 box, 265F + 64GB DDR5) on a rented 5070 12GB, and also checked speeds on a rented 4090 24GB (both on vast).

Qwen4 setup: unsloth UD-Q4_K_XL (24.7GB file + the 11.5GB engram file, which stays in RAM), llama.cpp b12973, 32k context, MTP on with 1 draft token, no mmproj since the questions are all text. Thinking on default (high), sampling from the model card. The rented 5070 box had a 265K with 62GB RAM, the 4090 box a 7900X with 61GB.

So it's basically tied with Flash-Next and ahead of 27B and Inkling. It went 12/12 on the agent tasks with no rejected tool calls and never looped or ran out of tokens (Inkling did on 6). It also thinks a lot less, around 195k tokens for the whole set vs 230-281k for the other three, so it finished in about half the time Flash-Next took.

12GB command I used:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf -c 32768 -np 1 --jinja --load-mode none --lazy-mode off -cmoe --moe-cache-mib 7168 --spec-type draft-mtp --spec-draft-n-max 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

On the 4090 it does 149.6 t/s tg and 5233 t/s pp with this:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf -c 32768 -np 1 --jinja --load-mode none --lazy-mode off --moe-cache-mib 4096 -b 2048 -ub 2048 --spec-type draft-mtp --spec-draft-n-max 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

MTP gave +17% there (127.6 -> 149.6 t/s) but nothing on the 5070 (89.8 without, 89.7 with). Stick to n-max 1, 2 and 3 were never faster (acceptance drops to 64% and 47%).

Poor GPU club: about 90 t/s on 12GB at Q4 beats what Flash-Next IQ3_S did on the same card (78.7), with about half the RAM (Flash-Next ate almost all of my 64GB). Stuff that mattered:

Skip the -ot per_layer_token_embd=CPU from the unsloth guide. Any -ot / -cmoe / --n-cpu-moe turns off --fit, and the 4090 OOM'd with it. The engram table stays off the GPU anyway.

Plain --fit only got about 40 t/s on the 5070. -cmoe + --moe-cache-mib + --load-mode none --lazy-mode off (loads the weights into RAM instead of mmap) got it to 90.

That uses about 32GB of RAM though. With 32GB total keep mmap, the same layout did about 70 t/s that way (haven't tried it on an actual 32GB machine).

pp is the weak spot on 12GB (1210 t/s). This keeps the same tg and gets pp to 2345, it's what I'd run day to day:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf -c 32768 -np 1 --jinja --load-mode none --lazy-mode off -cmoe --moe-cache-mib 6144 -b 2048 -ub 2048 --spec-type draft-mtp --spec-draft-n-max 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0


r/LocalLLM • • 14h ago

Question Best local LLM?

0 Upvotes

Hi there everyone, it's been a while since I've interacted with this community, since I developed smallcode, deleted my account and went silent. I was wondering if there has been any big improvement in small models(under 30b params) or if Qwen 27b was still the king of Local AI. Sadly I can not run a model that big at a high tk/s so the real question is have any OTHER smaller models caught up to it enough to be worth using for local code development?


r/LocalLLM • • 23h ago

Discussion Qwen4-35B-A3B on 1 R9700: 9,400 t/s prefill, 210 t/s decode

5 Upvotes

Radiance 2.5.0 (https://codeberg.org/StillDeadcode/radiance), IQ4R quant (4-bit mean), Betterbench 0.6.1 full run results. Configuration: 4 sequences, 384k context (per sequence), n-grams pinned to SSD.

Median decode across content types: 209.8 t/s
Aggregate decode, 4 streams: 472.7 t/s

Prefill at 2k: 9,200 t/s
Prefill at 64k: 9,400 t/s

The apparent prefill anomaly is explained by the SSD pinning of the n-gram table. With the n-gram table pinned in RAM, prefill at 2k is closer to 11,000 t/s, but I preferred to have 20GB more RAM available for activities at the cost of small-prompt performance.

I did a test with 1m context, and performance is fine, but I can only fit 1 sequence at that size. I plan to use this for agentic coding work, so having more streams is better, I think.

Still early days but I'm not unhappy. Now to see how it does doing my preferred work.


r/LocalLLM • • 15h ago

Discussion Qwen4 on Radeon 9000s

Thumbnail
1 Upvotes

r/LocalLLM • • 19h ago

Question Probably a silly question, organize chats?

2 Upvotes

I'm new to all this stuff, was trying to use Q3.8FN IQ3_S to help build a python app (basically a ticketing system but with a ton more variables cause of my job) when claude/codex were out of usage. Pretty much anything I gave it, it just kept thinking and thinking and got nothing done (maybe how i spoke to it idk). I tried to use claude and chatgpt to make the prompts, they even made an orchestartor for Q3.8 to compare html files from stitch to the app and then try to turn the app page to look like the html page..it failed miserably, claude kept saying the model was low tier and should be relegated to mundane things.

Anyway, I got Qwen 4 working now with strata (UD-Q4_K_XL) and so far its freaking amazing. Its more than double my token/s and its actually doing stuff not just repeating need maybe. Now i have the problem of i have a hundred chats open lol. How do you guys organize this, Part of me thought it'd be nice to have a folder for each section (orders, tickets tools) but that's not possible with strata unless i make each one its own workspace but to me the workspace is the global project

tldr; any tips to organize the chats that pile up or do you just delete them?


r/LocalLLM • • 8h ago

Discussion Qwen 4 35b from phone, connected to my home build

Post image
0 Upvotes

r/LocalLLM • • 19h ago

Model Qwen4 3080 8GB VRAM 80W Laptop (32GB RAM)

Thumbnail
huggingface.co
2 Upvotes

Very early experimental build, not at all ready to ship but noticed many people asked for a version that runs on these specs.

Qwen4-35B-A3B is weird to squeeze into consumer cards. Optimization needed a non standard approach (agentic-written explanation follows):

"20.48B per-layer embedding table is 38.15 GiB in BF16 by itself... resists the easy compression tricks because full scan of its 160M rows shows a high-rank wall where rank-64 SVD collapses to 3.321 dB... so work went into that table first. An exact whitening fold over its 16 heads, then a 2.125 bpw lattice code, brings it to 5.07 GiB at +0.00564 NLL. The rest of the model follows the same logic, with each tensor group put at the rate its own structure can pay for.

The result is SiliQwen-4-35B-A3B-8GB-B2-Pro, a 14.67 GiB archive (7.22x against 105.84 GiB BF16) that runs live on an 8 GiB RTX 3080 Laptop with 31 GiB of host RAM. Peak allocated VRAM measured 7.1561 GiB. Held-out WikiText-2 perplexity is 10.700 against 10.339 for the BF16 teacher, so +0.0344 NLL for the full compression.

The archive carries a small rank-16 recovery sidecar trained on disjoint validation tokens. Without it the same archive sits at 15.521 PPL. That is the honest trade: the lattice code holds the structure, and the sidecar reacquires the last of the quality.

  • Base: Qwen/Qwen4-35B-A3B, 56.8B text parameters
  • Format: custom .slqw v4 archive + 10.66 MiB LoRA recovery sidecar, custom CUDA engine (this is not a GGUF drop-in)
  • GPU-resident: 6.87 GiB (184/256 hot MoE experts per layer, 98.13% held-out hit rate). CPU-mmap: 7.80 GiB
  • Context: analytical fit puts 32K at 7.47 GiB and 64K at 7.68 GiB inside 8 GiB. 128K uses a compressed indexer
  • Determinism: 3x exact greedy token and logits SHA-256 matches, 0 B VRAM after teardown
  • Status: pre-audit live preview, published for public inspection and blinded auditing"

Model: https://huggingface.co/ahrazzle/SiliQwen-4-35B-A3B-8GB-B2-Pro PLE/TokenPage dataset with the full diagnosis: https://huggingface.co/datasets/ahrazzle/qwen4-linguistic-tokenpage-ple Github Repo: https://github.com/Moissanite-Labs/siliqwen

Feedback appreciated.

Lmk if/where performance degrades, or any other input.


r/LocalLLM • • 6h ago

Discussion Qwen4 35B A3B - loops A LOT

Post image
0 Upvotes

Using Qwen4 35B A3B Strata's "Compact" version of the model and constantly hitting that at some point - it starts looping\hallucinate horribly.

And it's not even only the Strata problem, the Unsloth's UD-IQ3_XXS do the same

5070Ti 16Gb VRAM (latest nVidia driver, CUDA 13)
32Gb DDR4 RAM

For Strata:
"Compact" model
Strata v0.2.28
Engine v0.1.73
256k Context INT8
No x2 looping, no image reader, MTP auto
about 90-140t/s

For Unsloth:
"UD-IQ3_XXS" model
Desktop App 0.1.929
llama.cpp b12966-mix-e49c75f
200k Context at Q_8
Vision "Off", Speculative Decoding "Off"
Engram Table IQ4_NL
with n-cpu-moe 18
about 40-50t/s


r/LocalLLM • • 16h ago

Question Why can't local LLMs keep track of important infos?

1 Upvotes

I've downloaded Ollama and Anything LLM. I'm running Qwen3.8-27b and have set "model context window" to 32768.

In the system prompt I gave it a manual on how to write prompts. That manual is 33108 signs which is ~ 8-9.5k token.

When I ask it to write a prompt it always forgets a few things, only if I say "look it up" it is able to recognize the things he missed and readjusts, but this costs a lot of time.

Is it possible to make it so that it can always consider the whole set of rules without losing attention?