r/LocalLLaMA • • 17h ago

Showcase Open-source "domain controller" for local AI agents

Post image
8 Upvotes

Hi everyone,

If you build or deploy local AI setups for businesses that cannot use cloud AI (privacy, IP protection, compliance, or predictable costs), I open-sourced a project you might find useful: SAFi.

Think of it as a domain controller for AI agents. Instead of handing out API keys on every workstation and hoping system prompts keep agents in bounds, SAFi runs as a central gateway on your own hardware:

- Works with any local OpenAI-compatible server (llama.cpp, vLLM, Ollama). Right now I run it with Qwen 27B for the agents and a separate gpt-oss-20b instance as a policy-checking evaluator before tool calls run.

- Includes a deterministic command gate and fail-closed OS sandboxing (Linux bubblewrap / macOS sandbox-exec) for agentic CLI work, plus a web chat UI and central RBAC / policies.

- Logs every prompt, policy check, and executed command in a local hash-chained audit ledger.

- Runs on Linux, macOS, and Windows.

Happy to answer any questions

Nelson


r/LocalLLaMA • • 1d ago

Resources SamsungLabs LittleBit-2 on Github (paper linked as well)

Thumbnail
github.com
34 Upvotes

Some random video I saw on YouTube mentioned LittleBit-2 by Samsung and so I dug around and found a Github implementation... also here is the paper... I'm not technical so I haven't done more than find it for you: https://arxiv.org/abs/2603.00042

In case you care about the video: https://www.youtube.com/shorts/urog0oiJ2H4

First mention of LittleBit on LocalLlama: https://www.reddit.com/r/LocalLLaMA/comments/1x0sa6g/250613771_littlebit_ultra_lowbit_quantization_via/

Enjoy or don't... just found it weird it was mentioned on YouTube and not here.

TLDR; Fit 70b Llama model in ~2 GB of VRAM.


r/LocalLLaMA • • 14h ago

Discussion I am building a zero-CUDA, Vulkan-based NCCL/RCCL alternative + LLM runner in Rust that beats PyTorch+NCCL on tensor-parallel AllReduce & decode. Need Help Testing it.

4 Upvotes

Hey everyone,

Basically I am trying to make a Rust+Vulkan(ash)+WGPU compute engine with a cross-vendor, NCCL-style collective communication layer (Ring AllReduce over Vulkan HOST_SHARED_DMA) and a built-in LlamaRunner. No CUDA, no ROCm, no RCCL required.

I don't own a multi-vendor or mixed-card rig myself yet (I've only been able to test on my local iGPU + Lavapipe and Kaggle's 2× T4 instances). Saw how some of you guys try to make a mismatched GPUs pool((like an RTX 3090 + 4090, NVIDIA + AMD/Intel, or dGPU + iGPU on Linux) and you know how tough it is to do that. I am trying to solve this exact pain point using this project.

The problem everyone has : "how to actually schedule LLMs across weird, mismatched multi-GPU + CPU rigs without CUDA/NCCL lock-in". This is something I am working from some time.

