r/LocalAIStack • • 4h ago Bravo

LexiSuite 2922c5c: my all-Rust local AI stack after two full source audits (92 changes); Inkling-2-Mini reads a 262k prompt 32% faster; tensor parallel arrives as an experimental toggle for Inkling-2-Mini and Qwen3.8 FN; ahead of llama.cpp and Strata on Inkling, Flash-Next, Qwen3.8 27B & Nemotron!!!

Thumbnail
github.com
2 Upvotes

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.

A new development image went out today, one day after the last one. 92 changes this time. Here is what they are.

Two audits of the whole source

The entire tree, 2.07 million lines of Rust, went through two outside audit rounds of about 100 parts each, through four lenses: security, continuity, compatibility and speed. I then checked the findings rated high by hand against the code, one by one, and fixed what held up: 93 confirmed findings are fixed in this image. Most of this release is that work.

Some of what was closed:

- Root-only routes (system update, disk install, backup recovery) accepted an internal service header in place of the root password. They no longer do.

- The restart export could read another instance's records through a second, unchecked parameter.

- Full model verification saved a changed model's fingerprint before refusing it, so a second load would have accepted it.

- A fresh fleet join code could replace an enrolled box. A replaced remote endpoint kept the API key saved for the old address.

- The engine now checks who owns its key file, and refuses an unusable key list instead of reading it as "no keys".

A more stable platform

- The installer writes the firmware fallback boot file last, verifies the bytes it then uses, and gives two disks installed from one stick different identifiers.

- Uninstall with purge refuses a folder that has a disk mounted under it.

- An answer cut off by the token limit while tools are offered now returns "length" instead of a server error.

- A model load that cannot fit no longer evicts an idle model first.

- The Panel's Secure Boot page hands out the current certificate (the bug named in the last post is fixed). Same certificate as the last image: nothing to enroll again.

Inkling-2-Mini reads long prompts faster

A new attention kernel for prompt processing. At a 262,144-token context a 261,632-token prompt now reads at 1,525.7 tok/s, up from 1,152.7, which is 32% faster. It sums in another order, so its output is not bit for bit the old kernel's: the two pick the same top token on 98.8% of 510 positions. One environment variable brings the old kernel back.

Qwen3.8 Flash-Next gets to its first token sooner

This is the 94 GB mixture-of-experts model served from one 24 GB card. First token after a 64k prompt comes 9% sooner and after a 128k prompt 10% sooner, with identical output.

Tensor parallel (experimental, off by default)

Inkling-2-Mini and Flash-Next can now split their experts across several ranks: several Vulkan devices, or several ranks on one card. It is one toggle in the Panel's New instance form and one engine option. With it off, output is bit for bit as before. With it on, output is deterministic; Flash-Next is bit for bit with two and three ranks on one card, and a 7900 XTX with an RTX 2060 as second rank works with uneven shares.

Speed, measured on this version

One Radeon RX 7900 XTX, one run each, November 30. Old version in brackets.

Inkling-2-Mini, 4-bit cache:

- 16,384-token prompt: reads at 2,471.4 tok/s (2,177.6), generates at 62.9 tok/s (61.2), 137.0 with the model's draft head (132.6)

- 261,632-token prompt: reads at 1,525.7 tok/s (1,152.7), generates at 50.1 tok/s (50.0), 64.9 with the draft head (68.1)

Inkling-2-Mini, 8-bit cache:

- 16,384-token prompt: reads at 2,436.8 tok/s (2,155.7), generates at 61.0 tok/s (61.0), 135.2 with the draft head (131.6)

- 261,632-token prompt: reads at 1,483.8 tok/s (1,140.4), generates at 43.7 tok/s (43.4)

Qwen3.8 Flash-Next at a 262,144-token context, time to first token:

- after a 16k prompt: 37.5 s (36.4)

- after a 64k prompt: 132.2 s (145.3)

- after a 128k prompt: 266.7 s (295.8)

- after a 256k prompt: 559.6 s (new row)

Qwen3.8 Flash-Next, generation:

- after a 16k prompt: 6.90 tok/s (7.64)

- after a 64k prompt: 12.73 tok/s (12.49)

- after a 128k prompt: 9.54 tok/s (9.56)

Things I am not hiding:

- Flash-Next gained nothing at a 16k prompt, and its generation there came out lower than last time (6.90 against 7.64). Both are single runs; I have not measured it enough to say whether that is real.

