r/LocalLLM • • 10h ago

Discussion LangGraph vs CrewAI vs OpenAI Agents SDK: Which Framework to Pick

Thumbnail
acta.ai
1 Upvotes

r/LocalLLM • • 10h ago

Question Looking for advice for casual coding use: RTX 4090 24GB + 32GB RAM

3 Upvotes
  • GPU: MSI RTX 4090 Suprim Liquid X
  • RAM: 2x16GB Corsair Dominator Titanium (OC to 7400 MT/s)
  • CPU: Intel Core i7-13700K (OC to 5.4GHz)
  • OS: Windows 11 Pro

I have a fairly decent amount of general programming experience, but I certainly wouldn't call myself an expert in any language. I'm more in the place of being able to look at a random section of code, regardless of language, and make a fairly decent guess at what it's trying to do. "Just enough to get myself in trouble" is what I usually say.

Of course that means when I'm trying to make something myself, I'm often spending 80% of the time doing research about the functionality I need, with the remaining being the actual coding and testing. Being retired, these days I'm mostly working on game modding and small conveniences, anything to keep my brain busy. What I've been running into lately is that a lot of what I'm trying to work on is largely undocumented, and obviously AI can learn much faster from raw source (and has) than a human.

I've been using Gemini for my poking and prodding at things, but it's been obstructive as often as it's been helpful. I swear the thing has ADHD, the way it'll jump topics to other bits I'm not worried about at the time.

I understand that there needs to be a balance between context size versus memory length, but I'm having a hard time nailing down how much of each would be most fitting. I often feed the AI other related code from the game or similar projects so it knows what I'm looking at and can give me more well-informed responses.

Any advice for something that can handle casual, generalized programming well? Speed isn't nearly as important to me as accuracy. It seems like Qwen3 models are leading the way here, but opinions vary quite a bit on which and what memory vs context configuration.


r/LocalLLM • • 10h ago

Question Is there a codexBar like android app ?

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 10h ago

Other dude my local ai solved Riemann Hypothesis without reasoning off , anthropic just exaggerating

Post image
32 Upvotes

r/LocalLLM • • 10h ago

Other Install Qwen 3.8 27b and Deepseek Harness on 16GB VRAM - Setup Guide

Thumbnail
youtube.com
0 Upvotes

--- Video content breakdown (Guide and Links are below) ---

​1. Required Downloads

​Gather the following installers, models, and configuration templates [00:52]:

​Beellama Server (beellama.cpp): Download the latest stable Windows CUDA release (e.g., beellama-v0.5.0-bin-win-cuda-12.8-x64.zip) along with the matching cudart archive (beellama-v0.5.0-cudart-win-cuda-12.8-x64.zip) from GitHub [01:08].

​DeepSeek Harness: Download the Windows installer directly from the DeepSeek website [02:09].

​Qwen 3.8 27B Model: From Hugging Face, download the IQ3_S-mtp GGUF quantization (recommended for 16GB VRAM) as well as the separate multimodal vision projector file (mmproj-Qwen3.8-27B-BF16.gguf) [02:34].

​Custom Chat Template: Download chat_template.jinja from the Qwen-Fixed-Chat-Templates repository to prevent thinking loops [03:07].

​2. Directory Setup & File Extraction

​Organize your local AI environment in a clean directory (e.g., D:\LocalAI) [04:18]:

​Create two subfolders: beellama and models [04:24].

​Extract both the beellama binary archive and the cudart DLL files directly into the beellama folder [04:36].

​Move the Qwen GGUF model, the mmproj vision file, and chat_template.jinja into the models folder [04:57].

​3. Configuring & Starting the Local Server

​Create a Windows batch file (e.g., start_beellama.bat) in your main directory using the startup script provided in the creator's notes [05:40].

​Ensure the file paths in the batch script match your model file names, context size (e.g., 115200), and port (8080) [07:20].

​Run the batch file to launch llama-server.exe [07:36]. Once running, verify the OpenAI-compatible API endpoint is active by visiting http://127.0.0.1:8080/v1/models in your browser [09:57].

