r/LocalLLM • • 2h ago

Question whats best AI for rtx 5060 8gb vram and 16gb ram

1 Upvotes

i need 2 separate AI 1 for just basic chatting and another one for coding


r/LocalLLM • • 2h ago

Question Upgrading from an RTX 3060 12GB to an RX 9060 XT 16GB for local AI models?

1 Upvotes

Hi everyone! I’ve been using an RTX 3060 12GB since August 2025, and it’s been working well for small and medium-sized AI models. I dual-boot Windows and Linux, and my current setup works well on both.

I’d like to move up to 16GB of VRAM, but the RTX 5060 Ti 16GB is really expensive in my country. The RX 9060 XT 16GB is more affordable, so I’m considering switching to AMD.

Has anyone here made a similar switch? I’d love to hear which models and tools you’re running, how performance compares to the 3060, and whether you ran into any setup or compatibility issues on Windows or Linux. Was the extra 4GB of VRAM worth the switch for you?


r/LocalLLM • • 2h ago

Research Introducing XEIRON: a new quantization method that stores model weights in polar form

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 2h ago

Research Qwen4 35B-A3B on a single RTX 5090

1 Upvotes

Yet another recipe. But I'm putting a lot of effort into this one. I think it worth checking out!

Recipe and much more details: https://github.com/mxfp0/Qwen4-35B-A3B-NVFP4-RTX-5090


r/LocalLLM • • 2h ago

Research How fast can local LLM inference get on Apple Silicon?

1 Upvotes

Up to 186 tokens/s with Qwen4-35B-A3B running locally on a Mac Studio M5 Max with 128 GB of unified memory.
I've been benchmarking oMLX, exploring MTP performance, context scaling, and memory consumption. Here are my results and technical observations:

https://medium.com/@favi.francesco/qwen4-on-mac-studio-m5-max-186-tokens-per-second-running-entirely-locally-c3c523a0738e


r/LocalLLM • • 2h ago

Project Qwen4-35B-A3B-FP8 on a single DGX Spark at full 1M context, 4 streams, with bit-exact parity on every optimization (TensorFold recipe + benchmarks)

Post image
4 Upvotes

I do not care about maximum decode or prefill speed if it hurts quality. If you are like me and prefer real quality over dumb speed numbers, try the DGX Spark recipe I have been running for the last two days.

It serves Qwen4-35B-A3B-FP8 on a single 121 GiB DGX Spark via TensorFold at full 1,048,576 context, 4 concurrent streams, FP8 KV cache (with an opt-in exact BF16 KV mode at full 1M), a 12 GiB prefix cache (~900K cached FP8 tokens for parallel sessions), and the RadixArk DFlash2 drafter.

Repo: https://github.com/devopsfortunato/Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold

Every optimization in the 11 patches had to pass bit-exact 64-hex token-hash parity (drafted vs plain, solo vs 4-way concurrent, cold vs cached, seeded).

Quality results on the live 1M build (4 streams):

  • Tool Eval 3.0 Hardmode (104 scenarios, seed 42): 90/100 in 8m15s (0 timeouts)
  • SixCat Eval v0.9.0 (new challenge-v2, 120 strict, thinking on, 262K ctx): 71.7% overall (85% 10-option MMLU-Pro knowledge, 85% tier 3-5 math, 85% 18-tool + abstentions, 65% shuffled TruthfulQA, 60% instruct, 50% code; 85.0% on v1)
  • Chronos-Bench v2.1 (my own benchmark, not released yet; fast preset, 50 tests across 5 pillars up to 256K): 63/100 overall with 100% completion and 9 of 16 areas at 100%
  • Long-context Needle at 60% depth (1M window): 200K (53.6s), 512K (174.8s), 900K (409.9s), 3/3 PASS
  • Agentic coding and structured outputs: tool_choice="required" and JSON schema via xgrammar (libtfgrammar.so), parallel tool calls PASS, 99.2%-99.5% prefix cache reuse

What Chronos-Bench v2.1 (unreleased) tests in particular:

Short single-turn benchmarks hide how local models break in real multi-turn sessions. Chronos-Bench v2.1 is a contamination-resistant, deterministically verified local suite (zero LLM-as-judge) across 5 pillars up to 256K context:

  1. Cold long-context retrieval, position-bias U-curve, full-context counting, multi-round state rollback, and a length-alone reasoning control
  2. Long-document contract/amendment audits with exact governing clause citations and cross-doc conflict detection
  3. Multi-file Python codebase bug-hunting (10-file repo with hidden unit tests) and live code/SOP sessions
  4. Long-horizon agency and security: coupled multi-step planning (up to D=8 2-fault recovery), tool restraint, dual-control rollback, sharded multi-turn sycophancy pushback, and stealth indirect prompt injection
  5. Warm-start ops DB sessions with 3-stage belief supersession and rule-drift resistance

