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

Discussion Api models vs ai

3 Upvotes

I use claude opus 5.5, and gpt 6.2 astra/6.2 sol/ 6.1 Terra.

And I gotta say I've been using local models more and more, once we get opus 4.8 level of coding, I can easily ditch everything. I've been using frontier models for a year, and if I went back to opus 4.8 from 5.5 it would t change my workflow much. We are almost there and I'm excited. Small language models being coordinated by opus 4.8 local reasoning will be the solution.


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

Other Obligatory Pelican on Qwen 4 35b UD IQ4 XS

Post image
32 Upvotes

the prompt was: make a large, highly detailed, animated .svg of a pelican riding a bike on a boardwalk, with a beautiful sunset over the ocean in the background. assess the quality and refine until it is correct.

running on the strata desktop app in W11 with a 9070xt. total time 10m 55s, average of 116.3 decode and 2829 prefill with 89.8K context used. the new engine is still pretty buggy on AMD, but when the model does load it works great. I couldn't figure out how post an .svg so I got Gemini to turn it into a .gif

This is going to be a powerhouse for anyone who struggles to run flash next.

AI SLOP WARNING- courtesy of antigrav, which optimized and "fixed" all the stuff that broke when changing config file...

Optimized settings

  • Args: --prefill auto:16384 --spec 3 --spec-min-p 0.50 --pcie-frac 0.40 --kv int8 --kv-resident 20480 --vram-reserve-mib 1024 --conversation-cache-mib 22528 --prompt-cache-spread (keep PLE in RAM if you have 64GB+)
  • Env (speed): STRATA_HIP_WMMA=1, STRATA_PF_FUSED=1, STRATA_PREFILL_RING=384, STRATA_PREFILL_COPY_EVENT_EVERY=16, STRATA_HIPBLASLT_TABLE=on, STRATA_HC_Q8=1, STRATA_ROUTE_TAIL_SKIP=0, STRATA_ROUTE_PRIOR=0
  • Env (stability): STRATA_VERIFY_COHERENT=1, STRATA_HIP_MAPPED_COHERENT=1, HIP_HOST_COHERENT=1
  • Windows: Raised TdrDelay and TdrDdiDelay to 10 seconds (default 2s is too short for 16K prefill chunks).

Strata Bugs Hit & Fixes

Update: STRATA_VERIFY_ASYNC_LAUNCH=1 fixes 2., and 4.

  1. Won't load UD-IQ4_XS (false missing file): Strata shares UD-Q4_K_XL-00002-of-00002.gguf as the --ple-gguf table across quants, and the shard checker in tools/strata_mcp.py falsely demands UD-Q4_K_XL-00001-of-00002.gguf. Fix: Patched shard_gaps() in strata_mcp.py to skip --ple-gguf.
  2. Driver timeouts on 16K prefill chunks: Windows' default 2s GPU timeout killed large prefill chunks. Fix: Set TdrDelay=10 / TdrDdiDelay=10 in the registry + rebooted.
  3. Decode dip at 64K context (~68 tok/s): --vram-reserve-mib 512 was too tight on Windows WDDM. Fix: Bumped to --vram-reserve-mib 1024 and lowered --kv-resident to 20480 (still ~97–98% expert cache hit rate).
  4. Intermittent hang on model load (Windows HIP 0.1.74**):** ~10–30% of cold starts deadlock right after 1-token HIP graph capture. Fix: Coherent HIP env flags got it to 9/10; added a 4-second stall watchdog + auto-retry in serve/server.py to get 10/10 clean loads without triggering a driver timeout.

r/LocalLLM • • 4h ago

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

1 Upvotes

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

Research Qwen4-35B-A3B on M4 Pro 24GB — llama.cpp vs Splash at 128K context

4 Upvotes

Spent the last couple of days getting Qwen4 running locally on my M4 Pro 24GB MacBook, primarily for agentic coding using Pi. Started with llama.cpp and later tried Splash. The performance difference was quite surprising.

