r/LocalLLM • • 3m ago

Discussion Do newer DSH versions also feel like downgrade for you?

1 Upvotes

I was using one of the early versions of DSH with my Qwen 3.8 27B NInfer setup and was pretty happy with it. I figured it was time to update to a more recent DSH release, so I upgraded to v0.2.2-rc.5.

After just a couple of prompts, it feels like my agents are stuck in a never-ending loop of context compaction (~3–8k tokens), even though I have a 256k context window.

Is anyone else experiencing similar issues? Or are you generally happy with the latest DSH releases?


r/LocalLLM • • 4m ago

Discussion Is a higher quant worth the drop in speed?

1 Upvotes

I'm using Qwen 3.8 flash next and getting ~180t/s decode on unsloth q4_k_xl. Would you switch to q8 if your speed dropped to 80t/s? Is the quality improvement worth the drop in speed?


r/LocalLLM • • 19m ago

Discussion Which LLM model is best

0 Upvotes

I am setting up Hermes agent but local llm are worst so thinking of using other LLM model so which one should I use for daily task like scheduling or using it as personal assistent thinking of DeepSeek flash 4.1 or any suggestion??


r/LocalLLM • • 43m ago

Discussion [Solved] Qwen3.8-27B GGUF crashes on Apple M5 Max — fix: set Max Concurrent Predictions to 1

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 1h ago

Project I built a zero-dependency local IDE & Coding Agent that runs Qwen3-Coder-30B-A3B MoE + Inkling 2 Mini Vision on a 6 GB AMD RX 5600 XT (Vulkan, zero ROCm) & NVIDIA CUDA

5 Upvotes

Most local coding setups assume a 24 GB RTX 3090/4090 or painful ROCm builds on Windows. I wanted to see how far a 6 GB VRAM GPU (my test machine is an AMD Radeon RX 5600 XT 6 GB + 32 GB RAM on Windows 11, using plain ggml-vulkan — no ROCm, no Visual Studio build) could go with modern MoE coding models.

I ended up splitting the work into two open-source Apache-2.0 repos (plus a sibling video engine):

Feedback, benchmarks on NVIDIA GTX 1650/RTX 3050/3060 or newer AMD RX 6600/7600 cards, and PRs are super welcome!Most local coding setups assume a 24 GB RTX 3090/4090 or painful ROCm builds on Windows. I wanted to see how far a 6 GB VRAM GPU (my test machine is an AMD Radeon RX 5600 XT 6 GB + 32 GB RAM on Windows 11, using plain ggml-vulkan — no ROCm, no Visual Studio build) could go with modern MoE coding models.

I ended up splitting the work into two open-source Apache-2.0 repos (plus a sibling video engine):