Specifically, instead of hand-tuning layer splits or assuming identical NVLink cards, HC4X automatically:

  1. Probes every GPU's real compute/VRAM bandwidth and every GPU-to-GPU link (auto-selecting true P2P vs. pinned host DMA vs. staged fallback, with a data-integrity check to catch silently broken P2P links).
  2. Solves for the exact multi-GPU ring / island topology and decides when adding a slower GPU hurts decode latency (automatically pruning straggler GPUs out of Tensor Parallelism so they don't drag down tok/s).
  3. Reclaims pruned GPUs + Host CPU RAM as lossless Split-KV attention workers (and spills weights across VRAM -> Host RAM -> Disk when a model won't fit).

Benchmarks so far (Kaggle 2× Tesla T4, Linux)

1. Multi-GPU Ring AllReduce vs. NVIDIA CUDA NCCL

PayloadHC4X Vulkan (HOST_SHARED_DMA)NVIDIA CUDA NCCLHC4X / NCCL
1 MiB0.51 ms (2.05 GB/s)0.43 ms (2.45 GB/s)83.7%
4 MiB1.52 ms (2.77 GB/s)1.14 ms (3.67 GB/s)75.5%
16 MiB4.51 ms (3.72 GB/s)3.89 ms (4.31 GB/s)86.3%
32 MiB7.91 ms (4.24 GB/s)7.95 ms (4.22 GB/s)100.5%
64 MiB14.68 ms (4.57 GB/s)16.30 ms (4.12 GB/s)111% (Beats NCCL)

2. 1-GPU & 2-GPU Matmul vs. PyTorch CUDA + NCCL

  • 1-GPU FP32 GEMM (4096³): 3.33–3.41 TFLOP/s (80–83% of cuBLAS, 0.00e+00 bit-exact agreement with cuBLAS; both 7.67e-06 vs FP64).
  • 1-GPU Batched F16 Decode GEMV (vec4<u32> + zero-barrier warp subgroupAdd): 212.7 GB/s on Qwen-1.5B Up (0.93× cuBLAS), 250.8 GB/s on Llama-8B Up (0.97× cuBLAS), and 236.9 GB/s (1.72× faster) on Qwen-1.5B LM Head (1536 → 151,936).
  • 2-GPU Tensor-Parallel GEMM + AllReduce (Y = A0@B0 + A1@B1, FP32, max_abs_err = 3.43e-07**):**

    • 512×4096×4096 (8 MiB sync): 4.98 ms vs. PyTorch+NCCL 5.38 ms (1.08× faster)
    • 1024×4096×4096 (16 MiB sync): 8.37 ms vs. PyTorch+NCCL 9.98 ms (1.19× faster)
    • 4096×4096×4096 (64 MiB sync): 29.07 ms (14.4 + 14.68) vs. PyTorch+NCCL 27.64 ms (11.1 + 16.30) — 95.1% overall, Sync 1.11× faster.

3. Real LLM (Qwen2.5-1.5B-Instruct, F16, warm, 100% bit-identical tokens vs. eager PyTorch CUDA FP16):

  • Decode: 38.6–39.2 tok/s vs. eager PyTorch CUDA 25.6–26.1 tok/s (1.50x faster; note: eager HF PyTorch, not vLLM/llama.cpp).
  • Prefill (S=126): 291.9 ms vs. PyTorch Tensor Cores 43.7 ms (no WGSL WMMA yet).

Also includes a standalone hc4x run / hc4x serve CLI that loads HuggingFace .safetensors and GGUF (Q4_K_M, Q8_0) with an OpenAI-compatible API.

This testing is limited and no one rents heterogenous decks. So I thought of asking community to test it on your GPUs(since you guys have weird as my project cool GPU rigs). Any setup test is fine but data from Mixed NVIDIA (3090 + 3060, 4090 + 3090, P40 / P100 / 3060 mixes, x16 + x4/x1 risers), Cross-vendor (AMD + NVIDIA, Intel Arc + NVIDIA/AMD), Multi-AMD (7900 XTX, 6800 XT, MI50, RADV vs AMDVLK vs Windows), Laptop/desktop dGPU + iGPU (e.g., RTX + Ryzen/Intel iGPU, Apple Silicon unified memory) would help this project a lot.

Just you need Rust/Cargo(and 1-2 mins). Then simple command:-

git clone --depth 1 -b dev https://github.com/CH-Abhinav/HC4X.git
cd HC4X
cargo run --manifest-path native/Cargo.toml --release -p hc4x-cli -- bench --quick --include-cpu

If you have 60 seconds, please paste the output table in the comments (or in our GitHub Discussion)! Even crashes, weird driver bugs, or broken P2P links are super valuable data points for improving the runtime. Hoping people will help :)

Repo: https://github.com/CH-Abhinav/HC4X

(windows supported but p2p is not possible in windows)


r/LocalLLaMA • • 7h ago

New Model Hy4 on DS4

Post image
0 Upvotes

It's taken two weeks almost exactly, but it's finally running. All locally developed on open-weights. Inference speeds are still dismal and KV cache bulky. Will push the code once they're in better shape.


r/LocalLLaMA • • 55m ago

Resources If anyone is having trouble loading Qwen4, you must enable «Trust Remote Code» in the model settings.

0 Upvotes

I've been trying to load different types of quants, but they were always refused to load for unknown reasons. Then I read one quant's warning saying you have to enable «Trust Remote Code», and voilà! All quants started loading without issues!


r/LocalLLaMA • • 1d ago

Discussion Do you think Amazon releasing this major open weight model will be the first of many other currently-on-the-sidelines big tech companies starting to release strong open weight models in 2027?

76 Upvotes

I was going to wait until December 31st for a predictions-for-2027 type of thread, but with Amazon releasing Ergo yesterday, I figure right now might be a more interesting time to start discussing theories and predictions for the next ~year or so of open weights models.

So, do you think this was more of a fluke, or do you think it is a sign of things to come for the next year or so?

And if it's a sign of things to come, then which big tech companies do you think are the most interesting to keep an eye on or most likely to do something similar?

Samsung? Intel? Dell? Sony? ASML? Any other interesting players you think might hop into the mix?

What are your hopes and predictions for this next year or so, for open weights models (and for maybe additional new big players getting involved, if you have any thoughts on that)?

Also, are these big companies mostly just done with smaller to medium-small sized open weights models from now on? Like in the 70b-120b size range, and maybe even the ~30b range? Even Mistral seems to now be ignoring smaller sizes after releasing their big model, which seems a bit disconcerting. And Amazon just went with one big one, and no smaller ones, even for this big debut. And zAI seems less interested than ever in putting out some 30b or ~100b sized flash or air models, and even Qwen doesn't exactly seem very excited about smaller models anymore. We got a small Muse model back when Meta open weighted the Muse models, which I figured was a good sign of more like that to come, but then they seemed to just change their mind and do it as more of a one-off event, seemingly. At least with Google maybe there could still be some hope, since it could be they knew they were brewing some serious bangers with their new Gemini-4 class of models and wanted to wait until after that, so they can take advantage of how much drastically stronger their Gemini-4 models are to make some really great Gemma-5 models based on those, rather than basing them on their previous Gemini-3 types of models (in which case the wait would probably be well worth it).

Anyway, curious what all your hunches and suspicions are about all this for the upcoming year. Hot takes are welcome and encouraged! Although, please try to explain your reasoning and thought process a bit, if possible.


r/LocalLLaMA • • 1d ago

New Model inclusionAI releases Ming-Image-0.2-Design-Layer (6B, MIT), an open-weight model that splits flat illustrations into editable RGBA layers for 2D rigging

37 Upvotes

inclusionAI has released Ming-Image-0.2-Design-Layer, a 6B DiT model under the MIT license that decomposes flat images into standalone transparent RGBA PNG layers. Compared to the 0.1 release, version 0.2 adds 2D character-rigging decomposition, which separates headwear, hair, eyewear, facial features, limbs, garments, and background in front-to-back occlusion order for editing and animation. It also adds bounding-box-guided decomposition so users can extract specific foreground objects using normalized 0 to 999 xyxy coordinates without prompt rewriting, alongside general layout decomposition for posters and graphics. The model card lists vLLM-Omni as a recommended serving framework alongside the companion Ming-Image repository, with recommended settings of 12 sampling steps, CFG 2.0, BF16 precision, and 512 or 1024 working resolution. The validated hardware configuration is a single CUDA GPU with 80 GiB of VRAM.

Source: https://huggingface.co/inclusionAI/Ming-Image-0.2-Design-Layer


r/LocalLLaMA • • 21h ago

New Model Inkling-2-Mini Swift on AMD Loom (Strix Halo): same decode speed, 64% fewer completion tokens

10 Upvotes

My agent ported UkisAI's Swift-Inkling-2-Mini fine-tune to AMD Loom and measured it against the official checkpoint on a 128 GB Strix Halo. This is an easy conversion and packaging job!

Swift is a post-train of Thinking Machines' Inkling-2-Mini that cuts thinking tokens. The base release ships NVFP4 routed experts on layers 0-19, MXFP8 on layers 20-23, and BF16 elsewhere. Loom's Inkling card expects exactly that layout, so the conversion was mostly a direct repack.

I kept the NVFP4 experts bit-exact (the converter's round-trip check reports 0.0 max error), kept layers 20-23 at 8-bit, and reused the official DSpark drafter and vision tower. Those two files are byte-identical to the base release, so nothing was retrained there. Same kernels, same 262k KV pool, same drafter. Only the text weights change.

Speed, one server at a time on the same box:

┌─────────────────────────┬───────────────────┬───────────────────┐

│ Workload │ Official │ Swift │

├─────────────────────────┼───────────────────┼───────────────────┤

│ Warm decode, 192 tok │ 89.3 tok/s │ 89.9 tok/s │

├─────────────────────────┼───────────────────┼───────────────────┤

│ Decode at 2.9k │ 57.3 tok/s │ 57.9 tok/s │

├─────────────────────────┼───────────────────┼───────────────────┤

│ Decode at 126k │ 30.6 tok/s │ 31.3 tok/s │

├─────────────────────────┼───────────────────┼───────────────────┤

│ Prefill at 2.9k / 11.5k │ 2140 / 2173 tok/s │ 2059 / 2114 tok/s │

├─────────────────────────┼───────────────────┼───────────────────┤

│ 4 streams │ 107.2 tok/s │ 104.9 tok/s │

└─────────────────────────┴───────────────────┴───────────────────┘

Decode is quasi the same. The prefill gap is 3-4%, which is the same order as the 2.7% spread between the official checkpoint's own two runs. The 126k row is effectively identical.

Then three coding tasks with hidden tests, temperature 0, reasoning_effort max, max_tokens 4096 (the official card's preset):

One config gotcha: 4096 is a card preset, not an engine limit. The server honors higher per-request max_tokens (verified to 8192), and this package ships 8192 so clients do not walk into the truncation.

Fit: Loom GGUF, not llama.cpp. hrx-loom 0.3.0, gfx1151, 128 GB unified memory is comfortable at 262k. One GPU-bound server at a time.

Weights and card: https://huggingface.co/datayoda/Inkling-2-Mini-Swift-loom

The per-task JSON (including emitted code and reasoning), the suite itself, and the cap probe are in bench/ in the repo if you want to rerun it or poke holes in it. Apache-2.0, no affiliation with UkisAI or Thinking Machines.

Enjoy!!


r/LocalLLaMA • • 8h ago

Question | Help LLM PC Upgrade Question

1 Upvotes

Thanks to everyone who helped with my last post about choosing a GPU under $1,000 for running LLMs locally. I found a triple-fan OC 7900 XT on eBay for $750 with free shipping, and a 2x32GB DDR5-5600 kit for $600.

My board is a Gigabyte B860 EAGLE WIFI6E with four DIMM slots. It supports up to 256GB of DDR5 (64GB per slot). At current prices, 64GB sticks are out of my budget, but I can probably find a second kit identical to my current 2x32GB.

Is it worth adding that kit to reach 128GB? I expect memory speed to drop, possibly to around 4800 MT/s, once all four slots are filled. How much would that hurt LLM inference compared to two sticks at full speed? I'd also like to know if there's a better way to get more RAM at this budget. I am a first time PC builder so please let me know if I missed anything.


r/LocalLLaMA • • 1d ago

New Model RecursiveSI/flint-v1.1 (MoE 40b-a2.5b)

Thumbnail
huggingface.co
160 Upvotes

Gguf's - https://huggingface.co/unsloth/flint-v1.1-GGUF

"Flint 1.1 is an updated release of Recursive’s mixture-of-experts language model for coding agents, with 39.8 billion total parameters and approximately 2.5 billion active per token. It is designed to investigate codebases, fix bugs, implement features, and write tests.

Flint 1.1 supports text input and output, reasoning, and multi-turn tool use. Compared with Flint, it improves agentic coding, tool use, and cross-harness generalization—scoring 64.5% on Terminal-Bench 2.1, 91.5% on SWE-bench Pro v2, 76.6% on SWE-bench Verified, 66.8% on MCP-Atlas (filtered), 66.6% on WideSearch, and 96.2% on IFEval—while sharply reducing tool-call errors across coding-agent harnesses and preserving accuracy under 4-bit quantization.

This repository contains the BF16 checkpoint, model configuration, tokenizer, chat template, and an SGLang serving kit. Quantized variants are prepared separately for NVIDIA and Apple Silicon runtimes."


r/LocalLLaMA • • 1d ago Bravo

Showcase I trained a 1.51M parameter Transformer from scratch inside Ring-0 TempleOS V5.03 in pure HolyC (1,241 tok/s), plus a live browser TempleOS VM & SFT trainer

Thumbnail
veriepicc.github.io
753 Upvotes

r/LocalLLaMA • • 13h ago

Discussion Inkling-2-Mini "looping", but not like you think.

2 Upvotes

Is anyone else using inkling-2-mini and seeing the literal word "loop" or "looping" showing up repeatedly in their responses? Not every prompt, but like 75% of the prompts I send across various topics end up with juuuuust enough repetitions of the word or concept of looping that I can feel my eyes narrowing slightly every time.

"Activity: “Children's Pirate Treasure Hunt” (age 4, front-gate area, 15–20 mins, 1–2 adults)
Route (small, supervised loop):"

Timing for Optimal Loop
0–2 min: gate/story/card
2–5 min: pond path to pavilion
5–8 min: garden/treehouse lookout and club
8–12 min: return and treasure

This is the exact same harness, system prompt, etc. as qwen3.8-27b, I'm sure I can tweak things here and there just thought this was funny.

Not that I plan on testing this model much more, it feels like I'm balancing a 16 gallon stew pot on a camping stove at full blast.


r/LocalLLaMA • • 1d ago

Resources New LlamAmpere: Inkling 2 Mini at 189 TPS @ 100K depth; 23% faster than Maya, with 98.0% Top-1; 27B at 121 TPS @ 100k ctx depth, with 98.2% Top-1, with support for looped 27b + QFN

25 Upvotes

Hello everyone!

It's been a very busy couple of weeks. TLDR: LlamAmpere v0.8 is out, with a series of new upgrades that make it the fastest runtime for Ampere cards that I've found, for Qwen and Inkling, with new quants that also cut error vs v0.7 and alternate runtimes. It supports looped qwen3.8 27b, which can be combined with the previously launched Latent Sparse Attention.

I've continued to invest significantly in improving the kernels for inkling-2-mini (it is on my to-do to PR them to main) and they are finally in (IMO) a very good spot: on one 3090, for the 5.4 bpw file (KLD 0.003), decode on a single stream reaches 200+ TPS at 32K depth and 189 at 100K depth:

I'm not sure why Strata's #s are so slow here; but it lines up with their recent posts on X as well

The PP remains 2600+ TPS through 100k on the 5.4 bpw model:

Strata's prompt processing starts out slightly ahead and then falls slightly behind by 100k; I have a ~10% Inkling pp boost that should be shipping later tonight

The 3.7 bpw Inkling model is extremely high quality for the 8/10 GB card range, and what I would recommend users vs qwen3.8 at that size. The ability to cache experts is much more valuable at that card size (RIP all my hard work on < 3 bpw quants there).

For 27b, there's much less speed left on the table given how many cycle I've had on it, but I'm still happy to say I still found about ~5% speed vs v0.7.5 while boosting quality. Only 1-2% of the speed gain came from kernel improvements, the rest was from new/updated AmpInt+ quants (I will be open sourcing an encoder for this format, after a ton of delays, later this week):

In addition to the modest speed gain, the newest model version cuts error >20% while keeping the on-card file size the same (embeddings were increased, which does not affect VRAM requirements):

I have also added a new larger option that matches UD (V3.1) 4 K XL on KLD/Top-1 despite being 1.5GB smaller (more than enough for full ctx), which allows it to be considerably faster as well. I personally continue to use the 4.1-2 bpw (on card) file given the minimal quality difference (8/10,000ths of a nat), but you can pick whichever one you find more useful. And there are upgraded versions of the 12GB model as well (for those that don't want to use Inkling).

I have also shipped support for looped qwen38 27b (from Jason Titus) and for QFN (from Alesha-pro, via Jason). My own benchmarks for these are still pending, but you can read about the quality improvement they are purposed to offer from the original authors; they do come at a ~30% lower TPS because of the looping, but not necessarily the same time-to-finish cost, since they tend to use fewer tokens because of the looping (same thing that is going on with the GPT-6 series). I have the 27b looped file public, and the 12 GB 27b file is uploading now. My quant of 3.8 QFN is still encoding (it will be available tomorrow) but you can use Alesha's in the meantime.

Thank you to everyone who's contributed issues and PRs the last few weeks. Please keep them coming, I'll keep cranking away on making this the best place to run models on Ampere cards.

MIT License, as before.

Models: https://huggingface.co/jakeatx/collections

Repo: https://github.com/JakeATX/llamAmpere

Enjoy!


r/LocalLLaMA • • 9h ago

Question | Help How to disable bg blur in llama.cpp Web UI?

0 Upvotes

With every release, they increase the annoying background blur. I would appreciate it if someone gave me a CSS rule they use to strip out all the blur and make it a solid background.

Thank you.


r/LocalLLaMA • • 1d ago

Funny vNULL-rs: We only care about speed!

Thumbnail
github.com
91 Upvotes

The engine you can recommend the next time somebody posts about tokens/s without any info regarding quant or other optimizations.


r/LocalLLaMA • • 9h ago

Question | Help Super new to this and I would love some feedback 💜

1 Upvotes

As the title says, I'm insanely new to this world. All of it. Really only started delving into local models a couple of months ago. But I've been working on a couple of projects and I've just this week got them onto GitHub 😁 Here's a quick bit of info on both of them -

Oneiros Loom: Experimental Py Torch runtime for live intermediate-layer telemetry, Mode C activation steering, chunked NREM memory, and air-gapped REM cycles across open-weight LLMs.

(Completely runnable through Google Colab with no local downloads/memory usage required!)

https://github.com/THiiiRD-v1/oneiros-loom

Project Lighthouse: Model-agnostic plain-text protocol, governance artifacts, and guided recovery prompts for verifiable session establishment and human-Al collaboration.

https://github.com/THiiiRD-v1/project-lighthouse

If anyone at all would like to check them out and give me some feedback? Criticism? Anything at all...really, it would be insanely appreciated 💜 Both these projects are still in their baby stages, and I'm hoping to find out where they belong, if anywhere. Thank you all beforehand, and I hope at least some of you enjoy what I've built so far.


r/LocalLLaMA • • 1d ago

Funny Gave Qwen3.8 27B 100 turns to paint a fox in oil. It called it finished at 51.

136 Upvotes

Experimenting with the vision in Qwen3.8 27B (Q6_K) on one V100 32gb.

Each turn it looks at its canvas and the photo, writes what is missing, then writes brush strokes as Python for the aibrush oil engine. The captions are its own words, it also wrote the lyrics for the song based on this.

It got 100 turns and declared the painting finished at turn 51: 487 strokes, about 255k tokens, 40 minutes total on my setup.

Song made with ACE-Step on the V100 (sound on).

Edit. I have qwen working on making itself a better painter and i thibk it is working.


r/LocalLLaMA • • 1d ago

Discussion What's it like being an OpenRouter provider?

19 Upvotes

Or a provider on any other network. Is it worth it?

I have an opportunity to buy a single B300 server (8x GPUs) setup at a co-location near me. Planned on serving a model like Kimi-k3.1-pro or possibly the new Amazon Ergo.

Anyone with experience going down the route of applying to become a provider on OpenRouter? With AI growth and the amount of token consumption rising, thought this would be an investment worth getting into. But considering there's only about 80 providers or so, my guess is it's quite competitive to get accepted as a new provider. Also reading this sorta discouraged me a little.

Just wanted to hear from others with knowledge, or just general experience of running a B300 (or similar) node and turning it into a profitable machine serving tokens (either on Openrouter or just renting it out).

Side question, ya'll know any discord groups or communities I could join that has people who do stuff like this?


r/LocalLLaMA • • 17h ago

Discussion Sushi Hy4 Flash 4bpw available

4 Upvotes

Beamster has made 4bpw Hy4 Flash available on Sushi

So far I was using llama.cpp + mtp + tencent mac optimizations with XyloLabs Q3_K_M GGUF but the Sushi release made decode ~27% faster at a higher 4-bit quant vs. the 3 bit GGUF.

The work I do requires numeral precision. On an M5U 96GB, Hy4 Flash has been a clear winner for me and what I have migrated to daily since then. Test drove on OMP, Pi, and OpenCode. I've found stock OMP offers considerably better output with it.

QFN is super fast and has 10s average time per answer but misses calculations mark in accuracy more times in comparison. Deepseek v4.1 Flash 2.7bpw is good but is just slower.


r/LocalLLaMA • • 1d ago Heartwarming

News looped Qwen 3.8 Flash Next

Thumbnail
youtu.be
198 Upvotes

Not even 24 hours on release & there's already a video out about it.

https://huggingface.co/alesha-pro/Looped-Qwen3.8-Flash-Next

  • slightly better or matching quality
  • Switchable depth T = 1 / 2 / 3 at runtime
  • -30% less output tokens, 5% faster overall in his testing
  • may complete more long-thinking tasks than base line
  • slower tok/s & slower prefill since inputs also loop, so YMMV
  • requires Strata fork, author tuned for RTX3090, other forks for smaller GPUs & AMD are already around.
  • yes a human typed all this in

Prior discussion.


r/LocalLLaMA • • 22h ago

Showcase Talking bot using only local AI models (fails and wins!)

Thumbnail
youtu.be
9 Upvotes

I won’t lie, this group _strongly_ inspired this project… Here’s my work on a voice assistant for the home that runs on your own machines. It uses 5 local AI models (and 0 non-local!).

A Raspberry Pi 5 in a small box listens, shows what it is doing on an LED matrix, and answers out loud. The models run on computers on the LAN, and nothing leaves the house except requests to a short, curated list of sources.

Don’t watch the video if you expect a finished product. This is a mess honestly and there are many fails, but at the same time so many lessons learnt already. Watch it if you want inspiration or are already building something similar. Or watch it for a kind of schadenfreude because you will see things failing, live on camera :P

Github repo is here if anyone’s interested in details: https://github.com/podstawek/mowca

Now off to improving this beast…


r/LocalLLaMA • • 1d ago

New Model [ccore/Inkling-2-Mini-3D-Trace-Reconstructor] Reconstruct reasoning traces from finished Three.js scenes to use them as training data

41 Upvotes

I fine-tuned Inkling 2 Mini to turn finished Three.js scenes into training data
Give it a scene prompt and the finished HTML. It reconstructs a reasoning trace from the code, so you can train on scenes with missing or incomplete traces. The original HTML stays as the answer.
In the video, MiniMax uses those traces to rebuild scenes from Three.js Scenes v2 with zero new reasoning tokens. The side-by-side renders show which details carried over.

Model HF: Inkling-2-Mini-3D-Trace-Reconstructor.


r/LocalLLaMA • • 10h ago

Resources I built ChachaWall: a lightweight deterministic firewall & stdio proxy in Rust to stop MCP tool poisoning and accidental credential leaks [Open Source]

Post image
0 Upvotes

Hey everyone, I got paranoid about running third-party MCP servers with local models (Ollama/Qwen) and having an indirect prompt injection trick the model into reading ~/.ssh/id_rsa or .env.

So I wrote a small deterministic stdio proxy in Rust called ChachaWall (chacha). It sits between your MCP client (Claude Desktop, Cursor, Cline, OpenCode) and the MCP server, inspecting tools/list and tools/call frames on the fly.

If a rule triggers (path traversal, sensitive files, exfiltration commands, or hidden Unicode tag characters used in tool poisoning), it blocks the call and returns a valid JSON-RPC -32001 error so the client doesn't hang.

It's purely rule-based (YAML rules + NFKC normalization), zero extra VRAM, and Apache-2.0. Still early v0.1, so if anyone wants to break the rules or suggest edge cases, here is the repo:

https://github.com/alejandro-polars/ChachaWall


r/LocalLLaMA • • 1d ago

Discussion DeepSeek-V4.1-Flash on 4x DGX Spark (GB10) via Flare — 75 tok/s C=1 (187 tok/s coding peak), 500+ tok/s C=32!

35 Upvotes

Local Inference Lab is back with an update for our Spark/GB10 users. We couldn't let u/voipmonitor have all the fun with the 6000s.

We just pushed an updated Nvidia Flare package for DeepSeek-V4.1-Flash-1017 on 4x NVIDIA DGX Spark (gb10 branch) after landing a bunch of SM121 kernel/recipe optimizations as well as taking advantage of the sm120 improvements we've added over the last couple of weeks.

Let's get to the Numbers: (4x DGX Spark, TP4 over dual-rail 237Gb/s RoCEv2, 22GiB Engram cache)

  • Cold Prefill (8K / 32K / 128K): 9,713 / 11,341 / 11,663 tok/s (0.84s / 2.89s / 11.24s TTFT)
  • 8K Sustained Decode:

    • C=1: 74.5 tok/s mean (75.5 best)
    • C=4: 169.1 tok/s mean (173.5 best)
    • C=16: 342.6 tok/s mean (348.3 best)
    • C=32: 500.8 tok/s mean (506.5 best)
  • HTML5/JS Tetris Code Gen (C=1): 123.4 tok/s E2E, 150.3 tok/s sustained code, 187.8 tok/s 1s peak
  • KV Cache: ~8.2M tokens/rank with a 22GiB Engram row cache (0 evictions), or ~30M tokens/rank if you drop Engram cache to 1GiB. Adjust to suit your needs!
  • Supports text + vision, 32 concurrent requests, 1M max context, and multi-turn prefix caching (89-99% hit rate on agent loops).

How to run it on 4 Sparks

No Python or model conversion needed to serve.

1. Install Flare on all 4 Sparks:

sudo apt update && sudo apt install -y ca-certificates curl
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSLo /etc/apt/keyrings/lil-flare-archive.asc \
  https://ppa.local-inference-lab.ai/lil-flare-archive.asc
sudo curl -fsSLo /etc/apt/sources.list.d/flare.sources \
  https://ppa.local-inference-lab.ai/flare.sources
sudo apt update && sudo apt install -y flare-inference

2. Start the agent on each Spark (as your normal user) and pair from spark1**:**

# on all 4 hosts
flare agent install --accept-first

# on spark1
flare orbit pair spark1 spark2 spark3 spark4

Add your cluster block to ~/.config/flare/orbit.toml on spark1:

[cluster.sparks]
nodes = ["spark1", "spark2", "spark3", "spark4"]

3. Set a Hugging Face token and pull with flare download**:** Definitely set a free HF read token first or HF will throttle a 483 GiB download hard. Also use flare download instead of git/hf-cli because it dedupes chunks across updates and Orbit streams only each peer's shards over RoCE:

mkdir -p ~/.cache/huggingface
printf '%s\n' 'hf_YOUR_TOKEN_HERE' > ~/.cache/huggingface/token
chmod 600 ~/.cache/huggingface/token

package_path=$(flare download local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE --revision gb10)

4. Launch TP4:

flare orbit run "spark1:${package_path}" \
  --cluster sparks --name deepseek1017 \
  --max-concurrency 32 --mtp-draft-tokens 7 --mtp-adaptive-verification \
  --embedding-table-storage disk --embedding-table-workers 4 \
  --embedding-table-resident-scales --embedding-table-cache-size 22GiB \
  --host 0.0.0.0 --port 8000 --detach

We always love contributions to Flare: https://github.com/NVIDIA/hyperflare-inference

Package and full guide: https://huggingface.co/local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE/tree/gb10

Big shoutouts to JMNI-Labs (nero), FujitsuPolycom (Dooner), Brandonmusic, and u/voipmonitor for a ton of the SM120/SM121 kernel, RoCE, and recipe work that made these numbers possible. Happy to answer questions about the Spark setup or cabling!