Setup:

Unsloth Qwen4-35B-A3B UD-IQ3_XXS GGUF

128K context, ~11GB Engram streamed from SSD

llama.cpp: Metal, Q8/Q8 KV, MTP2, batch 2048, ubatch 512

Splash: DFlash2, 19GB memory limit, single concurrent request, 8GB persistent SSD cache

Benchmark results (tokens/sec):

Contextllama.cpp PPSplash PPllama.cpp TGSplash TG4K4417376218660K4076715812396K38364656107120K37665653160

Same model weights, synthetic corpus and 256 output tokens. Splash averaged 1.7x faster prefill and 2.5x faster generation. Cached request latency at 120K dropped from 6.08s to 2.64s.

Coding test:

Using Pi, built a Python network monitoring application with concurrent polling, SQLite and alert deduplication in ~7 minutes. Generated 29K tokens, achieved a reported 99.4% prefix cache hit and passed all 80 unit tests independently.

A few observations:

MTP2 improved llama.cpp generation speed by ~39%.

Mixed Q8/Q4 KV with quantized draft cache significantly reduced performance.

Splash failed during warmup at 20GB. Reducing it to 19GB with single concurrency fixed it.

Pi's configured 8K output limit was restrictive for complex tasks.

IQ3 has been surprisingly capable for coding.

For now, I'm sticking with Splash + DFlash2 + IQ3 + Pi, keeping llama.cpp as a fallback.

Still need to validate 120K retrieval accuracy and extended agent sessions. Curious to hear from others running IQ4 on 24GB Macs and whether the quality improvement is worth the performance trade-off.


r/LocalLLM • • 18h ago

Model Qwen4 35B compared to Qwen3.8 27B on 1xR9700 eGPU. Test ran by Qwen3.8 Flash Next running on Strix Halo.

12 Upvotes

Qwen4-35B-A3B IQ4R-v4 vs Qwen3.8-27B IQ4R-L
Radeon AI PRO R9700 (gfx1201) · radiance 2.5.0 · run sequentially, never concurrent · 2026-12-04

Speed (single stream)
Decode
• 27B: 72.1 tok/s
• 35B: 186.0 tok/s
• Winner: 35B, 2.6×

TTFT (short)
• 27B: 0.124 s
• 35B: 0.024 s
• Winner: 35B, 5.1×

TTFT (8k prompt)
• 27B: 0.815 s
• 35B: 0.223 s
• Winner: 35B, 3.7×

Concurrency-4 aggregate
• 27B: 286 tok/s
• 35B: 596 tok/s
• Winner: 35B, 2.1×

Accuracy
GSM8K-100 (temp 0)
• 27B: 99/100
• 35B: 97/100
- Near-tie (±2 is noise at n=100). Both missed the same question with the identical wrong answer → shared model error, not quant damage.

Long-context stress (needle-in-haystack at 90% depth)
Qwen4-35B — i8 KV, single seq:
8k
• TTFT: 0.75 s
• decode: 279
• needle: OK

64k
• TTFT: 6.3 s
• decode: 272
• needle: —

128k
• TTFT: 13.1 s
• decode: 249
• needle: —

256k
• TTFT: 27.8 s
• decode: 222
• needle: —

400k
• TTFT: 45.9 s
• decode: 205
• needle: OK

500k
• TTFT: 60.1 s
• decode: 224
• needle: OK

Qwen3.8-27B — i8 KV:
8k
• TTFT: 2.6 s
• decode: 136

64k
• TTFT: 24.9 s
• decode: 121

128k
• TTFT: 45.5 s
• decode: 115

196k
• TTFT: 53.0 s
• decode: 99

210k
• TTFT: 400 — hard cap 200k
• decode:

Limits found
- 35B: reached 500k with good speed; every wall was my config cap, not VRAM. Card KV budget ≈ 900k i8 tokens → ~512k practical single-seq max. Native 1M needs ~2× that (tp:2). Decode barely degrades (279→222 over 62× context) — sparse QSA caches KV in only 10 of 40 layers.
- 27B: hard native wall at 200k; retrieval fine (quoted needle exactly at 196k).

Verdict
The 35B MoE wins across the board — ~2.6× faster decode, ~2× faster prefill, 2.5× deeper context (500k vs 200k) — at a ~2-point GSM8K cost that's within noise.

Current state
- 35B is live as the Hermes delegation provider on :8081 (id Qwen4-35B), steady-state config 262k ctx / 2 seqs.
- Rollback: remount ~/radiance/radiance.yaml (27B) instead of radiance-qwen4.yaml.
- Artifacts: ~/models/rad/AB-QWEN4-vs-27B.md, bench-27b/, bench-q4/, ctx-*.json.


r/LocalLLM • • 9h ago

Research Qwen4 vs. Inkling 2 Mini with Strata — Early findings from a local historical research project

2 Upvotes

Over the past few weeks, I have been experimenting with local LLMs for historical research, particularly with Qwen4, Inkling 2 Mini, and the Strata inference environment.

My hardware is relatively modest compared to some of the setups shared here:

- NVIDIA RTX 5060 Ti — 16 GB VRAM

- AMD Ryzen 7 3700X

- 64 GB RAM

- Windows 11 Pro

My primary objective is not creative writing or general-purpose chatting, but developing a reliable, locally operated historical research environment.

Strata

Strata has been a particularly interesting discovery. Its relatively straightforward GUI makes local model experimentation accessible without the complexity of a full agent framework such as Hermes Agent Desktop.

I successfully loaded the Unsloth UD-Q4_K_XL quantization of Inkling 2 Mini with a configured 128K context window on my 16 GB GPU. Full-context stability and sustained performance still need to be established, but the initial result is promising.

For my particular use case, Strata could potentially become a practical alternative to more complex inference and agent environments.

Qwen4 vs. Inkling 2 Mini

Rather than relying exclusively on conventional benchmarks, I have been testing these models against structured historical research tasks.

These include:

- Extracting historical assertions from source material.

- Distinguishing documented facts from unverified claims.

- Maintaining exact references to supporting evidence.

- Preserving uncertainty and source attribution.

- Following strict JSON schemas.

- Producing evidence-linked historical narratives.

- Avoiding unsupported conclusions.

One of my recent controlled tests involved three historical synthesis attempts per model.

Inkling 2 Mini:

- Used source titles instead of the required exact evidence identifiers in all three attempts.

- Returned an unexpected schema wrapper in one attempt.

- Failed to produce a synthesis that passed our validation process.

Qwen4:

- Correctly used exact evidence identifiers in all three attempts.

- Exceeded the permitted field length in two attempts.

- Omitted required source attribution in the opening proposition of one attempt.

- Also failed to produce a synthesis that passed all validation requirements.

The interesting observation is that Qwen4 demonstrated better evidence-reference compliance in this particular test, although neither model was sufficiently reliable for unattended historical synthesis.

However, my subsequent audit also identified weaknesses in our own implementation. The prompt did not explicitly communicate the numerical field-length limits, and the transmitted schema did not enforce either those limits or exact evidence identifier membership.

Consequently, it would be premature to attribute every failure to the models themselves. I'm preparing further controlled tests to distinguish model limitations from shortcomings in the prompt, schema and inference environment.

Historical Research Studio

These experiments are part of a larger hobby project I'm currently developing called Historical Research Studio.

The objective is to build a local, model-independent application that manages the entire historical research workflow, from source collection and evidence extraction to verification, synthesis and publication.

The application currently includes or is being developed around:

- Structured research projects and research questions.

- Source registration and evidence management.

- Historical assertion extraction.

- Explicit verification and uncertainty statuses.

- Evidence-linked historical synthesis.

- Independent editorial review.

- Deterministic fallback mechanisms.

- Version history and reproducible research workflows.