- Drafted generation on Inkling after the 262k prompt was 64.9 tok/s against 68.1 last time. Drafted speed follows how many drafts the prompt lets through.

- Tensor parallel is not benchmarked on a machine with two fast cards: I do not have one. On a single card it is slower than one rank, because rows cross through system memory. It is there so people with the hardware can use it and tell me.

- I did not re-run llama.cpp and Strata on this version. The comparison tables on the benchmark page are from version d484004 (November 27 to 28) and say so.

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 real card in this version; the Linux boot entry is the one for daily use

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

Tested

Every test in the tree ran on this version: 17,997 tests, none failed. Both images passed nine Secure Boot checks in a VM, and the plain image passed an 18-step install to a disk.

Links

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

https://lexipanel.com/download/

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

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

All 92 changes, one line each:

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

Benchmarks and method:

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

Happy to answer questions about the audits, tensor parallel or the engine.


r/LocalAIStack • • 20h ago

Ling 3.2 Air Maya-L on one 24 GB GPU and a 64 GB RAM budget: 95.7 tok/s at 250k context

2 Upvotes

​

I’ve been working on HyperLing, an MIT-licensed fork of Project Maya that runs Ling 3.2 Air’s Maya-L IQ3_S quant on one NVIDIA GPU. The 59.2 GB model uses a mix of VRAM and host RAM. The v0.2.0 profile ran the full 262,144-token window within a 54 GiB engine memory cap.

Here’s the earlier CLI comparison from v0.1.0. Each cell is one run, in decode tokens/s.

| Context | v0.1.0 decode (tok/s) | v0.2.0 decode (tok/s) | v0.1.0 TTFT (s) | v0.2.0 TTFT (s) |

|---|---:|---:|---:|---:|

| 40k | 110.4 | 117.5 | 16.2 | 15.1 |

| 80k | 103.7 | 112.8 | 25.6 | 21.3 |

| 140k | 90.8 | 110.1 | 46.9 | 36.5 |

| 150k | 89.9 | 105.5 | 11.1 | 8.6 |

| 200k | 85.2 | 96.8 | 67.7 | 50.4 |

| 250k | 87.4 | 95.7 | 79.4 | 57.6 |

Both comparisons used one RTX 3090 Ti 24 GB at 350 W, a Ryzen 9 5900X, 128 GB DDR4-3200 and a 54 GiB engine cap to represent a 64 GB RAM budget. The gpu-unlock kernel module was loaded for both HyperLing and the Maya baseline. This is the only hardware I tested. gpu-unlock

v0.2.0 adds a faster prefill kernel, shares attention data between restore points and raises the minimum lookup match to 10 tokens in the recommended profile. Lookup drafting uses exact rejection sampling. Greedy output was bit-identical across the tested lookup settings.

Run this on Linux with an NVIDIA driver and CUDA toolkit 12.4+ to build the engine, download the quant and start the server.

git clone https://github.com/neyisyavuz-afk/hyperling

cd hyperling

./hyperling.sh

If you try it on another 24 GB card, I’d be interested in your decode rate and TTFT at 140k or 250k. HyperLing


r/LocalAIStack • • 48m ago

Dear Friends

Thumbnail
github.com
1 Upvotes

Hey everyone,
I built KriyaRT, an ultra-lightweight native Metal inference engine for Apple Silicon written in pure Rust and Metal Shading Language (MSL 3.1) to avoid Python dependencies, PyTorch bloat, and slow startup times.

GitHub: Kriya-rt
Key Features (v0.3.0):Benchmarks (8GB Apple M1, Q4, temp 0.0):Looking for M2, M3, and M4 testers to run this and share feedback!
Also open to contributors as I am relatively new here


r/LocalAIStack • • 1h ago

r/localAIStack

1 Upvotes

Hi friends, we’re the NIMO PC team behind NimoOS. We’d like to introduce the project and hear how its approach would fit alongside the tools you already self-host.

NimoOS is an open-source personal cloud platform, it adds an AI agent, file retrieval, and a knowledge layer alongside file storage and app management.

Our theme is Find → Ask → Organize. Think of remembering what a document discusses but forgetting its filename. The goal is to help you locate relevant files, ask questions about their contents, and organize information within the same environment.

The image shows our H495 five-bay AI NAS and S495 all-flash NAS. Here, we’d particularly welcome feedback on the software workflow and how it could work with an existing self-hosted setup.

For an agent working with personal files, local deployment is only part of the picture. Access permissions, visibility into actions, and confirmation requirements also matter.

