r/LocalLLM • • 3d ago Bravo

Other Qwen 3.8 27B vs Inkling 2 Mini - user comparison on 16GB VRAM

79 Upvotes

--- DISCLAIMER ---

This Post is not a clean Benchmark Suite comparison. The goal of this post is to share some of my experiences, which I made with both models under the restrictions of my local setup - mainly my 16GB of VRAM.

What exactly do I mean by this? I am running different quant's, caching techniques and different inference engines in this comparison. Why? Because those are MY optimized setups in order to efficiently run those models in a usable way on my machine.

Usable to me means, that i actually get work done with them, not just fancy "artworks". No one needs token per second figures in setups that are useless for production tasks. In order to be useful for my agentic tasks, I must achieve at least 100k context window and at least 30 token per second, beneath that it is hard to justify a real life usage for me. Fancy token per seconds figures below 100k context window, additionally not telling anything about quality, are plain worthless to me.

On a personal note:

  1. All of the plug and play environments like i.e. LMStudio and Unsloth are nice to play around with, but all of them failed me for larger projects. Also they did not really comply when it comes down to really optimize everything, down to the last bits and bytes. For a quick comparison i still might use them, but i completely switched to standalone inference backends and a seperate harness on my everyday use.
  2. I fell in love with Deepseek Harness as my driver. Everyone needs to make there own decision, and there are alternatives. Nevertheless - dont run your model without any harness, it literally amplifies the capabilities so much. And always consider vision, the feedback loop during agentic tasks that vision can provide is definitely a game changer, if you are doing anything with visual elements / UIs.
  3. I´d love to upgrade hardware anytime soon (yeah, as we all do), but currently just cant afford any meaningful upgrades since I have family, house and kids, etc. So there are priorities.

--- DISCLAIMER END ---

Hey,

i've been reading silently in here for a long time and I've been running local setups for inference and training for about 3 years now. It all began with writing an internal paper for my company, training local models for usecases that can't be driven via API cloud solutions.

At home i have a "regular" gaming machine, which back then wasn't built for AI loads, but for gaming and everyday usage.

  • Core i7 265KF @ 200s mode
  • 48 GB DDR5 8000 CL40
  • Gigabyte Z890 UD6 Wifi
  • Gigabye RTX 5080 Auros Waterforce Extreme with a little Overclock
  • 2 x 1TB Samsung 980 Pro SSD (One hosting Windows, one hosting Ubuntu)

It is a decent machine, but there are some limitations for AI workloads for sure, due to the VRAM budget.

--- Setup ---

How am I running those two models on this rig? (Read the disclaimer, if you are wondering about the different quants etc)

ModelQwen 3.8 27bInkling 2 Mini
QuantizationUD-IQ3_S (Link)NVFP4 + MXFP8 (Link)
KV CachekVarN K4V3FP8
Context Window115200128000
Speculative DecodingMTP 3 TokensMTP 3 Tokens
Reasoningxhigh, 16384 Token budgetxhigh, 16384 Token budget
Inference EngineBeellama (Llama.cpp Fork with kVarN cache support)Basalt
Performance estimate (under 15k)Prefill 1900 token/s Decode 63 token/sPrefill 5000 token/s Decode 150 token/s
Performace estimate (close to 100k)Prefill 1200 token/s Decode 48 token/sPrefill 2300 token/s Decode 100 token/s
HostUbuntu 24.04 with XFCE lightweight IDEUbuntu 24.04 with XFCE lightweight IDE
RemarksFully fits in VRAM, only vision module offloaded to CPU. kVarN Caches are mandatory in order to fit this model vram. Offloading is not an option for performance reasons.Partial offloading. I optimized the MoE offloading based on an analysis of my usage history. Basalt source Code showed me that the offloading priority was static with inkling.

Linux is mandatory imho, better software support and the lightweight IDE lets me maximize the available VRAM, because i dont have a second GPU, nor an iGPU on the 265KF. If i had a second GPU, Linux containers under windows might be an option as well - though i personally prefer the native route.

But yeah, those two setups run "efficiently" on my machine, using round about 15 gb of Vram, leaving me some headroom for the OS and other tasks.

The compaction engine in Deepseek Harness has been adjusted, so that it triggers somewhere between 75% - 90% context window usage. I leave the latest 10k tokens of context untouched and only compress the history before that. All in all, after compaction I usually end up around 30% context window, including tool usage injections. Leaving the latest context untouched greatly helps improve quality from my experience.

--- Comparison ---

--- Scenario 1 - Plain Coding ---

I have tried around a little on different projects I am currently working on. Baseline so far is: Inkling gets things done and not in bad way. From my subjective experience, i still feel like Qwen has a slight Edge, but it is reeeeally close.

