r/LocalAIStack • u/company_url_finder • 6d ago
r/LocalAIStack • u/CooperDK • 6d ago
Got Basalt running with an RTX 3060 beside a 5060 Ti: 42 to 80 tok/s, and the same build takes 40xx cards
reddit.comr/LocalAIStack • u/Beautiful-QGI-6166 • 6d ago
Can a local AI model beat Claude Haiku and GPT-6 Luna?
reddit.comr/LocalAIStack • u/AimCode • 7d ago
AimStack — a fully self-built local AI stack in pure C: ternary inference (zero third-party runtime), BitNet 2B at 0.87GB on a 2018 laptop, plus a GPU backend that matches the C engine token-for-token
Repo: https://github.com/tanxiansheng221/aimstack-sanzhidiji (AGPL-3.0)
Everything is hand-written — C inference core, plugin bus, multi-engine crawler with quality gates, FTS knowledge base, training pipeline, and a 117-chapter build log written as it happened (positive and negative results shipped together). Weights are Microsoft BitNet b1.58 2B (MIT), converted to a custom AIM-W packing format.
What ternary quantization buys you (CPU side)
All transformer matrices are ternary {-1, 0, +1}, packed 2 bits/weight, plus Q8 embeddings → the whole model is 0.87GB instead of ~4.8GB (−78%)
The C core never multiplies a float weight: it's table lookup + integer accumulation, SIMD fast path measured at 85.53 tok/s (41× over baseline)
BitNet 2B full model runs 3.20 tok/s dual-worker on a 2018 dual-core 8GB laptop — full chain (inference + KB + plugins + web search) offline, no cloud relay
What ternary quantization buys you (GPU side)
The GPU backend loads the same 0.87GB ternary file — weights stay in {-s, 0, +s}, dequantized on load, matmul in fp32
On a Radeon Pro W7900: 13.68 tok/s (~8× the laptop C engine), 256/256 greedy tokens bit-identical to the C engine. Two totally different implementations (integer lookup core vs FP matmul) producing the same logits is the proof the quantization is faithful
Verified by a 3-engine × 3-question × 3-test matrix (C-Linux/gcc13, torch fp32, torch bf16): 17/18 exact — the one miss is documented, not hidden
The honest boundaries (what's NOT done yet)
bf16 compute is 2.4× faster (32.96 tok/s) but flips argmax on near-tie logits — reported, not blessed; only fp32 is parity-verified
The GPU path gets the storage benefit of ternary (78% less memory) but not yet the compute benefit — a true 2-bit integer kernel (Triton/CUDA) is the next stage
The UI server drives the C engine (CPU) only; the GPU backend is a separate CLI
Linux engine build works and is token-identical to the Windows build, but runs serial (the worker pool is Windows-only for now)
No frameworks, no PyTorch in the product chain — PyTorch exists only in the optional GPU backend. Demo video, docs (EN/中文), and the full research log are in the repo.
r/LocalAIStack • u/jackalka • 7d ago
We built a chip prototype that runs Qwen 27B. You can try it live.
r/LocalAIStack • u/kind_entropy • 7d ago
A comparable local setup for someone using $100 monthly claude subscription
reddit.comr/LocalAIStack • u/seif_tamer_06 • 8d ago
I measured how easily a local 7B model reverse-engineers a binary, then built hardening that targets the LLM layer specifically
Most anti-reverse-engineering assumes a human in a disassembler. The threat I care about now is a local, unrestricted model driving those tools. So besides the classic stuff, the harness includes defenses aimed at the model: inflating the analysis surface so it burns context, decoy identifiers that mislead semantic guesses, and honeytokens that detect when a crack was AI-generated.
My own before/after is honest but small: one run, a 4-bit 7B on an 8 GB GPU. The unprotected build was cracked in 3 steps and about 1,300 tokens. The hardened one burned roughly 13x the tokens and still wasn't cracked. I'd really like people with bigger rigs to run it. It's one command: make slice-k-run MODEL=<your-model>, and it prints a scored before/after. or online modals
Most of the code was written with Claude agents under my direction. Happy to talk through any design choice.
Repo: https://github.com/seifheakal/blue-harness (AGPL-3.0)
r/LocalAIStack • u/Aware-Blacksmith1467 • 8d ago
Building Kevin, my home alone agent. 🔫🙂 A persistent agent In Pine that wakes on cam detect, runs fingerprinting, tracks who's visiting.
x.comr/LocalAIStack • u/Due_Initiative2641 • 8d ago
I built an open-source platform that pools a team's workstations (Macs, Windows and Linux boxes) into one OpenAI-compatible endpoint
My co-founder and I have been working on this for a few months and are launching today. Disclosure: it's our company; the desktop client is Apache-2.0, the control plane is hosted, and it's free up to 5 devices.
What it does: you install Nodea Desktop on the machines in your org, switch on sharing, and get one OpenAI-compatible endpoint. Behind it, a scheduler fits the models you assign onto whichever machines have free memory, and moves them as laptops come and go.
Stack: Rust/Tauri app, llama.cpp under the hood (Metal on Apple Silicon, Vulkan on NVIDIA/AMD/Intel, CPU fallback). Any GGUF model llama.cpp can serve that fits the machine; models are assigned per org, downloaded and cached per device. Signed auto-updates.
Honest limitations:
- Requests go through our API to reach your machines (not logged or stored). No direct LAN routing yet.
- One model runs on one machine; no splitting a model across machines yet.
- Windows/Linux run on the GPU through Vulkan (tested on NVIDIA) and are still labelled preview. Machines without a supported GPU fall back to CPU, which is slow for now (no AVX2 yet).
Why not exo / GPUStack / llama.cpp RPC? Those are great if you run your own cluster. We're aiming at teams with 20–200 laptops and nobody to run one: sign in, toggle on, done, with an org, roles and API keys on top.
Repo: https://github.com/nodea-sh/nodea-client
Site: https://getnodea.com
Happy to answer anything, and especially keen on what models/quantizations you'd want on 16–36 GB machines.
r/LocalAIStack • u/WritHerAI • 8d ago
I added Qwen3.6-35B-A3B to my C inference engine: 10–13 tok/s in real chat on a GTX 1650 4GB + 16GB RAM
r/LocalAIStack • u/PakMul48 • 8d ago
Building a Local LLM Troubleshooting Assistant for Field Service Techs.... Advice?
reddit.comr/LocalAIStack • u/PhysicsDisastrous462 • 8d ago
Hierarchos-Native v0.2.0: RDNA3 WMMA, native multimodal training, and a lot of FP32 Vulkan optimization!
Hey everyone! It's been a little while since my last update, and I've been working pretty intensely on Hierarchos-Native, my Rust + Vulkan project for training, fine-tuning, and running language models without relying on Python, PyTorch, CUDA, ROCm, or oneAPI in the native runtime.
I wanted to share some of the bigger things that have landed over the past 18 days. There's been quite a bit of progress across GPU acceleration, multimodal training, numerical correctness, and general performance.
The new v0.2.0 release is now available!
GitHub: https://github.com/necat101/Hierarchos-Native
Release / Windows portable download: https://github.com/necat101/Hierarchos-Native/releases/tag/v0.2.0
1. Native RDNA3 WMMA / cooperative matrix acceleration
One of the biggest additions is an opt-in Vulkan cooperative-matrix implementation for AMD RDNA3.
The new Mixed WMMA execution arm uses:
- FP16 matrix operands.
- FP32 matrix accumulation.
- FP32 master weights and gradients.
- FP32 AdamW optimizer moments and updates.
- FP32 normalization, softmax, and loss calculations.
The important part is that this isn't simply converting an entire model to FP16. The optimizer and master parameters retain their FP32 representation.
I also added capability detection, CLI/GUI integration, and separate counters for actual cooperative-matrix dispatches and FP32 fallbacks.
Some of the isolated GEMM results on the qualified Ryzen Z1 Extreme / AMD Radeon Graphics device (1002:15bf) are pretty interesting:
| Workload | Measured kernel speedup |
|---|---|
| QKV projection | 2.17× |
| FFN up projection | 2.12× |
| FFN down projection | 2.31× |
| Vocabulary projection | 1.83× |
These are individual GEMM measurements, not whole-model speedups.
There is an important caveat: WMMA has a real crossover point. Small matrices can actually run slower because conversion, staging, and dispatch overhead outweigh the matrix-core benefit. I implemented a profitability policy that keeps smaller operations on their existing FP32 kernels.
In fact, the measured end-to-end training step was slower with Mixed WMMA in the initial 512-row fixture (14.0444 ms versus 12.2911 ms for FP32). That is why Mixed remains opt-in and disabled by default. I'm much more interested in making it genuinely faster than advertising misleading kernel-level numbers.
WMMA is currently physically qualified on the specific RDNA3 device and Windows driver configuration documented in the project. Other GPUs should not assume equivalent support.
Full FP16 accumulation is also available as a separate, narrowly qualified experimental mode.
Documentation: RDNA3 WMMA guide
2. Native multimodal image and text training
Another major development area has been the image-text pipeline.
The project now has native image processing and training paths that connect image inputs to language-model outputs through Vulkan.
Some of the implemented work includes:
- Native RGB image input and preprocessing.
- CLIP image encoders and LLaVA projector integration.
- SigLIP / Gemma 3 vision training.
- Gemma 4 vision integration.
- Joint image/text training and encoder-decoder integration.
- A dedicated DeepSeek V4.1 image-training path.
- Backpropagation through the image tower and projector.
- Export, reload, and checkpoint-related validation.
This is actual training work, not simply passing precomputed image embeddings into an otherwise frozen language model.
For the CLIP/LLaVA pipeline, the tests cover image sensitivity, gradients into image inputs, changes to image-tower/projector/text parameters, multiple AdamW updates, and export/reload behavior.
The qualification work has also expanded considerably:
- 44 previously green text profiles now have joint image-training coverage at their frozen test geometries.
- The Gen9 qualification retains 95 image cases and 166 text regression cases.
- A separate physical RDNA3 replay reports 44/44 profiles and 85/85 image cases passing.
- Native DeepSeek V4.1 image qualification includes 30 executions and 1,360 word-exact logits.
The maintained strict FP32 visible-logit gate remains max_abs < 2e-7, with rtol=0.
These are bounded qualification fixtures, not a claim that every production-size multimodal checkpoint or every architecture is fully supported. Audio and video pipelines are still outside the current qualified scope.
Documentation:
3. A lot of additional FP32 optimization
I haven't been focusing exclusively on reduced precision. A substantial amount of work over the same period has gone into improving the existing FP32 execution paths.
This includes vendor-specific shader work and scheduling optimizations for both Intel Gen9 integrated graphics and AMD RDNA3.
Some examples:
RDNA3 FP32 work
- Specialized attention forward/backward paths.
- Image-text attention and projector optimizations.
- RMSNorm, RoPE, GELU, and other arithmetic specializations.
- Dedicated AVX-512/RDNA3 shader variants where the measured hardware supports them.
- More careful matching of CPU reference arithmetic and GPU execution order.
Intel Gen9 work
- Additional native linear and gradient kernels.
- Attention and activation specializations.
- More efficient parameter upload and staging behavior.
- Continued optimization of DeepSeek V4.1 training and execution.
One particularly interesting area has been reducing unnecessary Vulkan submissions and host/device transfer overhead in the DeepSeek V4.1 training pipeline.
On the measured Gen9 fixtures, upload batching reduced timed submissions from 1,102 to 982 per step, with paired throughput improvements of 1.052× and 1.067×.
On the separate RDNA3 V4.1 measurements, sharing the compute session and batching uploads reduced submissions from 970 to 509 per step, with measured improvements of 1.295× and 1.217× on two fixture geometries. A later session-wide upload optimization reduced that count further to 241 submissions per step, with measured improvements of 1.464× and 1.366×.
These are specific, paired benchmark results rather than promises of equivalent production-model speedups. The output comparisons remained word-identical in the recorded tests.
4. Preserving the original FP32 path
An important part of introducing WMMA was making sure that the existing FP32 path didn't regress.
I added a dedicated seven-workload FP32 non-regression comparison against the previous main revision:
- 12 alternating ABBA rounds per workload.
- Five warm-up runs and 30 timed forwards per arm.
- Separate, hashed baseline and candidate binaries.
- Exact FP32 logit digest comparisons.
All seven workloads stayed within the ±2% performance band, and the logits were bit-identical in every recorded round.
The worst paired performance ratio was 1.0007.
This is particularly important to me: I don't want acceleration features to silently make the existing default execution path worse.
5. Getting started
The new v0.2.0 GitHub Release includes a prebuilt Windows x64 portable package with the CLI, desktop GUI, Vulkan companion executables, runtime assets, and build metadata.
You don't need to install Rust or Python just to run the released package. You do need Windows 11 x64 and a Vulkan 1.x compute driver for GPU operations.
Model weights are downloaded separately or supplied through a local model directory.
After extracting the archive, you can run:
.\bin\hierarchos-native-cli.exe doctor
.\bin\hierarchos-native-cli.exe devices
.\bin\hierarchos-native-cli.exe precision-infoThe final command is especially useful for checking which precision capabilities your GPU actually exposes.
Download: https://github.com/necat101/Hierarchos-Native/releases/tag/v0.2.0
What's next?
There is still a lot I'd like to improve.
In particular, I want to investigate reducing WMMA conversion overhead, improving activation and gradient reuse, finding more workloads that genuinely benefit from cooperative matrices, and expanding the range of qualified multimodal architectures.
I'd also like to continue improving the FP32 kernels rather than treating lower precision as the only route to better performance.
If you're interested in Rust, Vulkan compute, AMD GPU optimization, native LLM training, or multimodal model execution, I'd genuinely appreciate people taking a look.
Feedback from people with different Vulkan devices is especially valuable. Please include your GPU, driver, model geometry, and relevant execution counters when reporting results.
Repository: https://github.com/necat101/Hierarchos-Native
Stars, issue reports, testing feedback, and contributions are all appreciated. There is also a voluntary developer-support link in the repository README for anyone interested in helping the project continue.
r/LocalAIStack • u/InternetMagic_n_Tech • 8d ago
Imeng Engine Local - Wrapping models for Open Web UI & (Untested) Discord
I have authored imeng (Internet Magic Engine) as a Ollama wrapper.
This allows you to build state around your models.
Each imeng only needs a configuration json and a system prompt to instruct the LLM... and boom you got an app/game. There is no JS eval so it should be pretty secure. There isn't 100% security layer to stop prompt injection so there is probably ways to break this.
The architecture is basically a redis state machine and a jev determines what 'operations' come out of the text. There are phase-gates to where each phase gate can determine where they go next but rules allow leaving the current gate and enter the next.
So what this really does it keeps the logic of a program inside javascript and the dialogue with the LLMs with some jev glue
Locally I have built
- Poker (still has issues)
- Gakshow (Test Rack)
- Gakshow Multiplayer (Test Rack censoring uploaded photos)
- Trading Assistant (test rack for programming assistant)
There is also SQL for storage. A bunch of stuff just as a portfolio piece.
r/LocalAIStack • u/jackalka • 8d ago
Running a 27B AI model on AWS F2, reading 13.5 GB of weights for every token
r/LocalAIStack • u/Working_Hat5120 • 8d ago
Artemis II flew around the Moon in April, so I built a free app for kids to learn and practice a south-pole mission
r/LocalAIStack • u/leonbollerup • 9d ago
Optimal setup research: Muse Glimmer 30B on RTX 5090M/RTX Pro 4000 (24gb cards)
reddit.comr/LocalAIStack • u/sarpino1 • 9d ago
About to add a 5060 Ti 16GB to my 4060 Ti 16GB for local agentic coding (Qwen3.8-27B, 128K ctx or similar ) — suggestions? Help out a newbie!
reddit.comr/LocalAIStack • u/Dapper-Teaching-8074 • 10d ago
We built a AI distribution interface, you can use your android phone, laptops and desktops to share AI inference work, the more devices you link, the bigger the model you can run
r/LocalAIStack • u/Digitalberg1 • 10d ago
Run Llama locally with Ollama and Open WebUI
reddit.comr/LocalAIStack • u/Business-Feedback635 • 10d ago
LM Studio vs Ollama on Linux, measured on an RTX 3090
r/LocalAIStack • u/Known_Barracuda_3977 • 10d ago
Strata Performance Setup (TUI performance optimization)
r/LocalAIStack • u/RubMobile • 11d ago
WEX: an open container format to run huge MoE models from NVMe on one consumer GPU (lossless, GPU-decoded, 18.7% smaller than safetensors)
I've open-sourced WEX, the expert-container format I use to run very large Mixture-of-Experts models on a single desktop (RTX 5090, 32 GB RAM).
The idea: a MoE token only uses a few experts per layer, so they don't all need to be in memory. WEX keeps experts in a tiered cache: the hot ones in VRAM, more in a RAM cache, and only the misses are read from NVMe. Every expert is one 4 KiB-aligned record, fetched with a single unbuffered read.
What's in it:
- WNR3: lossless rANS compression driven by a small learned model of the weight symbols. Decoded weights (and logits) are bit-identical to the checkpoint, and decoding runs on the GPU, straight into VRAM.
- WEX4 container: hashed header and index, SHA-256 per record, and one 32-byte root that identifies the whole file. A corrupted record is refused, never served. A full 64 GB container verifies in 7-11 s.
- MoE-aware I/O: weighted striping across NVMe drives (~14-15 GB/s from two), parallel sub-reads, batched VRAM prewarm (start-up 31 s → 12 s), next-layer prefetch.
Size, DeepSeek V4.1 REAP-192 (MXFP4), routed experts:
| Format | Size | vs safetensors |
|---|---|---|
| safetensors (original) | 141.2 GiB | 1.000 |
| WEX raw records | 134.5 GiB | 0.952 |
| WNR3 (in WEX4) | 114.8 GiB | 0.813 |
Decode speed, same model, one RTX 5090:
| Setup | tok/s |
|---|---|
| safetensors, CPU, one drive | ~1.0 |
| WEX on GPU, one drive | 2.0 |
| WEX4, two-drive striping | 3.0 |
| WEX4 + WNR3 + all I/O switches, 13-15 GB RAM budget | ~4.0 |
GPU decoding costs about 2% against raw records, which is within noise. Qwen3.8-Flash-Next (MXFP4) runs at 10-17 tok/s from a 64 GB container on the same box.
Repo: full byte-level spec, a Python reference, C reader and validator, test vectors and CI on Linux and Windows. Apache-2.0. Built on top of colibri by JustVugg, and I'm working on integrating it there.
👉 https://github.com/KairaCode/Wex-WRN2
Happy to answer questions about the format or the numbers. Everything was measured on one machine, so results on other hardware are very welcome.