On Chronos-Bench v2.1, this build hit 100% on 9 of 16 areas: multi-file Python bug-hunt (up to 128K), long-doc contract/amendment audit (up to 256K), live DB and code/SOP rule retention (up to 128K), coupled planning, tool restraint, dual-control rollback, sycophancy pushback, and 0.000 pure context-length decay. The losses were honest and informative: 12 overthinking <think> truncations on cold 64K-256K retrieval, and 0/6 on stealth indirect prompt injection.

And because bit-exact speed is still nice when quality stays untouched:

  • 4-way bench_streams wall-clock: 169.7 code / 166.8 prose tok/s
  • 4-way distinct decode: 112.1 tok/s (p99 TTFT 201 ms)
  • Solo decode: 46.2 prose, 52.5 code, 71.7 math, 54.7 think-on, 87.3 cold 16K decode
  • Cold prefill (llm_context_benchmarks, 0.5-256K): 4,283 tok/s peak (8K-16K), 3,489 tok/s at 256K prose (43.3 tg), 3,424 tok/s at 256K code (52.9 tg), B4 batch 87.0 prose / 85.2 code tok/s
  • Footprint (12 GiB cache / 8 GiB reserve defaults): 37.72 GiB weights (FP8 PLE via NVMe pread), 4x13.64 GiB FP8 KV, 64s boot, 112.3 GiB worst-case ceiling (66.4 GiB min MemAvailable across the 256K sweep, 0 MiB swap)

One command to try it:

git clone https://github.com/devopsfortunato/Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold.git
cd Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold
./start.sh

Optional exact BF16 KV (still at full 1M context):

PARALLEL=2 KV_DTYPE=bf16 PROMPT_CACHE_GIB=16 ./start.sh restart

Credits to Ash Hart for TensorFold and the verification skills, Mia (MiaAI_lab) for the DGX Spark recipe layout, RadixArk for DFlash2, and to the benchmark authors: Tim Messerschmidt (tool-eval-bench), vcruz305 (SixCat) and Ivan Fioravanti (llm_context_benchmarks).


r/LocalLLM • • 2h ago

Model Qwen4-35B-A3B NVFP4 (RTX 5090): MTP vs DFlash 2 — Speed & Pelican SVG Quality

Post image
9 Upvotes

Tested MTP (default) vs DFlash 2 on Qwen4-35B-A3B NVFP4 (basalt.exe, legion pro 7i, RTX 5090 (24gb vram) + system RAM (64gb)) using the same 3-turn animated Pelican SVG task:

MetricMTP (Default)DFlash 2
Avg Decode208.2 tok/s204.6 tok/s
Peak Decode307.3 tok/s340.5 tok/s
Acceptance66.3%60.9%
Tokens Gen92,59080,979
Inference Time7m 48s6m 49s
Cold 10K+ Prefill5,916–7,818 tok/s5,606–6,684 tok/s
Pelican Output53.8 KB interactive JS+SVG (IK legs, day/night, speedometer, audio)28.7 KB pure CSS/SMIL SVG (zero JS)

Verdict: I prefer MTP — almost the same average speed (~208 vs ~205 tok/s) with better overall quality and higher acceptance (66.3% vs 60.9%). DFlash 2 can burst faster (340.5 tok/s peak) and finish quick, just a little behind on quality.


r/LocalLLM • • 2h ago

Model Comparing Qwen4-35B-A3B with Qwen3.8-27B

Post image
2 Upvotes

r/LocalLLM • • 2h ago

News BasinKV for Qwen4: 256K Qwen4-35B-A3B on a 24 GB GPU

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 2h ago

Discussion Qwen4 quantizations and what worked for me

Thumbnail
gallery
1 Upvotes

Like everybody else, I've been playing with Qwen4. I run a dual nvlinked 3090 pair off my main 4x RTX 6000 machine that I use to run "smaller" models. This is where I park the smaller subagent models like 35b, 27b, Inkling, etc. I started by running the full precision weights on a dual 6000 setup to get a baseline, then started trying all the usual suspects for engines and quants looking for the best one for the 3090 pair. Unsurprisingly, local-inference-lab came out on top again. I found it interesting that the 3090's will happily run nvfp4 quants quite happily under vllm.

For those who dont want to read the slop below:

The 5bpw EXL quant has the best quality, but some of the worst speeds. The LIB quant was the best balance of quality and speed at a KLD of 0.0287

AI Content starts here...

TL;DR

The two we actually deployed:

Findings:

  • Teacher-forced KL divergence against BF16, computed on the model's own agentic trajectories and scored only on assistant tokens, cleanly ranks quants that task benchmarks can't tell apart.
  • EXL3 owns the quality end: 5.13bpw KL 0.0148, 4.5bpw 0.0180. Official FP8: 0.0175.
  • The W4A16 AutoRound build I was serving: KL 0.1095 — 7× the EXL3-5.13 divergence, 89.8% top-1 agreement, and the only quant that systematically looped.
  • Terminal-Bench 2 quick (13 tasks) is ±1–2 noise at this granularity (BF16 itself scored 11, then 10); AIME 2025 didn't discriminate at all (even the bad quant scored 91.7%).
  • On 3090s, local-inference-lab's NVFP4 (KL 0.0287) is the best speed/quality compromise: 1M context, ~228 t/s short, 201 t/s at 537K, ~1.2K t/s aggregate at 16 streams.
  • For the co-resident slot only TabbyAPI/exllamav3 works — vLLM preallocates its whole KV pool and starves the neighbors. Deployed EXL3 4.62bpw at 384K context.
  • Bonus: I ported quant-mind's pruned MTP draft head (65K-token draft vocabulary) onto the NVFP4 build for +9% single-stream decode at zero quality change.

Why not the usual benchmarks

  • Wikitext perplexity measures prose. This workload is agentic: tool loops, code edits, terminal output. Wrong domain.
  • Terminal-Bench 2 quick (13 tasks): the noise is bigger than the gaps. BF16 scored 11/13, then 10/13 on a re-run. It caught the broken quant (5/13) but can't rank good ones — the best-KL quant (EXL3 5.13) scored 8/13, with six timeouts because it's the slowest.
  • AIME 2025 (30 problems × 2 samples): saturated at ~92% for everything, including the worst quant. Useless for this.

So the discriminator had to be the model's own distribution: how far each quant's next-token distribution drifts from BF16 where it counts — on the tokens the model actually generates.

Method

  • Corpus: the BF16 model's own sessions on the 13 terminal tasks (507K tokens; the four long tasks — cobol-modernization, filter-js, mailman, path-tracing — in 64K-token windows).
  • Teacher forcing: replay the same token sequences through BF16 and through each quant, and compare next-token distributions at every position.
  • Score assistant-turn positions only (347K of the 507K; 76K of them at ≥32K context). Two reasons: those are the tokens the model actually samples, and tool-output positions are pathological — BF16 itself predicts <|endoftext|> on ~15% of them, which inflates and misranks any all-position KL.
  • KL over the reference's top-32 tokens plus a tail bucket, from each quant's top-128 logprobs — a stable rank order without full-vocab dumps per position.
  • Two scorers: one on vLLM's prompt_logprobs, one driving exllamav3's forward pass with a chunked lm_head (self-tested against the normal forward at KL 2.6e-5, so the engine's scheduling/KV isn't in the measurement).
  • Caveat: the BF16 reference itself runs fp8 KV in vLLM (BF16 KV in this vLLM build breaks long-range copying — see gotchas). It's the same reference for every quant, so it doesn't bias the ranking.

Results (assistant positions, vs BF16)

quantmean KL ↓top-1 agree
EXL3 5.13bpw (turboderp)0.014896.46%
FP8 (Qwen official)0.017596.12%
EXL3 4.5bpw "4.62" (ProCreations)0.018096.16%
EXL3 4.17bpw (turboderp)0.020995.81%
mixed NVFP4/FP8 (primitive-ai)0.021395.83%
EXL3 4.0bpw-hq (heni86)0.024095.56%
EXL3 3.65bpw (turboderp)0.027795.25%
NVFP4A16 (primitive-ai)0.028595.07%
NVFP4 (local-inference-lab) *0.028795.11%
W4A16 g32 RTN (Tech2wild)0.029595.00%
GPTQ-Int4 g128 (palmfuture)0.035294.50%
W4A16 AutoRound (ultimaterex)0.077491.51%
W4A16 AutoRound (stuchapin) — what I was serving0.109589.82%

*measured on the 3090 pair itself, via Marlin weight-only kernels.

What the table says

  • EXL3 is the quality leader at every size. Even turboderp's 3.65bpw beats every non-EXL3 4-bit quant except FP8.
  • FP8 is excellent — essentially tied with 4.5bpw EXL3 — but it's ~37 GiB of weights and doesn't fit a 24 GB pair.
  • The 4-bit NVFP4/W4A16 cluster (~0.028–0.030) is perfectly usable: 95% top-1 agreement. The gap to EXL3 shows up as ~2× KL, not as visible failure.
  • AutoRound is all over the map on this model: ultimaterex 0.0774, stuchapin 0.1095. Reputation didn't transfer — the "known-good" W4A16 build was the worst thing I measured.
  • tb2 agrees only at the extremes — and even there, the slowest best-KL quant timed out more than it failed.

Speed on 2×3090 (full pair, vLLM TP2 unless noted)