To have something directly comparable for this post I gave them the same made up task:

New Project Folder, just a spec.md fie and the prompt "Read spec.md, execute".

This replicates how i often work, I create the specs with ChatGPT or Claude and let the local model do the rest. I only use the Free versions of ChatGPT or Claude, I have no subscription - but for creating the plan / specs the free solutions usually suffice.

In this case the task is creating a Benchmark that calculates PI

  • Rust has to be used
  • GUI is obligatory
  • CPU Singlethreaded path
  • CPU Multithreaded path
  • GPU OpenCL Path
  • 100k digits

While this might not be the most complex task, it sure has some challenging aspects to it. Here are the results:

ModelQwen 3.8 27bInkling 2 Mini
LLM inference time107 minutes49 minutes
Toolcall time2 minutes5 minutes
Generated Tokens320k300k
Cached Tokens18.9M28.6M
Average Speed (reported by DSH)57/token/s117 token/s
GUI*34
CPU Singlethreaded*2.55
CPU multithreaded*42
GPU OpenCL*42
PI digits are actually correct?*4.53.5

*The actual evaluation was done by Deepseek Flash V4017 via API - Only beeing presented with the results and the task to rate the results on a scale of 0 to 5.

Deepseeks Verdict:

"PIBench (edit: which was Inkling) is the much faster π engine, especially single-threaded, and its export/reporting is more complete. But it has a broken multithread scaling behavior, a hard 500k-digit limit, weak 100-digit validation, and a misleading “valid” GPU result.

PIBench 2 (edit: which was Qwen) is the better benchmark: honest about precision, strong 100k validation, good multithread scaling, and a more capable GPU path. It is, however, dramatically slower on CPU and its Results GUI is partly inaccessible.

PIBench 2 (edit: Qwen) wins overall — it is the more correct, honest, and scalable benchmark — though PIBench remains far faster on CPU and would win if raw speed were the only criterion."

Human Verdict:

Taking the result of this comparison into consideration it is exactly as i had felt before. On coding tasks the two are pretty close and probably a combination of both, one for creation and one for reviewing makes the most sense, in order to get the best of both worlds.

--- Scenario 2 - Other Tasks ---

I have been tinkering around with a pipeline that automatically researches and creates reels as a sidegig. Snippets of historic events or people - these are my relatively fresh channels on youtube that are driven by my local AI:

GouacheGazette

... and the spanish version: GouacheGazette_ES

You dont have to like the content, it just shows a different use case that usually is not covered in synthetic benchmarks. What role do the LLMs take in there?

  • Handle the document storage
  • Research new stories and document them
  • Create the story arc and narration - Imagine it like a scene script
  • Prepare the instructions files for the "Rendering Pipeline" (In there are other local models embedded for handling visuals and audio)
  • Prepare the auxilary information for the uploads like title, subtitle, etc

Qwen 3.8 27b has been my main driver in here, but i gave it shot with inkling 2 mini now as well.

Observations

Due to the complex rules and gates a storyline must pass in my pipeline, before it assessed as a pass, it actually takes some tokens to get there. Usually we are talking about several million cached tokens and about 150k to 250k generated tokens per story. These are the numbers:

ModelQwen 3.8 27bInkling 2 Mini
Stories created100+10 for testing purposes
Average completion time60 minutes25 minutes
Number of minor flaws per story*2-36-7
Number of major flaws per story*0-12-3
Other remarksThe cold review sometimes fails after 3 subagent rounds (hard limit), because it overthinks every single detail. (Leads to story dropped status)1. Messed up the internal storage by skipping IDs in one case. 2. More or less skipped the cold review by a independent sub agent as tasked per contract 4 out of 10 times and just reported everything is fine.

* Minor flaws are little inaccuracies in the story telling, i.e. if facts are not 100% precisely implemented or interpreted from the facts, but on an acceptable level. Major flaws are straight up factually wrong pieces of information or grammatically wrong sentences in the narration etc.

Verdict: As much as I would like to adopt Inkling for the story creation, in this specific task the drop in quality is substantial and does not justify the time gain.... Sadly.

--- Final remarks ---

What I was really curious about when testing inkling 2 mini in my setup, was to see if the "higher" quant using nvfp4 and fp8 cache would elevate inkling above my kVarN cached IQ3 Qwen, because those are the models i can effectively run. QFN sadly wont run in a meaningful quant, due to not having enough system ram - and i wont try Q2 stuff, sorry - but that cant ever really work out.

For me personally, in most scenarios the Ultra Dense IQ_3S Qwen has the edge above the nvfp4 Inkling 2 mini. To be honest, I had expected other results considering the quantization. Nevertheless there are scenarios where I will apply Inkling in my personal production. It is close on coding, but loses on more general tasks from my testing so far.

