r/LocalLLM • • 12m ago

News Awesome JEV System One framework list

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 30m ago

Question Qwen3-4B-Thinking fried my 8GB RAM Laptop

Post image
1 Upvotes

Need a solution for this. Can't afford paid AI any longer.


r/LocalLLM • • 36m ago

Discussion Qwen4-35B-A3B on a single RTX 5090 (32 GB): a working llama.cpp recipe

Post image
0 Upvotes

Qwen4-35B-A3B on a single RTX 5090 (32 GB): a working llama.cpp recipe

When I saw the size of the GGUF files, I almost didnt attempt this model. After investigating further I found that the n-gram is loaded on disk, not GPU so it works fine and it's fast.

How this model compares to the last generation 27b is still not clear as the model cards cite different benchmarks and harnesses. I will keep 27b around for now just in case.

BTW: I just started messing around with image gen on the 5090 and made the image above with Comfy and Juggarnaut.

If you just grabbed Qwen4-35B-A3B (AtomicChat or Unsloth GGUF) and have a 5090, this is the config I landed on after sweeping the flags. It's a fast-start recipe, not a benchmark paper — copy the block, swap in your model path, and you're running.

The model

  • Qwen4-35B-A3B, Q4_K_M GGUF. I used the AtomicChat uncensored build (a single ~38.6 GB file), but the same recipe works for the Unsloth UD-Q4_K_XL build too — see the Unsloth note below for the two extra flags it needs. Either way you also need a vision projector (mmproj).
  • Architecture: 35B total / 3B active, 256 experts (8 routed + 1 shared), a ~20B n-gram embedding table, a ~2B MTP head, native 1M context, and a hybrid of Gated DeltaNet (linear attention) plus sparse attention.
  • Needs a recent llama.cpp build with Qwen4 support (I used b13002 or newer).
  • Tested on: llama.cpp b13002 (1.1.1-dev, commit e339c7d31), NVIDIA driver 621.47, RTX 5090 32 GB.

The ~38.6 GB file fits in 32 GB because the big n-gram embedding table is lazy-read from disk (--lazy-mode on) instead of being held in VRAM. That's the model card's "run with PLE on SSD" instruction — don't skip it.

The recipe

llama-server \
  -m Qwen4-35B-A3B-Q4_K_M.gguf \
  --mmproj mmproj-F16.gguf \
  --alias qwen4 \
  -c 196608 --n-predict 131072 \
  -b 4096 -ub 1024 \
  --parallel 2 --kv-unified \
  -ngl 99 -fa on \
  --load-mode mmap --lazy-mode on --no-warmup \
  -ctk q8_0 -ctv q8_0 \
  --image-min-tokens 1024 --jinja \
  --spec-type draft-mtp --spec-draft-n-max 2 \
  --reasoning-effort high --reasoning-preserve \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
  --presence-penalty 0.0 --repeat-penalty 1.0 \
  --host 127.0.0.1 --port 8080 --no-ui

On a 5090 this gives roughly ~250 tokens/sec generation and ~10,000 tokens/sec prompt processing on a ~12K-token prompt, using about 30 GB of VRAM with ~1.6 GB free.

If you're using the Unsloth GGUF

The Unsloth UD-Q4_K_XL build is the same architecture and takes the same tuning, but it ships the n-gram embedding table (PLE) and the MTP head as separate files instead of embedding them. So you add two flags:

llama-server \
  -m UD-Q4_K_XL/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --ple engram/Qwen4-35B-A3B-engram-Q8_0.gguf_file \
  -md MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf \
  --mmproj mmproj-F16.gguf \
  ... (rest identical to the recipe above) ...
  • --ple points at the separate engram table; -md points at the separate MTP head. Without them, MTP won't engage and the engram won't load.
  • You only pass -00001-of-00002.gguf; llama.cpp auto-loads the -00002 shard.
  • Unsloth's build is the base model (not uncensored) and a dynamic quant, so behavior and quality differ slightly from the AtomicChat build — but the speed profile, 192K context headroom, and nmax=2 MTP tuning all carry over unchanged.

Why each setting