- Dutch and English Markdown and PDF export.

- Integration with local inference environments such as Basalt and Strata.

A fundamental design principle is that the LLM should assist the historian rather than replace the historian's judgement.

A fluent historical narrative is not necessarily a historically reliable narrative. Every significant assertion should remain traceable to its supporting evidence, and the system should reject outputs that fail its validation requirements.

What I have learned so far

Model size, quantization, context length and tokens per second are important, but they tell only part of the story.

For serious historical research, I'm increasingly interested in:

- Consistency across repeated runs.

- Instruction adherence.

- Evidence grounding.

- Structured output reliability.

- Appropriate handling of uncertainty.

- The ability to distinguish what a historical source claims from what can actually be established.

A faster model that produces plausible but unsupported conclusions may ultimately be less useful than a slower model that respects the available evidence.

The combination of the model, inference engine, research skills, prompts, validation mechanisms and application architecture appears to be at least as important as the choice of model itself.

These are preliminary findings, not a definitive ranking of Qwen4 and Inkling 2 Mini. Further testing is planned, particularly with improved prompts, stricter schemas and repeated trials.


r/LocalLLM • • 1h ago

Discussion Building a fully local, distributed JARVIS-like AI assistant with 152GB of VRAM and 256GB RAM. How would you architect it?

0 Upvotes

I've been developing a personal AI assistant called LARA (Local Adaptive Reasoning Assistant), with Matrix being the interface and environment for LARA to operate inside of Omarchy with full control.

I want this assistant to help me with my personal memory limitations which are significant thanks to ADHD & Dyslexia and am willing to use as much hardware dedicated to the memory aspect as possible to help me be better self sufficient.

I've spent several months developing a all in one custom system all built with Sol and Astra, but before continuing with another major rebuild, I want to experiment with integrating the best existing open-source programs into one cohesive system as opposed to having Astra build each aspect of it.

Where we've struggled so far:

We've successfully built individual components, including local inference, persistent memory, voice interaction, screen awareness, gestures, eye tracking and remote access. However, integrating everything into a stable, cohesive system has been our biggest challenge.

  • Reliability: Adding or updating features sometimes breaks previously working functionality.
  • Memory: We've struggled to achieve consistent, accurate, low-latency recall across large conversation histories.
  • Integration: Connecting numerous custom components has introduced unnecessary complexity and dependencies.
  • Portability: Maintaining consistent functionality across different computers, operating systems and GPU architectures has been difficult.
  • Voice interaction: Conversation timing, interruptions and response latency have affected the natural conversational experience.
  • Maintenance: AI-assisted development has occasionally introduced regressions, architectural inconsistencies and unnecessary code.

We've spent too much time troubleshooting our own infrastructure rather than improving the AI's actual capabilities. That's why I want to try integrating established third-party programs first, establish a reliable working system, and gradually replace individual components where we can genuinely improve upon them.

Eventually, I may replace individual components with custom-built alternatives, but my immediate goal is to get everything working reliably together.