PicoCode (https://github.com/ffalcon3098-droid/PicoCode) — One-click Windows setup (setup.cmd) that auto-detects AMD Vulkan / NVIDIA CUDA 12.4 / Intel Arc Vulkan, downloads pre-built llama.cpp, and serves Qwen3-Coder-30B-A3B (IQ4_XS), Inkling 2 Mini (26.4B/3.4B looped MoE + Vision), or Qwen2.5-Coder-7B (for 16 GB RAM machines).
PicoStudio (https://github.com/ffalcon3098-droid/PicoStudio) — A zero-pip-dependency (pure Python 3.10+ stdlib) 3-pane local Web IDE (127.0.0.1:7900) with Coding Agent v3, Side-by-Side Diff & Multi-File Review, Terminal Pro (multi-tab SSE + one-click traceback auto-fix), and a GPU Arbiter.

What actually made 30B MoE usable on 6 GB VRAM:

Adaptive MoE layer offloading (--n-cpu-moe + -ngl 99 + --no-op-offload): Keeps attention + Q8_0 KV cache + 2 MoE layers on the 6 GB GPU while routing cold experts to system RAM.
Live VRAM Guard + --load-mode none (on >=28 GB RAM): Reads real-time Windows DXGI free VRAM before launch to prevent OOM, and avoids mmap page-fault stalls during long multi-turn agent loops.
Zero-VRAM speculative decoding (--spec-type ngram-mod) + --cache-reuse 256: Noticeably speeds up repetitive code edits and multi-step tool calls without consuming extra VRAM.
KV-cache preserving final synthesis: In read-only Plan/Review mode, the final turn keeps the exact same tools schema and uses tool_choice="none" instead of dropping tools — preserving 100% of the prompt KV prefix cache.

Honest hardware caveats:

4–6 GB VRAM + 16 GB RAM: Stick to Qwen2.5-Coder-7B (100% GPU, fast).
6 GB+ VRAM + 32 GB RAM: Unlocks Qwen3-Coder-30B-A3B and Inkling 2 Mini hybrid MoE comfortably.
Currently Windows 10/11 (x64) first; works on both AMD Radeon (Vulkan) and NVIDIA GeForce GTX/RTX (CUDA 12.4 / Vulkan).

Feedback, benchmarks on NVIDIA GTX 1650/RTX 3050/3060 or newer AMD RX 6600/7600 cards, and PRs are super welcome!


r/LocalLLM • • 1h ago

Contest Entry introducingAdtraAuraSetAiVersion444BuildingBeyondAi

Thumbnail
gallery
0 Upvotes

🚀🔥 NEW UPDATE | ADTRA AURA Set AI 4.44 — When AI Becomes More Than Just a Chatbot! 🤖🌍

💥 What if we could bring artificial intelligence, productivity tools, communication systems, and multiple intelligent technologies together into one powerful platform?

Today, I'm excited to introduce ADTRA AURA Set AI 4.44, the latest version of my ongoing project! 🚀

This project is something I have been passionately developing with the vision of building a comprehensive AI ecosystem that goes far beyond simple conversations. It aims to assist users with productivity, creativity, software development, system management, and connecting people around the world.

━━━━━━━━━━━━━━━━

🌟 WHAT'S INSIDE ADTRA AURA SET AI 4.44?

🤖 AI Chat & Multi-Model Support

An intelligent conversational AI system designed to support multiple AI models, including cloud-based models and locally running AI models.

🧠 AI Thinking & Intelligent Assistant

An adjustable AI reasoning system designed to adapt to different tasks, including general conversations, advanced analysis, strategic planning, problem-solving, and programming.

💻 AI Developer Tools

A collection of tools designed for developers, supporting code generation, debugging, error analysis, code explanation, and software development workflows.

🎨 AI Creative Tools

An integrated approach to bringing image generation, video creation, audio generation, and document creation together within a single platform.

🌍 Global Chat & Community

A communication platform designed to connect users worldwide, enabling conversations, group creation, knowledge sharing, and community engagement.

📁 File Sharing & Collaboration

Tools designed to support file sharing, collaborative workflows, and information management within the ecosystem.

⚡ Performance & System Management

A system designed to monitor CPU, GPU, and RAM resources while exploring optimization techniques to improve device performance and reduce computational workloads.

🖥️ Local AI & Offline-First Architecture

Focused on running AI directly on users' devices, reducing dependence on cloud infrastructure, and making AI more accessible to computers and smartphones with limited hardware resources.

🛠️ Build Your Own AI

An initiative designed to empower users to create, customize, configure, and develop their own AI systems according to their individual needs and preferences.

🛡️ Privacy & Security

A strong focus on user privacy, cybersecurity, permission management, access control, and responsible handling of personal information.

🔧 Continuous Development & Innovation

Ongoing development focused on performance improvements, system optimization, bug fixes, stability enhancements, and the introduction of new capabilities.

━━━━━━━━━━━━━━━━

🎬 WHAT WILL YOU SEE IN THIS VIDEO?

✅ Introduction to ADTRA AURA Set AI 4.44

✅ A walkthrough of the user interface and system menus

✅ Demonstrations of how the platform can be used

✅ An overview of AI tools and capabilities

✅ Global chat and communication systems

✅ Updates on the project's development progress

✅ Future concepts, innovations, and development directions

📌 The full video is approximately 22 minutes long, providing a more detailed look at the platform for anyone interested in exploring the project further!

━━━━━━━━━━━━━━━━

🇹🇭 FROM A SMALL IDEA TO A BIG VISION — BUILDING AI TECHNOLOGY FROM THAILAND

I believe that the development of artificial intelligence should not be limited exclusively to major technology corporations.

Independent developers, students, researchers, and anyone with curiosity, determination, and a dream should also have the opportunity to create new technologies and contribute to the future of innovation.

My goal is to make artificial intelligence more accessible to everyone, even those who do not own expensive computers, high-performance smartphones, or advanced computing hardware.

I also want to empower people to create, customize, and develop their own AI systems rather than being limited to existing solutions.

ADTRA AURA Set AI may not be perfect yet. There are still many areas that require further development, optimization, research, and improvement. However, every new version represents another step toward turning this vision into reality.

I'm not trying to build just another AI chatbot.

I'm working toward creating a comprehensive technology ecosystem that people can use, customize, explore, and build upon in the future.

I believe innovation should not be restricted by hardware limitations, financial resources, geographical boundaries, or the size of a development team.

Great technology can begin with a small idea, an independent developer, and the determination to keep moving forward.

━━━━━━━━━━━━━━━━

💬 I WOULD LOVE TO HEAR YOUR THOUGHTS!

❓ If you had an AI platform that combined all your essential tools in one place, what would you want it to do?

❓ Do you believe AI technology developed in Thailand could eventually compete on a global scale?

❓ What features or improvements would you like to see in the next version?

👇 Feel free to share your thoughts, suggestions, ideas, constructive criticism, or recommendations in the comments. I'm always open to feedback that can help improve the project and shape its future development.

❤️ If you find this project interesting, please consider liking, sharing, and following to support independent developers and a growing AI technology project from Thailand.

Every piece of feedback, every suggestion, and every bit of support helps move this project forward.

━━━━━━━━━━━━━━━━

🔥 ADTRA AURA Set AI 4.44 — NEW UPDATE

🚀 Building Beyond AI.

Create • Customize • Explore • Innovate

🇹🇭 Developed in Thailand. Built with a global vision.

#ADTRA #ADTRAAI #AURASetAI #ArtificialIntelligence #AI #LocalAI #OfflineAI #AIEcosystem #NewUpdate #Technology #Developer #Innovation #IndependentDeveloper #SoftwareDevelopment #CyberSecurity #Privacy #SystemOptimization #EdgeAI #OnDeviceAI #FutureTechnology #TechInnovation #ThaiDeveloper #ThailandTechnology #MadeInThailand #GlobalAI #BuildYourOwnAI #BuildingBeyondAI


r/LocalLLM • • 1h ago Mindblown Bravo

News 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
0 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.


r/LocalLLM • • 1h ago

Discussion What size open-weight models can I run on an M4 Pro Mac mini (24GB)?

1 Upvotes

Body:
I'm interested in getting into open-source / open-weight models. I have a Mac mini, and my current specs are:
M4 Pro chip: 14-core CPU, 20-core GPU, 16-core Neural Engine
24GB unified memory
1TB SSD
What size models could I run locally on this machine?
For context, right now I'd use them for coding help, finance and document analysis, and AI agent workflows. Down the road I'd like to get into building my own apps and running a model 24/7 as a local server for my automations.
Any recommendations on models, tools, or setup for a beginner would be appreciated!


r/LocalLLM • • 1h ago

Discussion Best way to test prompt injection on a local RAG setup?

1 Upvotes

I've got a small RAG pipeline running locally and I'm worried about poisoned documents telling the model to ignore instructions. How are you testing for this? Any datasets or tools worth trying?


r/LocalLLM • • 1h ago

Research Follow-up: Native DSpark & Copy-Draft Speculative Decoding in ArcAngel on Lunar Lake Arc 140V (up to 30 tok/s at 128k ctx + full HumanEval run)

1 Upvotes

Following up on my previous post bringing ArcAngel to the Lunar Lake Arc 140V (~21 tok/s decode, 226 tok/s prefill, 128k context on 32 GB UMA): I've now implemented both Phase 1 (batched-decode verify + zero-model prompt copy drafting) and Phase 2 (native GPU DSpark speculative decoding) directly in SYCL on the same branch:

https://github.com/alpha2beta/arcangel/tree/lunar-lake-optimizations (latest commit 59826ac)

Everything works end-to-end in inkling_server.py at n_ctx=131072 with 4-bit KV, supports both greedy (temp=0) and lossless probabilistic rejection sampling (temp > 0), and preserves multi-turn prompt caching via mirrored target/draft snapshots.

Benchmark Summary (Inkling-2-Mini-Uncensored-Q4_K_M, Arc 140V, Core Ultra 7 258V, 4-bit KV)

1. Raw Batched Verify Scaling (test-verify, pos=2000, KV=4)

PathTokens VerifiedLatencyCost vs 1-Token Step
step_argmax (baseline)146.19 ms1.00x
verify<VB=2> (K=1)264.03 ms1.39x
verify<VB=4> (K=3)489.57 ms1.94x
verify<VB=8> (K=7)8144.00 ms3.12x

2. End-to-End Speculative Decoding (bench_dspark.py @ n_ctx=8192 & Live 128k Server)

WorkloadModeThroughputSpeedupAcceptance (tok/step)Breakdown (draft / verify / inject)
Prose (effort=high, 256 tok)Baseline (step_argmax)22.63 tok/s1.00x—44.34 ms/step
Prose (effort=high, 256 tok)DSpark K=321.89 tok/s0.97x42.0% (2.26)13.85 / 89.32 / 0.09 ms
Prose (effort=high, 256 tok)DSpark K=714.33 tok/s0.63x21.3% (2.48)26.65 / 146.52 / 0.09 ms
Code Edit (effort=none, 512 tok)Baseline (step_argmax)19.36 tok/s1.00x—51.72 ms/step
Code Edit (effort=none, 512 tok)DSpark K=323.40 tok/s1.21x69.6% (3.08)16.64 / 114.78 / 0.16 ms
Code Edit (effort=none, 512 tok)DSpark K=720.08 tok/s1.04x48.5% (4.37)32.12 / 185.39 / 0.15 ms
Live 128k Server — Code Edit (temp=0.0)DSpark K=730.01 tok/s—70.4% (5.93)n_ctx=131072, kv_bits=4
Live 128k Server — Python Refactor (temp=1.0)--spec-copy K=329.57 tok/s—98.4% (496/504)n_ctx=131072, kv_bits=4

3. Full 164-Task HumanEval / HumanEval+ Soak Test (--spec-dspark K=3, n_ctx=131072, temp=0.0)

To stress-test stability and real-world coding throughput across 164 sequential requests (147,347 generated tokens, 33,808 prompt tokens), I ran EvalPlus against the live 128k server (start_arcangel_server.sh --spec-dspark dspark-Inkling-2-Mini-Q8_0.gguf --spec-draft-k 3, --reasoning-effort medium, EVALPLUS_MAX_NEW_TOKENS=2048):

  • Throughput: 21.43 tok/s weighted (21.89 mean / 22.06 median, up to 26.67 tok/s) over 2:00:13 with zero crashes or errors.
  • Scores: 91.5% HumanEval Base (150/164) / 88.4% HumanEval+ (145/164).
  • Important note on the Base score vs my earlier light-think run (93.3%): 13 of the 14 base failures were finish_reason=length truncations hitting the 2048-token EvalPlus cap because --reasoning-effort medium spends more tokens thinking than low. Among the 149 tasks that finished cleanly (finish stop), base pass rate was 148/149 (only HumanEval/99 failed logic, plus 5 HumanEval+ edge-case failures).

What Was Built

  1. Phase 1 — Batched-Decode Verify Engine (src/verify.cpp) & --spec-copy (d204b2f, 023da6f**)**

    • Added dedicated SYCL command-graph verify buckets for VB ∈ {2, 4, 8} (K ∈ {1, 3, 7} draft tokens + 1 anchor token).
    • Wrote unpack-once DP4A grouped MoE kernels (Q8_0R / Q5_0R / Q4_KR + Q5_0 GGUF repacking) so shared experts across the verify batch aren't reloaded redundantly, plus a 3-barrier SLM softmax k_vattn_r and GPU ink_verify_argmax.
    • Wired --spec-copy (zero-extra-VRAM prompt n-gram copy drafting) into server/inkling_server.py with both greedy verification and lossless probabilistic rejection sampling for temperature > 0.
  2. Phase 2 — Native GPU DSpark Draft Engine (src/dspark.h, src/dspark.cpp**,** 59826ac**)**

    • Loads the official 58-tensor dspark-Inkling-2-Mini-Q8_0.gguf (dflash architecture, ~481 MB), repacks all 3 layers' Q8_0 weights to Q8_0R, and quantizes/repacks the BF16 markov_w2 matrix to Q8_0R by default (INK_DSPARK_W2_Q8=0 keeps BF16).
    • Zero-extra-pass target taps: FastEngine::enable_taps() captures the 4 hidden-state taps ([5, 23, 41, 48]) directly inside existing target prefill(), step(), and verify() graphs.
    • Implements the full 3-mode DSpark pipeline on GPU:

      • Mode A (KV Inject, ~0.09–0.16 ms): f_rnn_ring_[9][D] + NeoX RoPE + 3-layer interleaved [SWA=1025, Full, SWA=1025] KV cache.
      • Mode B (Backbone): Block-uniform split-K + ephemeral bidirectional attention + uncapped shared target LM head.
      • Mode C (Markov Head): Serial rank-256 Markov RNN head with recorded greedy SYCL ExecGraphs for K=3/K=7 (plus per-slot softcapped logits for temp > 0), and mirrored save()/restore()/stash() snapshots.

Why K=3 Is the Sweet Spot on Arc 140V (and Why Battlemage Should Gain More)

Speculative decoding on a bandwidth-limited MoE iGPU (~100 GB/s LPDDR5X-8533) is a tight math problem:

  • Because Inkling 2 Mini routes top-k experts per token, verifying 4 tokens (VB=4) touches more distinct experts than a single token (89.57 ms vs 46.19 ms, ~1.94x single-step), and drafting K=3 takes ~14–17 ms.
  • That puts the breakeven point on Arc 140V at ~2.3 accepted+bonus tokens/step. On high-entropy open-ended prose (2.26 tok/step), K=3 breaks roughly even (0.97x); on structured code edits (3.08 tok/step), it hits 1.21x (23.4 tok/s), and on repetitive refactoring/editing tasks it reaches ~30 tok/s.
  • K=7 needs >3.7 tokens/step just to break even on 140V (144 ms verify + 27–32 ms draft), so it only wins on highly predictable code edits.
  • On a discrete Arc B580 / B60 (456+ GB/s bandwidth and far more Xe2 cores for batched MoE + DSpark head), both verify and draft should scale much more favorably—I'd love to see what K=3 and K=7 hit on Battlemage!

Verification & Numerical Parity

  • Verify parity (test-verify, pos=2000**,** KV=4**):** worst KL 0.00519, verify_argmax: 0 mismatches vs single-token decode.
  • DSpark GPU parity (test-dspark): Tap cosine similarity >= 0.997281 across all 4 taps [5, 23, 41, 48], W2 BF16 vs Q8_0R 7/7 draft agreement, and exact match on snapshot save/restore.
  • Cross-check vs official llama.cpp (llama-cli --spec-type draft-dspark, identical 40-tok prompt, K=7**,** 128 tok):

    • llama.cpp: 80/312 (25.6%), mean_len = 2.74, per-slot (0.652, 0.391, 0.283, 0.174, 0.109, 0.065, 0.065)
    • ArcAngel: 82/306 (26.8%), mean_len = 2.82, per-slot (0.644, 0.432, 0.295, 0.205, 0.136, 0.070, 0.071)
  • Unit tests: 4/4 CPU DSpark math suites (tests/test_dspark_math_cpu.cpp) + 7/7 server speculative loop & probabilistic rejection-sampling tests (tests/test_spec_server.py).

Quick Try

Build (use -DINK_AOT_TARGETS=bmg_g21 for B580/B60, or lnl_m for Lunar Lake):

git clone -b lunar-lake-optimizations https://github.com/alpha2beta/arcangel.git
cd arcangel
source /opt/intel/oneapi/setvars.sh
cmake -S . -B build -G Ninja -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Release -DINK_AOT_TARGETS=lnl_m
cmake --build build --target inkling test-verify test-dspark -j 2

Run with **native DSpark (**K=3 recommended on 140V):

python3 server/inkling_server.py \
  --model /path/to/Inkling-2-Mini-Uncensored-Q4_K_M.gguf \
  --assets /path/to/assets \
  --n-ctx 131072 --chunk 512 --kv-bits 4 --stash-ram-gb 2 \
  --spec-dspark /path/to/dspark-Inkling-2-Mini-Q8_0.gguf \
  --spec-draft-k 3

Or zero-extra-VRAM copy drafting (great for editing/refactoring existing files):

python3 server/inkling_server.py \
  --model /path/to/Inkling-2-Mini-Uncensored-Q4_K_M.gguf \
  --assets /path/to/assets \
  --n-ctx 131072 --chunk 512 --kv-bits 4 --stash-ram-gb 2 \
  --spec-copy --spec-draft-k 3

Shout-out again to u/txlfxrd for the clean architecture in itstxl/arcangel — if anyone tries --spec-dspark with K=3 or K=7 on a discrete B580/B60, please drop your numbers in the comments!


r/LocalLLM • • 1h ago

Discussion AI Agent Memory: How Agents Remember and What to Control

Thumbnail
acta.ai
1 Upvotes

The model behind ChatGPT or Claude remembers nothing between calls.

Every "memory" is text that some piece of software saved and put back into the prompt. So the real question is always: who saves what, where, and for how long?

In practice, agent memory has four layers:

  1. The context window: what the model sees right now. Exact, but it runs out.
  2. Summaries: older turns condensed so long sessions keep going. Compact, but they drop numbers, caveats and who objected.
  3. A long-term store: past chats and documents, searched by meaning. It scales, but it fails quietly when retrieval picks the wrong note.
  4. Saved facts: "prefers metric units", "works in the Berlin office". Always present, so a wrong one stays wrong.

Two things most people don't know:

  • In ChatGPT, deleting a chat doesn't delete a memory saved from it. You have to remove it in the memory settings.
  • Memory can be poisoned. An instruction hidden in a document or email gets saved, and later sessions act on it.

What I'd ask of each role:

  • Users: check your memory list once a month. Use temporary or incognito chats for anything sensitive.
  • Admins: decide whether memory is on for the workspace, and match its retention to your chat retention.
  • Builders: store memory per user, record where each memory came from, give memories an expiry, and treat anything read back as untrusted input.

I wrote a plain guide to how it works and the controls worth insisting on:

Do you keep memory on in your AI assistant, or turn it off?


r/LocalLLM • • 2h ago

Project Want to make your own local AI Bot? I made a wizard for you!

1 Upvotes

Don’t know how to get started building your own local AI? I made BuildBot, a local AI building wizard for anyone to build their own, easily.

A desktop gets created but you can use it, the terminal, or the web dashboard. It also comes with markdowns for cloud models for vibe coders who want to develop it.

Setup checks your computer's memory and recommends a local model that runs through Ollama. The smallest starts at about 2 GB of memory, qwen3.5:9b at about 10 GB. Then you type what bot you want in your own words. An agent called Toolsmith looks in the PuffPAI Store and in public libraries and shows one plan with sizes, licenses and sources. Nothing is downloaded or added until you say Yes. There are seven agents in all.

The brain and six of the seven agents run on your computer. Toolsmith, and only Toolsmith, can use a cloud model if you choose it and give your own key.

What is rough, from our README:
* Small models give weaker answers and may skip skills.
* Bots that share one Ollama slow each other down.
* Search by meaning is off by default and we have not tested it ourselves.
* No upgrade from v1.

Tested: mostly on Windows, Linux in containers, one real install on a Jetson Orin in a container. It installs and starts on GitHub's Mac machines but nobody has used it on a Mac.

AI involvement: we built it with AI coding tools.

What we want: everyone to build their own bots!

git clone https://github.com/CypherSisters/PuffPAIBuildBot BuildBotv2
cd BuildBotv2
./install.sh

On Windows run install.cmd instead.
Repo: https://github.com/CypherSisters/PuffPAIBuildBot


r/LocalLLM • • 2h ago

Question Opinions for Best use of 200gb vram Setup

2 Upvotes

How would you configure a 208GB VRAM rig for a full local Agent setup?

German translated via ai to english,

Hey everyone,

​Iam looking for a sanity check and some optimization ideas from the community. I finally got my hands on some decent compute and want to make sure im not leaving performance or smarter architecture on the table.

​My Hardware:

​2x NVIDIA CMP 170HX (80GB each, unlocked)

​2x RTX 3090 (24GB each)

​Note: All four cards are connected via PCIe 3.0 x4.

​The Goal:

I want to run a complete always-on personal AI ecosystem locally:

​1. A strong main model (Swift 1.5 Flash Next, minimum IQ4_NL) with a agent framework (currently looking at the Hermes framework)

​2. Always-on STT and TTS loaded in VRAM for real-time VoIP interaction

​3. Always-on Embedding and Reranker models for a fast RAG

​4. A fast secondary model (around 27B at Q4) to act as a sub-agent for grunt work, plus handling quick, non-agentic tasks like chat title generation or simple queries.

​My Current Setup:

Right now I have it split up like this:

​The two CMP 170HXs: Running Swift 1.5 Flash Next split across both cards using Strata, with all experts kept in cache. Im getting around 150–200 t/s decode, which feels pretty snappy.

​3090 #1: Dedicated strictly to utility models—STT, TTS, Embedding, and Reranker all sitting permanently in VRAM.

​3090 #2: Running Qwen 3.8 27B (Q4_K_XL) at roughly 150 t/s, handling sub-agent tasks, title generation, and quick background prompts.

​Everything works and the PCIe 3.0 x4 bottleneck hasnt really hurt inference since everything stays resident in VRAM. Before I lock this config in and build out all my workflows around it, I would love to get your thoughts:

​1. How do you like this hardware/VRAM split?

​2. Would you use a different agent framework? Im New with Hermes right now, but if you think something else is better in handeling multi-model routing (main orchestrator + fast sub-agent), im all ears.

​3. Would you swap any of the models or change the distribution? Given the 208GB total VRAM pool, is there a better main/sub-agent combo I should be looking at?

​Appreciate any feedback or ideas!


r/LocalLLM • • 2h ago

Question How do I start?

0 Upvotes

Hey all, I want to start running AI models locally for coding instead of relying 100% on cloud stuff. Right now I run Claude Code, Codex, and Grok (through OpenCode) in my terminal as a kind of "dev team" working out of an Obsidian vault. It works, but I keep running into usage limits (Codex burned through its whole monthly limit in a day lol), and I'd rather own more of the setup myself.
My rig:
RX 9060 XT 16GB
Ryzen 7 9800X3D
32GB DDR5 6000
CachyOS
(also have a GTX 1660 Super I could throw in as a second card if that's actually useful)
The problem is every guide I find assumes I already know half the vocab. LoRA, QLoRA, RAG, fine-tuning, inference engines, agentic workflows, computational graphs... I get that they're all different things, but I don't know which ones matter for what I'm trying to do.
I'm not trying to train a model from scratch. What I want:
A solid coding model running locally
Help writing, debugging, and understanding code
Something that can handle a whole codebase, not just snippets
Eventually agents that plan, edit files, test, and keep iterating on their own
To actually understand how it all works, not just install someone's prebuilt thing and pray
Questions:
Best coding models for 16GB VRAM?
What stack works best for AMD on Linux? ROCm vs Vulkan?
Ollama, llama.cpp, or something else to start?
What should I learn first?
Is LoRA/QLoRA worth touching early, or should I stick to inference and prompting for now?
How realistic are local coding agents on my hardware? Could I point Claude Code or OpenCode at a local model?
Bonus dumb question: I have this idea of a "sleep phase" where the model reviews its memory overnight and updates its own weights. Is that even a real thing, or am I way off?
I'd rather learn the fundamentals and know what I'm installing and why than blindly follow tutorials. Any learning path or advice from people who've done this would be awesome. Thanks!


r/LocalLLM • • 2h ago

Project libosmos v0.19.0: improved performance and stability, with lower time to first token. up to ~1250 tok/sec prefill on inkling-2-mini (release weights, unquantized), >30% higher decode on hy4-flash and inkling-2-small, all on a single strix halo 128GB

Thumbnail
github.com
2 Upvotes

r/LocalLLM • • 3h ago

Research Before and After (32GB to 96GB DDR5 upgrade) - QEngine 3x3090s

6 Upvotes

32GB DDR5 vs 96GB DDR5 More RAM pinned the n-gram cache, makes the decode speed significantly faster.

Setup:

GPU's: 3x3090s
P2P Mode: On
PCIe Link: PCIe Gen4 8x/4x/8x
CPU: Ryzen 7600x.
Model: Qwen-Flash-Next INT4 - QEngine Finetune
Script: bench.sh from club 3090.

Only change:

RAM went 32GB (2x16) → 96GB (2x16 + 2x32), so the whole 50GB n-gram cache got stored in RAM instead of on disk.

What got significantly better

  • Narrative generation: ~218 → ~294 tok/s (+35%)
  • Code decode: ~336 → ~381 tok/s (+13% — less gain, makes sense, shorter/more repetitive prompts hit fewer n-grams)

What didn't change (as expected)

  • Time to first token and prefill speed — that's GPU-bound, the n-gram cache doesn't help there.

The catch

  • GPUs run 1–8°C hotter on the big-RAM setup. GPU 2 hot spot hit 100.5°C. Probably just doing more work per second, but worth an eyeball.
  • The 90k-token prefill test looks ~6% worse with more RAM, but n=1 per arm so it's a coin flip. Re-run before believing it.

Bonus - 1M KV Pool

There was still room left over to set Host KV Pool on (needs ~13GB). i.e. It stores the KV pool in RAM instead of in VRAM. This increased the pool size to 1 million tokens.

Previously my system would totally choke when there were multiple agents working. Like 20 tok/s at times. It was because they couldn't fit their context in the 256k pool I had before so their context kept getting evicted, now I think that wont' happen, and it'll likely be much faster during concurrent agent work.

Conclusion

If your workload is decode-heavy, and you got the ram, sticking more of the n-gram cache in RAM will get you — ~13–35% more tok/s, no GPU-side changes. The mixed-dim RAM (2x16 + 2x32) forced a downclock from 6000Mhz to 3600Mhz, but it didn't hurt anything, though if you care about memory bandwidth, that's a confound this test can't see. I am worried about setting the speed back to 6000Mhz due to possible stability issues or errors. Will likely try and find another matching pair of 2x32GB to make a 4x32GB setup.

Source: bench-ab-bench-20261123T053549Z-vs-bench-20261128T002206Z.md*, generated 2026-11-28.*


r/LocalLLM • • 3h ago

News I love local LLM

15 Upvotes

Hi i am new and just wanted to say that i love local LLM


r/LocalLLM • • 4h ago

News The 6 GB in Bonsai 2.5's headline is a weights file, not the machine you need

0 Upvotes

If you're looking at Bonsai 2.5 because of the "27B in 6 GB" headline, there's a catch with the download. The 6 GB file only works with PrismML's own llama.cpp fork for now. If you'd rather stay on stock llama.cpp, the file you want is 7.67 GB.

The file size isn't what your GPU has to hold. The model card cites a community report on a 10 GB card: about 9.5 GB of memory in use, about 7.8 GB after limiting the server to one request at a time. It also notes the total depends on context size and settings.

Model card and exact file sizes in the comment.


r/LocalLLM • • 4h ago

Research Build Finder: estimating LLM decode speed and the price of a token per second

Thumbnail wanabai.com
0 Upvotes

Build Finder lists every hardware build that runs a chosen open-weight language model at a target decode speed, cheapest per token per second (tok/s) first: the price of the whole build divided by its speed. Its catalog holds 273 GPUs, used as 1 to 8 cards, 619 CPUs and 333 complete systems, at dated US prices. Speeds come from a per-operation model: each operation of a token's pass takes the longer of reading its bytes and doing its arithmetic, at efficiencies and engine costs fitted per engine and hardware family to 424 one-session benchmarks from 120 devices. For several sessions at once, a correction with two parameters per engine, model kind and session range is fitted to 418 measured runs on 19 machines. Against the 427 measured decode runs the page lists without speculative decoding, the median estimate is 11% below the measured speed on NVIDIA hardware (385 runs), 1.43 times the measured speed on Macs (31 runs) and 1.73 times the measured speed on Inkling 2 Mini (11 runs). On the GeForce RTX 3090, which neither fit has seen on llama.cpp (CUDA), 87% of 54 runs fall within 1.25 times the measured speed and 100% within 1.5 times. Runs with speculative decoding, which the estimates leave out, measured a median 2.3 times the estimate. We describe the data, the model, the fit, its validation and what the estimates cannot yet capture.


r/LocalLLM • • 4h ago

Research I tested a small "Anti-Draft" idea for MTP (~6–8% live gain on Strata, and why llama.cpp's p_min loses speed today) — raw data & C++17 header

2 Upvotes

Hi everyone,

I wanted to share a small, humble experiment around Multi-Token Prediction (MTP) that I call Draft-Gate ("Anti-Draft"), along with all the raw benchmark data, charts, and a standalone MIT-licensed C++17 reference header.

The simple idea

MTP works like a fast helper trying to guess your next 3–4 tokens while the main model speaks:

  • When the model is writing code indentation, JSON structure, or finishing the second half of a word, the helper guesses right 85%–95% of the time (great speedup).
  • Right after a verb, article, or preposition (the, of, de, uma), language suddenly opens up into thousands of valid paths, so a small 1-layer MTP head misses around 35%–45%+ of the time.
  • Checking bad guesses isn't free—especially on partially offloaded MoE models, where each extra draft token drags different experts out of RAM/CPU.

So instead of always guessing blindly, the idea is simply knowing when to stop proposing extra drafts early based on uncertainty, language boundaries, and how expensive an extra draft actually is on your hardware.

What we actually measured (RTX 3060 12 GB + Xeon E5-2695 v4)

  1. Live benchmarks on Linux — Strata 0.1.54 (Qwen3.8-Flash-Next 125B IQ3_XXS, 360 runs / 5 mirrored rounds):

    • One honest note upfront: my Strata setup is heavily tuned specifically for this RTX 3060 12 GB + Xeon rig (custom Portuguese draft vocab, 187 W power limit, STRATA_QSA_SPLIT_ATTN=1, plus STRATA_ROUTE_PRIOR=1.5 and STRATA_ROUTE_TAIL_SKIP=7 identically on every arm—all exact flags are listed in EXACT_PARAMETERS_AND_BENCHMARKS.md), and if you've used Strata before you may have noticed its reported tok/s can look a bit higher than what day-to-day usage feels like. What matters here is the relative difference under identical settings—and that gain was consistent across rounds:
    • On Strata's normal --spec 4 setup, moving from no cutoff (p_min=0.00) to p_min=0.65 lifted overall weighted speed by +8.1% (68.3 → 73.8 tok/s, winning 40 out of 50 paired runs—and nudging +1.1% / +9.5 pp acceptance past Strata's own 0.50 default), with +11.6% on Portuguese prose, +13.7% on English prose, and +7.9% on Python. That confirms live that dynamic draft pruning pays off cleanly once per-window CUDA Graphs are in place.
    • (On a wider --spec 5 window, static MTP slowed down heavily in prose—even falling below turning MTP off—and pruning recovered most of that loss, though --spec 4 remained the faster overall setting on a 12 GB card.)
  2. Live benchmarks on Windows — llama.cpp b12800 (CUDA 13.5):

    • Important catch on dense GPU models: On Qwen3.5-4B and 9B running fully in VRAM, enabling llama.cpp's existing --spec-draft-p-min actually dropped speed by −15% to −35% (105 → 68 tok/s). Testing with CUDA Graphs on vs. off showed why: llama.cpp currently caches only one CUDA Graph shape, so changing the number of drafts per step keeps breaking the graph cache. Strata doesn't hit this wall because it caches one CUDA Graph per window size (T=1..8), which is why adaptive pruning works live there.
    • Where it already wins live in llama.cpp: On partially offloaded MoE (Qwen3.6-35B-A3B), pruning already beats static MTP live (+6% at K=4, and even more at K=6, especially in prose).
  3. The main Draft-Gate proposal — going beyond a manual, fixed p_min:

    • Testing across Qwen 3.5/3.6/3.8, Google Gemma 4 26B, and Zhipu GLM-4.7-Flash 30B showed that different MTP heads have totally different confidence biases (some are overconfident at every depth, others only collapse on deeper drafts). A single fixed p_min tuned by hand can't stay optimal across models, quantizations, or nonlinear MoE cliffs.
    • So we wrote a small, ~25-line Zero-ML C++17 controller that self-calibrates each depth and measures each window's real cost online (paired with multi-bucket CUDA Graphs in engines like llama.cpp). In trace simulations across 13 regimes (not yet live-patched inside llama.cpp), it gave a modest, steady ~6%–12% gain over the best static K without manual threshold tuning.

Links (full docs, raw data & proposals)

Transparency

  • Lossless relative to MTP: Draft-Gate never touches model weights, logits, or sampling—it only decides when to stop proposing extra draft tokens. So it is lossless relative to what the engine already produces with MTP (not claiming bitwise identity with a non-MTP base run, since multi-token verification itself can round slightly differently on quantized kernels).
  • Languages & quantizations: We tested Portuguese, English (plus a smaller held-out set in Spanish, French, and German), code, math, and JSON across Q2_K_XL, IQ3_XXS, Q3_K_XL, IQ4_XS, Q4_K_XL, and Q8_0 (Q4 and Q8_0 gained too, not only < Q4). Other languages (like CJK or Arabic), higher quantizations (FP16/BF16), and other GPUs were not tested, so results there are unknown and could vary.
  • AI collaboration, prior art & replies: The core intuition is mine, and I used Gemini 4 Neon to design and run the benchmarks, analyze the logs, and write the technical deep-dive and C++17 code (I'm not a specialist in the low-level terms—those details are kept in a separate technical section of the repo). I genuinely don't know if this exact idea already exists somewhere in the literature or another engine. And as I'll be pretty busy in the next few days and I'm not that experienced here, I probably (please don't judge for that) won't be commonly replying to comments or follow-ups, which is why every parameter, raw file, script, and an LLM-friendly guide (FOR_LLMS.md) are published in the repo for anyone who wants to reproduce, verify, or build on it! Feel free to share your thoughts!

r/LocalLLM • • 5h ago

Discussion iGPU + GPU: I didn't think it was possible

Post image
15 Upvotes

I updated Proxmox to 9.2 and was surprised to see this dual GPU configuration appear in nvtop. I didn't know you could get both the iGPU and the GPU card to run simultaneously. It was my understanding you had to blacklist everything but the GPU. I'm not convinced the iGPU fully operational, but I guess I will test it.

What should I run on it? Any suggestions on how to test this? The memory has to be tiny, but it's showing 94GB, this machine's total RAM is 96GB. I could hook it up to Unsloth or Hermes (what I'm running in Proxmox) but I don't really want to add another experimental LLM into the mix.


r/LocalLLM • • 5h ago

Project Real Ubuntu Linux in an iPad/iPhone code editor, now live on the App Store

Post image
0 Upvotes

r/LocalLLM • • 6h ago

Discussion Recommend a local llm for a writer

5 Upvotes

Hey. I'm new to local llm's. I'm a writer and intend on buying a decked out MacBook in the near future. Think 128gb M5 max. I'm still learning the terminology but I'd like to see how you, if you're a writer, used ai. I know I can use Gemini for docs, which I will use, for at least 2 months before I think about new hardware, but was using a local llm worth it for you? I want it to be a writer partner I can talk to to point out my writing shortcomings and also use it for grammar corrections.


r/LocalLLM • • 6h ago

Discussion Anyone got the early access to a Lenovo AI Host P7?

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 6h ago

Discussion [Benchmark / Call for Testing] Does directing an LLM via small reviewed text paths beat prompting it directly? Help run an empirical test on your local GPU (tawjih 0.18.0 — Python stdlib only)

0 Upvotes

Hi everyone,I’ve been building tawjih (0.18.0), a zero-dependency (Python standard library only) CLI and desktop tool for engineers who want to direct LLMs through small, version-controlled plain-text files (human, machine, and science faces) joined into explicit execution paths—with JSON contracts, deterministic retries, fallbacks, and full provenance tracing.

The honest catch: So far, the entire test suite and architecture lab have been verified on CPU and against mock/stand-in servers.

No real GPU or live model benchmark has been published yet.

Rather than making unverified claims, I built a self-contained experiment in the repo and am asking folks with local GPUs (Ollama, vLLM, SGLang, llama.cpp, etc.) to run it and share the raw report. What the experiment tests (experiments/path-vs-direct)It evaluates 60 quadratic equations (20 base + 40 harder generated variants, in both English and Arabic) across 3 runs each, comparing three setups: path: The structured cross-tree path (extracting coefficients $\rightarrow$ JSON contract validation $\rightarrow$ deterministic/stepwise solving).direct: Asking the model directly in one shot.steps: Asking the model to reason step-by-step in a single prompt.The script outputs accuracy, 95% confidence intervals, McNemar's test ($p$-value for paired statistical significance), latency, and token usage. How to run it in 3 commands (Zero extra Python packages needed)If you already have Ollama running locally:Bashgit clone https://github.com/AlmodinyMk/LLM-tawjih-Model-building.git

cd LLM-tawjih-Model-building

ollama pull qwen2.5:3b # or test with your own local model (Llama-3.2, Qwen3, Mistral, etc.)

python experiments/path-vs-direct/run.py --models qwen2.5:3b

(You can also point it to any OpenAI-compatible local server like vLLM/llama.cpp via TAWJIH_BASE_URL). Additional GPU tests (Optional, for multi-GPU / vLLM / PEFT users)If you want to stress-test the inference server wrapper or training bridge on real hardware: Inference & KV-cache benchmark: python tawjih.py server bench <name> --from-file 1.1.1 --requests 16 --concurrency 4Neural bridge (17 PEFT methods / QLoRA / SFT / DPO): python plugins/neural_bridge.py envShare your resultsWhether the structured path wins, ties, or loses to direct prompting on your model, please paste the generated report in the comments or open a GitHub issue. Whatever the numbers say goes straight into the README.md and the accompanying technical paper.

GitHub: https://github.com/AlmodinyMk/LLM-tawjih-Model-buildingPyPI: pip install tawjih (v0.18.0)License: CC BY-NC-SA 4.0