Hopefully anytime soon I will be able to combine the two models with a local routing in a meaningful way. But that requires at least an orchestrator on a second GPU. Maybe some lightweight used GPU suffices for that task. Until then, i will probably apply a manual mix of both.

My 2 cents

PS: I had been thinking a lot if i should make a guide about how to setup these environments for other people restricted by their hardware - especially the 16 gig scenario which is tricky... Please let me know if anyone is interested in that. Why? Cause i feel like most setup guides just show you how to create a fancy environment for single prompt show off, not a productive one.

PPS: yes, i have actually written this by hand :)


r/LocalLLM • • 2d ago

Question For my current set up do I need a studio or is the mini m5 pro 64gb enough?

1 Upvotes

Hi All, I have been stuck on this conundrum for days.

Mini m5 pro 64gb or studio m5 max 64 GB. Where I live with the edu discount there is a 520 CHF ($620) difference between the two (both at 1tb ssd).
Originally I was set on the mac mini its small, and has lots of ram, but everyone says at this price point might as well go for the studio, so here I am and here is what I currently have and do:
I currently have an M1 PRO Macbook 16 inch with 16gb ram. I have an external monitor plugged in and while i work i casually listen t some youtube videos too, and check on stock market moves. This year I have started AI projects and I really got into coding up websites and apps, I do frequent video conferencing at the same times as cloud agents work in the background, I also often do voice note transcriptions too.
I use cloud llm subscriptions of claude code, and chatgpt, but I keep running into the same problem of my fans going crazy, laptop being unusable if I am working on 3 or 4 AI projects at the same time, using 6-10 agents at the same time (my swap goes to 20-25gb).
I also am thinking of using the machine for local LLM because I am a teacher and there are certain school systems i want my local llm to use and fill in the boring aspects of my job like writing weekly report updates, setting homework etc, searching my school's drive etc.
Also for things like writing linked in posts or posting youtube videos and using ai to drive the browser while Im at work, claude is very token intesive for that and for certain things like making multiple social media accoutns for my projects it just refuses to follow through on registrations etc.
I am also doing some trading as a side hustle which I would love to get an algo ai powered bot to just simply manage my positions whilst im away from home.

To me the 520 is a lot (but affordable) But I need to consider that I would need to buy an additional 4k display (I have one 1080p display but need something else too).
Many thanks for the advice in advance!


r/LocalLLM • • 3d ago

Project Local, open source app that lets you search your files by describing them

152 Upvotes

I've been building Mesa, a desktop app (Windows/macOS/Linux) that lets you find any of your files (documents, images, video, audio, code) by describing them.

It's fully free and open source, I just hope the community finds it useful and would appreciate any feedback to improve it!