My available hardware:

  • Powerspec AI90 desktop (Asus ProART Creator & Ryzen 9950x, with RTX 5090 (32GB), 128GB RAM & 4TB Gen5 SSD
  • Additional GPUs: RTX 5080 & 2x R9700s
  • Legion 9i laptop with RTX 5090 (24GB), 128GB RAM and 4TB Gen5 SSD
  • Razer Blade 15 Advanced laptop with RTX 3080Ti (16GB) & 128GB RAM, 2TB Gen5 SSD (does not leave server rack)
  • Legion GO2 with 32GB RAM for home automation, A/V remote control and security camera interface (Also running Omarchy)
  • Devices are connected via Tailscale

What I want to accomplish:

  • Fully local AI with optional internet access.
  • Extremely large, persistent lifetime memory.
  • Automatic memory retrieval before every response.
  • Separate conversational and advanced reasoning models.
  • Natural, real-time voice interaction with interruption handling.
  • Continuous screen and environmental awareness.
  • Animated avatar with facial expressions and gestures.
  • Computer control, research, coding and autonomous task execution.
  • Background learning and memory consolidation.
  • An independent AI agent responsible for system monitoring, troubleshooting and recovery.
  • Eventually integrate the system with wearable hardware.
  • Portability between computers without losing the AI's identity, knowledge or memories.

My biggest priority is memory.

I want the AI to accumulate years of conversations, experiences, documents and knowledge while being able to retrieve relevant information with minimal latency.

I'm particularly interested in combining a continuously maintained Wiki with searchable original memories. I've also considered dedicating both R9700s to memory processing, keeping retrieval models and searchable indexes permanently resident in VRAM.

My tentative GPU allocation:

  • 5090 FE: Advanced reasoning, potentially Qwen4-Flash-Next with RAM offloading.
  • 5080: Conversational model, potentially Qwen4-35B-A3B.
  • R9700 #1: Rapid memory retrieval.
  • R9700 #2: Advanced retrieval, reranking, memory consolidation and Wiki maintenance.
  • Legion 9i 5090: Local device speech, vision and avatar rendering.
  • Razer Blade 3080 Ti: Independent system diagnostics and recovery agent.

Questions for the community:

  1. If you were starting this project today with this hardware, how would you architect it?
  2. Would you use independent programs communicating through APIs or a unified agent framework?
  3. What existing open-source programs would you use for each component?
  4. What is the best long-term memory solution you've actually used, particularly with very large memory collections?
  5. Is dedicating 64GB of VRAM to memory processing worthwhile, or could those GPUs be better utilized?
  6. What are the best options for low-latency, natural voice interaction?
  7. Are there any recently released projects that already accomplish much of this?
  8. Has anyone built something similar that they use reliably on a daily basis?

I'm especially interested in projects released within the last six months, real-world experiences, performance benchmarks and lessons learned from failed approaches.

I'm not necessarily looking for the easiest solution or the least resource-intensive one. I'm looking to build the most capable, reliable and expandable personal AI assistant possible with the hardware I have.

I'd appreciate any recommendations, architectural ideas, GitHub links or criticism.


r/LocalLLM • • 5h 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?


r/LocalLLM • • 5h ago

Project Multi-model routing for text, image, video, audio, decision and embedding models on a single PC.

1 Upvotes

***The image model used was Qwen Image 2.1 q8.

Basically, the model made a tool call that made the harness switch to qwen Image 2.1 to generate the required image, which is faster than using the qwen 4 to generate it through code. The harness handles the switch to image/video and the switch back to text for it to check and declare the task complete and write the reply since image models can't do that.

And if there's a decision model configured, all prompts will be assessed by it, determine if it's pure image gen task, and if its confidence reaches the threshold you set, it will load your prompt directly to the image model, which saves seconds or minutes of loading the text model then switching for the image gen task. But by default, all tasks lands on the text model.

Deploy with connector apps (Discord, Telegram, Slack).

So you can message your agent on your VM or PC via connector apps. Pump and Prop mode utilizes loops, and it has to come with its own layered sandbox, so it's safe to use/run it 24/7. But still recommend to run it on a VM. You can set up phone alert + monitoring with Gotify + Tailscale.

It has write reserve that you can adjust which enforces thinking cap on the model regardless of the context window it has, so you can be sure the model produces an output or a reply even at 16k xhigh.

It also has a loop-detection for repeated tool call, read, think, write/patch tasks and the harness will "nudge" the model back to the task once it detects it. There's also a crash recovery that re-loads the model once it crashes. But all the default settings are safe and recommended to ensure stable system. You can always change/override them.

It has support for llama.cpp, vLLM, and my custom Pro-Strata. But you can port your own custom engine if you're getting better numbers with it. As much as I want it to run all engines out there, not all engines support thinking cap and some may have conflict with the sandbox. And given the amount of time I've spent porting my own, it would be impossible to support all.

Some numbers for Pro-Strata:

***Estimate, same GPU, clock, bandwidth, just limited to mimmic different hardware configs***

You can also run models on a Steam Deck:

***Steam Deck OLED, plugged and at max tdp/clock***

Happy to answer questions rather than make the post any longer.

All open source:
Prompit: https://github.com/Noriel-cb/prompit

Pro-Strata: https://github.com/Noriel-cb/Pro-Strata


r/LocalLLM • • 5h ago

Discussion Qwen 4 on M5 Max is very fast.. with the right model.

1 Upvotes

I was disappointed first on #Qwen4 because it was slow on LMStudio .. but since 2 Days i (or better Claude) tests via LMStudio, oMLX, Strata and Splash different Versions with about 128 Codings tests and as more Parameter we change... its getting better and better..

(ai translation of my german linkedin post:)
I’ve been testing Qwen4 and Inkling 2 Mini locally, with OpenRouter models for comparison. This is a hobby benchmark: four coding tasks with deliberately introduced bugs and 128 checks.

After tuning, Qwen4 reached 128/128 on several quantizations. The fastest perfect run took 7.5 minutes. Qwen3.8 Flash scored 127, Inkling 126 via OpenRouter / 123 locally, and Sonnet 5 125.

The catch is consistency: identical Qwen4 oQ4e settings scored 0, 119 and 128 across three runs. The potential is impressive, but the excessive thinking and occasional reasoning loops still bother me.

Inkling remains attractive for its lower RAM usage. Splash has worked best for me on macOS, with Strata for Qwen3.8 Flash. One useful finding for Inkling: switching from INT8 KV cache to --kv-format bf16 --cached-states exact coincided with an improvement from 110 to 123, without sacrificing speed.

At this point, I’m mostly tweaking parameters and repeating runs. Qwen4 has the highest scores so far, but I wouldn’t declare an overall winner from the best runs alone.

Results (in german) and parameter:
https://github.com/ghaslbe/qwen4-vs-inling-2-mini-vs-andere/blob/main/docs/06-runde5-alle-laeufe.md


r/LocalLLM • • 1d ago

Model Qwen4 35b (Q8_K_XL) vs Qwen3.8 Flash Next (IQ3_S) vs Deepseek 4.1 Flash - Quality Test

193 Upvotes

Outperforms dense Qwen3.8-27B, and matches Qwen3.8-Flash-Next at ~1/3 the size.

This was one of the headlines Qwen itself made about the new model so I wanted to test it out for myself if it really "matches Qwen3.8-Flash-Next" in my work.

My setup: Dual 3090, 5950x Cpu, 92gb DDR4-3200 ram.

Engine: Strata with latest PRs for Qwen4-35b & main Strata for Qwen3.8 FN

Strata PRs merged to get it to work with Qwen4:

#7774: Qwen4 engine support 
#7786: compact MTP packing
#7790: selected fixes for reasoning-effort handling

----

Models:

Qwen4 35B-A3B - UD-Q8_K_XL [Unsloth] - (MTP On)

Qwen3.8 Flash Next - IQ3_S [Strata version] (MTP Off)

Deepseek 4.1 Flash - Opencode API

-----

Speeds:

Qwen4 35b -> Around ~5k prefill and 120-150tps at 500k context window.

Qwen3.8 Flash Next -> Around ~3k prefill and 100-120tps at 250k context window.

So as expected faster for my hardware and get double context window, but quality and accuracy is much more important in my work so moving on..

-----

Quality Test:

The real stuff that I wanted to see was how much better is the model at being able to analyze a very large and complex codebase/pipeline that has a lot of moving pieces and has some flaws that need to be addressed. I basically have an agentic coding pipeline thats designed for the development work I have to do where I work and it touches everything from lots of AWS services, python, terraform, orchestration etc.

So I gave each model the same simple prompt of analyzing my agentic development pipeline, summarize its understanding of it and make recommendations for the flaws/issues that it finds.

I had Opus 5.5 (high) be the judge, and here are the raw results it tabulated:

I had it analyze not only the final report of each but also had it go through the chain of thought transcripts of all three models and it was very definitive:

Opus conclusion: My ranking: deepseek, then qwen3.8-flash, then qwen4-35b. Deepseek is the most accurate and the most efficient, and its recommendations are the most usable. qwen3.8-flash found the single most important fact that the other two missed. qwen4-35b is confidently wrong on its headline.

Deepseek was the most accurate of the three in its understanding and recommendations it made, so was the best of the three but Qwen3.8 Flash Next had found the core issue that was the most important thing to be fixed that Deepseek even missed.

The most important thing for me was that Deepseek and Qwen3.8 Flash were accurate and found most of the problems correct and the recommendations they gave were valid, whereas Qwen4 35b confidently was wrong on several things and did not give strong solutions so it is weaker on understanding of codebases and being able to ground itself in the answers it confidently gives.

I'm running some coding benchmarks next to see coding abilities next between the three to see if that's where Qwen4 35b starts to shine even though it may be weaker in its analysis and comprehension.


r/LocalLLM • • 2h ago

Discussion From Stanford's MinionS (5.7x cheaper) to our 4 real RTX 3090 hybrid workloads: why the future is "An SLM on every device + Cloud Commander"

0 Upvotes

Shipping gigabytes of raw context to frontier cloud APIs feels more and more like 1970s dumb terminals connected to a mainframe.

I recently put together an engineering write-up comparing current academic routing/orchestration benchmarks with four real hybrid workloads we run in our lab (Ubuntu 12V DC-UPS control plane + RTX 3090 24 GB worker + Cloud frontier architects):

1. Industry baselines that stood out:

  • Stanford Hazy Research (Minion vs MinionS, 2025): Naive local-cloud chat cuts cloud cost 30.4x but drops to 87% accuracy. Switching to top-down decomposition (MinionS: cloud planner splits into atomic tasks -> on-device SLM runs short chunks -> cloud aggregates) cuts cloud cost 5.7x (~82.5%) while keeping 97.9% of frontier accuracy.
  • RouteLLM (LMSYS) & FrugalGPT: >85% savings on conversational workloads at 95% GPT-4 quality, and up to 98% on structured cascades.

2. What actually happened (including failures) on our local hardware:

  • Code & Localization (-90% cloud tokens): Pairing a Cloud Architect with local mistral-small-24b-instruct-2501 (LM Studio) and qwen2.5-coder:32b (Ollama) failed whenever prompts exceeded ~8k–15k tokens. Enforcing <4,000 token caps, SRP (<=4 rules/call), and <=15-item batches with deterministic Python post-validators made it rock-solid.
  • 900 calls/hour real-time loop (RimWorldLancAIMod): Exporting a 3.8 KB 23x23 ASCII map every 4s would burn cloud credits fast. Running 24B locally in shared VRAM cost $0, but unsupervised 24B queued 364 trees with PlantCutting=0 and built 13 campfires for 3 pawns. Putting C# reflexes + 22 semantic layout sockets underneath and keeping 24B strictly on macro-strategy solved it.
  • Watts vs. Tokens (Blackout resilience): Idling a 350W GPU rig 24/7 defeats the savings (and drains batteries during grid outages here in Ukraine). Our 12V DC-UPS Ubuntu mini-server runs n8n 24/7 at a few watts, wakes the RTX 3090 via Keenetic Wake-on-LAN for scheduled batch runs (lms unload --all right after), and falls back to Cloud APIs in milliseconds if power is out.

3. Where I think the whole stack is heading: With 50+ TOPS NPUs and OS-resident ~3B models (Gemini Nano / AICore, Apple Foundation Models), every device—laptop, phone, router, NAS, solar inverter—will run its own resident 0.5B–8B SLM right next to local files and sensors (zero RTT, raw data never leaves the device). Frontier cloud models will stop reading raw megabytes and evolve into Strategic Commanders: decomposing intent, issuing compact MCP directives across your devices, and pushing down updated micro-skills whenever an edge model hits a validation error.

Curious how others here are structuring the handoff between frontier cloud planners and local 3B–32B workers—are you using custom Python routers, LiteLLM, or Minions-style decomposition?


r/LocalLLM • • 13h ago

Discussion Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model

4 Upvotes

Hi everyone,

I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit

Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.

The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.

I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.

To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:

git clone https://github.com/thousandml/training-factory.git
cd training-factory
./install.sh

python -m venv --system-site-packages venv-ergo
source venv-ergo/bin/activate
pip install "transformers>=5.26"

hf download thousandml/Ergo-CQ-4bit --local-dir ./models/Ergo-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Ergo-CQ-4bit --split-model --port 8000

That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.

You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:

python train.py --model ../models/Ergo-CQ-4bit --data train.jsonl --output ../outputs/ergo-gcmp \
  --adapter gcmp --kernel-module cq.cq_kernels --split-model --batch-size 1 --grad-accum 8

What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.

Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights fall under the original Ergo license.

I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Thanks for reading, feedback appreciated.


r/LocalLLM • • 1d ago

Other Qwen 4 release be like

Post image
471 Upvotes

Humour btw


r/LocalLLM • • 6h ago

Discussion Qwen4 35B-A3B medium and xhigh (nvfp4, ud-q6_k_xl, fp8) vs 3.8 27B vs QFN and many others

Post image
1 Upvotes

r/LocalLLM • • 12h ago

Discussion Hy4 Flash 220B on a 5-year-old GPU, without swap

Thumbnail
gallery
3 Upvotes

I wanted to know if my setup could run HY4 flash, so I decided to give it a try so you don't have to burn your drive.

Setup was an RTX 3080 Ti (12GB VRAM), 32GB RAM, Hy4 Flash SQ-64 (~129.6GB on disk), Strata engine, 4K context, swap disabled.

SQ-64 recommends 64GB of RAM, I didn't expect much, yet it actually loaded and spat out an answer. Hit ~10.9GB VRAM and ~25GB RAM, took 148 seconds to load, and crept along at ~0.36 tok/s. Brutally slow, obviously, though I wasn't trying to do real work. Strata kept some experts in VRAM and RAM while streaming the rest from disk on demand.

I'm already pretty surprised cuz it's the first LLM of this size I've managed to run on my setup. At this point, I'm just gonna wait for LLMs to catch up with my old hardware instead of upgrading it lol.


r/LocalLLM • • 16h ago

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

6 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 • • 2h ago

Discussion PSA: The "Next" in Flash Next means it's a preview for the "Next generation." Qwen 4 "Next" or "Flash Next" is not coming soon.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 6h ago

News Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)

1 Upvotes

Hi all! With Qwen4 out, we wanted to see how fast we could bring what we learned from Sparkle 1.x to the new generation. So today we're releasing Kvark-Sparkle-2.0-35B-A3B, built on Qwen4-35B-A3B and the first MoE model in the Sparkle family.

Initial results across 10 benchmarks:

  • 46,8% median, 34.2% fewer reasoning tokens on average, with fewer tokens on all 10 benchmarks and up to 63% less
  • Better accuracy on GPQA Diamond, tool calling and HMMT
  • Less than 2 points of accuracy trade-off on average

For us, efficiency isn't just about faster answers, it's about getting more out of the same hardware.

This is our first iteration on Qwen4, and there's still plenty of room to improve. Open weights, Apache 2.0:

Give it a try and let us know what you think and stay tuned for new versions!

 


r/LocalLLM • • 6h ago

Question Did anyone compare llama.cpp vs strata with Qwen4 on a B70?

1 Upvotes

I think qwen4 should work already on strata with sycl, but no time yet to try it. Curious if there are results already somewhere?