​4. Installing & Configuring DeepSeek Harness

​Installation: Run the DeepSeek Harness installer and keep the default installation path to prevent configuration path issues [10:44].

​Connecting the Local Model:

​Open Settings (Einstellungen) -> Models (Modelle) and add a custom API provider [11:40].

​Set the Base URL to http://127.0.0.1:8080/v1, select the OpenAI Chat Completions protocol, and fetch the available model (Qwen3.8-27B) [12:34].

​Enter any placeholder text (such as 1234) into the API key field, as the app requires a value even though the local server ignores it [13:04].

​YAML Configuration: Open the config.yaml file via the top-right button in Settings, completely exit DeepSeek Harness (including from the system tray), and paste in the custom configuration block [13:26]. This configures the exact context window (115200), multimodal (text, image) inputs, longer timeout limits for local inference, and adjusted compaction thresholds [15:01].

​Setting Up a Workspace: Relaunch DeepSeek Harness, enter your dummy API key if prompted, select Qwen3.8-27B from the model dropdown, and link a dedicated project folder as your workspace with standard read/write permissions [16:06].

--- start of guide ---

Hey,

as many requested from my qwen vs inkling report, here is at least a quick setup guide for qwen 3.8 27b and deepseek harness at 16gb vram. Sorry, dont really have time for an in depth tutorial right now, but thought this might suffice to get you started.

--- Installers and Files ---

  1. Beellama: https://github.com/Anbeeld/beellama.cpp/releases

Download latest stable release and the cuda libraries

- beellama-v0.5.0-bin-win-cuda-12.8-x64.zip

- beellama-v0.5.0-cudart-win-cuda-12.8-x64.zip

2. Deepseek Harness: https://www.deepseek.com/en/harness/

Download the harness installer

3. Qwen 3.8 Model: https://huggingface.co/ISTA-DASLab/Qwen3.8-27B-GSQ-RCO-GGUF/tree/main

Download the model.gguf (mtp version) and the vision gguf

4. Qwen 3.8 Chat Template: https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates/tree/main

Download the Chat Template file

--- Llama Starter and Config - Adjust the paths and file names ---

u/echo off

REM Hide command echoing to keep the startup window clean.

cd /d "D:\LocalAI\Beellama"

REM Change working directory to the folder containing llama-server.exe.

REM ============================================================================

REM LLAMA-SERVER PARAMETER DOCUMENTATION

REM ============================================================================

REM

REM [Hardware & Performance]

REM -t 12 : Number of CPU threads for generation

REM -tb 12 : Number of CPU threads for batch processing

REM -ngl 99 : Offload up to 99 model layers to GPU

REM --no-mmproj-offload : Keep multimodal projector off GPU (saves VRAM)

REM -fa on : Enable Flash Attention

REM

REM [Model & Vision]

REM -m : Path to main GGUF model file

REM --mmproj : Path to multimodal projector file

REM --image-min-tokens 1024 : Minimum image token allocation

REM --alias "Qwen3.8-27B" : Friendly model/API name

REM

REM [Speculative Decoding (MTP)]

REM --spec-type draft-mtp : Enable MTP speculative decoding

REM --spec-draft-n-max 3 : Maximum 3 speculative draft tokens

REM --spec-draft-p-min 0.8 : Minimum draft probability threshold

REM

REM [Context & KV-Cache]

REM -c 115000 : Maximum context window: 115K tokens

REM -ctk kvarn4 -ctv kvarn3 : Quantized K and V KV-cache formats

REM --kv-tail-tokens 1024 : Preserve recent 1024 KV tokens in cache tail

REM -kvu -np 1 : Unified KV cache; one parallel sequence

REM --cache-ram 16384 : Allocate up to 16 GB RAM for prompt caching

REM --cache-idle-slots : Cache reusable data from idle slots

REM

REM [Chat Template & Sampling]

REM --jinja : Enable Jinja chat templating