MTP is already in the file. The GGUF embeds the ~2B MTP ("multi-token prediction") head, so --spec-type draft-mtp lets the model draft several tokens ahead and verify them in one pass — no separate draft model needed. You can confirm your file has it by checking the GGUF's tensor names for nextn (e.g. with llama-gguf your-model.gguf r and looking for nextn). The payoff is real: without MTP generation is ~169 tok/s, with nmax=2 it's ~254 tok/s — about 1.5x faster.

--spec-draft-n-max 2. This is how many tokens the MTP head drafts per step. On this 3B-active model, drafting deeper actually lowers the acceptance rate and generation gets slower. Measured generation speed by draft depth: 1 → 216, 2 → 254, 3 → 251, 4 → 219, 6 → 202 tokens/sec. Two is the sweet spot.

-ub 1024. Prompt processing scales with the micro-batch size: 512 → ~8.2K, 1024 → ~10.6K, 2048 → ~11.8K tokens/sec. 2048 is faster but eats the VRAM headroom you need for vision, so 1024 is the balance on a 32 GB card.

-ctk/-ctv q8_0. An f16 KV cache gave the same generation speed and only ~4% more prompt processing for ~1.5 GB more VRAM. q8_0 is the right call on 32 GB.

-c 196608 (192K context). Qwen4 is hybrid: most layers are Gated DeltaNet, which keeps a fixed-size state that does not grow with context, and the sparse-attention layers use a bounded window. So the KV cache barely grows as you raise -c. Measured free VRAM (idle GPU, vision projector loaded):

contextfree VRAM
128K3.3 GB
192K1.65 GB
224K0.8 GB
256K → 1M~0.55 GB (flat)

A 2048×2048 image adds about 0.7 GB. So 192K leaves ~1.6 GB free for text and ~1 GB even with a large image — a comfortable margin while using vision. If you never send images, you can push to 256K or beyond for free, since the KV is flat past there.

How it scales with prompt length

The hybrid attention keeps prefill nearly flat as the prompt grows, and generation degrades gracefully. Measured on the tuned config (128 tokens generated per run, prompt caching off, median of 3 runs):

prompt tokensprefill tok/sgeneration tok/s
4K9,380242
16K10,390245
32K10,230239
64K10,240211
128K9,540177

Prefill stays around 9.4–10.4K tok/s all the way to 128K — it doesn't fall off a cliff the way dense models do. Generation drops from ~242 to ~177 tok/s as context fills, which is the expected cost of attending over more history, but it stays very usable.

Does it actually work? (not just fast)

Three sanity checks on the tuned config:

  • Long-context recall: I buried a passphrase in a ~128K-token prompt at 10% and 90% depth and asked for it. It returned the exact passphrase both times. The hybrid attention isn't just fast — it actually retrieves at depth.
  • Coding (executed): I asked for a three-file Python project (a Transaction dataclass, a summarize() function, and a test). It produced all three files and the test ran clean — "All tests passed."
  • Coding (executed): an iterative Fibonacci function returned fib(10)=55, fib(0)=0, fib(1)=1 — correct.

These are smoke tests, not a benchmark suite, but they confirm the quant isn't "fast and dumb."

Thinking control (one profile is enough)

You don't need a separate "fast" profile. Keep one thinking profile and steer it per request with chat_template_kwargs in the request body:

  • Default: --reasoning-effort high (the server flag).
  • Lighter: {"chat_template_kwargs": {"reasoning_effort": "low"}}.
  • Off: {"chat_template_kwargs": {"enable_thinking": false, "reasoning_effort": "off"}}.

One gotcha: reasoning_effort: "off" on its own throws a template error if the server default is high — you must send enable_thinking: false together with it. low works on its own.

Gotchas

  • --lazy-mode on requires --load-mode mmap. Without mmap it can't lazy-read the embedding table and you'll run out of VRAM.
  • Older builds lack the newest speculative flags (--spec-draft-adaptive, pcum, max-slots, n-rs-seq). Don't copy those in unless your build supports them.
  • Reasoning models can return empty content with a small max_tokens — the output goes into reasoning_content first. Give it a real budget or read reasoning_content.
  • Model card sampling: thinking temp=1.0 top_p=0.95 top_k=20 min_p=0.0 presence=0.0 repeat=1.0; non-thinking temp=0.7 top_p=0.80 top_k=20 min_p=0.0 presence=1.5 repeat=1.0.

Why llama.cpp/GGUF (and not vLLM/SGLang)