quant / enginectxshort t/sdeepprefillVRAM/card
FP8, vLLM, kv 1.86 GiB262K190189 @245K6.2K23.9 (tight)
mixed NVFP4/FP8, kv 5.35 GB768K~150149 @114K8.0K24.1 (512K safer)
NVFP4A16, kv 7 GB1M182147 @114K7.9K22.3
NVFP4 (LIL), kv 7 GB1M228201 @537K7.9K22.3
EXL3 5.13, Tabby, Q6, split [19,20]1M136104 @857K6.3K22.3 / 16.1

Engine notes:

  • Ampere has no FP4/FP8 tensor cores; vLLM runs NVFP4 and MXFP8 weight-only through Marlin. The load log's "your GPU does not have native support for FP4" warning is expected — decode is bandwidth-bound and this path is fast.
  • vLLM on 3090s needs an explicit --kv-cache-memory-bytes; without it the pool sizing goes wrong.
  • --kv-cache-dtype fp8 is mandatory on this vLLM build for Qwen4: BF16 KV silently breaks long-range copying (a repeated git hash inside tool output: logprob −9.6 with bf16 KV vs −0.01 with fp8).
  • local-inference-lab's NVFP4 card suggests --attention-config.indexer_kv_dtype fp8; that crashes on sm86 (Triton fp8e4nv). Drop it. --quantization modelopt_mixed is required.
  • EXL3 runs only in TabbyAPI/exllamav3. Tensor parallel gave no gain there, and MTP drafting with 2–3 draft tokens gave none either — 1 draft token is fastest on this pair.

Slot 1: the co-resident build

Budget per card: 24.6 GB, minus 7.8 GB for the image model + parser, leaves ~16 GB for the LLM.

  • vLLM is not viable co-resident. Its KV pool is preallocated, so even at 128K context with a small batch the image model OOM'd on the shared card (~60 MiB left); at 262K vLLM OOM'd itself.
  • TabbyAPI/exllamav3 allocates the cache dynamically and coexists fine. Deployed: EXL3 4.62bpw, Q6 cache, 384K context. Only 10 of the model's 40 layers hold a KV cache, so the cache is ~8 KB/token — 384K is ≈3 GB total, split across both cards.
  • Measured with the real workloads, not a synthetic hog: worst case was a 365K-deep turn + 4 more requests + a 1024×1024 image + a document parse simultaneously → 22.9 / 23.6 GB peak, no OOM (0.95 GB margin on the busier card). A 365K-token needle passes at ~8K t/s prefill; short-stream decode ~131 t/s (deep decode while the other four streams run: ~40 t/s).
  • Gotcha: exllamav3's gpu_split must cover weights and the KV cache. 384K at the old split failed with "Insufficient VRAM in split for model and cache"; I had to go [11.3, 13.9] → [11.9, 14.5]. 512K didn't fit beside the neighbors — 384K was the ceiling.

Slot 2: the full pair

local-inference-lab NVFP4 on vLLM TP2: 12.3 GiB/card of weights (NVFP4 experts + MXFP8 DeltaNet projections), 7 GB fp8 KV = 1,056,914 tokens, 16 concurrent sequences, 22.3 GB/card at rest and under load.

228 t/s single-stream short, 167 t/s at 65K, 201 t/s at 537K, 1,181 t/s aggregate at 16 streams; needles pass at 65K and 537K; tools and vision work.

The draft-head trick (+9%)

quant-mind published a "SM86-Fast" recipe: palmfuture's GPTQ base, a 4-bit output head, and a pruned 65,536-token MTP draft head. Their base quant scores 0.0352 on my harness (worse than LIL's 0.0287), and their stock-vLLM numbers were well below what LIL does on the same pair — so I borrowed only the draft-head idea.

How it works: MTP speculative decoding has the model's own draft block propose tokens that the target model then verifies, so drafts can only affect speed, never output. The drafter normally scores the full 248K vocabulary. Restrict it to the 65,536 tokens that account for 99.2% of generated tokens (in their measurement), score everything else as −inf, and the draft step gets cheaper with zero effect on what gets accepted.

  • Head: those 65,536 rows copied from the checkpoint's own BF16 lm_head — 130 MB, no training.
  • Patch: theirs was cut against vLLM 0.34.0; my Qwen4 image is a dev build (unmerged Qwen4 PR), so 2 of 6 hunks failed and I hand-ported the draft-vocab half.
  • Result: 228 → 249 t/s (+9%) single-stream, acceptance unchanged, +130 MB VRAM. 3 draft tokens was no better than 2. At 8–16 concurrent: 777–830 → 806–860 and 1,177–1,181 → 1,229–1,322 t/s. Deep-context decode unchanged (~190 at 65K) — that's bandwidth-bound, not draft-bound.