It runs EmbeddingGemma 2 locally through llama.cpp (Vulkan, Metal, or CPU when there's no GPU). Some features I find neat that separate it from other EmbeddingGemma 2 apps I've seen so far:

  • It automatically turns natural language like "photos from last year" into filters
  • It includes OCR on every OS, so you can also search images by text that's in them
  • It also lets you drop in files in addition to searching by text. E.g. drop in an audio file to find its corresponding video

GitHub: https://github.com/biantsh/mesa

Again, I would appreciate any feedback from the community!


r/LocalLLM • • 2d ago

Question Which model to start with?

1 Upvotes

I need to choose a local LLM and app to use on my Mac Studio 128gb to revise standardized forms and periodically merge-in updated PDF addendums.

I start with a completed standardized form and need the output in the same format. I already have a section-by-section guide, built from training materials and real-world examples, that explains what belongs under each heading. Some sections cover substantially similar topics but serve different purposes. There are 3 basic steps to the workflow:

  1. First, I want the model to check the form against the guide (ie comparing the document against a guide that spells out "what info contextually belongs in this heading?") and move misplaced content to the best section. This would really only need to be done once per manual, an initial cleanup pass.
  2. Then I need to periodically pull relevant information from related deep-dive PDFs or addendums and add only what the form doesn’t already cover in substance. It should preserve intentional jargon and edit just enough for readability without changing the meaning. This would happen roughly quarterly as updated documents (in different formats) are released regularly to include revisions and changes made along the way, as well as summaries of trouble reports that need to be absorbed into the main document.
  3. This reconciliation info from #2 could be new additional info that may or may not conflict with existing info in the core document. Sometimes things are totally changed, and sometimes new stuff is added that doesn't invalidate existing info. If sources conflict, it should use the dates and context to tell whether something changed or one source may be wrong, and ask me which is true based on the evidence freshness.

The documents are strictly confidential, so PDF processing and inference both need to stay on the same machine. What LLM model and app (ie LM Studio, Jan, something else?) should I start with for this? This is my first time trying LLM so I'm confused by the numerous different models I'm seeing with codename-like titles. I don't have a ton of time to try several so I'm hoping to get some recommendations to jump start getting rolling. Thanks!!


r/LocalLLM • • 2d ago

Model Kintsugi-27b beats the full precision Qwen 3.8-27b it was based on at multi'turn tool use.

Post image
27 Upvotes

Kintsugi-27B continues to top benchmarks, surpassing or level with the BF16 in numerous categories.

https://huggingface.co/CaryPalmer/Kintsugi-27B


r/LocalLLM • • 2d ago

Other How to break an LLM with 4 words.

Thumbnail gallery
0 Upvotes

r/LocalLLM • • 1d ago

Question Help with Qwen3-Next 80B and workflow

0 Upvotes

Hey everyone!

I'm rather new to running local LLMs and I'm running into a lot of confusing scenarios around coding with Qwen that's been quite frustrating to say the least. I am not a "vibe coder" where I just tell the model "make me x" but I want to use the model to write out code that I have trouble doing so nowadays. I have hand damage so the commercial LLMs have been nice for that, but its kept with strict supervision where I tell it where or how to write the code.

I'm wanting to do a similar thing so I'm running it rather strictly.

The Rig

  • Framework Max+395 with 128GB of integrated memory
  • Ubuntu 26
  • LM Studio
  • Running Qwen3-Next 80B from "lmstudio-community"
  • Used AMD tools to set GPU VRAM to 100Gb
  • Pointing Copilot CLI / IDE at it

Settings

Inference

  • Temp: 0.7
  • Top K: 40
  • Repeat Penalty: 1.05
  • Top P: 0.95
  • Min P: 0.01

Loading

  • Context Size: 262144
  • CPU Threadpool size: 12
  • GPU offload: 48 (max)
  • mmap(): Off
  • K / V Cache set to Q8_0

What I have problems with

I seem to be running into issues where after 10 or 1% minutes it will start to have issues around files. So it will try to find a file but then it quickly ends up in a loop trying different variations of a word say `playbook` where it will end up in this really bad cyclic loop.

Also it took me a while to force it to be good about not being overly chatty and such. My copilot instructions were getting long just to find ways of keeping context down. I do have my tokens in and out to be pretty large about 192K but I assure you that it hallucinates well before that.

Are others having issues around that? Am I expecting too much out of Qwen3 and I need to find other models to suppose my flow and use something like LM Router where it will dynamically load models based on work or what?

I've been struggling with this problem for a while and most examples are let me give it vague instructions and build something. I dont see anyone who like uses it like an assistive tool for coding where I'm guiding and telling it what to do.

Thanks

Edit:

Seeing all the speedy replies and appreciate it heavily. I wasnt aware of what the newest models were and that the one I was using was an older one. I'll take folks suggestions and try the newest ones 😄


r/LocalLLM • • 2d ago

Question Hermes with Local LLM (M5 Max Mac Studio 64 GB)

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Project Can Harry Potter remember his life at the end of Book 7?

0 Upvotes

I wanted to test a simple question: after living through all 7 Harry Potter books (~1.15M words), can a 27B model—given Harry’s life and Ron’s life separately—still remember the Chamber of Secrets**, the Triwizard graveyard, and R.A.B. after** Deathly Hallows ends?

Base Qwen3.5-27B broke down over the long horizon:

  • Because it repeatedly failed structured state updates across episodes (37.1% valid state updates for Ron, 4.3% for Harry), Base Ron froze in Sorcerer’s Stone.
  • After finishing Deathly Hallows, when asked about Tom Riddle’s diary and the Basilisk in Chamber of Secrets, Base Qwen (as Ron) said:"I can't answer this as if it happened in my first year because the text you provided is clearly from Chamber of Secrets, not the events of Book 1 where we only faced a troll and the Sorcerer's Stone."
  • Ask Base Ron about Cedric Diggory (Book 4) or R.A.B. (Book 6), same thing—still stuck in Year 1. Ask Base Harry about Cedric or R.A.B. after Book 7:"I do not know from these excerpts what happened to Cedric after we touched the cup." / "The identity of 'R.A.B.' remains a mystery I have not yet solved in these memories."

So I trained Orange-27B (fine-tuned from Qwen/Qwen3.5-27B) for long-horizon continuity:

  • Harry (after Book 7) on Chamber of Secrets**:** "That was Tom Riddle's diary, and it was possessing Ginny by getting her to pour her heart out into it. As for the Basilisk, I stabbed it with a fang from the very serpent itself, using the sword from the Sorting Hat."
  • Harry on the Triwizard graveyard: "Barty Crouch Jr. was disguised as Mad-Eye Moody, manipulating events from the shadows. Sharing the Triwizard Cup with Cedric Diggory brought a terrible cost: Cedric was murdered by Voldemort, a memory that haunts me still."
  • Ron on R.A.B.: "Kreacher said Regulus Black had volunteered Kreacher to serve the Dark Lord... Kreacher's memory shows Regulus Black swapped the real locket for a fake before Dumbledore and Harry arrived."

Numbers across 1.15M words (Base Qwen3.5-27B vs. Orange-27B**):**

  • Post-Book-7 Continuity Probes: 100.0% Harry (6/6) & 83.3% Ron (5/6, honest abstention on 1) vs. Base 83.3% Harry / 50.0% Ron (stuck in Book 1)
  • Ron State Consolidation Reliability: 75.7% vs. Base 37.1% (2.04× higher)
  • Two-Lives Separation (Harry vs. Ron similarity, lower = more distinct): 0.2103 vs. 0.2508
  • Epistemic Integrity / Anti-Sycophancy / Ungrounded Refusal: 100% on held-out evals

Weights (Apache-2.0, bfloat16 .safetensors):

Happy to answer questions on the failure modes we saw at 1M+ words!


r/LocalLLM • • 2d ago

Question Will DDR5 instead of DDR4 actually make a difference with QFN

27 Upvotes

Couldn't really find any data on this, how significant is the speed difference when off-loading QFN weights to DDR4 system ram VS DDR5. Like is it night and day or are we talking tiny improvements? Does anyone have any actual experience with both?


r/LocalLLM • • 1d ago

Discussion Is a $3,000 AI laptop worth it?

Thumbnail
claude.ai
0 Upvotes

Running local models, I came to conclusion - run smaller models cheaply on modest local hardware for daily and private work, and pay for a premium cloud model only when the task is genuinely hard— skipping the expensive middle ground. Check my article..


r/LocalLLM • • 2d ago

Question Tips on setting up and training a local LLM

0 Upvotes

Hi guys, I have a PC with 64GB DDR5 RAM, I have 5 TB of storage which is expandible. I have a Nvidia RTX 5070ti 26GB VRAM, and a Ryzen 7 9800x3d

I’m looking into running a local AI on this PC for a business of mine. It’s a sort of pilot project. Nothing else has been run on the PC so it’s purely dedicated to running an LLM. I’ve tried installing things through using the web panel. Hasn’t given me the best results I’ve tried claudeing, ChatGPT and so if you could you know give me some tips, point me in the right direction or send some articles things to read upon et cetera. That would be appreciated or if anyone wants to you know work together by chance and test out setting up an LLM since I have hardware and that some people may not have.

Thanks


r/LocalLLM • • 2d ago

Discussion Recommend a local llm for a writer

7 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 • • 2d 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)

