r/LocalAIStack • • Jun 25 '26

Things I’ll check first next time LiteLLM breaks in front of vLLM

5 Upvotes

Lost a chunk of time last week on LiteLLM + vLLM errors that looked like backend problems, but weren’t.

Setup: two vLLM backends, LiteLLM in Docker, one OpenAI-compatible endpoint in front.

This is what bit me:

  1. Cached LiteLLM deployment.

    Changed the backend to require an API key, updated LiteLLM, restarted vLLM, still got 401s. The missing step was restarting LiteLLM itself. `docker restart litellm` cleared the old keyless config. If your LiteLLM models are DB-backed, restart after changing auth, URLs, or params.

  2. Wrong model string going to vLLM.

    LiteLLM’s `model_name` is just what your apps call. The string after `openai/` is sent to vLLM and must match `--served-model-name`. If they differ, you get 404s through the proxy even when direct curls work. Hit `backend:8000/v1/models` and use the name it returns.

  3. Docker `localhost` mistake.

    `api_base: http://localhost:8000` from inside the LiteLLM container means LiteLLM is calling itself, not your host. Use the actual backend address, `host.docker.internal` with `host-gateway`, or the bridge gateway.

Also worth mentioning: don’t treat `systemctl is-active` as “vLLM is ready”. It can be active while still loading weights or compiling kernels. Poll `/v1/models` and only call it ready when that answers.

remain active while weights are still loading or kernels are being compiled. The annoying part is that each error points you at the wrong layer. So yeah, check the proxy before blaming the backend.


r/LocalAIStack • • 3d ago

Inkling 2 Mini on a 16GB RTX 4080 vs a 32GB MacBook M5: the PC was 2x faster in chat but built nothing in a coding agent

Thumbnail
gallery
4 Upvotes

I tested Inkling 2 Mini (26B total, 3.4B active, looped middle layers) on two machines normal people own, in GGUF and MLX, then gave it a real coding job.

**PC: RTX 4080 SUPER 16GB + 32GB RAM, LM Studio (GGUF)**

- Default settings: ~8 tok/s

- After 3 changes: ~38 tok/s

  1. GPU offload to max

  2. MoE experts of only 6 of 24 layers forced onto CPU (everything else on the card)

  3. mmap on

- After a day of uptime it fell to 3 tok/s. A reboot fixed it, so reboot before you benchmark.

**Mac: MacBook Pro M5 32GB**

- GGUF in LM Studio: 21 tok/s, but 31/32 GB used + 5 GB swap. 64K context loaded, then "Compute error" on the first message. 48K worked; Parallel 4 → 1 is what let bigger context load.

- MLX in oMLX (needs 0.8.1+, older says "model type not supported"): 22 tok/s, 36% RAM free at start, no swap, 64K works. The memory guard stopped my first long job, and RAM climbs to ~24 GB by the end of a coding run.

**Real test: my paper sketch → an app, in OpenCode (reasoning Low)**

- Mac GGUF: 23 min, 3 files, looks like my sketch, 0 errors

- Mac MLX: 13 min, 3 files, messier layout

- PC: 38 tok/s in chat but ~7 tok/s inside OpenCode. ~11K words of agent instructions + the image fill 16 GB. 3 tries, 0 files.

- Both Mac apps got the bill split wrong the same way: ₹760 charged on a ₹270 bill. On High reasoning it got the maths right in its thinking, then ran out of memory. So the format changes speed and memory, not the brain.

**My take:** 16GB card = great for chat, not enough for a coding agent. 32GB Mac = use MLX. The model itself: let it think, and check its maths.

Anyone know why the PC drops from 38 tok/s in chat to 7 in OpenCode? Prompt processing of the big system prompt with experts on CPU?


r/LocalAIStack • • 4d ago Mindblown

Inkling-2-Mini at a 524k context on a single RX 7900 XTX: 757 tok/s prompt processing, 47 tok/s generating with the draft head. llama.cpp and Strata couldn't finish that prompt. LexiSuite continues to pave the way in performance with LexiEngine. Security, Reliability, and Efficiency audit completed.

Thumbnail
github.com
4 Upvotes