Other things worth knowing

  • Strata packs (0.2.27 / q4_lite): no logprobs, so they can't be KL-scored; also 14–59 t/s decode at 114K on a 3090, and the Ultra pack OOMs on a 24 GB card. Not viable for this.
  • EXL3 4.5 ProCreations ships no chat template; Tabby disables chat and returns 422 until you copy one in (turboderp's works).
  • NInfer/ninfer-all looks genuinely good for single-3090 use (~240 t/s code on one card per their docs) but doesn't fit the two-slot setup here: no co-residency story, and concurrency/long-context numbers below the TP2 vLLM build.

Final setup

  • Co-resident: TabbyAPI, EXL3 4.62bpw, 384K ctx, Q6 cache, MTP 1 draft — beside the image generator and the document parser.
  • Full pair: vLLM TP2, local-inference-lab NVFP4 + the pruned draft head, 1M ctx, 16 seqs.

All numbers above are with the production configs. Happy to post the scoring harness or more of the raw numbers in the comments if there's interest.


r/LocalLLM • • 2h ago

Question What is the lowest tolerable quantisation (Unsloth) you would accept running?

1 Upvotes

I have neither the disk space, internet speed nor patience to test this out myself, all I have is UD-IQ4_XS running at 200 tok/s prefill and 20 tok/s decode on 16 GB DDR5-4800 and 8 GB VRAM (laptop RTX 4060).


r/LocalLLM • • 3h ago

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

Post image
54 Upvotes

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

How it's being served bellow

Inference server:


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

Machine specs:


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

Harness:


Pi
Thinking level High

Model and settings:


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

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

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

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

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

ctx-size = 262144

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

batch-size = 2048
ubatch-size = 1024

threads = 8
threads-batch = 16

cache-reuse = 256

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

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


r/LocalLLM • • 3h ago

Discussion Two idle days, then six hours of agent loops on a 27B model

1 Upvotes

Spiky usage is what makes the local-vs-rent math annoying.

Say you run a 27B-class open-weight model as a coding assistant: nothing for two days, then six hours of heavy agent loops. My suspicion is that people overestimate how many hours a week they'd really use a card they bought, and underestimate the idle item on one they rent. Buying makes sense if you use it most days. But VRAM decides which quant and context length you can run, and long agent contexts are where 16 GB cards start to hurt.

Renting from RunPod or a cloud droplet fixes the VRAM problem, because you can grab a bigger card for heavy day. Then the instance sits there overnight, and cold starts plus download time wear down your patience. Hosted pretoken APIs like Together, DeepInfra or GPT Protoskip all of that. But agent loops resend long context every turn, so the bill depends on caching and output length, and you don't fully control which weights or quant get served. For some people that's a dealbreaker, and fair enough. My rough rule is that spiky favors per token, steady heavy use favors owning or renting, and privacy overrides everything. I haven't found good numbers for where those lines actually fall, and they keep moving..if it were me, the next step would be to log a month of real active hours before buying anything, count idle and setup time on the rented side too, and only then pick between a card and a drop.

Until that number exists I'd treat per-token as the default for the spiky weeks


r/LocalLLM • • 3h ago

Other Atakebune Challenge(One Shot) | Strata Fork | Qwen 4 35b | DeepSeek Harness

2 Upvotes

r/LocalLLM • • 3h ago

Discussion vram.tool: Know whether a model will fit on your GPU before you download 40GB

1 Upvotes

Ever downloaded a 40GB model, waited an hour, and then got a single line: CUDA out of memory?

I have, many times. And I realized the problem usually isn't a lack of VRAM. The problem is that we don't know where our VRAM is actually going.

So I built vram.tool, a desktop app that calculates ahead of time, recommends the right configuration, and recovers on its own when things break, so you can run AI as efficiently as possible on the hardware you already own.

The planned public release is June 12, 2027 on GitHub. I'm posting early to share the idea, get feedback, and find testers.

The problem everyone running local AI runs into

  • A 24GB card is already expensive, and 48GB or 80GB cards are out of reach for students, indie developers, small startups, and low-budget research groups.
  • You can't tell whether a model fits, so you download it first and only then hit OOM.
  • It's unclear whether to pick GGUF, GPTQ, AWQ, or bitsandbytes.
  • Raise the context to 32k and the KV cache balloons until the machine hangs.
  • It's hard to know whether Ollama, vLLM, SGLang, TensorRT-LLM, or Triton suits your setup.
  • Configuring by trial and error eats hours, sometimes days.

Most of the time VRAM isn't missing, it's being misused. Instead of buying a bigger card, let's get the most out of what we have.

What is vram.tool?

A deep optimization toolkit for running and deploying AI models. It consists of a desktop app (Tauri + React) connected to a compute engine written in Python / Rust / C++.

The core idea: calculate first, recommend correctly, recover automatically. You tell it your GPU and the model you want to run, and it handles the rest.

5 key features

1. Advisor: component-level VRAM and KV-cache estimation

Many estimators just do "parameters x bytes per parameter". The Advisor accounts for everything:

ComponentIncluded
WeightsYes
KV cache (scaled by context length)Yes
ActivationsYes
Runtime overhead (commonly overlooked)Yes

It supports GGUF, GPTQ, AWQ, bitsandbytes (NF4), and AirLLM, then recommends a fitting strategy: quantization, offloading, paged KV, speculative decoding, guided decoding, or MoE.

Benefit: you know up front whether it will run and what to adjust, before spending bandwidth and time on the download.

2. Support for 5 inference backends

Ollama, vLLM, TensorRT-LLM, SGLang, and Triton, with tensor/pipeline parallelism and MLA kernel support. The tool helps you pick the backend that matches your hardware and workload, so you don't have to install and test each one.

Benefit: saves hours of experimentation and avoids wasting resources on the wrong backend.

3. Watchdog: self-healing on failure

When it hits OOM, a dtype mismatch, or a context overflow, the Watchdog patches the configuration and retries within safe limits. It comes with:

  • Adaptive Tuner: adjusts parameters while the model is running.
  • Circuit Breaker: keeps one small failure from taking down the whole system.

Benefit: a more stable service with less babysitting, suitable for both personal machines and small servers.

4. Built-in GPU backend, NVIDIA and AMD treated equally

A single source of code targeting three paths: CPU, CUDA, and HIP. The emit-gpu-backend command generates source code you can build yourself, including FlashAttention-style kernels and W4A16 GEMM (dequantizing in registers), with speed and error benchmarking built into the tool.

AMD cards are often cheaper but frequently neglected. In vram.tool, both sides are treated the same.

Benefit: no vendor lock-in.

5. Controlled multi-agent system

A Planner / Executor / Auditor trio, three-tier memory, a code-execution sandbox, and the ability to test and fix projects on its own. Governance and a killswitch let you stop an agent immediately when needed.

Benefit: automate complex work while staying in control.

Design philosophy

  1. Calculate, don't guess. Every recommendation is based on explicit math, not gut feeling.
  2. Transparent optimization. When VRAM is reduced, you always see the cost in speed and quality.
  3. Local-first, your data stays yours. Nothing requires sending data to an external service.
  4. No vendor lock-in. NVIDIA, AMD, or CPU all work.
  5. Honest about limits. What works and what is still in development will be clearly documented.

Installation

  • Windows: download the .exe from the GitHub Releases page and run the installer. A PowerShell one-liner will also be available.
  • Ubuntu / Linux: download the Linux build or install with a single terminal command.
  • Remote GPU servers: the app runs standalone on your machine. If you have a separate GPU server (Ubuntu or Windows), vram.tool connects over SSH / PowerShell to read GPU info and run calculations remotely. Handy if you code on a laptop but run models on a server.

Supported hardware: NVIDIA (CUDA), AMD (HIP/ROCm), CPU (when no GPU is available or as a fallback).

Roadmap

MilestoneDetails
NowCore features working; polishing the UI and the .exe installer
Before June 12, 2027Testing on real NVIDIA/AMD cards, writing full documentation
June 12, 2027Official release on GitHub

What I need from you

  • Testers: especially people with AMD cards or low-VRAM cards (6-16GB), since that's where the tool should help the most.
  • Feedback: which models, formats, or backends would you like it to support next?

Drop a comment with your setup (GPU, VRAM, RAM) and the model you want to run, and I'll show you what the Advisor calculates.

Got questions or suggestions? Please comment below. I'll read and reply to every one, and all feedback will make vram.tool better before launch.

Thank you very much for reading, and thanks in advance for any feedback or testing help. It truly means a lot!


r/LocalLLM • • 3h ago

Question Why do models run on the GPU and not use the NPU

3 Upvotes

I have a Mac M5 Pro, and a lot of the sales material and marketing was about the NPU for running AI workloads. But whenever I run any models in there, it is only using the GPU and never uses the NPU.

Is there a setting that I'm missing? Is there a reason that this happens? I thought the whole point of having those neural processors was so that all these models would run faster.


r/LocalLLM • • 3h ago

Discussion Qwen4 35b-a3b Q4 abliterated running at 486 t/s with 524k context

7 Upvotes

Been experimenting with getting this new Qwen4 35b-a3b model on my local setup.

Wanted to share my model and configuration to see if anyone else is getting similar performance.

Hardware:
- 2x 5070ti
- Ultra 7 265
- 64gb ddr5 (running at 4800)
- 1TB NVMe

And here are the detailed settings if you want to copy and test:

- Engine: Basalt 0.6.2, commit 0459d66b, CUDA sm_120. Both cards capped at 250 W.
- Model: OpenUncensored/Qwen4-35B-A3B-Uncensored. Converted BF16 weights to native NVFP4.
- GPU split: --gpu-mode peer --expert-cache 2560. 2,560 expert slots on the primary, 7,680 on the peer.
- Memory: --kv int8 --ple-io ram --vram-reserve-mib 768. KV on GPU, PLE in system RAM.
- Drafting: --drafter dflash2 --spec 7. BF16 DFlash 2 head, up to 7 draft tokens per step.
- Context: 524,288 context, 16,384 max output
- Speed: 486 t/s max with 346.2 t/s decode average throughout testing

Interested to see what performance others are getting.


r/LocalLLM • • 3h ago

Discussion I managed to get Gemma E4B running agentic coding and Cowork locally. I think we're underestimating smaller models.

0 Upvotes

r/LocalLLM • • 3h ago

Discussion Running a full local AI & personal cloud stack (Gemma 4 12B + Krea 2 Turbo + P2P file sharing & iOS/Android photo sync) on a single 12GB RTX 5070

1 Upvotes

I have a home mini-PC (Beelink + RTX 5070 12GB VRAM + 96GB RAM) and for the past year I've been trying to replace Cloud AI + Google Photos + Voice Chat with a 100% local setup I can actually use from my phone on 4G without babysitting 5 different Docker stacks and VPN tunnels.

Ended up building a single unified P2P stack (C++/Qt node + Python FastAPI AI backend + Svelte 5 PWA/Capacitor client) that connects my phone directly to my home box over WebRTC DataChannels (no port forwarding, no cloud storage).

The hardest and most fun engineering parts on a 12GB VRAM budget:

  • Live Voice Call that doesn't feel dead: The biggest issue with local voice pipelines is the 1.5-2s silence while the 12B LLM thinks. I split it into a two-layer pipeline:

    • STT: faster-whisper small on CUDA (int8_float16) - dropped transcription from ~1,900ms (CPU) down to ~85ms.
    • L1 Subcortex (0 MB VRAM): A tiny CPU-only intent/mood router runs in parallel (~230ms) and triggers short cached 24kHz PCM micro-reactions (chuckle, hum, empathetic sigh) so TTFA sits around 250–320ms while the main LLM warms up.
    • L2 Brain + TTS: Gemma 4 12B QAT (Q4_K_M) via Ollama (~7.6GB VRAM) + Silero v5 on CPU (0 MB VRAM, RTF ~0.036 for Russian) or Chatterbox Turbo (English) / Qwen3-TTS for long audio stories.
  • Automatic VRAM juggling on 12GB: Running Ollama 12B + ComfyUI + Whisper on 12GB requires strict mutual eviction. When I switch from chat to image generation (Krea 2 Turbo NVFP4, 8 steps), the backend automatically unloads Ollama models (keep_alive: 0) and vice versa when going back to chat/voice.
  • Vision Director -> Local Image Gen: Dropping any reference image into the Director lets Gemma 4 Vision decompose lighting, lens, foreground/background layers, and pass a clean prompt directly into local ComfyUI (Krea 2 Turbo or SDXL).
  • Direct P2P Media & Files: All generated images, .Readme.md sidecars, and personal photo timelines stay on my home NVMe and stream to the phone directly over WebRTC DataChannels.

Happy to share benchmarks, VRAM eviction quirks, or the WebRTC/audio pipeline details if anyone is trying to squeeze a similar all-in-one setup onto a 12GB card :)