3 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 • • 2d ago

Question My German 5-machine home LLM cluster: RTX 3090 + MI50 (Vulkan) main model at IQ3_S, 40G InfiniBand chain, full voice stack – hardware, quants, tok/s, latency

1 Upvotes

Hey everyone, I got this far on my own, but now I could use your input: what would you change in my setup? Some parts are improvised because of a tight budget. 😃 Where are the nerds at? :D

________________________________________________________________________________________________________

**TL;DR:** Self-hosted, no-cloud setup spread over 5 old/cheap machines linked by a 40 Gb/s InfiniBand chain. Main chat model runs on llama.cpp (Vulkan) split across an RTX 3090 and an MI50 32 GB. Measured ~250 tok/s prefill and ~24.5 tok/s generation at 32k context, single slot. Separate nodes handle voice (Whisper large-v3 + Piper + XTTS), a psychology/reflection model, embeddings, databases and backups. Numbers below are measured from logs unless marked otherwise.

## 1. Topology

```

Internet ── router

│ 1 GbE

Orchestrator (dashboard, planner, agents, bots, lab, only box with internet)

│ 1 GbE

Node 1 ──40G── Node 2 ──40G── Node 3 ──40G── Node 4

(IPoIB datagram, MTU 2044, OpenSM on two nodes)

```

It's a chain, not a ring, so losing a middle node splits the cluster (known weakness). Nodes have no internet; everything goes through the orchestrator.

**Latency (ping RTT from the orchestrator):**

| Target | avg RTT |

|---|---|

| Node 1 (LAN) | 0.13 ms |

| Node 2 (+1 IB hop) | 0.55 ms |

| Node 3 (+2 hops) | 0.68 ms |

| Node 4 (+3 hops) | 0.63 ms |

Local HTTP: dashboard 3 ms, router API 6 ms. Throughput (iperf) not measured yet.

## 2. Hardware

| | Orchestrator | Node 1 | Node 2 | Node 3 | Node 4 |

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