One current limitation: Photos and Search are not yet isolated per user. Please review the security notes when assessing deployment suitability.

You can explore the source and installation documentation, check the roadmap, or read our earlier NimoOS introduction.

We’ll also be showcasing these systems and NimoOS at CES 2027, January 6–9, at Venetian Expo, Hall G · Eureka Park · Booth 61252 in Las Vegas.

Our technical team will be there to chat. Interested in joining us? DM me with a brief introduction to your background and your interest in NimoOS, NAS, or Agentic Computers for a chance to receive a free CES pass.


r/LocalAIStack • • 6h ago

Running FLUX.2 Klein 4B locally on a 4 GB VRAM laptop (RTX 3050 Ti) — built an open-source desktop GUI

1 Upvotes

A few technical notes from testing on my setup:

- **Memory handling:** Uses sequential layer offloading (block swapping to system RAM) so peak VRAM stays safely under the 4 GB limit on my RTX 3050 Ti laptop without triggering OOM crashes.

- **Generation speed & settings:** Running at `8 steps` and `Guidance 1.0` (including 16:9 `1344x768` and 3:4 `768x1024` outputs with two LoRAs loaded at once), a cold start when the pipeline has unloaded takes around **1 min 30 sec**, while consecutive generations take **30–45 sec** per image depending on laptop thermals.

- **LoRA training:** Tested with 40-image datasets directly on the same 4 GB card using the built-in low-VRAM profile.

If anyone tests this on a 6 GB or 8 GB card (or with 16 GB system RAM instead of 32 GB), let me know how the offload profiles behave on your end


r/LocalAIStack • • 8h ago

Local LLM setup on 2025 ROG Flow Z13 (48GB VRAM) for Notion & personal docs?

1 Upvotes

I’m building a local LLM setup on my 2025 ROG Flow Z13 (Ryzen AI Max+ 395, unified 64GB RAM). I've already allocated 48GB to VRAM and installed LM Studio on Windows.

My goal is to use it for personal documents, finances, and agentic workflows connected to Notion via MCP. Which models work best for tool calling and RAG at decent speeds on this hardware, and what’s the simplest way to wire up LM Studio to Notion MCP and my local files?

I want to stop paying for subscriptions (Calude and Gemini).


r/LocalAIStack • • 13h ago

Anvil LLM

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 18h ago

The best draft head for Qwen 3.8 27B? DSpine vs DFlash2 on one GPU: 160.6 vs 105.6 tok/s (no draft: 44.5)

Thumbnail
youtube.com
1 Upvotes

The memory on my card says a 27B model should write about 50 tokens per second: every token reads all 15.5 GB of weights, at roughly 800 GB/s. With Tencent's DSpine draft head it writes 160.

What DSpine changes compared to DFlash: DFlash guesses a whole block of tokens in one pass, but no position sees what its neighbours are planning, so the guesses often don't fit together and the target model stops at the first wrong one. DSpine is a small 5-layer network where, after every layer, each position listens to the one before it (with a learned gate). Still one pass, but the guesses fit.

My numbers (one RTX PRO 4500, 4-bit Kate = Qwen 27B fine-tune, one conversation at a time, llama.cpp-based engine):

  • 24 agent tasks, A-B-B-A: DSpine 160.6 · DFlash2 105.6 · no draft 44.5 tok/s
  • tokens kept per check: DSpine 5.8 · DFlash2 3.9 (same per-position acceptance at the start; DFlash2 stops at 5, DSpine keeps going to 15)
  • live demo, same prompt (voxel pagoda in three.js): 47 tok/s without, 177 with DSpine; both pages run exactly as written

Speculative decoding doesn't change the output distribution: the big model still decides every token with its own odds.

Limits: my numbers, one card, 4-bit, batch 1. Tencent measured SGLang, BF16, 8 requests at a time. Full speed needs about 20 GB of VRAM. I also tried training my own head: +27 % accepted tokens on my own test set, but 1.2 % slower on real agent conversations, so I kept Tencent's.

Video (5 min, explains the three ideas with a live demo): https://youtu.be/6BXT-xaonhU