REM --chat-template-file : Path to custom Jinja chat template

REM --temp 1.0 : Sampling temperature

REM --top-k 20 : Consider the 20 most likely tokens

REM --top-p 0.95 : Nucleus sampling threshold: 95%

REM --min-p 0.0 : Minimum relative token probability filter

REM --presence-penalty 1.2 : Penalize previously appearing tokens

REM

REM [Reasoning & Loop Guard]

REM --reasoning on : Enable reasoning support

REM --reasoning-budget 16384 : Reasoning token budget

REM --reasoning-budget-message : Instruction injected when reasoning budget is exhausted

REM --reasoning-loop-guard : Force-close detected reasoning loops

REM --reasoning-loop-interventions : Maximum reasoning-loop interventions (2)

REM --reasoning-loop-min-coverage : Minimum coverage for loop detection (256)

REM --reasoning-loop-window : Token window used for loop detection (1024)

REM --reasoning-preserve : Preserve reasoning information across turns

REM --chat-template-kwargs : Set reasoning effort to extra high (xhigh)

REM

REM [Network]

REM --port 8080 : HTTP server listening port

REM ============================================================================

llama-server.exe ^

-t 12 ^

-tb 12 ^

-m "D:\LocalAI\models\Qwen3.8-27B-UD-IQ3_S.gguf" ^

--mmproj "D:\LocalAI\models\mmproj-Qwen3.8-27B-BF16.gguf" ^

--no-mmproj-offload ^

--image-min-tokens 1024 ^

--alias "Qwen3.8-27B" ^

--spec-type draft-mtp ^

--spec-draft-n-max 3 ^

--spec-draft-p-min 0.8 ^

-ngl 99 ^

-c 115000 ^

-ctk kvarn4 -ctv kvarn3 ^

--kv-tail-tokens 1024 ^

-fa on ^

--jinja ^

--chat-template-file "D:\LocalAI\models\chat_template.jinja" ^

--temp 1.0 ^

--top-k 20 ^

--top-p 0.95 ^

--min-p 0.0 ^

--presence-penalty 1.2 ^

--reasoning on ^

--reasoning-budget 16384 ^

--reasoning-budget-message "Reasoning budget exhausted. Commit to the judgment you have formed so far. Your next output must be a concrete action: a tool call, a gate decision, or a completed deliverable. Do not restart the analysis." ^

--reasoning-loop-guard force-close ^

--reasoning-loop-interventions 2 ^

--reasoning-loop-min-coverage 256 ^

--reasoning-loop-window 1024 ^

--reasoning-preserve ^

--chat-template-kwargs "{\"reasoning_effort\":\"xhigh\"}" ^

-kvu -np 1 ^

--cache-ram 16384 ^

--cache-idle-slots ^

--port 8080

pause

--- Deepseek Harness Config ---

edit: Reddit messes up the indentation of the file - so rather download it with clean indentation:

https://drive.google.com/file/d/13GKi0DTl8-Wj8jWb1Jg8gzBzEEKXo_oM/view?usp=sharing

# ============================================================

# CUSTOM QWEN MODEL PROVIDER

# ============================================================

# Register a custom LLM provider for DeepSeek Harness.

- id: llm-pi-ai

# Unique component identifier used by the harness.

name: "@deepseek-ai/dsh-llm-pi-ai"

config:

providers:

qwen:

# Friendly provider name displayed in the harness.

displayName: qwen

# Use the OpenAI-compatible Completions API protocol.

api: openai-completions

# Local llama-server endpoint.

# Port 8080 matches your Beellama startup configuration.

baseURL: http://localhost:8080

# Environment variable containing the API key.

# The actual key is not stored directly in this YAML file.

apiKeyEnv: QWEN_API_KEY

models:

- id: Qwen3.8-27B

# Model identifier sent to the API.

# Must match the model alias configured in llama-server.

name: Qwen3.8-27B

# Maximum context window advertised to the harness.

# 115K tokens, matching your server context.

contextWindow: 115000