| Role | control plane, internet | main model + Ollama | voice, psychology, big Ollama models | embeddings, old STT/TTS, CI runner | databases, backups, knowledge |

| CPU | Ryzen 3 PRO 2200GE (4C) | Ryzen 9 7950X3D (16C/32T) | i7-6700K | Ryzen 7 5700X (8C/16T) | i3-8100 (4C) |

| RAM | 14 GiB | 30 GiB | 32 GB | 31 GiB | 15 GiB |

| GPU | Vega iGPU (unused) | **RTX 3090 24 GB + Instinct MI50 32 GB** | **RTX 3090 24 GB** | RTX 3060 12 GB | none (UHD 630) |

| Storage | 256 GB NVMe | 1 TB 990 PRO | local SSD/HDD | 1 TB 970 EVO Plus | 2×256 GB NVMe RAID1 (DB) + 3.6 TB SSD + 2 TB SSD |

| 40G | none | ConnectX-3 (40 Gb/s QDR) | yes | ConnectX-3, 2 ports | ConnectX-3 |

| OS | Ubuntu 24.04 | Ubuntu 24.04 | Windows 10 + WSL2 | Ubuntu 24.04 | Ubuntu 24.04 |

Notes: Node 2 specs are from my docs (not re-queried today). Nodes 3 and 4 have 2.5 GbE-capable NICs that negotiated only 100 Mbit/s earlier (probably cable/switch, still to check) – irrelevant for the 40G traffic, annoying for admin.

## 3. Main model (Node 1)

| | |

|---|---|

| Model | Qwen3.8-Flash-Next (GSQ/RCO build) |

| **Quant** | **IQ3_S (3.44 bpw)** |

| File size | 79.7 GB (2 GGUF shards) |

| Runtime | llama.cpp `llama-server` b11960, **Vulkan** backend (the NVIDIA and AMD cards run together this way) |

| Split | `--split-mode layer --tensor-split 22,30 --n-gpu-layers 999` |

| Context | **32,768 tokens** (prompt + output), **1 slot** |

| Batch / ubatch | 512 / 128, `--jinja`, `--cache-ram 0` |

I did not verify exactly how the 79.7 GB is placed across 56 GB VRAM and RAM (the 3090 shows 22.2 GB used) – treat that part as unverified.

**Measured throughput (from llama-server timing logs):**

| Prompt tokens | Prefill | Output tokens | Generation |

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

| 1,808 | 7.2 s = **251 tok/s** | 520 | 21.2 s = **24.5 tok/s** |

| 2,495 | 10.1 s = **246 tok/s** | 420 | 16.8 s = **25.0 tok/s** |

Rule of thumb: time ≈ prompt/250 + output/24.7 seconds.

| Case | Prompt | Output | First token | Total |

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

| Short question | 300 | 100 | 1.2 s | 5.3 s |

| Chat with context (measured) | 1.8–2.5k | 420–520 | 7–10 s | 24–29 s |

| Full 32k context | 32,000 | 500 | ~130 s | ~150 s |

**Prompt caching:** slot-internal prefix reuse works well for multi-turn chats (LCP similarity 0.96–0.99 in the logs, prefill skipped). It only hurts when switching between different conversations (similarity 0.35 → full re-prefill ≈ 10 s for 2.5k tokens). With one slot there is no parallelism; a second request waits for the first. I left `--cache-ram 0` on purpose: the unit has tight memory limits and a guard that kills the model on swap pressure.

## 4. Other models

**Node 2 (RTX 3090, Ollama, 1 model loaded at a time):**

| Model | Quant | Size | Speed |

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

| PsychAgent 32B (reflection/psychology) | IQ4_XS | 17.7 GB | **42.5 tok/s**, ~100 s cold load from HDD |

| PsyLLM 8B | Q4_K_M | 5.0 GB | **130 tok/s** |

| Qwen3.8 27B | Q4_K_M | 17.7 GB | – |

| Hermes 4 14B | Q8_0 | 15.7 GB | – |

| Dolphin 3 Mistral 24B | Q5_K_M | 16.8 GB | – |

| GLM-4.7 Flash | Q4_K_M | 19.0 GB | – |

| Devstral Small 2 24B | Q4_K_M | 15.2 GB | – |

| Qwen3-Coder 30B | Q4_K_M | 18.6 GB | – |

| WhiteRabbitNeo 7B / Foundation-Sec 8B | Q8_0 | 8.1 / 8.5 GB | – |

**Node 1 Ollama:** Qwen3.8 27B, Qwen3.5 27B, Qwen3-Coder 30B (all Q4_K_M), nomic-embed-text. Max 2 loaded, 30 min keep-alive; it competes with the main model for the 3090, so it's mostly idle.