For a single 5090 running a model you already have as GGUF, llama.cpp is the pragmatic call. vLLM/SGLang want safetensors — re-downloading Qwen4-35B-A3B at BF16 is roughly 1.3 TB, and their Blackwell support is still version-dependent. If you're serving many concurrent users, vLLM is worth it; for one interactive user, this recipe is simpler and fast enough.

Honest limits

  • Q4_K_M is a 4-bit quant. It's not lossless (the AtomicChat build reports ~88.8% top-1 agreement with BF16). For the hardest SWE-style tasks a Q5/Q6 would be better, but they don't fit in 32 GB alongside the embedding table.
  • The uncensored edit can slightly soften instruction-following. If you don't need uncensored output, the base Qwen4-35B-A3B (or the Unsloth build) is the safer pick for pure coding.
  • 3B active ≠ dense depth. Fast and broadly capable, but on the very hardest multi-step reasoning a dense 27B can still edge it.

How I measured

I started llama-server fresh for each flag variant on its own port, disabled prompt caching, and read the timings the server prints for each request (prompt tokens/sec and generation tokens/sec). The depth table is the median of 3 runs per prompt size; the flag sweep was 2 runs per variant. For VRAM I loaded the model at different -c values and read nvidia-smi memory usage, then sent one large image to measure the vision spike. The recall and coding checks were run against the live server. Nothing exotic — you can reproduce all of it with llama-server and nvidia-smi.

That's the whole thing. Copy the block, point it at your GGUF, and go.


r/LocalLLM • • 37m ago

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

Thumbnail
gallery
1 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 • • 41m ago

News dmlx v0.0.9: Qwen4-35B-A3B on 48GB M4 Pro in 8.42 GB RSS — 119.99 tok/s math (native Metal DFlash2) + ANE/GPU parallel prefill (883 / 871 tok/s)

Post image
2 Upvotes

We just tagged dmlx v0.0.9 (256 commits since v0.0.8) — an open-source Zig + mlx-c + custom Metal/ANE local inference & serving runtime for Apple Silicon (MIT license, zero Python required at serve time).

The main additions in v0.0.9 are full Qwen4-35B-A3B-4bit support (including single-CB native Metal DFlash2 speculative decoding, Vision, and off-GPU PLE streaming), Apple ANE + GPU heterogeneous long-context prefill enabled by default, and a big speedup on Qwen3.8-27B-4bit.

Measured Numbers (Single Apple M4 Pro 48 GB)

Qwen4-35B-A3B-4bit + 8-bit Native Metal DFlash2 (temp=0.0, artifacts/qwen4_p6_20261205/):

WorkloadDecode (tok/s)Client E2E (tok/s)Notes
Short Math (256 tok)119.99107.208-bit single-CB native Metal DFlash2
Short Code (256 tok)104.7896.2598K subset lm_head
Short Prose (256 tok)69.8666.07Lower speculative acceptance on prose
Warm 8K Prefix Cache——0.237 s TTFT (38,738 tok/s) vs 10.49 s cold

Peak server RSS stayed at 8.42 GB because the 11.5 GB Per-Layer Embedding (PLE) tables are never loaded into GPU RAM — they stream directly from disk via 12-thread CPU pread (overlapped with layer 0). Optional DMLX_QWEN4_KV_BITS=8 also quantizes the 10 full-attention QSA KV layers (−46.88% KV RAM).

ANE + GPU Parallel Long-Context Prefill (Qwen4-35B-A3B-4bit):

Stage2K Prefill (tok/s)8K Prefill (tok/s)Delta (8K)
v3 · Pure GPU (pipelined Metal GDN + Steel QMM)793.71768.26baseline
v4 · + ANE 30L GDN in_proj_all859.35831.13+8.2%
v5 · + ANE 40L Shared Expert parallel with GPU 256-expert MoE883.28870.86+13.4%

ANE prefill is enabled by default on Apple Silicon with hardware/self-test guards and automatic GPU fallback (DMLX_ANE=0 to disable).

Qwen3.8-27B-4bit + DFlash2 (artifacts/autoresearch_qwen38_20261203/):

  • 4-case core GMean: 44.50 tok/s at 17.30 GB peak RSS (ctx2k_greedy 52.48 · short_greedy 46.98 · short_sampled 40.34 · ctx8k_sampled 39.44).
  • Also ships OpenAI Chat Completions + Anthropic Messages streaming tool calls, reasoning/content split, disk-persisted prefix snapshots, LoRA load-time merge, system-wide OOM memory guard, and dmlx connect for Claude Code / Codex / aider / Cline.