r/LocalAIStack • • 5d ago

my Claude suggested this list of all AL models I need to cover any need i might have, what do you think?

Post image
4 Upvotes

r/LocalAIStack • • 5d ago

Is prompt injection still the biggest concern for AI agents?

4 Upvotes

AI agents interact with external tools, APIs, and knowledge bases, creating multiple security risks.

Prompt injection, data leakage, and unauthorized tool calls are worth investigating.

What security vulnerability concerns you most?


r/LocalAIStack • • 19d ago

DavidAU/Qwen3.8-27B-TURBO-Fable-Cold-Fusion-735-882-Heretic-Uncensored-NEO-CODER-MAX-MTP-GGUF running in TokiRecur

Thumbnail
youtube.com
4 Upvotes

One of the best and most reliable local models I've used. Recorded a real world task to show it's performance, capabilities, and reliability. AMD Ryzen AI Halo 128gb, this is definitely something older versions of ROCm would struggle with but ROCm 10 has shown otherwise. Has anyone here tested this model on CUDA or Metal?


r/LocalAIStack • • Oct 24 '26

Qwen 3.8 27B ranks 6th of 45 in this Pac-Man-style planning game. Can you beat it?

Post image
4 Upvotes

Two puzzle games from the StealthMark benchmark. Every AI model plays them move by move, with no code and no tools, and you can now play the exact same levels in your browser

Latch: two robots, one goal. One can stand on a pressure plate to hold a door open while the other pushes numbered cores onto matching sockets. Every move costs a little, so the top score needs the cleanest route and getting that right gets increasingly harder.

Foresight: collect coins on a Pac-Man-inspired board while ghosts close in. No model has aced a single level - though some age getting very close.

How local models do (scores out of 100):

  • Foresight: Qwen3.8-27B scores 63.0 and ranks 6th of 45 models. Only five models beat it, led by GPT-6 Astra at 76.1.

  • Latch: Qwen3.8-Flash scores 69.8 and ranks 16th of 46. The top score is 87.6, shared by GPT-6 Astra, Claude Opus 5.5 and GPT-6.1 Sol.

  • Each Qwen is strong in only one game. Qwen3.8-27B drops to 38.6 in Latch, and Qwen3.8-Flash to 29.7 in Foresight.

  • No human, model, local or cloud, has played either game perfectly yet.

You play the exact levels the models played, in your browser. Finish every level and you get a score calculated the same way as theirs, plus your rank among the models.

Disclosure: I helped build Stealth Models, where we benchmark AI models on original tasks. You can also watch every model's run, move by move.
StealthMark is designed to beat benchmaxxing.

Play here: https://stealthmodels.com/#games

Post your score and rank in the comments. I'm curious where you humans land :)


r/LocalAIStack • • Oct 21 '26

New token-efficient Nemotron-3.5-Lightning-30B-A3B

Thumbnail
huggingface.co
4 Upvotes

r/LocalAIStack • • Oct 11 '26

I ran Qwen 3.8 Flash-Next on my AMD 7900 XTX at 500k context. All local and what a shift it has been.

Thumbnail reddit.com
4 Upvotes

r/LocalAIStack • • Oct 04 '26

Just got my MBP M5pro 48gb. Help me setup properly

4 Upvotes

I have multiple projects in GitHub, I have an obsidian vault, iCloud backup, nas backup. Qwen running locally, also have Two Claude accounts, one gpt, one deep seek accounts when qwen bogs down. I’m working on building my own harness for managing this.

How should I setup my new laptop so I’m working clean and smartly?


r/LocalAIStack • • Oct 01 '26

I built a local memory engine that replaces vector DBs with SQLite and runs in <1.2GB VRAM

4 Upvotes

Every time I tried running local RAG on my own GPU, I ran into the same headache: vector databases eat too much RAM, using an 8B model just to parse text takes forever, and cosine search still hallucinates when the context isn't actually there.

I’ve been building Hillock to see if I could do this without vector DBs at all.

