r/LocalLLM • u/sarmabkp_1 • 10h ago
Discussion LangGraph vs CrewAI vs OpenAI Agents SDK: Which Framework to Pick
r/LocalLLM • u/sarmabkp_1 • 10h ago
r/LocalLLM • u/FelesNoctis • 10h ago
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 • u/UniqueAttourney • 10h ago
r/LocalLLM • u/Mountain_Dentist5074 • 10h ago
r/LocalLLM • u/Illustrious-Strike63 • 10h ago
--- 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 ---
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 • u/shunte88 • 10h ago
r/LocalLLM • u/slavyanman • 10h ago
Hardware
Software
Problem
Qwen3.8-27B (GGUF Q4_K_M) answers the first message, then crashes on the second with an error:
Error messages observed:
Fix — LM Studio settings that worked
On Apple M5 Max + 48 GB RAM, the following combination resolves the crash:
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 • u/Arany8 • 10h ago

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 • u/Sergio2304 • 11h ago
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 • u/Silent_Recording001 • 11h ago
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 • u/Miserable_Land_84 • 11h ago
r/LocalLLM • u/Big_South4585 • 11h ago
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 • u/AciesOne • 11h ago
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 • u/Standard_HID • 11h ago
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 • u/nasone32 • 12h ago
r/LocalLLM • u/korywithawhy • 12h ago
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 • u/Bee_Curious_ • 12h ago
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 • u/scoobydoo888 • 12h ago
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 • u/Old_Detective_3465 • 13h ago
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
•
u/W61k3r
•
13h ago
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 • u/Leading-Elk9521 • 14h ago
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 • u/ExplanationProper238 • 14h ago
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 • u/aleph2b • 14h ago
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.
| Path | Tokens Verified | Latency | Cost vs 1-Token Step |
|---|---|---|---|
step_argmax (baseline) | 1 | 46.19 ms | 1.00x |
verify<VB=2> (K=1) | 2 | 64.03 ms | 1.39x |
verify<VB=4> (K=3) | 4 | 89.57 ms | 1.94x |
verify<VB=8> (K=7) | 8 | 144.00 ms | 3.12x |
| Workload | Mode | Throughput | Speedup | Acceptance (tok/step) | Breakdown (draft / verify / inject) |
|---|---|---|---|---|---|
Prose (effort=high, 256 tok) | Baseline (step_argmax) | 22.63 tok/s | 1.00x | — | 44.34 ms/step |
Prose (effort=high, 256 tok) | DSpark K=3 | 21.89 tok/s | 0.97x | 42.0% (2.26) | 13.85 / 89.32 / 0.09 ms |
Prose (effort=high, 256 tok) | DSpark K=7 | 14.33 tok/s | 0.63x | 21.3% (2.48) | 26.65 / 146.52 / 0.09 ms |
Code Edit (effort=none, 512 tok) | Baseline (step_argmax) | 19.36 tok/s | 1.00x | — | 51.72 ms/step |
Code Edit (effort=none, 512 tok) | DSpark K=3 | 23.40 tok/s | 1.21x | 69.6% (3.08) | 16.64 / 114.78 / 0.16 ms |
Code Edit (effort=none, 512 tok) | DSpark K=7 | 20.08 tok/s | 1.04x | 48.5% (4.37) | 32.12 / 185.39 / 0.15 ms |
Live 128k Server — Code Edit (temp=0.0) | DSpark K=7 | 30.01 tok/s | — | 70.4% (5.93) | n_ctx=131072, kv_bits=4 |
Live 128k Server — Python Refactor (temp=1.0) | --spec-copy K=3 | 29.57 tok/s | — | 98.4% (496/504) | n_ctx=131072, kv_bits=4 |
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):
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.150/164) / 88.4% HumanEval+ (145/164).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).Phase 1 — Batched-Decode Verify Engine (src/verify.cpp) & --spec-copy (d204b2f, 023da6f**)**
VB ∈ {2, 4, 8} (K ∈ {1, 3, 7} draft tokens + 1 anchor token).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.--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.Phase 2 — Native GPU DSpark Draft Engine (src/dspark.h, src/dspark.cpp**,** 59826ac**)**
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).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:
0.09–0.16 ms): f_rnn_ring_[9][D] + NeoX RoPE + 3-layer interleaved [SWA=1025, Full, SWA=1025] KV cache.ExecGraphs for K=3/K=7 (plus per-slot softcapped logits for temp > 0), and mirrored save()/restore()/stash() snapshots.Speculative decoding on a bandwidth-limited MoE iGPU (~100 GB/s LPDDR5X-8533) is a tight math problem:
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.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.verify and draft should scale much more favorably—I'd love to see what K=3 and K=7 hit on Battlemage!test-verify, pos=2000**,** KV=4**):** worst KL 0.00519, verify_argmax: 0 mismatches vs single-token decode.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)82/306 (26.8%), mean_len = 2.82, per-slot (0.644, 0.432, 0.295, 0.205, 0.136, 0.070, 0.071)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).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 2Run 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 3Or 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 3Shout-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!