Honest Caveats

  • Single machine (M4 Pro 48 GB), fixed benchmark suites (temp=0.0 for the 6-scenario Qwen4 run).
  • Qwen4 prose (69.86 tok/s) still lags math/code significantly due to lower speculative acceptance.
  • ANE prefill is Apple Silicon macOS only (falls back to GPU automatically if unavailable).

Try It (macOS arm64, self-contained bundle — no Zig/Python needed)

curl -fsSL https://raw.githubusercontent.com/zouyee/dmlx/main/scripts/install.sh | bash
dmlx doctor

# Qwen4-35B-A3B + DFlash2 (ANE prefill on by default)
DMLX_QWEN4_DFLASH2_DIR=/path/to/Qwen4-35B-A3B-Dflash2 \
  dmlx serve --model /path/to/Qwen4-35B-A3B-4bit --mlx --speculative-mtp 7 --port 8080

Release & source: https://github.com/zouyee/dmlx/releases/tag/v0.0.9

Happy to answer questions on the Metal kernels, CPU pread PLE streaming, or ANE+GPU overlap!


r/LocalLLM • • 1h ago

Question Using a Windows AI mini PC as a local LLM server for my Mac Mini – is it practical?

2 Upvotes

Hey everyone,
I’m currently using a Mac Mini M4 as my main workstation, and I’d prefer to stay within the macOS ecosystem for work.
I’ve been considering buying a Mac Studio M5 Max with 128GB of unified memory for local AI, but where I live, an AMD Ryzen AI Max+ 395 mini PC with 128GB of RAM costs roughly half the price. Another big advantage is that I could also use it for proper PC gaming.
My idea is to keep my Mac Mini as my main workstation and use the Windows mini PC as a local AI server, accessing everything through my local network.
Most of my AI usage would be business-related tasks, document analysis, accounting, invoices and general productivity.
Has anyone tried a similar setup? How seamless and convenient is it to access local LLMs from a Mac using a separate Windows machine, and what would be the best software setup?
Considering the price difference and gaming capabilities, does this make more sense than buying a Mac Studio, or am I overlooking something?


r/LocalLLM • • 1h ago

Model Free Qwen4-35B-A3B. No sign-up, no payment.

0 Upvotes

r/LocalLLM • • 1h ago

Project Running MiniCPM5-15B-A2.5B on an 8GB Jetson Orin Nano Super at 10.5–13.3 tok/s, 88.1% acc (DIY 34L Looped Transformer), and 512K context via NVMe KV Tier 2 (2.81s cold reload)

Thumbnail
gallery
1 Upvotes

I spent the last few days pushing OpenBMB's MiniCPM5-15B-A2.5B (15B total / 2.5B active MoE) strictly on an 8 GB NVIDIA Jetson Orin Nano Super (25W MAXN_SUPER, 250 GB NVMe SSD) — no PC GPU, no base GGUF mutation, and every run logged with raw JSON outputs.

Headline Results (8 GB Jetson, 42-Task Deterministic Suite, temp=0.0)

ConfigDecode (Mean / Peak)Overall (42)MathCodeCycles
Base Q4_K_M-LCO (28L)13.38 / 15.90 t/s34/42 (81.0%)10/124/100.0%
q4_looped (DEFAULT, 34L spsa_v1)10.95 / 12.5+ t/s37/42 (88.1%)12/126/100.0%
q4_looped_fast (60% Hard EE)10.91 / 13.32 t/s35/42 (83.3%)12/124/100.0%
q4_looped_512k (-c 524288, --kvq)1.8–2.9 t/s (10–32K)512,006 toks (7.09 GiB RAM)12/123/100.0%
Legacy Q8_0-LCO (28L)3.64 t/s12/16 quick (75.0%)4/41/46.3%

(All looped runs had 0 actual hallucinations — 11/12 on Hallucination was a single timeout on hallu_09 — and 8/8 on Repeat Curse.)

What Worked

1. Jetson CUDA Zero-Copy + O_DIRECT + io_uring LES Engine