Basically:

  1. When you feed it a document, it doesn't touch an LLM. It uses small bi-encoders to extract facts into subject-predicate-object triples in about 5 seconds.

  2. Everything gets saved in regular SQLite, and it links related concepts over time using basic Hebbian weights.

  3. To stop hallucinations, it runs a quick hypervector check (HDC) on the query first. If the facts aren't in your database, it cuts off the LLM before it can generate any tokens.

The whole thing stays under 1.2 GB VRAM (or runs fine on pure CPU). It has a built-in API server that matches OpenAI's format, so you can point Open-WebUI or Obsidian at localhost:8000 and use your existing Ollama models.

Just pushed v0.7 with better refusal handling and a conversational mode that quizzes you if an extraction was ambiguous.

Repo is here if you want to try it out: https://github.com/roandejager/Hillock


r/LocalAIStack • • Sep 30 '26

Abliterate/Removing prompt refusal without needing to reload/swap models (Qwen 3.8 flash next)

4 Upvotes

r/LocalAIStack • • Sep 23 '26

Qwen3.8-27B on Every Mac Explained: Layers, KV Cache and Speed (16GB–128GB)

Thumbnail
youtu.be
4 Upvotes

r/LocalAIStack • • Sep 09 '26

what do you guys think about this ?

4 Upvotes

r/LocalAIStack • • Sep 05 '26

Running Qwen 3.8 27B as a VS Code Copilot backend on 16/32 GB VRAM

Thumbnail gallery
4 Upvotes

r/LocalAIStack • • Sep 04 '26

16Gb/48Gb coding model - newbie

4 Upvotes

I’m trying a Qwen-3.6 35b Q5 model as my first dip into setting up an agent coding workflow for prototyping some app ideas. Using LM Studio and VS Code

I’ve only been looking into this today. Am I heading in the right direction? Any advice welcome.


r/LocalAIStack • • Sep 02 '26

Built a router that runs prompts on your local model and auto-falls-back to cloud when it wedges [Apache-2.0]

4 Upvotes

If you run models locally you know the pain: everything's fine until a long prompt makes the model silently stall or the GPU OOMs, and you're left with a hung request and no output.

I built HybridInfer for exactly that. It's a small reliability-aware router:

- Sends each request to your local model (Ollama) first.

- Watches the runtime, if local stalls (no token for N seconds), OOMs, or errors, it automatically falls back to a remote model in the same request.

- Learns which prompts your machine chokes on (usually long ones) and routes those out up front after it's seen them fail.

- Pulls a wedging model out of rotation, then probes it back after a cooldown.

It's an OpenAI-compatible server, so point any OpenAI-compatible client/app at it and you get local-first + automatic fallback for free. Local = anything you've `ollama pull`ed; remote = any OpenAI-compatible endpoint (OpenAI, OpenRouter, a vLLM box, whatever).

pip install hybridinfer

hybridinfer init

hybridinfer serve

It's a router, not an inference engine, it orchestrates Ollama + your remote endpoint, doesn't run weights itself. Early v0.1, Apache-2.0. There's a Kotlin/Android version too for on-device apps. Short demo GIF + code in the repo.

Repo: https://github.com/SimranKoul2026/HybridInfer-Python-tool

Would love feedback from people who run this stuff daily, especially on the fallback heuristics.

What would you want it to do differently?


r/LocalAIStack • • Aug 16 '26

Best local LLM for cybersecurity + coding on an RTX 3050 6GB?

Thumbnail reddit.com
4 Upvotes

r/LocalAIStack • • Aug 06 '26

(MIT) Turning idle GPUs of enterprises into a decentralized, fault-tolerant local AI cluster

4 Upvotes

We've all been there: $2,000 GPUs sitting at 5% utilization while the company pays for cloud inference.

Many organizations already have several workstations equipped with GPUs that remain idle most of the time. Existing GPU sharing solutions typically rely on a centralized scheduler, Kubernetes, or AI gateways, which can be excessive for small and medium-sized GPU clusters. In addition, most existing solutions lack cross-platform support, decentralized architecture, and policy-based routing.

OQOAI-PBDR to solve this problem differently. Simply run a server or client on each machine, and your existing office network becomes a decentralized AI cluster. Routing decisions are made entirely on the client side, eliminating the need for a master node, load balancer, or any other single point of failure.