Run it: flelink run kate-27b-dspine (FLE Link 0.1.18+, https://flelink.run)

Paper: https://arxiv.org/abs/2609.36173 · Tencent's head (Apache-2.0): https://huggingface.co/tencent/Qwen3.8-27B-DSpine-b16 · GGUF by aj9o9: https://huggingface.co/aj9o9/Qwen3.8-27B-DSpine-b16-GGUF · Kate: https://huggingface.co/sirfyyn/Kate-Qwen-27B-GGUF-SpedUp-Abliterated

Thanks to the authors for publishing the paper and the weights.

Has anyone measured EAGLE-3 or an MTP head against these on a 24 GB card? I'd like to add them to the comparison.


r/LocalAIStack • • 20h ago

what’s on your “don’t break my local llm setup” checklist before an image upgrade?

Post image
1 Upvotes

hey folks, been thinking about what i’d save before swapping the image on a self-hosted setup. i work at Nebius, and reading one of our GPU debugging write-ups made me realize how easy it is to stop at “the server started.”

i’d keep one request that works on the old image, plus the image tag, model and launch flags. on the new image, check the model actually loads on the GPU you meant to use, then replay that request cold and warm. i’d look at the answer, time to first token and peak VRAM. if it’s spread across nodes, i’d also check that the runtime picked the transport i expected.

anything you’d add? i’m curious about the boring little checks people only started doing after something broke.


r/LocalAIStack • • 20h ago

Localhost chat app for a local AI stack: llama.cpp, vLLM, ComfyUI, MinerU, SearXNG

Thumbnail
gallery
1 Upvotes

I'm working on a chat app (CairnMark) that sits in front of a local AI setup. It runs on 127.0.0.1 only, stores settings and chat history locally, and encrypts hosted API keys at rest.

Models: llama.cpp, vLLM, any OpenAI-compatible endpoint, and hosted APIs. The model list shows capability flags (image, video, audio, tools, reasoning) and a relative speed rating per model, and it can be filtered by both.

Chat: Every reply shows the request body, token meter, and time meter. "Answer again" re-sends a prompt with another model or settings, and the answers stack as tabs. 👎 removes a request/response pair from the context. Context compaction can be undone. History limit for small-context models, or send everything.

Tools (MCP): llama.cpp's own tools and the app's stdio/HTTP servers work side by side. A quick bar selects tools per request, so tool schemas stay out of the context. If a local endpoint is offline when a tool is called, the app starts it with the start command you set and stops it afterwards. This works for ComfyUI, MinerU, and SearXNG. With ComfyUI, one generate_image call puts the original image in the reply.

Media: images, documents, audio, and video (FFmpeg required). Video has FPS control and optional separate audio analysis. MinerU can run locally or remotely for document processing.

Python 3.14, Windows 11 and Linux, MIT licensed, preview release.

https://github.com/CosmicLaca/CairnMark


r/LocalAIStack • • 21h ago

Bonsai 2.5 27B (5.99 GB) on a 6 GB laptop GPU: 62 s to first token and 8–18 tok/s. Bonsai 8B: 85 tok/s even at 32K

Post image
1 Upvotes
I have a 6 GB laptop GPU, and Bonsai 2.5 27B is advertised at 5.9 GB, so I wanted to see if it really runs on a card this small.
It loads, but the card is already full at a 4K window: the first token took about a minute and generation dropped to 8–18 tok/s, while the 1-bit Bonsai 8B held about 85 tok/s even at 32K.
Has anyone run the 27B on an 8 GB card, or with a 4-bit KV cache? I'd like to know if it changes the picture.

| Model | Window | Fits 6 GB? | First token | Gen tok/s |

|---|---|---|---|---|

| Bonsai 8B | 4K | yes (1,700 MiB) | 2.1 s | 85.5 |

| Bonsai 8B | 8K | yes (2,280 MiB) | 2.1 s | 85.3 |

| Bonsai 8B | 32K | yes (5,760 MiB) | 2.1 s | 83.8 |

| Bonsai 2.5 27B | 4K | at the edge (6,002 of 6,143 MiB) | 62 s | 17.7 |

| Bonsai 2.5 27B | 8K | spills (6,262 MiB) | 65 s | 9.5 |

| Bonsai 2.5 27B | 32K | spills (7,822 MiB) | 69 s | 8.1 |

Setup: RTX 3050 6 GB laptop, Windows 11, PrismML llama.cpp fork prism-b12220 (CUDA 12.4), -ngl 99 -fa on, f16 KV, same 3,146-token prompt, 128 new tokens, median of 5 runs per cell. 27B needed --load-mode none.

Limits: one laptop, window set not filled, no drafting, no 4-bit KV, quality not measured (PrismML's benchmark scores are their claim).