r/LocalAIStack • • Jun 23 '26

Running Qwen3.6 27B / 35B locally with llama.cpp + Vscode Insiders + copilot as the harness - highest performance, quality and best usage while fitting on your GPU

169 Upvotes

I have been benchmarking Qwen3.6-27B and Qwen3.6-35B-A3B locally through llama.cpp, with GitHub Copilot Chat (Vscode Insiders needed) used as the frontend harness.

I am using Claude Opus, GPT 5.5 and Qwen 3.6 (27B) a lot in the past weeks.
The reason for Qwen is proprietary code areas where remote inference is not an option as it would leak the code out. And as long as you don't task it to write a complex cuda graph, it performs well.
Qwen 27.B is at Sonnet 4.6 if you combine it with a high value system prompt - or between Sonnet 4.5 and Sonnet 4.6 without.

Copilot Chat is an excellent harness for this kind of setup. You get the IDE integration, agent flow, tool calling UI, file context, and normal coding workflow, while the actual model is your own local llama-server endpoint.
All of this works while being LOGGED OUT of the Github Copilot account - as that is not affordable in pricing anymore.

This is a practical configuration guide for people already comfortable with llama.cpp, GGUFs, VRAM budgeting, and long-context local inference.

Models tested

Main focus:

  • unsloth/Qwen3.6-27B-GGUF
  • unsloth/Qwen3.6-27B-MTP-GGUF (same model but with MTP draft tensors)
  • unsloth/Qwen3.6-35B-A3B-GGUF

Recommended GGUFs:

27B:
Qwen3.6-27B-UD-Q4_K_XL.gguf
or
Qwen3.6-27B-MTP-GGUF:UD-Q4_K_XL

35B-A3B:
Qwen3.6-35B-A3B-GGUF:UD-Q4_K_M

If memory is tight on the 35B-A3B model, drop to a smaller Unsloth Dynamic quant:

Qwen3.6-35B-A3B-GGUF:UD-Q3_K_XL

If even that is tight, use UD-Q3_K_M or UD-Q3_K_S.

For the 35B model I do not recommend KV-cache quantization. Run the normal cache and keep the context sane. the 35B model is MoE and very low on kv-cache

For the 27B model, I do highly recommend:

--cache-type-k q4_0
--cache-type-v q4_0

Recent llama.cpp KV-cache improvements make q4_0 much more usable here. The 27B model handles q4_0 KV cache very well in my testing - almost identical to FP in evaluation results.

What changed: llama.cpp added something like Hadamard rotation to kv-cache which shuffles the tensor distribution in a higher dimensionality and allows quantization superblocks to function.

Why Copilot Chat?

Because Copilot is a very good harness - beating Codex, Cursor, Claude in my opinion
Vscode Insiders is needed to get the openAI compatible endpoint (to interface the model)

You get:

  • IDE-native chat
  • agentic file/code workflows
  • very good tool calling
  • project context
  • local model backend
  • OpenAI-compatible endpoint wiring

The important part is that Copilot Chat is only the harness. The model is served locally through llama-server.

Why llama-server and not lm-studio,ollama etc ?

It allows MUCH more control over settings, we do not just use MTP drafting. We use a combination of context and MTP drafting which can lead to 300+ tokens/sec on the 27B model. MTP is a medium speedup (1.5x) but once the model is paraphrasing source code from thinking or prefill the ngram draft speedup can reach 6x or more.

So the stack is:

VS Code Insiders
        ↓
custom OpenAI-compatible model config
        ↓
llama.cpp llama-server
        ↓
local Qwen3.6 GGUF

Copilot chatLanguageModels.json

This is the shape I used for VSCode Insiders:

[
  {
    "name": "WSL",
    "vendor": "customoai",
    "models": [
      {
        "id": "qwen3.6-27b",
        "name": "QWEN-27B-WSL",
        "url": "http://172.27.211.123:1234/v1/chat/completions",
        "toolCalling": true,
        "vision": true,
        "thinking": true,
        "maxInputTokens": 165000,
        "maxOutputTokens": 15000
      }
    ]
  }
]