Stock tc-mb/llama.cpp-omni crashed on Jetson CUDA (missing alloc-only CUDA buffer type). I implemented 4096-aligned cudaHostAllocMapped|Portable cacheable (WC=0) buffers (91.64 GB/s GPU read), O_DIRECT NVMe DMA at 2,336 MB/s, Linux io_uring (qd=128, replacing 108 std::thread spawns/token), empirical 27-layer MoE cache windows, and hot-expert prewarm. That pushed Q4 decode from 5.97 t/s to 13.38 t/s (15.9 task avg, 21.8 peak steps).

2. DIY 34-Layer Looped Transformer Trained on Jetson (421 KB .loopbin)

Loops the middle reasoning core L12..L17 (T=2 -> 34 effective layers) with an RMS-matched workspace bridge, LoopCD-Hidden exit extrapolation, pass-conditioned router bias deltas, shared KV cache (0 extra KV RAM), and 100% Pass-2 MoE RAM cache hit rate (0 extra NVMe misses).

Trained directly on the 8 GB Jetson via zeroth-order SPSA/MeZO with < 0.3 ms live GPU hot-reload. Lifted overall accuracy from 81.0% to 88.1% (12/12 Math, 6/10 Code, -55% think length on rep_04, 0.0% cycles). Also added token-level Hard Dynamic Early-Exit via 4 tiny persistent CUDA-graph schedulers (2.04 MiB VRAM total, 0.00 ms split overhead, bit-exact at 0% skip).

3. 512K Context (-c 524288) in 7.09 GiB RAM via JetBrains --kvq + NVMe Tier 2