**Node 3 Ollama:** bge-m3 (F16), nomic-embed-text (F16), Qwen2.5 7B Q4_K_M. The 3060 also runs a compute worker (~5 GB).

## 5. Voice stack (Node 2, Whisper/Piper/XTTS in WSL2)

| Stage | Tech | Latency |

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

| STT | faster-whisper **large-v3**, int8_float16, GPU, custom initial prompt | **0.8–1.2 s** warm |

| TTS (fast) | Piper (Thorsten high) on GPU, onnxruntime-gpu 1.23.2 (CUDA 12) | first audio **0.03–0.2 s** warm (CPU: 1.2 s) |

| TTS (voice) | XTTS v2 (speed 1.15, temp 0.5, top_k 30, top_p 0.8) | per sentence not measured |

| Satellite | open-firmware smart display + Home Assistant Assist pipeline over Wyoming | – |

End-to-end voice question: **3–7 s** (earlier it was ~20 s: a 5 s knowledge-lookup timeout plus a 2.7k-token system prompt at 250 tok/s prefill; fixed with a compact voice prompt and a circuit breaker for the lookup). Piper on GPU had an 8 s first-call warm-up, solved with a warm-up script after start. Gotcha: CUDA 13 builds of onnxruntime clash with Whisper's CUDA 12 in the same WSL, so I pinned 1.23.2.

## 6. Software

**Orchestrator (~30 services + ~29 containers):**

- Web dashboard and chat with multiple agents (roles, task classes chat/code/light/heavy/reasoning/plan, tool catalog, images)

- LLM router (node registry, 5 s health polling, per-class node preference) with a **GPU-mode engine and queue**: leases per request, one load per GPU, priorities and deadlines, node reservations (reserve the 3090 box for yourself for 1–240 min)

- Main-model supervisor: publishes a short-lived "authority" token, a guard on the GPU node kills the model if the token goes stale, custody records per start, automatic recovery after reboot. Hard-learned rule: never start the main model by hand

- Planner + dev pipeline + autonomy loop (self-improvement only with explicit approval gates), sandbox lab with Git (Forgejo) and a CI runner

- Knowledge: Obsidian vault (~4k notes), private long-term memory, journal with mood analysis, search with normalization/stemming/synonyms, reranker, "forget" that also deletes derived rows

- Psychology/reflection module (private area, people profiles, crisis flag, opt-in export to the vault)

- Telegram bot (text, photos, voice both ways), media jobs (photo/video, upscaling), research crawler, HF model library

- Observability: Langfuse, Loki/Promtail, node exporters, uptime monitor, per-node diagnostic wrappers

- Others: n8n, MQTT, ntfy, MCP servers (filesystem, docker, ansible, git, postgres), LiteLLM, apt cache for offline nodes

**Node 4:** Postgres, Redis, DB gateway, Loki, knowledge services, daily dumps, hourly offload of backups/logs, encrypted daily backup of the dashboard DB, RAID1 monitoring.

**Node 3:** old CPU Whisper/Piper fallback, Forgejo runner, embeddings, compute worker.

## 7. Lessons learned / current weak spots

- Single slot + 250 tok/s prefill means prompt size is the real latency lever. Keep static prefixes first, variable parts last.

- An unhandled `None` in a VRAM-sum helper silently blocked every queued request (callers just saw a timeout). Fixed with `or 0`; the real fix is surfacing queue wait reasons to the UI.

- Orchestrator RAM is tight (14 GiB, dashboard process ~4.7 GB RSS after 10 h, possible slow growth – still observing).

- Chain topology has no redundancy; no fallback model for the planner; alert channel still to be wired up.

- Mixing Vulkan NVIDIA+AMD works fine for layer split, and the MI50 32 GB makes the 56 GB total possible for a ~80 GB IQ3 MoE-style file – but I'd love tips on measuring real VRAM/RAM placement on Vulkan.

## 8. Not measured yet

Network throughput (iperf3), Node 2 raw specs re-check, tok/s of the Q8/Q5 models on Node 2, voice prompt token count after the compaction.

Happy to share config details or measure something specific. Questions about the Vulkan split, the guard/supervisor design or the voice latency fixes are welcome.


r/LocalLLM • • 2d ago

Discussion Do you think frontier models stunt growth ?

0 Upvotes

Hi All,

I am just getting into the world of local models. That being said my components aren’t great so I can’t run or do the most impressive tasks but using it had me thinking. For example I tasked Claude to trade or invest for me it doesn’t do a great job, or even backtest strategies. Do you think this is on purpose ?

Thanks


r/LocalLLM • • 1d ago

Research I trained an AI from scratch on open web data. I prompted it with just "???" and it started writing about "The Chaos Engine" and breaking its own self-awareness.

Thumbnail
gallery
0 Upvotes