Adjust the URL to your own llama-server host, in WSL you'll see it by entering ipconfig or ifconfig. port you can choose of course.
The input and output tokens need to be adapted to your context setting.
The id must match the llama-server id.

For local-only setups this is usually one of:

http://127.0.0.1:1234/v1/chat/completions
http://localhost:1234/v1/chat/completions
http://<WSL-IP>:1234/v1/chat/completions

If your Copilot Insiders build expects the newer custom endpoint shape, use the same model block but switch the provider shape accordingly. The key fields are the endpoint URL, model id, tool calling, thinking, and max token limits.

27B command: long context + q4_0 KV cache + MTP-ngram drafting

This is the 27B style I recommend.

CTX=150000
PARALLEL=1
HOST=0.0.0.0
PORT=1234
MODEL=/models/Qwen3.6-27B-UD-Q4_K_XL.gguf

/usr/src/llama.cpp/build/bin/llama-server \
  -m "$MODEL" \
  --ctx-size "$CTX" \
  --flash-attn on \
  --batch-size 1024 \
  --ubatch-size 1024 \
  --parallel "$PARALLEL" \
  --host "$HOST" \
  --port "$PORT" \
  -ngl 99 \
  --threads 8 \
  --threads-batch 8 \
  --cache-type-k q4_0 \
  --cache-type-v q4_0 \
  --temp 0.6 \
  --top-p 0.95 \
  --top-k 20 \
  --min-p 0.00 \
  --presence-penalty 0.00 \
  --jinja \
  --chat-template-kwargs '{"preserve_thinking": true}' \
  --reasoning-format none \
  --reasoning-budget 16000 \
  --slot-save-path /kv_cache/ \
  --props \
  --metrics \
  --checkpoint-every-n-tokens 1024 \
  --ctx-checkpoints 64 \
  --perf \
  --spec-default \
  --spec-type draft-mtp \
  --spec-type ngram-map-k4v \
  --spec-ngram-map-k4v-size-n 16 \
  --spec-ngram-map-k4v-size-m 24 \
  --spec-ngram-map-k4v-min-hits 1

For the MTP-specific Unsloth repo, use:

MODEL=/models/Qwen3.6-27B-MTP-UD-Q4_K_XL.gguf

or the HF shorthand if your build supports it:

-hf unsloth/Qwen3.6-27B-MTP-GGUF:UD-Q4_K_XL

The important part is the drafting chain:

--spec-default
--spec-type draft-mtp
--spec-type ngram-map-k4v
--spec-ngram-map-k4v-size-n 16
--spec-ngram-map-k4v-size-m 24
--spec-ngram-map-k4v-min-hits 1

MTP gives useful speedup, but leave VRAM headroom. In practice I budget roughly +1 to +2 GB VRAM headroom for the MTP/drafting path and related buffers. If you are right on the edge, reduce context before blaming the model.

At q4_0 KV cache, every extra 1 GB of free VRAM is roughly another 13k tokens of 27B context, before runtime overhead.
If you are tight in vram, remove only the MTP part as ngram drafting is free.
You can also just use `mod-ngram` as an alternative to the more complex k4v map.

Thinking settings

This part matters.

I use:

--jinja
--chat-template-kwargs '{"preserve_thinking": true}'
--reasoning-format none
--reasoning-budget 16000

The reasoning-format none is important for Qwen3.6 because it avoids bad stop behavior and broken multi-turn thinking state during long coding sessions.
Copilot Chat was created to hide thinking from you (proprietary GPT models) but you want to see the thinking usually. So this solves both issues.

I also keep:

--reasoning-budget 16000

This gives the model room to think, but avoids runaway reasoning loops eating the whole session.

35B-A3B command: no KV-cache quantization

For 35B-A3B, I recommend being more conservative.

CTX=100000
PARALLEL=1
HOST=0.0.0.0
PORT=1234
MODEL=/models/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf

/usr/src/llama.cpp/build/bin/llama-server \
  -m "$MODEL" \
  --ctx-size "$CTX" \
  --flash-attn on \
  --batch-size 1024 \
  --ubatch-size 1024 \
  --parallel "$PARALLEL" \
  --host "$HOST" \
  --port "$PORT" \
  -ngl 99 \
  --threads 8 \
  --threads-batch 8 \
  --temp 0.6 \
  --top-p 0.95 \
  --top-k 20 \
  --min-p 0.00 \
  --presence-penalty 0.00 \
  --jinja \
  --chat-template-kwargs '{"preserve_thinking": true}' \
  --reasoning-format none \
  --reasoning-budget 16000 \
  --slot-save-path /kv_cache/ \
  --props \
  --metrics \
  --checkpoint-min-step 1024 \
  --ctx-checkpoints 16 \
  --perf

No q4_0 KV cache here - the sub 4B active parameters need barely any VRAM anyway.

I recommend keeping 35B-A3B below roughly:

110k context

The 35B model can be pushed past 200k context, but in my testing it becomes more likely to fall into reasoning loops. Once that happens, the session usually does not recover cleanly. Start a fresh session.
The upside of the 35B model is extreme performance, as in hundreds of tokens without any drafting enabled.
You CAN use drafting on top, mod-ngram, MTP and other drafting can be added for more speed but those will need a careful balance (that I have not tested yet)

So my practical 35B rule is:

35B-A3B: stay below 110k if you want stable coding behavior.
27B: can go as high as it fits, but below 150k is where it feels strongest.