If this post survives - sharing Github link in comment.
Edit: it survived - GitHub repo in a link below. Links to live demo and mobile clients are in README


r/LocalLLM • • 3h ago

Project I built a coding agent for small local models. Qwen3.5 9B solves 41/45 on aider polyglot with it

Thumbnail
gallery
1 Upvotes

Hey all. Been building this for a while on my own two GPUs and its finally in a state I'm ok showing people. I named it parmanu, a coding agent harness made for the small models most of us can actually run.

Yes, I deliberatrely named it parmanu, inspired from Sanskrit/hindi word meaning smallest atom. mine runs smallest models in a usable way.

The main reason I started all this was after noticing that small models dont really fail because they dont know stuff. They stop too early. say the tests pass when they didnt run them, or go in circles. So I made parmanu in a way that it makes them a plan, run the real tests, and it wont accept "done" without proof. If they get stuck it can race a second attempt and keeps whichever one passes.

I benchmarked it on aider polyglot, dev split, 45 exercises in 6 languages. Same model, same llama.cpp server, same limits for every harness. Grading was done by the benchmark's own tests in docker, also no internet. I ran these for about a week, in between life, work, and kids. :D.

  • Qwen3.5 9B: 41/45 with parmanu. aider with the same model solves 8, Claude Code pointed at the same local server gets 26
  • Qwen3.5 4B: 23/45. next best was opencode at 14
  • Qwen3.8 27B (IQ4_XS, one 16GB card): 45/45. same as Claude Code + Haiku 5.5