Prebuilt binaries for Windows and Linux are under 10 MB and can bring a machine online as a cluster node in under 30 seconds. An optional admin server provides centralized monitoring and management from any machine on the network.

GitHub (MIT License):

https://github.com/oqo-ai/OQOAI-PBDR

The project intentionally avoids unnecessary abstractions. The core routing logic consists of only three source files (approximately 1,000 lines each), making it relatively easy to understand, audit, and extend.

At the heart of the project is the PBDR (Policy-Based Decentralized Routing) architecture. Each routing decision evaluates multiple runtime metrics, including GPU utilization, available VRAM, queue length, GPU temperature, network latency, inference throughput, and other node characteristics.

PBDR also supports client-group policies, allowing different workloads to optimize for different objectives. For example:

  • Internal RAG services can prioritize low latency.

  • Development workloads can prioritize output quality.

  • Batch inference jobs can prioritize throughput.

More details about the routing algorithm are available in the accompanying paper:

http://doi.org/10.17513/doi.26

One practical benefit of this approach is that organizations can often reuse existing workstation GPUs for low- and medium-throughput workloads-such as internal RAG systems-instead of deploying dedicated inference infrastructure from scratch.

In many environments, having GPUs installed in only 10-15% of workstations can be sufficient to satisfy inference demand for lightweight workloads (for example, an internal knowledge-base RAG receiving approximately 3-5 requests per user per day) without deploying centralized AI infrastructure.

Getting started:

Install OQOAI-PBDR on each machine.

Connect server nodes to any OpenAI-compatible inference backend, including Ollama, llama.cpp, vLLM, or TGI.

Configure your applications to use the OpenAI-compatible client endpoint provided by OQOAI-PBDR.

Clients automatically discover available models on all nodes. From the application’s perspective, the cluster behaves like a distributed OpenAI API compatible system, while user requests are routed in a decentralized manner to the most suitable node according to the chosen policy.

What already works:

  • OpenAI-compatible API (Ollama, vLLM, TGI, llama.cpp)

  • Admin dashboard with real-time metrics

  • Auto-discovery and network scanning

  • Remote config management for nodes, groups, or the whole cluster

  • Experimental binary builds for Windows and Linux

Roadmap highlights:

  • ComfyUI/AUTOMATIC1111 image/video generation

  • Grafana/Prometheus integration

  • AI-assisted semantic routing (auto-model selection)

  • Dynamic IP support

We're actively looking for feedback, and testers.

What features or integrations would you like to see next?


r/LocalAIStack • • Jul 07 '26

What would be the best setup for my work flow as mentioned below

Thumbnail reddit.com
4 Upvotes

r/LocalAIStack • • Jun 30 '26

Open-source local Ollama model testing tool — feedback welcome

Thumbnail
reddit.com
4 Upvotes

r/LocalAIStack • • Jun 24 '26

My TTS list of 2026: All voices, all models and engines compared with example URLs and rating

Thumbnail
reddit.com
4 Upvotes

r/LocalAIStack • • 15h ago

Basalt 0.6.0 update made 5060ti 80% faster on Inkling model!

Post image
3 Upvotes

r/LocalAIStack • • 1d ago

Getting Zoom, Teams and in-person meetings into Claude over MCP?

3 Upvotes

Our company has meetings across Zoom, Teams, and Meet, along with a lot of in-person discussions. I enabled the Claude Meetings beta and it's been working really well for our Meet calls, but that's currently the only platform it supports.

I tried manually exporting transcripts from Zoom and Teams and adding them to a project, but that routine only lasted about a week before everyone stopped bothering with it!

I'm thinking of setting up a system where transcripts from every platform go into one shared folder. We'd also record in-person meetings on a phone and add those recordings there. Then I'd run a single MCP server over the folder for Claude to access. Would one server and folder still work well once there are hundreds of transcripts, or would it make more sense to organize things separately by platform?


r/LocalAIStack • • 2d ago Mindblown Bravo

LexiSuite d484004: my all-Rust local AI stack (own kernel, OS, engine, panel) - 206 changes in two days, Inkling-2-Mini at 131 tok/s on one 7900 XTX