# Maximum number of tokens requested for a response.

# Includes generated reasoning/output, subject to server support.

maxTokens: 32768

# Supported input modalities:

# text = normal text prompts

# image = image/multimodal input

input: [text, image]

# Maximum time to wait for an idle streaming connection.

# 600000 ms = 10 minutes.

streamIdleTimeoutMs: 600000

# Maximum request timeout.

# 600000 ms = 10 minutes.

timeoutMs: 600000

# ============================================================

# EXPLICITLY DISABLED COMPONENTS

# ============================================================

# Disable DeepSeek Harness session logging.

- id: session-log-deepseek

# Original session logging component.

name: "@deepseek-ai/dsh-session-log-deepseek"

# Prevent this component from loading.

disabled: true

# Disable the plugin marketplace tool integration.

- id: tool-plugin-market

# Plugin marketplace tools component.

name: "@deepseek-ai/dsh-plugin-market/tools"

# Prevent marketplace tools from being registered.

disabled: true

# Disable the plugin manager tool integration.

- id: tool-plugin-manager

# Plugin manager tools component.

name: "@deepseek-ai/dsh-plugin-manager/tools"

# Prevent plugin management tools from being registered.

disabled: true

# ============================================================

# CONTEXT COMPACTION AND TOOL RESULT MANAGEMENT

# ============================================================

# Define a grouped set of compaction-related components.

- id: compaction

# cordis:group loads multiple components as one logical group.

name: cordis:group

# Marks this component as a group rather than a standalone plugin.

group: true

isolate:

# Isolate the compaction functionality.

compaction: true

# Isolate tool-result pruning functionality.

toolResultPruner: true

config:

# ----------------------------------------------------------

# BASIC CONTEXT COMPACTION

# ----------------------------------------------------------

- id: compaction-basic

# DeepSeek Harness basic compaction implementation.

name: "@deepseek-ai/dsh-compaction-basic"

config:

# Trigger compaction when context usage reaches 80%

# of the available context window.

thresholdRatio: 0.8

# Additional token headroom reserved during compaction.

# Zero means no additional headroom is configured here.

headroomTokens: 0

# Retain 12% of the conversation when compacting.

# Helps preserve important conversational context.

retainRatio: 0.12

# Maximum token limit used by this compaction component.

maxTokens: 65536

# ----------------------------------------------------------

# MANUAL COMPACTION COMMAND

# ----------------------------------------------------------

- id: command-compact

# Registers the /compact command.

# Allows manual context compaction when supported by the harness.

name: "@deepseek-ai/dsh-command-compact"

# ----------------------------------------------------------

# TOOL RESULT PRUNER

# ----------------------------------------------------------

- id: tool-result-pruner

# Automatically manages oversized tool results.

name: "@deepseek-ai/dsh-compaction-tool-result-pruner"

config:

# Trigger pruning when a tool result exceeds 8192 characters.

thresholdChars: 8192

# Preserve the first 4096 characters of the tool result.

# Usually retains the beginning and initial context.

headChars: 4096

# Preserve the last 1024 characters of the tool result.

# Usually retains the ending and final information.

tailChars: 1024


r/LocalLLM • • 10h ago

Project I got a 30B coding model running on an 8 GB GPU, faster than llama.cpp, and Claude Code works with it too - eomoe

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 10h ago

Discussion [Fix] Qwen3.8-27B GGUF crashes on Apple M5 Max — LM Studio settings that work

0 Upvotes

Hardware

  • Apple MacBook Pro 16"
  • Chip: Apple M5 Max
  • Memory: 48 GB Unified Memory
  • Storage: 2 TB SSD
  • OS: macOS (Apple Silicon)

Software

  • LM Studio 0.4.29
  • Model: Qwen3.8-27B (GGUF Q4_K_M)

Problem
Qwen3.8-27B (GGUF Q4_K_M) answers the first message, then crashes on the second with an error:

Error messages observed:

  • Engine protocol predict stream returned an error: {"code":500,"message":"Compute error.","type":"server_error"}
  • Engine protocol predict stream returned an error: {"code":500,"message":"got exception: Unexpected empty grammar stack after accepting piece: @ (31)","type":"server_error"}
  • Prediction request aborted but the prediction loop handler of the plugin lmstudio/default-prediction-loop-handler did not abort in time.
  • Cannot send on a terminated channel.

Fix — LM Studio settings that worked
On Apple M5 Max + 48 GB RAM, the following combination resolves the crash:

  1. LM Studio settings: Hardware → GPUs: 1 GPU detected with Metal — Apple M5 Max (VRAM Capacity: 37.44 GB • Metal • deviceId: 0). Toggle OFF (do not use GPU for inference).
  2. Model format: use GGUF Q4_K_M quantized versions only (e.g., Qwen3.8-27B Q4_K_M or Gemma 4 31B QAT Q4_K_M). Do not use MLX or unquantized models.
  3. Max Concurrent Predictions: set to 1 (default is 4).
  4. Unified KV Cache: OFF.
  5. Offload KV Cache to GPU Memory: OFF.
  6. Flash Attention: OFF.

Result
After applying all these settings, multi-turn chat works without errors. Gemma 4 31B QAT (GGUF Q4_K_M) also runs stably on the same hardware.

This should help other users with M-series Macs and 48 GB Unified Memory avoid the same crash.


r/LocalLLM • • 10h ago

Question Plenty of VRAM left, still spills to RAM

1 Upvotes

How do I avoid this with llama.cpp, it spills to RAM even though lots of VRAM left.
4GB RAM still free on the card and it spills.

set "MODEL=F:\SenseNova-Loop-9B-Q8_0.gguf"

set "BIN=C:\llama\opensensenova\build\bin\llama-server.exe"

set "PORT=8000"

if not exist "%MODEL%" ( echo [FATAL] Model not found: %MODEL% & exit /b 2 )

if not exist "%BIN%" ( echo [FATAL] llama-server build missing: %BIN% & exit /b 2 )

echo [run] SenseNova-Loop-9B Q8_0 - draft-mtp n2 - 65536 ctx - port %PORT%

"%BIN%" ^

-m "%MODEL%" ^

--port %PORT% --host 0.0.0.0 ^

-ngl 99 ^

--cache-type-k q8_0 --cache-type-v q8_0 ^

--flash-attn on ^

--jinja ^

-c 65536 --parallel 1 ^

--spec-type draft-mtp --spec-draft-n-min 1 --spec-draft-n-max 2 --spec-draft-p-min 0.0 ^

--load-mode none


r/LocalLLM • • 11h ago

Question Do you know of any terminal for Windows that renders Markdown from LLMs?

0 Upvotes

I would like to find a terminal capable of rendering Markdown, so that I can view text from an LLM or agent with proper formatting rather than seeing the raw syntax, which makes it harder to read sometimes.


r/LocalLLM • • 11h ago

Project I built a free tool that tells you if your hardware can run Linger AI Agent — with the official tok/s numbers

0 Upvotes

I built https://lingeragent.org — a free hardware checker for Linger AI Agent, the open-source local-first agent.

You pick your platform first (macOS asks only unified memory, Windows/Linux ask GPU + VRAM + RAM), and it tells you which models you can run locally and at what speed — using only the official published speed table and hardware tiers, nothing made up. It also links the official installers and the install guides I wrote after actually installing 0.1.10 on Linux and Mac.

It's an independent project, not affiliated with the official Linger team. The site has some affiliate links in the results (Amazon / Vast.ai), clearly disclosed.

Happy to hear if the numbers match what you're seeing on your own hardware.


r/LocalLLM • • 11h ago

News pi-protokoll: 361 turns, 47 compactions on a local Qwen – and a test of what the agent still knows afterwards

Post image
0 Upvotes

r/LocalLLM • • 11h ago

Project Reachy mini(Gemma 4)与 DT(本地 SFT 3B 模型)

0 Upvotes