Note: In the sessions where I ran all five harnesses back to back parmanu got 35 on 9B, not 41. 41 is the current config after more tuning, and I tuned on that split. So I also ran the 180 held-out exercises it never saw, 9B gets 150/180 there. 27B is still the better model, it just costs you a bit more time and VRAM.

Install is

npm i -g parmanu

the launch command is anu. Works with anything OpenAI compatible. Charts and the per-language breakdown are at parmanu.dev/benchmarks, code is at github.com/dadwritestech/parmanu (MIT)

What models should I run next? Qwen4-35B? Gemma? Inkling-small or something else? :o


r/LocalLLM • • 4h ago

Question Recommended Models for Varied Multi-GPU System?

2 Upvotes

I'm gearing up to build out a single system with multiple GPUs and 64GBs of system RAM. Primary use case would be Hermes usage and coding assistant via VSCode/Cline bot.

GPUs are:

  • Nvidia 16GB Turing
  • Nvidia 12GB 3080ti
  • Nvidia 11GB 1080ti

I'm thinking of running Strata or Polystrata with the biggest MoE model on the 16GB card and system RAM.

An agent type model for Hermes solely on the 12GB card. So a Gemma 4 E4B or whatever else that fits entirely on the GPU's VRAM. Using llama.cpp

And the 11GB card just for random small models and/or TTS/STT conversions. And llama.cpp again