Thumbnail
github.com
3 Upvotes

AIO USB/VM/Drive image with Inkling 2 Mini baked here: https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp, and there is no third-party code in the product.

A new development image went out today. Here is what changed since the last one two days ago, and what the work actually was.

The Panel was rebuilt, page by page (66 changes)

The old Panel worked but read like an engineering console: raw JSON on screen, fields with no labels, boxes inside boxes, internal jargon everywhere. I went through it by hand.

- One header and one navigation instead of five stacked bars

- 12 themes

- A file and folder picker on every path field, so nothing has to be typed

- Right-click menus on instances, files and table cells

- Parameters grouped in the order you set them, with a device chooser for the instance's cards

- Switch an instance between LexiEngine and llama.cpp from one page

- Hardware, Diagnostics, Power, GPU tuning and Models rewritten in plain words (temperatures in degrees, problems listed first)

- An abliteration lab where you pick models with toggles and pick the drive to write to; the original is never touched

- A layout choice: top tabs, or a side tree like a hypervisor console

LexiKernel went from one core to all of them (99 changes)

Until now my kernel ran all threads of a program on a single CPU. That was the biggest gap between it and Linux. Three rounds of work went into closing it: per-CPU timers and scheduling, threads that move between cores with their full vector state, memory handled per NUMA node, huge pages, and TLB shootdowns that a core answers even in the middle of a long system call. It now boots with every core in use and served the Panel to 8 clients at 2, 4 and 8 CPUs in a VM with no failed requests.

The kernel's own GPU drivers for AMD, NVIDIA and Intel are compiled into this build too. They have not run on a real card in this version yet. That is the next milestone, and until then GPU work under LexiKernel goes through a Linux guest. The image also boots LexiOS on Linux 7.4, which is what you want for daily use today.

LexiEngine (27 changes)

- Groundwork for splitting one model across several cards (serving across cards is not in this build)

- New draft options for Inkling 2, off by default until they are measured

- A quantizer that trains with the rounding in the loop instead of rounding afterwards

- The whole tree moved to Rust 1.100.1

Speed, measured on this version

Inkling-2-Mini (the looped mixture-of-experts model released Nov 20), one Radeon RX 7900 XTX, 4-bit KV cache, greedy, one run each, measured Nov 27-28.

After a 16,384-token prompt:

- LexiEngine: prompt 2,244 tok/s, generation 64.6 tok/s, 131.1 tok/s with the model's own draft head

- llama.cpp b12722: prompt 1,060 tok/s, generation 42.9 tok/s

- Strata 0.2.23 (8-bit cache, it refuses 4-bit on this card): prompt 2,075 tok/s, generation 53.9 tok/s

Long context on LexiEngine:

- 261,632-token prompt: 1,157 tok/s reading, then 48.7 tok/s (63.2 with the draft head)

- 523,264-token prompt: 766 tok/s reading, then 39.5 tok/s (46.8 with the draft head)

- 10 of 10 planted facts recalled at both depths

Drafted output was identical to plain output in every run.

Two notes so nobody says I hid them. The llama.cpp number is from the Nov 25 build: the build I fetched today ran this model at 7.6 tok/s on this card, which looks like a bug on their side, so I did not use it. And llama.cpp needs a 26-line loader change to open my file, because the file also carries the draft head and image tower.

What it is not, yet

- A development build, not a production release

- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested

- The kernel's own GPU drivers have not run on a card in this version

- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet

- Installing to an internal disk is not in this image

- Only Inkling has been benchmarked on this exact version; my 27B numbers are from a build nine days older and are being re-run

Tested

Every test in the tree ran on this version: 17,932 tests, none failed. Both images passed their Secure Boot checks in a VM.

Links

Download (381 MB USB image, boots to the Panel):

https://lexipanel.com/download/

All-in-one image with Inkling-2-Mini inside (18.1 GB, needs a 32 GB stick):

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

Every one of the 206 changes, one line each:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-d484004

Benchmarks and method:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks

Happy to answer questions about the kernel work or the engine.