Checkpointing
The --checkpoint-min-step (or --checkpoint-every-n-tokens (legacy now) is an important option for qwen models. Briefly explained: qwen models have two kv caches, one is more conventional and one is a recurrent-state (SSM/Mamba) that can not be reversed by n tokens. So if you change something (like remove the last answer and message to benefit from existing context) then you can only do that if a checkpoint exists. Otherwise the entire context is reprocessed which is very slow on a 27B model.
Each checkpoint costs 160MB RAM, the internal API supports VRAM checkpointing but I believe currently only the MTP implementation uses that.
--checkpoint-min-step and --ctx-checkpoints multiplied define how much of your LAST context is protected and can be rewound. 1024*16 means 16K context can be reversed with low re-compute cost (almost instant).

LM Studio as local server

Using LM Studio is possible but you need to use a few tricks and it won't achieve the same top-tier performance.
LM Studio does not support our chained drafting, but it supports MTP.

  1. Go to your Qwen 3.6 model, enable Flash attention and the quantization needed for kv cache. Go to the Inference tab, disable the button for "Reasoning Section Parsing"
  2. Go to Developer, Server Settings and set the port, serve on local network if needed, no auth, enable CORS, consider disabling just-in-time loading.
  3. Start the local server and then use the "clipboard copy" icon to get the precise Server ID which you use in the vscode json config.

Everything else is similar to llama-server, you'll not have the same max performance but it works well.
You can always just install the latest llama release binaries, and use the commandline to load the model from the lmstudio models directory.

VRAM planning

These are practical planning numbers, not hard guarantees. Actual fit depends on:

  • exact GGUF
  • CUDA/ROCm/Metal/backend
  • batch/ubatch
  • -ngl
  • whether the desktop is using the same GPU
  • whether MTP/speculative decoding is enabled
  • whether you are using full GPU offload or spilling to CPU RAM

Qwen3.6-27B UD-Q4_K_XL, q4_0 KV cache

Recommended cards:

24 GB: RTX 3090, RTX 4090, RTX A5000, RTX 4500 Ada, RTX PRO 4000 Blackwell, A10
32 GB: RTX 5090, RTX 5000 Ada, Tesla V100 32GB

Approximate context fit with full GPU offload:

VRAMExample NVIDIA cardsPractical context
16 GBRTX 4060 Ti 16GB, RTX 4080 Laptop 16GB, RTX 5080 16GB, RTX 5070 Ti 16GB, RTX A4000 16GBNot recommended for full 27B UD-Q4_K_XL offload. Use smaller quant or partial CPU offload.
24 GBRTX 3090, RTX 4090, RTX A5000, RTX 4500 Ada, RTX PRO 4000 Blackwell, A10~45k-60k with MTP, ~60k-75k without MTP
32 GBRTX 5090, RTX 5000 Ada, Tesla V100 32GB~140k-160k with MTP, ~160k-180k without MTP

For 27B, q4_0 KV cache is the difference between normal local context and huge local context. It is the main reason this setup is viable.
On a 5090 you have enough VRAM to supply 2 sessions in parallel with both model types.
Or you could run one fast model for context summarization and 27B for code.

Qwen3.6-35B-A3B UD-Q4_K_M, normal KV cache

Recommended cards:

24 GB minimum for useful GPU-resident contexts
32 GB strongly preferred

Approximate context fit:

VRAMExample NVIDIA cardsPractical context
16 GBRTX 4060 Ti 16GB, RTX 4080 Laptop 16GB, RTX 5080 16GB, RTX 5070 Ti 16GB, RTX A4000 16GBNot recommended for full 35B-A3B Q4. Use Q3 or partial offload.
24 GBRTX 3090, RTX 4090, RTX A5000, RTX 4500 Ada, RTX PRO 4000 Blackwell, A10~40k-50k
32 GBRTX 5090, RTX 5000 Ada, Tesla V100 32GB~100k-110k recommended; more will fit but stability drops

The 35B-A3B model is very good, but I would not treat it as a “just max the context” model. Keep it tighter.
If you have the VRAM: Instead of large context, consider multiple sessions with limited context, so you can have 2 or 3 chats simultaneously.

Quick test: Linux

Once llama-server is running:

curl -s http://127.0.0.1:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen3.6-27b","messages":[{"role":"user","content":"Reply with exactly: local ai works"}],"max_tokens":16}' \
  | jq -r '.choices[0].message.content'

Expected output:

the model responds to your input

If your server is inside WSL or another host, replace 127.0.0.1 with the server IP.

Quick test: Windows PowerShell

(Invoke-RestMethod `
  -Uri "http://127.0.0.1:1234/v1/chat/completions" `
  -Method Post `
  -ContentType "application/json" `
  -Body '{"model":"qwen3.6-27b","messages":[{"role":"user","content":"Reply with exactly: local ai works"}],"max_tokens":16}'
).choices[0].message.content

Expected output:

local ai works

Notes from benchmarking

My current practical ranking:

27B:
Best long-context local coding model in this setup that is close to Sonnet 4.6
Use q4_0 KV cache.
Use MTP if you have the headroom.
Strongest below 150k context, but can go much higher if memory allows.

35B-A3B:
Excellent quality but will fail on hard tasks
Do not use KV-cache quantization.
Keep below ~110k context for best stability.
Can go above 200k, but reasoning loops become more likely.
If it loops, start a new session.

For Copilot usage, I prefer exposing a conservative maxInputTokens in the JSON, even if the server can technically run higher. For example:

"maxInputTokens": 165000,
"maxOutputTokens": 15000

If you set wrong context here you'll get issues serverside, so make sure that matches.
I had cases where the server went OOC (out of context) when getting too close to the max context so I'd leave a little room. copilot seems to not follow this very strictly.

Final recommendation

If you want the most practical Copilot-local setup:

Use Qwen3.6-27B UD-Q4_K_XL
Use llama.cpp server
Use q4_0 KV cache
Use preserve_thinking
Use reasoning budget
Use Copilot Insiders as the harness
Use MTP only when you have VRAM headroom

If you want the stronger but more conservative model:

Use Qwen3.6-35B-A3B UD-Q4_K_M
Do not quantize KV cache
Stay below ~110k context
Drop to UD-Q3_K_XL if memory is tight

This is the first local setup I have used where Copilot feels like a serious frontend for a fully local long-context coding model instead of just a toy endpoint test.

I have tested this on terminal use, debugging, and massive codebase development - it works just like Sonnet 4.6.

Qwen 27B also beats Sonnet 4.5 in most benchmarks and 4.6 in some.
https://artificialanalysis.ai/models/comparisons/qwen3-5-27b-vs-claude-4-5-sonnet-thinking#intelligence-evaluations


r/LocalAIStack • • 7h ago

Follow-up to my 177B-on-16GB post: Strata vs llama.cpp, same PC. Strata read prompts 2.3x faster but took 2x longer to build an app

Thumbnail
gallery
9 Upvotes

Last week I posted Qwen 3.8 Flash Next (177B, 3-bit, 75.8 GB) running on a 16GB card, and a few of you said "try Strata". So I did. Same PC, same GGUF, same prompts, 3 runs each.

**Setup:** RTX 4080 SUPER 16GB, 32 GB DDR5, Samsung 980 PRO, Windows 11. llama.cpp (latest build) vs Strata 0.1.70.

**Reading a 2,130-token prompt**

- llama.cpp: 35.5 tok/s ("best" settings: 34.2, so tuning didn't help)

- Strata: 79.5 tok/s default, 83.4 with its tuner's pick

**Writing a 400-token answer after that prompt**

- llama.cpp: 24.0 tok/s

- Strata: 18.4 tok/s

- Short prompts: Strata 37.2 vs llama.cpp 26.8 (its drafter helps here)

**VRAM:** llama.cpp 15.9 GB, Strata 14.1 GB. Strata's expert cache kept about 4,079 of 24,576 experts on the card, with roughly a 75% hit rate.

**The real test:** I had both build the same expense-tracker web app in OpenCode from one prompt.

- llama.cpp: done in 22 min

- Strata: 48 min. It also wrote and ran its own test script and fixed 4 failures, but most of the gap is writing speed, since an agent loop is mostly generation.

- Both apps worked: add/edit/delete, month filter, survives reload, phone width.

**Why my prefill numbers look low** (someone on the llama.cpp GitHub asked): the model is 75.8 GB and I only have 32 GB of RAM. Prefill touches nearly every expert, so most of the file streams from the SSD on every pass. People with a quant that fits in RAM see 1,000+ tok/s prefill. So this is a "model much bigger than RAM" result, not "llama.cpp is slow". Strata's expert pack and cache avoid a lot of those reads, which is where its 2.3x comes from.

**My takeaway for a 16GB card + 32GB RAM:**

- Chat or long documents → Strata

- Coding agents → llama.cpp

- "Best settings" barely beat the defaults on either engine

Next I'm testing --load-mode dio, a bigger -ub, and a smaller quant that fits in RAM, to see how much of the prefill gap disappears. What would you want me to test on this setup?


r/LocalAIStack • • 43m ago

You don't need 256k or even 128k for a coding agent. (Shameless plug)

Enable HLS to view with audio, or disable this notification

0 Upvotes

In this demo run using Inkling 2 Mini GSQ-RCO IQ_3_S via Prompit as the harness and Pro-Strata as the engine, I compared how the same model perform under different context window, running in looped task.

You can also see the results here.

THE PLUG: Prompit has support for text, image, video, audio, decision and embedding models, each performing tasks they are best at. The main model is still the text model (Inkling 2). It uses the image, video, and audio models as a form of tool calls to perform the tasks they were trained at.

Compaction vs. Handoff
Compaction summarizes all conversations across all sessions, thereby building up longer term memory and also risks bloating the context. Handoff is the opposite

This is what made 16k ctx complete the task: Avoid bloat at the cost of re-reading files every new cycle.

You can also try running your own ticket-sorter Prop, on your own Discord channel. Basically, you assign a Prop to a channel dedicated for submitting bugs or issues. The Prop then categorizes every report and pool every attachment by category and you can just point your coding agent to retrieve the sorted pool, save some token digesting them raw, and save some weekly usage limit. Just follow the steps under Deploy>Connectors>Discord to set it up.

And if you have something to report, you can send them to Prompit's Discord ticket Prop. All reports are received by a Prop and sorts them for priority and severity

You can try them for free. ALL OPEN SOURCE:

Pro-Strata: https://github.com/Noriel-cb/Pro-Strata
Prompit: https://github.com/Noriel-cb/prompit
You can also download the desktop app (Windows & Linux) at: https://prompitai.com/download/

Try it, own it, fork it, PROMPIT.


r/LocalAIStack • • 50m ago

Uncensored Multi-Model Releases Made With the Latest Version of Heretic, Scarlett Opus With MTPs, Qwen3.8-27B With MTPs, Gemma-4-31B-it and Two Models Finetuned for Improved Japanese to English Translations, All Available in GGUF Format!

Thumbnail
huggingface.co
1 Upvotes

gemma-4-31B-it-uncensored-heretic-v2:

Safetensors: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-v2

GGUFs: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-v2-GGUF

Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved:

Safetensors: https://huggingface.co/llmfan46/Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved

GGUFs: https://huggingface.co/llmfan46/Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved-GGUF

Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2:

Safetensors: https://huggingface.co/llmfan46/Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2

GGUFs: https://huggingface.co/llmfan46/Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2-GGUF

gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator:

Safetensors: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator

GGUFs: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator-GGUF

Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator:

Safetensors: https://huggingface.co/llmfan46/Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator

GGUFs: https://huggingface.co/llmfan46/Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator-GGUF

————————

That's it for now!

As usual you can find all my models here: HuggingFace-LLMFan46

Tremendous amount of work went into making these releases come true, especially since I was aiming to make the most uncensored models while at the same time preserving the original models capabilities, while preventing issues like looping and closed thinking degradation (particulary hard thing to do for the Qwen3.8-27B models), not to mention the months of work involved in putting together the dataset needed to train the models for improved Japanese to English translations, on top of all the training time involved.

So if you like my work and find my models useful, then I would really appreciate if you could support me on Ko-fi: https://ko-fi.com/llmfan46


r/LocalAIStack • • 9h ago

One Spray Turns the Entire City into Christmas

1 Upvotes

A simple Christmas decoration spray, but with a rather ambitious idea.


r/LocalAIStack • • 13h ago

Best local models for Python & agentic coding on 4GB VRAM + 24GB RAM?

Thumbnail reddit.com
2 Upvotes

r/LocalAIStack • • 14h ago

LexiSuite 2922c5c: my all-Rust local AI stack after two full source audits (92 changes); Inkling-2-Mini reads a 262k prompt 32% faster; tensor parallel arrives as an experimental toggle for Inkling-2-Mini and Qwen3.8 Flash-Next; ahead of llama.cpp and Strata on Inkling, QFN, Qwen3.8 27B and Nemotron

Thumbnail
github.com
1 Upvotes

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.

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA/tree/main

A new development image went out today, one day after the last one. 92 changes this time. Here is what they are.

Two audits of the whole source

The entire tree, 2.07 million lines of Rust, went through two outside audit rounds of about 100 parts each, through four lenses: security, continuity, compatibility and speed. I then checked the findings rated high by hand against the code, one by one, and fixed what held up: 93 confirmed findings are fixed in this image. Most of this release is that work.

Some of what was closed:

- Root-only routes (system update, disk install, backup recovery) accepted an internal service header in place of the root password. They no longer do.

- The restart export could read another instance's records through a second, unchecked parameter.

- Full model verification saved a changed model's fingerprint before refusing it, so a second load would have accepted it.

- A fresh fleet join code could replace an enrolled box. A replaced remote endpoint kept the API key saved for the old address.

- The engine now checks who owns its key file, and refuses an unusable key list instead of reading it as "no keys".

A more stable platform

- The installer writes the firmware fallback boot file last, verifies the bytes it then uses, and gives two disks installed from one stick different identifiers.

- Uninstall with purge refuses a folder that has a disk mounted under it.

- An answer cut off by the token limit while tools are offered now returns "length" instead of a server error.

- A model load that cannot fit no longer evicts an idle model first.

- The Panel's Secure Boot page hands out the current certificate (the bug named in the last post is fixed). Same certificate as the last image: nothing to enroll again.

Inkling-2-Mini reads long prompts faster

A new attention kernel for prompt processing. At a 262,144-token context a 261,632-token prompt now reads at 1,525.7 tok/s, up from 1,152.7, which is 32% faster. It sums in another order, so its output is not bit for bit the old kernel's: the two pick the same top token on 98.8% of 510 positions. One environment variable brings the old kernel back.

Qwen3.8 Flash-Next gets to its first token sooner

This is the 94 GB mixture-of-experts model served from one 24 GB card. First token after a 64k prompt comes 9% sooner and after a 128k prompt 10% sooner, with identical output.

Tensor parallel (experimental, off by default)

Inkling-2-Mini and Flash-Next can now split their experts across several ranks: several Vulkan devices, or several ranks on one card. It is one toggle in the Panel's New instance form and one engine option. With it off, output is bit for bit as before. With it on, output is deterministic; Flash-Next is bit for bit with two and three ranks on one card, and a 7900 XTX with an RTX 2060 as second rank works with uneven shares.

Speed, measured on this version

One Radeon RX 7900 XTX, one run each, November 30. Old version in brackets.

Inkling-2-Mini, 4-bit cache:

- 16,384-token prompt: reads at 2,471.4 tok/s (2,177.6), generates at 62.9 tok/s (61.2), 137.0 with the model's draft head (132.6)

- 261,632-token prompt: reads at 1,525.7 tok/s (1,152.7), generates at 50.1 tok/s (50.0), 64.9 with the draft head (68.1)

Inkling-2-Mini, 8-bit cache:

- 16,384-token prompt: reads at 2,436.8 tok/s (2,155.7), generates at 61.0 tok/s (61.0), 135.2 with the draft head (131.6)

- 261,632-token prompt: reads at 1,483.8 tok/s (1,140.4), generates at 43.7 tok/s (43.4)

Qwen3.8 Flash-Next at a 262,144-token context, time to first token:

- after a 16k prompt: 37.5 s (36.4)

- after a 64k prompt: 132.2 s (145.3)

- after a 128k prompt: 266.7 s (295.8)

- after a 256k prompt: 559.6 s (new row)

Qwen3.8 Flash-Next, generation:

- after a 16k prompt: 6.90 tok/s (7.64)

- after a 64k prompt: 12.73 tok/s (12.49)

- after a 128k prompt: 9.54 tok/s (9.56)

Things I am not hiding:

- Flash-Next gained nothing at a 16k prompt, and its generation there came out lower than last time (6.90 against 7.64). Both are single runs; I have not measured it enough to say whether that is real.

- Drafted generation on Inkling after the 262k prompt was 64.9 tok/s against 68.1 last time. Drafted speed follows how many drafts the prompt lets through.

- Tensor parallel is not benchmarked on a machine with two fast cards: I do not have one. On a single card it is slower than one rank, because rows cross through system memory. It is there so people with the hardware can use it and tell me.

- I did not re-run llama.cpp and Strata on this version. The comparison tables on the benchmark page are from version d484004 (November 27 to 28) and say so.

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 real card in this version; the Linux boot entry is the one for daily use

- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet

Tested

Every test in the tree ran on this version: 17,997 tests, none failed. Both images passed nine Secure Boot checks in a VM, and the plain image passed an 18-step install to a disk.

Links

Download (960 MB USB image, boots to the Panel):

https://lexipanel.com/download/

All-in-one image with Inkling-2-Mini inside (18.7 GB, needs a 32 GB stick):

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

All 92 changes, one line each:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-2922c5c

Benchmarks and method:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks

Happy to answer questions about the audits, tensor parallel or the engine.


r/LocalAIStack • • 18h ago

Aether: a self-hosted, OpenAI-compatible LLM gateway. One container to try, with failover, caching, quotas and a Grafana dashboard (MIT)

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 1d ago

Basalt 0.6.0 update made 5060ti 80% faster on Inkling model!

Post image
5 Upvotes

r/LocalAIStack • • 20h ago

Built an in-browser vLLM GPU hardware profiler: weights, GQA KV cache, TP, and cloud cost breakeven

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 22h ago

I built a small tool to share idle GPUs across a team through one OpenAI-compatible API. Looking for feedback on the routing

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 1d ago

Homelab optimizations TUI

Thumbnail gallery
1 Upvotes

r/LocalAIStack • • 1d ago

I built a new file format for agents, now directories work like teams, and sharing is a drag-and-drop operation

1 Upvotes

r/LocalAIStack • • 1d ago

I shared a new quant!

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 1d ago

Hypothetical

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 2d ago

3 months in building local ai

Post image
45 Upvotes

Apologies in advance, as many of you seem very advanced, but I wanted to share a project I am working on. For some background, I’m not a developer by any means. I am a data architect by trade who knows some Python and SQL.

What has always appealed to me is taking 20 years of personal and work data—emails, photos, texts, and RSS feeds—and building a database that integrates with a local AI model. It might sound like an unusual goal, but I want a local model that can reflect my approach and perspective based on my own history. For example, if I ask it to design a data model, it can draw from models I’ve built in the past. If I hit a tricky query, it can reference previous SQL problems I have solved. It also doubles as a personal memory bank, letting me quickly look up past flights, hotels, or favorite restaurants in a given city.

Thats’s the core of the project: a private AI that knows my life because it can search my records, not because it was trained on them. Everything runs locally at home on my mini PC and NAS nothing touches the cloud”and I access it from my iPhone, iPad, and laptop over Tailscale. I would appreciate any thoughts or ideas. For the most part, this is up and running and working for me. I still have a lot more to go . But the database side of it is done and I’ve embedded everything.


r/LocalAIStack • • 1d ago

The Christmas Cat Is Being Chased for More Presents

0 Upvotes

This tiny Christmas delivery cat made one mistake: giving away presents a little too quickly. Now the entire neighborhood is chasing it for more! I wanted to create a chaotic but adorable Christmas chase with Wizstar AI.


r/LocalAIStack • • 1d ago

A 10-line prompt addendum made my local model far more readable (self-experiment)

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 1d ago

Getting Zoom, Teams and in-person meetings into Claude over MCP?

3 Upvotes

Our company has meetings across Zoom, Teams, and Meet, along with a lot of in-person discussions. I enabled the Claude Meetings beta and it's been working really well for our Meet calls, but that's currently the only platform it supports.

I tried manually exporting transcripts from Zoom and Teams and adding them to a project, but that routine only lasted about a week before everyone stopped bothering with it!

I'm thinking of setting up a system where transcripts from every platform go into one shared folder. We'd also record in-person meetings on a phone and add those recordings there. Then I'd run a single MCP server over the folder for Claude to access. Would one server and folder still work well once there are hundreds of transcripts, or would it make more sense to organize things separately by platform?


r/LocalAIStack • • 1d ago

Title: Genuine question: Why are people pushing local LLMs so much?

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 1d ago

The Q4 agent stopped waiting for tool results before acting. Same test on another model: almost no change. Here's why.

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 2d ago

The Sandstorm Is Carrying an Entire City

6 Upvotes

What if a sandstorm wasn't destroying the city, but carrying something much bigger toward it?


r/LocalAIStack • • 2d ago

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

Thumbnail
youtube.com
2 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](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](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](https://www.reddit.com/r/LocalLLM/comments/1y6ux2s/qwen_38_27b_vs_inkling_2_mini_user_comparison_on/), 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](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](http://beellama-v0.5.0-bin-win-cuda-12.8-x64.zip)

\- [beellama-v0.5.0-cudart-win-cuda-12.8-x64.zip](http://beellama-v0.5.0-cudart-win-cuda-12.8-x64.zip)

2. Deepseek Harness: [https://www.deepseek.com/en/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](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](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](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](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/LocalAIStack • • 2d ago

Trained Qwen 3 4b for legel statute identification

Thumbnail
huggingface.co
2 Upvotes

r/LocalAIStack • • 2d ago

Local model for brainstorming and plan preparation

8 Upvotes

Hi.

There is plenty information about quality of the local models for coding and agentic stuff.

I wasn't able to find anything related to brainstorming and based on that - architecture and plan preparation for typical SDLC workflow.

Do you have any cheap solutions for each category tested (model and quant)

\* Brainstorming

\* Plan preparation

\* Orchestration

Is QFN feasible to do some of that?

Maybe some cheap Chinese models on OpenRouter?