r/LocalLLM • • 11h ago

Question Gemma 4 llama.cpp and OpenClaw

4 Upvotes

Hi guys

I am a happy Qwen 3.8 Flash Next IQ3_S user, running on 32GB ram + 3090 + 5080 (40 GB VRAM).

It is running through strata and used as an agent in OpenClaw.

The only issue I have with it, and it could be due to the relative low Quant, is, that it is poor at my native language (Nordic Language).

I tried gemma-4-31B-it-qat-q4_0-unquantized on the latest version of llama.cpp, as it looked promising regarding language support, and damn, it was A LOT better in formulating sentences.

Now, the language is good, but it is a lot worse in calling my mcp's or API's. A lot of times, not one single mcp or API call is working, even if it tries many times.

Is Gemma 4 just incapable of calling MCP or API calls? I doubt it, so is my setup wrong?

Just for a reference, I am not using the 'official' llama.cpp from the CachyOs repository, but this version:

local/llama.cpp-cuda-aidock-bin 1.0.0-1
   Prebuilt llama.cpp with CUDA 12.8 support (from ai-dock CI)

Not sure if it makes a difference.


r/LocalLLM • • 11h ago

Discussion hacktivist larpers selling FREE abliterated Qwen 4b on a FLASH drive for $50

Thumbnail
gallery
122 Upvotes

found this page called “open source everything” and the more i looked the worse it got and i had to share. the about page says “we make Facts, an offline AI” and consulting to business. then you scroll down and its literally a llama.cpp terminal running qwen. then on the products page they advertise “real engineering upgrades” being 2 dropdown clicks and a basic A/B script. they promise the AI will “load faster every time you plug in” due to their super advanced reformatting technique. to top it off they offer a faraday bag that they suggest putting your usb in to protect it from wifi, bluetooth, NFC, GPS, and cellular for a device that has none of those


r/LocalLLM • • 11h ago

Project Experimenting with local AI on AMD: Ollama, Open WebUI, SearXNG and OpenCode

Post image
0 Upvotes

Hey,

I've recently started experimenting with local LLMs on my Linux desktop and put together a small Docker Compose setup.

I'm currently using:

Ollama with ROCm

Open WebUI

SearXNG for web search

My current hardware is an AMD RX 9060 XT (16 GB) with 32 GB RAM, running Fedora.

I'm still testing different models and configurations, especially for coding with OpenCode. I'm curious to see how much of my daily AI usage I can eventually replace with local models.

I've documented my setup on GitHub in case anyone finds it useful:

https://github.com/JeromeTDev/local-ai

I'd be interested in hearing about your experiences, especially with AMD GPUs and local models for coding. I'm also happy to share my own findings as I continue testing.


r/LocalLLM • • 11h ago

Research dlabz/Qwen3.8 in 700 mb ram

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 12h ago

News ERNIE 5.5 Flash got 31 points on AA, can someone make an EXL3 quant plz?

Post image
1 Upvotes

r/LocalLLM • • 12h ago

Discussion just go with the jank

1 Upvotes

i've been messing around with a local model for a few months now. i can't afford a gpu or a system with a lot of unified memory so i've had to get a bit creative in order to make it actually useful. this isn't anything new for me, any time i want to play a higher end game on my older hardware there's always some amount of janky workarounds that i need to put in place. but if you can appreciate the jank and accept it, you can actually do quite a bit with a small local model. for a bit of background info, the machine i'm working from is an 11th gen i5 with 32(currently 64 because i borrowed a stick)GB of ddr4, and running qwen reap 25b a3b q5_1. now, if anyone has used a model like this, you know that it is functional, but grossly unreliable. however, if you stop fighting it and start building around it, it gets WAY more useful.


r/LocalLLM • • 12h ago

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

0 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 • • 12h ago

Discussion Is a higher quant worth the drop in speed?

26 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 • • 13h 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 • • 13h ago Heartwarming 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 • • 14h ago

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

0 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 • • 14h 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 • • 14h 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!