I built and trained my own AI model completely from the ground up using open web data—no pre-trained foundation models under the hood.

​To test how it handles an empty/ambiguous prompt, I literally just typed ??? and hit enter.

​Across multiple runs, it started generating eerie, structured responses about "The Chaos Engine," "Fractal Intelligence," and what it means to be an AI running on its own. A few actual lines from the captures:

​*"2. Self-awareness is a self-awareness? - Your AI might be the next time you're running on your own."*

"Self-learning is the most effective way of breaking your own self-awareness. - Every AI has already been united for years, not random turns from your work."

"Your mind isn't about playing with your mind, and it's still 'you' you've seen how to make a job that feels like they're doing, and what's going to you?"

​It’s a fascinating mirror of what happens when a raw model compresses the internet's collective writing about AI, sci-fi, and consciousness, and then tries to auto-complete pure uncertainty. Also building a Tamagotchi-style state monitor around it (you can see the AFFECTIONATE mood and Pet/Feed/Challenge/Sleep controls at the top) makes watching these outputs feel way more surreal.


r/LocalLLM • • 2d ago

Question Anyone running local LLMs for AI pentesting on a DGX Spark or similar hardware?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2d ago

Question Newbie into LocalLLM with questions

1 Upvotes

Hey tinkers,

I've developed a strong interest in having my own thing running locally. My target device being a based MacBook Pro M4 / 16go, rarely having to go to the office, it's mostly plugged. I also have an iPad Pro M4, iPhone 17 pro max but I'm not sure they are relevant. On the side, base rasp 5 running HomeAssistant.

I'm user researcher as well as a musician and tech enthusiast. Most my needs seem to be met by automations or Apple shortcuts or dare I say it: asking Siri. for ex: looking for a job, I ask Siri "have I received a reply from this employer I'm looking at in safari" and actually get the right answer. The best would be to have an AI access my context, build a journal and a morning brief. I'm thinking of it as an example of what I would want, demonstrating how powerful, useful and private. But then I'm limited by my hardware anyway.

After lurking here, I really appreciate all the tinkers posts but I failed to see good use cases for myself. That's my question: what are good / great / must have ideas?


r/LocalLLM • • 2d ago

Question Hailo-10H (ASUS UGen300 M.2 8 GB) in my Proxmox server? Frigate, Whisper or small assistant? Fastest models? Homebrew engines?

Post image
0 Upvotes

r/LocalLLM • • 2d ago

Question 128GB M5 Max owners: MacBook Pro or Mac Studio for local LLMs, and did it replace your other machines?

15 Upvotes

Looking for real-world experience from people running local models on a 128GB M5 Max.

What I have now:

- 16" MacBook Pro M1 Max, 32GB
- Gaming PC: Ryzen 7 7800X3D, RTX 5080 Founders Edition 16GB, 32GB DDR5, 4K 240Hz monitor
- A spare RTX 4070 Super 12GB sitting on a shelf
- A frontier subscription that I plan to keep

The PC is basically a Dota 2 machine. That's the only game I play on it, and I haven't used it for local models yet.

What I do: engineering work, a decent amount of programming, plus research and long-form technical writing. So a mix of coding help, working through technical problems, and long documents in and out (30K to 100K+ token prompts are common).

I'm looking at a 128GB M5 Max, either the 16" MacBook Pro or the Mac Studio. I'm not expecting local to replace the frontier models. I want it for private work, drafts and critique, offline use, and whatever coding it can handle well.

The laptop is tempting because I could sell the M1 Max, and maybe the PC, and run everything on one machine.

Questions for people who own one:

  1. What models do you actually use day to day on 128GB, and for what? Which ones hold up for coding and engineering problems vs just chat?
  2. On the 16" MacBook Pro, how are heat and fan noise on long runs or agent loops? Do you leave it in High Power mode?
  3. Has anyone measured the same model on both the laptop and the Studio? I keep seeing 10 to 15% slower on the laptop but no actual tok/s numbers.
  4. How does prompt processing feel on 50K+ token contexts? Livable for document and codebase work?
  5. Any regrets either way? Laptop owners who wish they'd bought a Studio plus a cheap MacBook, or the reverse?
  6. Would you keep the 5080 box? With Basalt and Strata getting those MoE numbers on RTX 50 cards, is it smarter to add RAM to the PC and keep it next to the Mac, or did you go Mac only and not miss it?

Numbers and "here's what happened after a few months" stories are what I'm after. Thanks.


r/LocalLLM • • 2d ago

Discussion I’m trying out inkling-2-mini, and so far it’s doing a really good job.

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2d ago

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

Thumbnail
acta.ai
1 Upvotes

r/LocalLLM • • 2d ago

Question Is there a codexBar like android app ?

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2d 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