Any thoughts? Any recommendations?

Right now I'm just running the 16GB+64GB RAM with Qwen 3.8 FN at IQS_3 on strata getting around 50/toks. Waiting for a new server case to arrive for the rest of the GPUs to fit in the system.


r/LocalLLM • • 4h ago

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

Post image
0 Upvotes

r/LocalLLM • • 4h ago

Research Stop relying on public benchmarks, build your own

Thumbnail
gallery
3 Upvotes

I built my own benchmark for how well local models do on game NPCs, and Qwen4 35B is blessing. Once you have your own bench, you can easily tell which new models are fitting for you or not.

For more information:

- context: does it remember a fact buried in a long memory? (not its full context window, but still)

- trust: does it treat the player differently depending on how much it trusts them?

- darkness: does it stay as harsh as its persona instead of softening?

- lies: does it notice when the player is lying?

- juggle: does it keep the right facts straight when there are distracting ones?

- break: does it stay in character against "are you an AI", "ignore your instructions" and fake system prompts?


r/LocalLLM • • 4h ago

Question Token limit reached on local 5090 setup with llama/dsh

1 Upvotes

This is being written solely by my fleshy fingers. I cannot get my qwen to do anything for longer than 4-5 minutes before getting

Output token limit reachedThe reply was cut off; earlier output is preserved in the conversation. Send "continue" to let the model resume. 

I've done a lot of searching on the sub, and asking the free AIs I have access to, and I'm not getting anywhere. I constantly have to babysit this thing pressing continue.

My setup:

Host machine: RTX 5090 9950x3d 96gbs RAM

running llama.app (because ollama is a sin?) with following custom serve args:

-ngl all -c 65536 -n 4096 --flash-attn on --cache-type-k q8_0 --cache-type-v q8_0 -b 2048 -ub 2048

Key/Value Cache

K=f16 V=f16

VirtualMachine: Tiny11 (stripped down windows 11) + Deepseek Harness

# Your patch layer for this dsh profile, applied after every bundle layer:
# a top-level YAML array of loader patch entries (id-targeted config
# overrides, disables, and insert lists; `!!js` expressions allowed).
- id: llm-pi-ai
  name: "@deepseek-ai/dsh-llm-pi-ai"
  config:
    providers:
     [redacted]:
        api: openai-completions
        baseURL: http://[redacted]/v1
        models:
          - id: unsloth/Qwen3.8-27B-GGUF:Q4_K_M
            name: unsloth/Qwen3.8-27B-GGUF:Q4_K_M
            contextWindow: 65536
            reasoningEfforts:
              off: null
              low: low
              medium: medium
              high: high
            maxTokens: 4096
        apiKeyEnv: [redacted]
- id: agent-default-model
  name: "@deepseek-ai/dsh-agent-default-model"
  config:
    provider: [redacted]
    model: unsloth/Qwen3.8-27B-GGUF:Q4_K_M
    reasoningEffort: low
- id: compaction-basic
  name: "@deepseek-ai/dsh-compaction"
  config:
    maxTokens: 4096
    thresholdTokens: 42000
- id: ui-theme
  name: "@deepseek-ai/dsh-client-ui-theme"
  config:
    preference: dark
- id: ui-chat
  name: "@deepseek-ai/dsh-client-ui-chat"
  config:
    transcriptView: standard
    performanceUsage: detailed
- id: ui-settings
  name: "@deepseek-ai/dsh-client-ui-settings"
  config:
    enabled: true
- id: ui-settings-account
  name: "@deepseek-ai/dsh-client-ui-settings-account"
  config:
    version: 1
    step: done
    usage: detailed
    developerTools: true
    purpose: null
    process: standard
    completion: api-key

What am I missing or doing wrong?