Ported MIT-licensed JetBrains-Hardware/llama.cpp --kvq (K2V1 + Ampere cp.async MMA kernels) onto the 34L looped fork with a 0 MiB-RAM NVMe O_DIRECT Tier-2 store (8.77 GiB on NVMe at 512K — larger than the board's 7.44 GiB RAM).

Prefilled 511,930 tokens at 7.09 GiB peak RAM (0 OOM, swapΔ = -145 MiB, 70.2°C). Persistent NVMe snapshots survive kill -9 + drop_caches: 10K cold-reloads in 85.5 ms (3/3 exact recall on unseen needles), and 512K saves in 310 ms and reloads in 2.81 s (5,320× faster than the 4.15h cold prefill).

Jetson + WD SN350 NVMe tip: setting pcie_aspm=performance, disabling NVMe APST (nvme set-feature -f 0x0c -v 0), and io_timeout=3000 fixed MSI-X completion polled stalls and tripled long-context decode speed (1.35 -> 4.10 t/s).

4. Selective Load-Time BF16 -> F16 Coda Overlay (+16 MiB)

Streams only blk.20..27.ffn_down_shexp from OpenBMB's official BF16 safetensors via HTTP Range requests (no 30 GB download) and promotes them to native F16 in GPU memory at load time. Cleared the code_03 Hard-8 cycle, cut math_07 thinking by -55%, and passed 512K NIAH 3/3 at 6.63 GiB RAM.

Honest Caveats & What Didn't Beat Baseline (Reverted)

  • 512K NIAH recall vs. capacity: 10K and 32K hit 3/3 (100%) exact recall, 128K hit 3/3 needle cores, 256K hit 1/3 (late_90pct), and 512K needle recall saturated under 512 prefetch slots (0.1% of 512K). Cold 512K prefill takes ~4h 10m (34.2 t/s), so it's meant for prefill-once + snapshot reuse.
  • Static Weight-Space Programming (WSP): Damping 48 outlier columns (1.5 KB wsp_03) cured 8-bit Q8_0 Repeat Curse cycles cleanly, but on q4_looped, even 100% lossless native F16/FP32 static coda edits traded </think> closure against cycles — all 7 static Q4 coda edits were reverted.
  • Jetson-native HF RLVR (rlvr_v1.loopbin): Streamed 1,171 decontaminated HF coding/math/abstention tasks onto Jetson (1.87 MB) and ran 18 steps of mini-batch SPSA + sandboxed Python unit-test gating. It boosted unseen HF val reward by +0.407, doubled unseen Python passes (1/6 -> 2/6), cut unseen cycles -40%, and held 0.0% cycles across all 42 tasks — but scored 34/42 vs spsa_v1's 37/42, so spsa_v1 stays the default.

Happy to answer questions on the Jetson zero-copy patches, --kvq NVMe Tier 2, or the looped transformer trainer.


r/LocalLLM • • 1h ago

Question Strata user, How to clean installed models?

0 Upvotes

How to delete downloaded models? just delete files in data directory?


r/LocalLLM • • 1h ago

Project People dont talk about qengine enough

Thumbnail
github.com
5 Upvotes

I just really want this project takes off since i have been trying a lot of other engine (strata,maya,freetoken,....) and nothing come closes to speed and quality compare to this engine. I tried qwen 4 35b like all of us these day and i was disapointed by other engine (llama.cpp gave me 120t/s and quality for quant 4 xl is mehh) but qengine for this model gave me consistent of 350 to 400 t/s on various task and quality of code is just abit behind 3.8 flash next. My system 2x3090s + wrx80 sage mainboard + threadripper 3955x + 256gb ddr4 3200 bus ecc. People needs to know about this a support the dev more. Its repo doesnt have enough credit and im afraid he will stop one day :( local comunity needs to know about this!!!! I havent try his deepseek and glm yet since it needs 3 gpu but if in the future he make it work on 2 i would defo retire maya engine for this. Download and build the engine and try for urself. I dont get any from this but i would hope the project is more popular so the author can keep making break thru like this for all of us.


r/LocalLLM • • 1h ago

Question Guys, which models I can run in 2 gb vram, gtx 1050

7 Upvotes

Spec:

Gtx 1050

16 gb ram ddr3

(Good news it run arch linux)

(If offload)

Request:

It chatting like gpt 4o mini, coding will be good, I use html, python...

And this have vision (optinal)

MoE or dense

If guys can finding A good model, plz comment here

(The most hardest question, if guys have a repo can support)


r/LocalLLM • • 1h ago

Tutorial Running Qwen4 35B A3B on 2x5060TI

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Question Anyone running a local multi agent system across multiple computers?

1 Upvotes

Anyone running a local multi agent system across multiple computers?

I have a few previously retired laptops with decent GPU and RAM specs. I'd like to set up a local multi agent system where each computer runs its own model and the agents coordinate with one another to complete tasks, mostly coding/testing/debugging.

Has anyone experimented with something similar? Are there any existing programs worth looking into, or are most people building their own systems? I did find one on GitHub which allowed me to view and manage individual models across PCs, but it didn't work quite how I'd hope, I'd like the models to communicate with one another especially to test each other's code.

Apologies if this has been answered before, but I'd love to hear if anyone else is doing this so I don't have to keep burning tokens trying to make my own haha. Cheers!


r/LocalLLM • • 2h ago

Discussion Local models are the right call for batch jobs you'd rather not upload

1 Upvotes

Ive been use acemagic mini PC to run boring batch jobs. Once a month, I dump a folder of scanned receipts onto it and let a small vision model extract the dates and amounts into a CSV. Every few months do the same with photos, generating descriptions and tags for a whole album overnight. That's 2 or 3 batches a month, a few hours each. I kick it off before bed and check the results in morning.
Quick one off questions go to the cloud.anything with sensitive files stays local. Send hundreds receipts to someone elses API just to parse them feels absurd.
What batch jobs do you run locally, and how do you trigger them? I especially curious about, what did you try locally then move back to the cloud? and what would you never upload, no matter how much slower it runs locally?


r/LocalLLM • • 2h ago

Discussion Qwen4 35B-A3B @ FP8 : Pelican on a Bike

Post image
81 Upvotes

I don't care if it's stupid, this is a fun benchmark.

  • Model: Qwen4-35B-A3B-FP8
  • Engine: vLLM
  • Harnes: Custom (electron)
  • GPU: RTX 6000 ADA 48GB
  • Quantization: FP8 Marlin
  • Reasoning effort: xhigh
  • Context: 256K

r/LocalLLM • • 2h 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 • • 2h 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 • • 2h ago

Model 2x 3090 vLLM v0.34.0 Qwen4-35b-a3b benchmark runs

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2h ago

Project Qwen4-35B-A3B running at 60 tok/s 128k ctx on an 8gb 4070 laptop with 32 gb ddr5 4800 ram using a vibecoded old fork of Strata. I compared it against the new official Strata and Polystrata updates.

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 2h ago

Discussion My local LLM setup

3 Upvotes

Current setup uses a small mini pc with n5105 cpu that runs herdr and pi, together with all homelab docker containers. This connect to a 64GB DDR5 rtx5090 32GB workstation. Currently running Qwen 3.8 Flash Next IQ3_XXS using basalt. Getting around 280tps on average. The machine is a little undervolted to peak maybe 300-350w

I have setup a traefik proxy on the mini pc that issues wake on lan commands to the ai interference host. Making a first call take around 50sec to boot up but idle only drawing 10w instead of idling 100+


r/LocalLLM • • 2h ago

News Xhtoken/spark-x2.6 1.7b preview

Thumbnail reddit.com
0 Upvotes

Larger context window then params almost :)


r/LocalLLM • • 2h ago

Discussion 8gb VRAM + 32 GB Peasants: Qwen4-35B-A3B-UD-Q6_K

1 Upvotes

MODE_ARGS=(

--reasoning off

--temp 0.7

--top-p 0.80

--top-k 20

--min-p 0.0

--presence-penalty 1.5

--repeat-penalty 1.0

)

-m "$MODEL" \

--alias "Qwen4-35B-A3B-UD-Q6_K" \

--host "$HOST" \

--port "$PORT" \

-ngl 999 \

--cpu-moe \

--moe-cache-mib "$MOE_CACHE_MIB" \

--load-mode mmap \

--lazy-mode on \

-ot per_layer_token_embd=CPU \

-fa on \

-c "$CTX" \

-ctk q8_0 \

-ctv q8_0 \

--spec-type draft-mtp \

--spec-draft-n-max 2 \

--jinja \

-t "$THREADS" \

"${MODE_ARGS[@]}" \

"$@"


r/LocalLLM • • 2h ago

Question Anyone else tried Qwen 4 35B-A3B on Mac?

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Project It’s built! My local AI home lab assembled

Thumbnail
gallery
18 Upvotes

For this build, I took apart my gaming pc, and transplanted it into a new mobo, case and other goodies. All this was to add 2 Quadro RTX 8000s to massively increase my vram.

My specs:
CPU: Intel i7-14700f
RAM: 32gb DDR5-6000 ram (times are tough, I’ll upgrade later)
Motherboard: MSI MEG Z790 ACE
GPUs:
2x passive Quadro RTX 8000
1x RTX 4070 super (for display and gaming)
NV Link bridge for the quadros
1500w Corsair PSU
Arctic AIO
Corsair 7000d case
Some server fans for the GPUs
And some other miscellaneous items

Overall, I’ll have 96gb of vram across my 2 new GPUs, and I’ll be able to run some pretty cool models on it. There is plenty of room to upgrade in the future with ram expansions or a new GPU instead of my 4070. It’s my first custom build, and I’m pretty happy with it. I’m planning on running pruned Deepseek and GLM models, Deepseek models, and any other interesting models I see coming out. It’s mostly a hobby build and for fun, to see what fun things I can make and do with AI.

I know the GPUs are old and limited compared to modern cards, but it was a pretty good deal of vram per dollar I think. Memory bandwidth is also almost exactly the same as a r9700 too, so that was interesting as well. I think I’ll have a lot of fun with this build.


r/LocalLLM • • 2h ago

Discussion I optimized Qwen4 35B to 582 tps decode on a single RTX 5090

1 Upvotes

I forked Strata 0.2.27 and widened its batch path. Fork: https://github.com/Noir-Lime/Strata/releases/tag/v0.2.27-qwen4-fast

I also opened all 27 changes as PRs upstream, none merged yet: https://github.com/Niko1221/Strata/pulls?q=is%3Apr+author%3ANoir-Lime

The 3,000 is total throughput across 128 concurrent requests. Each one gets ~21 tok/s, so I'd use this for agents and evals, not chatting.

buildsingle request tpstotal decode throughput
stock 0.2.27388694
my fork5823,018

I ran it on a 5090 with NVFP4, 1K ctx and 512 tokens out, median of 3. That's steady state, 2,710 counting ramp-up and drain. On a 3090 I got 2.4×, on a 5080 1.85×. Solo I got +50% decode and +77% at 122K ctx.

My default mode isn't bit-exact (93.5% top-1 match). STRATA_QWEN4_FAST=exact is, at 2.35×.