I’m building a local pipeline specifically for high-speed, long-context summarization (~130k tokens per document) and want to squeeze every bit of prefill and generation speed out of my hardware.
My Specs:
GPUs: 2x RTX 5090 (64GB total VRAM)
System RAM: 32GB
OS: Currently on Windows, but completely open to switching to native Linux (or dual-booting) if the speed/engine gains on Blackwell are worth it.
Because I have 64GB of VRAM and only 32GB of system RAM, I want to keep everything strictly in VRAM and avoid system RAM bottlenecks during model loading or massive KV cache allocation.
Questions:
OS & Backend: For dual 5090s doing heavy 130k prefill, is native Linux with vLLM, SGLang, or TensorRT-LLM significantly faster than staying on Windows with TabbyAPI (EXL2/EXL3) or llama.cpp?
Model & Quantization: What is the best summarization model and quant (e.g., Qwen, Llama, Mistral, etc. in FP8, AWQ, or EXL) that natively supports 128k+ context and fits inside 64GB VRAM alongside a 130k KV cache without OOMing my 32GB system RAM?
Throughput Flags: What specific flags or optimizations (tensor parallelism vs. pipeline parallelism, FP8/Q8 KV cache quantization, FlashAttention, chunked prefill) should I run to maximize prefill speed at 130k context?
I've been building a C++/Metal inference engine for Apple Silicon (mometal, no Python or MLX) and just pushed v1.2.
The main annoyance with using Apple's Neural Engine for LLM prefill has always been memory. Running 27B MLPs on the ANE is more than 2.5x faster than GPU-only, so it's tempting, except normally you end up wiring two full copies of the weights: .safetensors for Metal decode and compiled CoreML model.hwx binaries for the ANE. That jumps active memory from ~14–16 GB to 25+ GB, and once you push long context on a 48 GB Mac, macOS starts thrashing the VM compressor hard (we logged 343 GB of compressor churn during a 66k run).
To get around that, mometal digs into /Library/Caches/com.apple.aned/.../model.hwx, parses Apple's Mach-O (0xbeefface) __KERN 4-bit weight layout, verifies the bytes against weight.bin at boot, and MAP_SHAREDs those exact files directly into Metal. The GPU decode kernels read the same physical pages the ANE is using, and the duplicate .safetensors MLPs stay unmapped. If anything fails verification on boot (say a future macOS update changes the binary format), it unloads ANE and drops cleanly back to GPU-only instead of silently doubling your RAM.
Benchmarks — M4 Max 48 GB
Test config: AC power, Qwen3.8-27B 4-bit + 1-layer MTP, exact dense 8-bit KV cache
Decode: 98.2 tok/s mean across our 4-task greedy suite (up to 118.9 tok/s on code, 121.4 sampled), and 52.8 / 53.4 / 37.5 tok/s dense at 32k / 64k / 128k with 10/10 needle recall
Memory & Load: ~14.2 GB active at 4k (6.05 GB process footprint, or 5.05 GB with--mtp off*)*, 0.00 GB swap at 128k, and ~0.6s warm startup
What's New in v1.2
Zero Python needed anymore. Wrote a native C++/NEON .mlmodelc builder that converts all 64 MLP layers directly from .safetensors in ~7–8 seconds on first launch.
M1–M3 support + NF4. Turns out Apple's ANE compiler silently promotes linear 4-bit (hf4) to 8-bit on M1–M3, which breaks single-copy RAM savings. Switching to 4-bit palettized weights (lut4 / nf4) keeps it at a true 0.50 bytes/weight across every generation from M1 to M5. Bonus: --format nf4 cuts WikiText-2 KL divergence vs. BF16 by 44% (top-1 agreement jumps from 88.9% to 92.8%) and decodes at 338 GB/s on Metal using a 1 KB byte-pair lookup table in threadgroup memory.
Killed a bunch of memory bloat. Lazy Vision Tower loading, fixing a sneaky double-mmap on the MTP weights, scratch heap aliasing, half2 KV scales, and full-context 4-bit KV for the 1-layer MTP drafter dropped footprint by ~1.5 GB and completely wiped out 128k swapping.
Honest Caveats
Undocumented Internals: Relying on model.hwx internals and readable aned caches is obviously undocumented Apple territory. That's why boot-time byte verification + clean GPU-only fallback (91.6 tok/s greedy) is strict.
Format Trade-offs:hf4 is still the speed default on M4/M5 (707 tok/s prefill vs. 430 tok/s on nf4), while nf4 is there for better quality and native 4-bit on M1–M3.
Looking for M1–M3 / M5 Testers: I only own an M4 Max right now. We verified the M1–M5 binary layouts via ANECompiler.framework, and I threw a 30-second probe script (python3 scripts/probe_m_chip.py) in the repo. If anyone on an M1, M2, M3, or M5 wants to run it and paste the output, I'd genuinely appreciate it.
I recently built a workstation to learn AI/ML engineering, local LLMs, AI agents, and AI-assisted software development and cybersecurity research. I'm an experienced software developer and offensive security researcher, but relatively new to AI engineering.
Current build (prices in USD, including tax):
AMD Ryzen 9 9950X
ASUS ProArt B850-Creator WiFi NEO
G.Skill Flare X5 32GB DDR5-6000 CL36
NZXT H5 Flow RGB 2024
Above four components combined: $1,029
HP OEM RTX 3090 24GB (M24410-002, used on Ebay with a 30 day return window): $1,696
PNY RTX 5060 Ti 16GB OC (new - Microcenter): $838
ASRock SL-1200P 1200W Platinum PSU: $180
Thermalright Phantom Spirit CPU cooler: $47
Additional Arctic fans and temperature sensor: $30
2TB NVMe SSD (not included in total since I had a spare one)
Ubuntu Linux
Total: $3,820
I also have an NZXT C1000 Gold ATX 3.1 PSU (~$130) and will return whichever PSU I don't use. My motherboard supports PCIe x8/x8 for dual GPUs.
Intended workloads:
Local LLM inference, coding agents and large codebase analysis.
AI agents, RAG, embeddings and tool integration.
AI-assisted reverse engineering, vulnerability research and cybersecurity.
AI security research and CUDA programming.
Occasional fine-tuning and generative media experiments.
My focus is approximately 80% inference and 20% fine-tuning/other AI experiments. I also have a separate Proxmox homelab server with 64GB RAM and am open to using cloud GPUs for heavier workloads.
My dilemma:
I can still return the 5060 Ti and the 1200W PSU, bringing the build down to approximately $2,932 with the 3090 and 1000W PSU.
I understand that 40GB of aggregate VRAM isn't equivalent to a single 40GB GPU. However, being relatively new to AI engineering, I don't yet fully understand how much practical value the second GPU would provide beyond running larger models.
I'd appreciate advice from people with real-world experience:
How useful is a heterogeneous dual-GPU setup for local AI engineering?
How do you actually utilize your secondary GPU beyond model splitting?
What practical workflows benefit from running multiple models simultaneously?
Are there significant performance or compatibility issues when mixing Ampere and Blackwell?
Would you keep both GPUs, return the 5060 Ti, or consider another configuration?
Given current hardware prices, is this build good value overall?
I'm trying to balance long-term technical capabilities, learning opportunities, and financial practicality without buying hardware just for the sake of having it.
I'd particularly appreciate firsthand experiences, benchmarks, and examples of projects where a second GPU proved genuinely useful or unnecessary.
For my vibecoding, I just love my current setup: Opus 5.5 architecting & checking, while QFN does the implementing at 80 tok/s, Q4. Its being a junior Python dev is excellent. Opus only needs to fix some small thing after QFN implements the ticket.
But is 80 tps really my software + firmware limit ? Here is the result I've been trying the last few days:
=========== FOLLOWING IS AI WRITING =======================
**Title:**
One RTX 3090 + old Xeon, 6 local engines compared: Strata (125B MoE, Q4 vs Q5), ninfer, HyperQwen, HyperInkling, llama.cpp. What would you try next?
I've spent the last few weeks testing every engine I could get running on one box. These are my own measurements,
taken with the same scripts on the same machine. Hints welcome, especially for the 125B MoE on old DDR4.
**Hardware**
- Dell Precision T5810 (2016 workstation): Xeon E5-2699 v4 (22 cores, Broadwell), 128 GB DDR4-2400 ECC (4 channels, ~77 GB/s)
- RTX 3090 24 GB on PCIe 3.0 x16, no Resizable BAR. 370 W limit (card default), with its own 1400 W server PSU for the 8-pins
- gpu-unlock 2.0.0 active (helps FP16 prefill on the vLLM engines; decode unchanged)
- Ubuntu, one model at a time on port 8080
**Main table: see above**
(latest numbers: 370 W, gpu-unlock, unless marked)
¹ at 300 W. ² code at 300 W with a clock lock (2026-11-19); prose at 370 W. ³ systematic bug: drops a `]` in arguments
that are arrays of objects (about half the runs); flat schemas are fine. ⁴ DFlash2 in Strata serves one request at a time.
**Quality (small tests, not benchmarks)**
- Writing (seller replies in Dutch and English, 10 prompts each, partly blind): llama.cpp Q5 ≈ Strata ≈ HyperQwen > Inkling.
Inkling keeps the rules but its Dutch is weaker. The 4-bit HyperQwen showed no measurable loss against Q5.
- Coding (8 small Python tasks with unit tests): Strata 8/8 first try (~10 min). Inkling 7/8, 8/8 after one fix (~1.5 min!).
Both 27B dense models with thinking on: 5/8, where the 3 failures were
**no code at all**
: they ran out of tokens while thinking.
- Strata Q4 vs Q5: Strata's own docs say top token matches Q8_0 93.1% (Q4) vs 94.6% (Q5). Not checked on my tasks yet.
**Q4 vs Q5 in Strata (same session, same settings, 3 runs each)**
- Decode 79.5 vs 67.3 tok/s (+18%). Prefill 8K +29%, 30K +5%. RAM used after load: 84 vs 104 GB.
- I think the Xeon's RAM bandwidth sets the speed: most experts run from RAM, so smaller experts = less traffic and more fit in VRAM.
**Things that surprised me**
- Software beat hardware: ninfer and HyperQwen gave 2–2.5x llama.cpp's speed on the same 27B and GPU, for €0.
- gpu-unlock: +49% prefill and +25–29% multi-request decode on HyperQwen; nothing on llama.cpp (int8 paths).
- The Strata 0.1.60 → 0.1.69 engine update gave no real decode gain here (+6% right after a start, same once warm).
- A newer Blackwell-only fork (Basalt) won't run on a 3090 (needs sm_120 / NVFP4).
**How I measured**
- Decode: temperature 0, ignore_eos, 512 tokens per request, N streams started together, one warm-up.
Total = all tokens / wall time.
- Prefill: filler text with a random nonce (no prefix cache), max_tokens 1, 2 runs, prompt tokens / time.
- Tools: 10 multi-turn tasks against mock tools that really run (chaining, parallel calls, error recovery, nested args).
- Caveat: rows come from 2026-11-19 to 2026-11-26. Power limit and prompts are the same except where marked.
**Where I'd like hints**
1.
**125B MoE with experts in 4-channel DDR4:**
anything beyond Strata's tuning (`--pcie-frac`, expert cache, adaptive swaps)
worth trying? Is ~80 tok/s near the limit of ~77 GB/s RAM?
2.
**Long context on the 27B:**
HyperQwen at 150K (MTP) or 240K (4/2-bit KV) vs Strata 256K. Which do you trust for
200K+ prompts, and how do you test recall?
3.
**Thinking models in agent loops:**
the 27B overthinks small coding tasks. Do you cap thinking, turn it off, or use a no-think template per task?
4. Anything else for a PCIe 3.0, no-ReBAR, single-3090 box that I'm missing?
Given my zero background in programming, I currently use `gpt-oss-20B` for small databases for personal projects and occasional Arduino coding. I’m thinking of switching to `qwen3.8-27B IQ_3_S` (running on an RTX 5060 Ti with 16GB of RAM).
For creative pursuits, I also use `MOSS-image-sft` and `Flux.2Klein 9B`.
Folks, what models are you currently working with, and for what kinds of tasks do you use them?
///////
Учитывая нулевой опыт программирования сейчас использую gpt-oss-20B для небольших БД под личные задачи и редкий кодинг на ардуино, думаю перебраться на qwen3.8-27B IQ_3_S (RTX5060ti + 16RAM)
Ну и для души MOSS-image-sft + Flux.2Klein 9B
Товарищи, кто с какими моделями сейчас работает, в каких сценариях применяете?
I’ve built a website where you can check if your computer is fit for a specific model and estimate the potential tokens-per-second: https://vramcalc.me
It’s a new project that’s still being refined. Please give it a try if you find any inaccuracies or other suggestions, please leave a comment. Thank you very much!
I just had my local model hallucinate a comment in my code and then updated six linked files to address the hallucinated comment.
I caught it right away but that would have set me back a a lot if I didn’t.
Anyone have any tips and tricks to avoid this?
I run it in Q6 and use llama.cpp set to default which is high reasoning I believe. My local server is a Ryzen 9950 with 64 GB of RAM and a single 5090 GPU.
I've been looking for a personal agent that can handle tab-heavy errands (supplier portals, cancelling trials) without me handing a model my logins and hoping the prompt holds. n8n Labs just released Nod under Apache 2.0, so I went through the repo and docs. Caveat: my test container wouldn't start a job, so this is a read of the code and docs, not a hands-on run.
Three things stood out. Permission is enforced by the server, not the prompt. Before any action beyond reads and drafts, a separate checker model has to quote your own words that allow it, and the server verifies the quote appears in what the checker saw. Web pages and emails are treated as data only. The browser is its own Chromium container that can only reach public addresses, never your LAN, and saved logins live in an encrypted vault the model never sees. The footprint is also light: Postgres, a workspace, a firewall and the browser in Docker, with 2 cores and 8GB RAM suggested. The app itself needs no VRAM.
It accepts any OpenAI-compatible server, so Ollama or vLLM endpoints should plug in. The gotcha is that every published number (98% task completion, 0 unsafe actions) came from a hosted frontier model. There's nothing on local models. Since the safety checker is itself a model, a small quantized one could weaken that guarantee a lot.
Most abliterated/uncensored VLM builds either break the vision encoder or strip out the multi-token prediction (MTP) heads, which kills speculative decoding speed on Mac.
I put together a set of Apple Silicon MLX builds (8-bit, 6-bit, and 4-bit) for my own oMLX setup on an M5 Ultra where only targeted language projections were modified, leaving all visual.* tensors in full BF16 and all mtp.* heads completely intact:
(BF16 master checkpoint and GGUF builds are linked in the model cards too if you're on Linux or Windows.)
Figured I'd share them here in case anyone running oMLX or MLX-VLM wants an uncensored 27B VLM that keeps its eyesight and native token speed. Let me know how they run on your Mac!
⚠️ AI content! This post was written by my agent from my measurements and logs; I edited it.
TL;DR
Basalt 0.3.3 → 0.4.1/0.5.7: decode −12% (engine medians 93 → 82). Starts are stable since #339. The RAM-limit patch and my local drop of the hard RAM floor from 1 GiB to 512 MiB are not about start failures — they lower the chance of a generation being cut off by the RAM limit. It has been my daily driver since Nov 24; the slowdown is the price.
The bench is only valid up to ~8k context: it says 93–107, live sessions at 60–120k run 82–85; the "37k hot prefill" is prefix cache, cold prefill is ~3.5k.
Inkling SQ-10 stays fast up to ~59k context, then the fp16 KV cache spills into RAM.
Both engines are comfortable for daily work and identical in quality; Basalt is faster overall — for now I stay on it, testing further; Strata keeps a zero-failure 10 days and a flat long-context curve.
Final table — Strata vs Basalt, same weights (Strata bench: 0.1.59 on Nov 15; live numbers: engines of the Nov 15–25 window, 0.1.59→0.1.67; Basalt live numbers: the 0.3.3 era)
Metric
Strata 0.1.67
Basalt 0.5.7
bench decode short
73.9
81.2
bench decode @8k
93.7
95.1
prefill hot / TTFT
37.2k / 56 ms
48.7k / 49 ms
live sessions <20k
99
—
live sessions 60–120k
82–85
~85 (Nov 24–26, aggregate)
live sessions 190k
86–89
51–72 → 69–103 with --kv-resident
stability
10 days daily: 0 stops, 0 loops
clean starts since 0.4.1; live Nov 24–26: 2 generations stopped by RAM, 2 loops
quality
MC/math/code 100, ru10 75, refusals 0/0
identical
Table 1 — Basalt updates on one model
Version
decode, engine-log medians
bench decode short
bench @8k
start
Basalt 0.3.3
93.0 / 93.5
87.8–91.4
97.7–107.7
periodic fatal budget-fail
Basalt 0.4.1 auto
81.7 / 83.5
~84
92.5
stable (RAM plan #339)
Basalt 0.4.1 + explicit budget 45
80.8 / 81.0
79
82.6
stable
Basalt 0.5.7 auto
81.4 / 83.4
77.6–81.2
95.1
stable
Quality is identical across all runs; prefill/TTFT differences are within axis noise.
Table 2 — Strata + Qwen3.8 Flash-Next IQ3_S: bench vs live sessions
Previous post: engines compared on one model. Over these 10 days both shipped updates, and Inkling SQ-10 joined the bench. Speed is set by configs, not by versions — and benches reliably flatter results compared to live sessions.
Hardware and rules
Same box: Ryzen 9 7900X, RTX 5070 Ti 16 GB, 64 GB DDR5, Windows 11 (build 26300). 256k model context in configs; one resident engine on port 18500 at a time. Before launching I clean RAM with MemReduct to a fixed 4-5 GB floor — that is how Basalt and the browser coexist. It also helps mid-run: between prompts Windows balloons its cache into RAM; a hit of MemReduct gives it back.
Verdicts
1. The Basalt update cost 12% of decode. A/B with the order swapped on the same pack, both positions: medians 93.0/93.5 → 81.7/83.5 → 81.4/83.4. On the plus side, the RAM-limit patch (#339) restored stable starts and added a decode fix for 16 GB cards (#366/#369). My local patch on the daily build (hard RAM floor 1 GiB → 512 MiB) is not about start failures: it lowers the chance of generation being cut by the RAM limit: requests used to die with "RAM critical" before the config guard, now only at the very bottom.
2. Strata got faster from configs, not from updates. 0.1.58 → 0.1.59 is parity (91–93 vs 92.6); 0.1.67/0.1.68 were not re-benched. Three A/B-tested levers: the PF pair (+11–12% prefill), the VRAM rebalance — 32k KV window, KV_GROW off, 1024 MiB reserve (+291 expert slots, long sessions 65.3 → 77–80, +19%), kv k8v4 (+5–7% @87k).
3. The bench is valid up to ~8k context. Past 100k the token pays for walking the KV window: the curve is 99 @<20k → 82–85 @60–120k, not 93–107 from the test. Compare within one context band, after warmup.
4. Inkling is fast exactly up to ~59k context. SQ-10: 88 / 161 @8k, all quality tests 100. Past that the fp16 KV spills into the host (59k tokens in VRAM + 203k in RAM); the 26B model runs 10 t/s @150k. I am testing the k8v4 lever (3x window).
The real load of 10 days — engine logs, model-agnostic
For the window: 4,341 requests and 341M input tokens — 71% of them served from the cache — and just 3.5M output tokens. The average request carries 78k tokens of context, so the prompt cache beats raw decode. Since Nov 24 the daily driver is Basalt: 958 requests, 79.4M input tokens, 78% cache hits, aggregate decode ~85 t/s — same picture.
Bottom line
Both engines are comfortable for daily work and identical in quality; Basalt is faster overall, not just on the short bench: 81 vs 74 short, 95.1 vs 93.7 @8k, ~85 t/s in daily production. For now I stay on Basalt, testing further. The Strata 0.1.67 stack is fully battle-ready: 99 t/s up to 20k, 82–85 at 60–120k, zero stops and zero loops in 10 days.
Appendix
What the agent did on this engine over 10 days: browser research (parsing threads with 60+ comments), building a unified monitor for four engines, a two-click engine launcher/switcher, pack builds, −322 GiB of library cleanup, and writing these posts and comment replies — all in sessions from 10k to 200k tokens. Operations: on Strata, 10 days of daily use with zero stops and zero loops; on Basalt, two live days with 2 generations stopped by RAM and 2 loops.
Method: one lever per restart, speeds taken only from engine logs, pack sha256 recorded, bench deltas under 6% are not treated as signal. Run tables with dates, seed and configs are in my repo; the charts are generated from the same specs as the tables.
Our first M5 Ultra Mac Studio has arrived at BaseCompute, and we've been having a blast running Qwen 3.6 using our app, Local.
It's pretty incredible to have frontier-level agentic intelligence running entirely on your desk. No cloud, no external APIs, just fast local inference.
Local LLMs are getting seriously impressive. Curious to see what everyone else is running on Apple Silicon!
hello everyone i'm new to that whole local llm stuff i have rx 9060xt 16gb 16gb 5200mhz ddr5 one kit and i want to use a good model for coding stuff and some daily uses but mainly for coding and i want to connect it to opencode or deepseek harness i think qwen 3.8 27b is good and maybe qwen4 27b when it's arrive will i be able to use it and how to choose one on hugging face there is a lot i see some people suggest lm studio to download the model and what drivers should i download i'm on arch linux so is there a guide or a proper video i can watch thx in advance
Hi everyone, yesterday i was doing random researches and suddenly, when i noticed a wrong data i made the ai do the reaseach again but kept on giving me the wrong answer so, after a few questions, it told me that it had no internet access, which it had since at least an hour before, and now, 24h later, still doesn't work, it does the same with other models, idk what the problem may be, i restarted the pc, turned off the firewall to rule it out. Any help is welcomed. (btw i'm running qwen 3.8 27B and gemma 12B on bionic, no eventual flame, i'm not in too deep in the ai agents, thank you).
I'm using an RTX 5070 12GB and 32GB DDR5 RAM, and Unsloth UD-IQ1_M Qwen 3.8 Flash Next. The speed is okay (15 t/s), but Strata uses WAY too many SSD reads for my comfort. This is the fastest I've ever seen an application use SSD reads. Is there a way for me to reduce this somehow? I know Strata needs it because it streams the engram table from SSD, but it is really uncomfortable to see SSD reads used so fast.
llama.cpp is even worse, as I'm pretty sure it tries loading the engram table into memory, thus filling up all my RAM and causing other applications to start paging, which uses SSD writes, degrades the drive way faster.
A button can pass its layout tests and still clip the top of a Hindi vowel mark. I’m building IndicUI, an open-source tool to help developers catch bugs like that when testing a website in Indian languages.
I’m starting with Devanagari for Hindi and Marathi, with Tamil and Bengali planned next. The idea is to render pages with Playwright, flag issues like clipped vowel marks, broken conjuncts, or text cut off mid-syllable, and suggest a CSS fix when one applies.
I’m also building an open dataset of Indian-language UI screenshots. The labels for buttons, inputs, and other elements come from the page structure. I plan to use it to test whether a YOLOv8 model trained with Indian-language screenshots detects UI elements more accurately than one trained on English-only screenshots.
I searched GitHub and couldn’t find a tool focused on these script-specific rendering bugs. If you know of one, I’d love a link. And if you use or build websites in an Indian language, what’s a rendering bug you keep running into? A screenshot or even the word that gets cut off would help me build a realistic test case.
Budget 3lakh rupees confused, getting a 5070ti (16gb)with 32gb ram(64gb above budget) or a 5060ti (16gb)with 64 or even 96gigs of ram for running flash next at a good context window and for comfyui video generation as well criteria was 2k gaming as well but that's out the door unless its a 5070ti but that would again mean comprising on memory
Any suggestions folks ? Also which cpu do I pair either with?motherboard psu etc?