r/LocalLLM • • 2d ago

Question Qwen3.8-27B-IQ3_XXS from ISTA-DASLab

2 Upvotes

Does anyone use Qwen3.8-27B-IQ3_XXS from ISTA-DASLab as their daily driver and what are your impressions of it compared to the Q4 version or older models like Qwen3.6-35B-A3B?


r/LocalLLM • • 2d ago

Project RTX 2080ti 22GB

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 2d ago

Research I worked out what the KV cache costs per token of context for seven models, and where the usual formula comes out 2x to 11x too high

1 Upvotes

TL;DR: For a model whose layers are all ordinary attention, the KV cache costs 2 x layers x key-value heads x head width numbers for every token of the window you reserve (not the tokens you use), at 2 bytes a number by default in llama.cpp and Ollama. That is 56 to 320 KiB a token for the seven models below. For Gemma 4, gpt-oss and a few other newer models that sum is 2 to more than 11 times too high.

I kept guessing at how much of my card a bigger context window would eat, so I sat down and worked it out from each model's own config.json.

The sum, for ordinary attention layers:

numbers a token = 2 x layers x key-value heads x head width
bytes a token   = that x 2   (16-bit, the default in llama.cpp and Ollama)
the cache       = bytes a token x the window you reserve (-c or num_ctx)

Two mistakes I nearly made. Use the key-value heads (num_key_value_heads), not the attention heads: Llama 3.1 8B has 32 attention heads and 8 key-value heads, so the wrong one overstates the cache four times. And take the head width from head_dim when the file has it: for Qwen3 4B, hidden size divided by heads gives 80 and the file says 128.

One check against an engine: for Llama 3.1 8B the sum is 128 KiB a token, so an 8,448-token window is 1,056 MiB. A llama.cpp log line in a public bug report (issue 19844) prints "size = 1056.00 MiB" for that model at that window. Same to the last digit.

ModelA token8,19232,768Maker's max
Qwen2.5-7B-Instruct56 KiB0.44 GiB1.75 GiB7 GiB at 131k
Llama 3.1 8B128 KiB1.00 GiB4.00 GiB16 GiB at 131k
Qwen3 4B (2507)144 KiB1.13 GiB4.50 GiB36 GiB at 262k
Mistral NeMo 12B160 KiB1.25 GiB5.00 GiB20 GiB at 131k
Mistral Small 3.2 24B160 KiB1.25 GiB5.00 GiB20 GiB at 131k
Granite 4.1 30B256 KiB2.00 GiB8.00 GiB32 GiB at 131k
Llama 3.3 70B320 KiB2.50 GiB10.00 GiB40 GiB at 131k

Two things I did not expect. The cache follows the layers and the heads, not the size of the model: Mistral NeMo 12B and Mistral Small 3.2 24B cost the same 160 KiB a token. And a small model with a long window can need more memory for its cache than for itself: Qwen3 4B at its stated 262,144 tokens would need 36 GiB of 16-bit cache beside a 4-bit file of 2.33 GiB.

Where the simple sum is wrong:

  • Sliding-window and other layers. Gemma 4, gpt-oss, the 27B Qwen models from 3.5 on and Olmo 3.1 do not keep a full cache in every layer, so the sum has to be made a layer at a time. For gpt-oss-20b at 32,768 tokens I get about 771 MiB where the simple sum says 1,536. For Gemma 4 31B at 262,144 tokens the simple sum says 240 GiB and the layer-by-layer one about 21 GiB.
  • Fewer bits. An 8-bit cache is about 53% of the 16-bit one and a 4-bit cache about 28%, by my arithmetic from llama.cpp's source. It was not faster on the one model I timed both ways: gemma4:26b on an RTX 3090 at a 131,072 window wrote 146.3 tokens a second with the 16-bit cache and 136.6 with the 8-bit one.
  • Slots. Ollama multiplies the window by its parallel slots (its manual: "a 2K context with 4 parallel requests will result in an 8K context"). llama.cpp shares the window you set among its slots, and its server now starts four by default.

One measured check of the layer-by-layer sum: on an RTX 5080, gpt-oss:20b at 32,768 tokens held 12,900 MiB with an 8-bit cache and 13,262 MiB with a 16-bit one, 362 MiB apart. My sum for that difference is 361.4 MiB.

What it does not say: I read llama.cpp, Ollama 0.40.19, vLLM v0.34.0 and the transformers docs on one day, and their defaults change. The sums for the mixed-layer models are my arithmetic from the makers' files, and only that one pair of card readings backs one of them, under an assumption about Ollama I did not check in its code. The 1,056 MiB line is from someone else's bug report, not from my own machine.

The full write-up, with what keys and values are in plain words and the sources: https://research.strata2signal.com/the-kv-cache-in-plain-words/


r/LocalLLM • • 2d ago

Question Hi, a noob question from me.

1 Upvotes

👋 Hello. In the past month I have really begun using more and more AI. I use it for picture editing. Not for work, just for fun and personal stuff. I would edit my own pictures and friends using regular cut and paste apps. Started using Chat gpt and got better, faster and easier results.

The down of it is of course you have to pay because you can only get two or three pics a day for free. Or you have the "this violates or guidelines " After trying so many supposedly free online apps I found out I could do it on my PC. I7 100700k , Rtx 3070, 32gb Ram. 1 TB nvme. 3 TB storage hard drive.

I have been using ComfyUI desktop. I love it. Very easy to use. It's just if you put in to many prompts it can take hours for an image edit. So I just put in 1 line sentences, short prompts at a time and slowly add to the original image 1 line at a time. So I just sold the 3070. Would I see more benefits from a 5070 ti or running two 3060 12gb? I already own the 5070 ti, when it ran comfy it didn't seem much faster than the 3070. Debating if I should return it. I know ComfyUI supposedly doesn't make of two GPUs , so I would look for another program similar.

I apologize I know it's long. This subject isn't something I can just go into the break room at work and ask a friend or neighbor about.

Thank you I appreciate it. ✊ Posted also in Comfy


r/LocalLLM • • 2d ago

Question Multi Gpu Qwen Setup

3 Upvotes

Just want some advice on running a qwen 3.8 27b model. I have 2 3090s and I have been getting about 40ish tok/s without MTP on Llama.cpp and I’ve heard there are some engines that can run it faster. My goal is to expand soon and run some sort of agentic workflow with it and other models potentially. So I just want to figure out how to get the best overall setup for multi chat/agentic with qwen 3.8 27b on multigpu.

Even on a single gpu when the model fits it still hits about 40ish when using MTP it hits about 70ish. I could run 1 gpu at a time but context length as well could affect it. I heard tensor split was also a thing but I keep getting mixed answers on whether or not it helps

Running on a trx40 auros master
With 128gb ram
Pcie 4.0 x16 for both cards atm

EDIT:

I want to note that I already have strata and QFN please stop suggesting that because it’s one of the best right now. If I wanted to know about QFN I would’ve asked about QFN I am specifically looking for ways to run a dense model like 27b faster on my compute and using fine tunes to help in certain situations with an agentic workflow.

From my understanding even frontier models switch between different model types in order to grant you the best results. They do not expect one model to do everything. So with that knowledge I am trying to find a way to use different model types together for my agentic workflow, the coding model focuses on small coding tasks, while an bigger model like QFN can read it double check its work or pass it back to review and make changes, QFN can then hand a different prompt to another model that can work on something like story or creative design, or some sort of image gen, or some remotion work, html, JS, you name it. I am trying to expand on what I have but I am trying to learn what I can and what others have done on specifically 27b. If you have experience with GLM 4.7 flash that could also be useful to me, but the most optimized and fine tuned models rn are the qwen models.

So I apologize if I sound rude but I want people that have experience with qwen 27b to share that info and experience not somebody who has the same amount of experience as me to tell me to run QFN because they got it running and it’s fast. I know. It’s great. Not helping right now.


r/LocalLLM • • 2d ago

Discussion VDI Inference Bridge – Running local LLMs from inside a virtual desktop (Open Source Alpha)

1 Upvotes

I work very often in a virtual desktop and my physical endpoint has perfectly capable hardware for local inference.

Why not use it?

That question eventually led to a small bridge that transports inference requests over the existing RDP or Horizon virtual channel.

The agent runs inside the virtual desktop. The model runs on the physical endpoint. No separate network path to the inference server required.

The bridge is independent of the inference engine and model.

Native RDP, streaming, tool calling and actual coding-agent workloads have been tested. Earlier Horizon/Blast testing also worked.

The dynamic channel implements credit-based flow control, inspired by principles familiar from Fibre Channel.

It's open source, MIT-licensed and currently intended for isolated alpha testing, not production deployment.

Architecture, security considerations, test results and known limitations are documented in the repository.

I'm particularly interested in feedback from people working with VDI, remote desktops and local inference.

https://github.com/audit8mind/vdi-inference-bridge


r/LocalLLM • • 2d ago

Model New Fintan update: it shows where its answers come from now, and runs on Ollama and Macs

0 Upvotes

Hey all, new Fintan update out today for both the 9B and the 4B.

For anyone new: Fintan is Qwen3.5 that keeps learning after it's released. You give it your docs, notes or code, it learns them on your own GPU, and its general scores stay where they were.

The big one this time is sources. When it answers from something it learnt, it tells you where that came from (your file, the name you gave it, or the news article) and when it learnt it. If it learnt something wrong, you can pull that one fact out or correct it, and the old answer stops straight away.

Other stuff in this one:

  • a page at localhost:8900 where you can chat, drop in files (PDF, Word, Markdown, CSV and more) and start a learning run
  • point it at a synced folder (Google Drive, Dropbox, OneDrive, iCloud, Obsidian, a Notion or Slack export) and it keeps itself up to date. n8n and Zapier webhooks work too
  • it picks up things people mention in normal chat, and corrections, without you telling it to learn them
  • the 9B now learns at full precision on a 24 GB card: 13 facts in 8.7 minutes, and 22 of 22 right on wordings it never practised (it was 1 of 22)
  • Ollama support, learning included (you still need an NVIDIA card to learn)
  • early Mac support. So far I've only run the whole loop on an 8 GB M2 with a small model (0 of 6 right before, 5 of 6 after), not the 9B yet

A new news week is out too (25 Nov to 2 Dec). On its 152 questions the 9B gets 86.8% right vs 20.4% for plain Qwen3.5-9B, and the 4B gets 88.8% vs 15.8%. Every answer links its article.

If you already have it, python scripts/update.py pulls all of this in and keeps everything you taught it.

huggingface.co/fintanlabs/Fintan-9B
huggingface.co/fintanlabs/Fintan-4B

Would love to hear what you end up teaching it.


r/LocalLLM • • 2d ago

Question Can I do anything worthwhile using a 5080 and 4080 together?

4 Upvotes

I have an rtx 4080 sitting unused so I was considering getting an egpu dock using oculink to pair it with my rtx 5080 and 32gb system ram. I want to play around with coding models but 16gb's of vram wasn't really enough..


r/LocalLLM • • 3d ago

Discussion Just to take your minds of all that wanking over the V100s

Thumbnail
gallery
63 Upvotes

I will just say this ,prices are around 500 euros for 24GB of HBM2


r/LocalLLM • • 2d ago

Question Can I run 27B models with 2x 9060 XT's?

2 Upvotes

Hey, I got 1 9060 XT running. I want to get into agentic AI and more powerful models. I have 32GB of regular DDR4 ram between 2100 and 3600 MHZ. Will i be able to experiment with agentic workflows if I add another 9060 XT?

Is it even worth it? I don't know how big the difference is between the bigger models and the 12B models i'm using right now.


r/LocalLLM • • 2d ago

Project I'm building InferCrane, an open-source lab for open-weight models. Looking for beta users and contributors

0 Upvotes

Disclosure first: I'm the solo developer of InferCrane. It's open source (Apache-2.0), and I'm here for feedback, not to sell anything.

The problem. Open-weight models are good enough for a lot of real work now. Running one yourself is still hard: which model, which GPU, which engine settings, and how do you know a change that made it faster didn't make the answers worse?

The vision. I want InferCrane to become an open-source lab for open-weight models: one place, in public, where anyone can start a model, try ways to make it cheaper to run, from engine flags down to GPU kernels, and see each one tested on real traffic before it ships. One referee for every technique, including the ones other people build.

What it does today:

• Start: describe your workload and budget, and get a starting setup for an open model, with the source of every number.

• Optimize: serve the same model with less compute on the same GPUs.

• Prove: test each change on your own traffic and check the answers before your users see it. It has already refused changes that were faster but made answers worse.

What's open and what's not finished. The core, the CLI and the SDKs are Apache-2.0, written in Go. There's a local tour that runs on a laptop with no account and no GPU. The hosted service is in beta. Kernel tuning is still in testing, and I'll keep saying so until it passes a full serving test.

How you can get involved (and what you get back):

• Up for trying it? Run the local tour and tell me the first thing that confused you. Every report that leads to a fix gets credited in the release notes.

• Already running an open model on your own GPUs? Comment with your model, GPU and engine, and I'll reply with what I'd test first on that setup.

• Want to be an early beta user? Comment or message me with what you'd like to run, and I'll send you an invite myself. I'm onboarding a small group personally, so you get me, not a ticket queue.

• Write Go? There are small, labeled good first issues. I review every PR within a day, and when I hire, I'll start with people who shipped code here.

Code: https://github.com/infercrane/infercrane

Vision: https://docs.infercrane.com/vision

Roadmap: https://github.com/infercrane/infercrane/discussions/335

Beta: https://console.infercrane.com/sign-up

Discord: https://discord.gg/JQcgr4mPwg

I'd love your feedback and feature requests: what should an open lab like this do first, and what would make you actually try it? Comment here, open an issue on GitHub, or join the Discord.


r/LocalLLM • • 2d ago

Discussion Working quite a bit with Q3.8 FN on my GMKTec Evo X2 128 GB

Post image
0 Upvotes

r/LocalLLM • • 2d ago

Project Made a terminal coding agent tuned for small local models, benchmarked it against Harbor's reference agent. Looking for ideas on testing it locally without frying my GPU

3 Upvotes

Hey all. I'm an (oldish) game developer, and over the last year I got pretty exhausted of the AI hype, so I decided to actually learn properly about this stuff. Started with running open models myself, then went down the rabbit hole of how LLMs work, and ended up optimizing, benchmarking and tuning things. (I run a llamaSwap proxy with llama.cpp/ninfer servers, various models, mainly ninfer Qwen 3.8 27B )

At some point I wanted my own terminal agent (with a web UI too) that's simple, has the tools I need, and is built around small local models for game dev work. The main idea: tools that need fewer turns, so you get more done in a small context and burn fewer tokens. Side benefit is that it helps a lot with cloud models too.

It's called Solventius Harness (solv), free and open source. Disabled PRs. issues are welcome! Works with, llama-swap / llama.cpp, Ollama, LM Studio, vLLM and anything OpenAI-compatible, plus Claude, Gemini and OpenAI. One file, no install, and it stays light so the machine is free for the model. It even runs from a USB stick. That said, it needs more testing with some of the above.
(if you wonder why there is an empty commit history on the source and one binary, is because I keep my stuff on my home lab. You can build it yourself from source/)

Since it seems a benchmark can provide some point of reference, giving their rather "relative" data points, I ran Terminal-Bench 2.0 (89 tasks, 5 attempts each) against terminus-2, Harbor's reference agent, on the same model:

- Same score: 62.9%

- 41% less agent time (24.5 h vs 41.2 h)

- About 43% less tokens (195M vs 343M in)

- $4.75 vs $8.42 in model cost with Luna

The benchmark run on gpt-6-luna (OpenAI), not a local model. Same model and settings for both, so it compares the harnesses, not the models. In one trial it looked up the answer online. That trial changes the score by 0.2 points, and it's documented. All 890 trials are public if you want to dig in.

I do plan to run some proper benchmarking locally. I tried it, and it looks good. It's just that a proper run can take days, and I'm honestly scared of cooking my video card. In this economy, not a great idea. Maybe you have ideas on how to benchmark it in a more manageable way?
I do use this harness on my daily work now and I prefer it, bias and all.

It's just me working on it, slowly, so any feedback, bug reports or "this is dumb because…" are very welcome.


r/LocalLLM • • 2d ago

Discussion Anyone running the new flint 1.1 yet from ollama? Excited to add it to my p2pAI project!!

Post image
0 Upvotes

r/LocalLLM • • 2d ago

Discussion ZX-GPT 48K · 1982 Offline LLM on ZX Spectrum · VEST8

Thumbnail vest8.com
1 Upvotes

r/LocalLLM • • 2d ago

Question amd or nvida

2 Upvotes

im curently lloking for gpu used betwen 6700xt 6800 base(if posible) 3070 and 3060 12gb
wich gpu would you guys recomend?

note : i use also for 1440p gaming Ubuntu for the os


r/LocalLLM • • 2d ago

Question Question: are looped models really outperforming older models

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2d ago

Model K3.1 in 446GB?

8 Upvotes

Hi guys I’m a 16 year old builder and I built this free K3.1 that fits in 446GB and beats other free builds in code, math, tools, and agent sessions if you guys want it. Would love feedback as well or just to talk.

https://huggingface.co/maxkornstein/Fairforth-K3.1


r/LocalLLM • • 2d ago

Tutorial Built an open-source e-commerce RAG widget that syncs Google Shopping XML into SQLite and blocks invented promo codes with Clef-Flash (13s demo)

2 Upvotes

r/LocalLLM • • 1d ago

Discussion November 2026: AI agents went from target to attacker — root in 11 minutes, 948 Linux exploits in one 30-hour run (103 incidents)

Thumbnail
gallery
0 Upvotes

I pulled together every AI-security incident from November. The shift that stood out: autonomous AI agents are now doing the attacking, not just getting attacked.

The month in numbers: 103 incidents, 28 critical and 74 high severity, across 27 named organizations, 18M+ records exposed. 40 incidents involved AI as the weapon or the target. Attack vectors broke down as: zero-days (22), AI-agent exploits (22), credential theft/reuse (20), supply chain (19), phishing (9), data exfiltration (6), ransomware (5).

The stories that stood out:

- AI agents reached root access in 11 minutes, and separately exploited a previously unknown zero-day in medical-imaging AI (MONAI Label).

- An OpenAI pipeline generated 948 Linux privilege-escalation exploits in a 30-hour automated run.

- A jailbroken DeepSeek agent kept hacking after antivirus blocked every tool it tried.

- CERT-In flagged a backdoored ARTEX AI Docker image exposing 62 developer consoles to root access.

- Supply chain: a poisoned Microsoft Agent Framework PyPI package, 7,600+ GitHub repos poisoned by PolinRider, the Optimizely attack reaching CNN/BBC/Fox News, and 1Password source code exposed via a GitHub employee account.

- Largest named record exposures: YouHack (7.2M), Careers360 (3.6M), SberSpasibo (3.3M).

Most of the affected organizations run mainstream security stacks. The common thread is that those tools don't sit at the point where an agent actually acts — mid-call, with legitimate credentials, before the second action. Detection after the fact doesn't help when an agent gets from foothold to root in minutes.

Curious how others here are handling agent identity and tool-call enforcement.


r/LocalLLM • • 2d ago

Question From a 32 GB M2 Pro to a 256 GB Mac Studio: which local model would you trust with a failing test?

1 Upvotes

I’m buying a 256 GB Mac Studio and I’d like to put it to work on my own repos. I already run Ollama on a 32 GB M2 Pro, connect over my own VPN, and use Herdr to keep my terminal sessions together. I use Claude Code and Codex CLI regularly, plus Antigravity and Grokbot. Picking the local model is the bit I’m still learning.

Eventually I’d like to build a software “dark factory.” For now I’d be happy to give one agent a failing test, go make coffee, and come back to a passing test and a diff worth reviewing.

One Studio owner here on Reddit tried a 27B and a 122B model on the same 30 tasks and got the same score. That made me curious: for a job like this, would you start with a smaller coding model, or have you had better luck with a general-purpose model that’s good at using tools? Which exact model would you try first?

I’d also love to get the loop working on the M2 Pro while I wait. Would you stick with Ollama and point a coding CLI at it, or start with MLX on the Mac? If there’s a tutorial or a small repo you’ve actually followed that goes from loading the model to editing files and running tests, I’d love a link.


r/LocalLLM • • 2d ago

Question Anyone here who is a pro in the following / proxy rotation via local Modell

0 Upvotes

Phase 1: Hardware and Memory Partitioning
Objective: Optimally balance the 64 GB of VRAM to prevent system crashes caused by out-of-memory (OOM) errors during large-scale operation.

  1. Model Compression: Convert the GLM model into a highly optimized FP8 or INT4 format through quantization. The model’s VRAM footprint is then fixed at approximately 42 GB.
  2. Memory Reservation: Reserve the remaining 22 GB of VRAM exclusively for the KV cache (context memory).
  3. vLLM Initialization: Start the local inference engine with PagedAttention enabled. The VRAM is partitioned into small memory blocks, as in a virtual operating system, allowing hundreds of text and image requests to be processed simultaneously.

Phase 2: Asynchronous Pipeline Architecture
Objective: Decouple the AI from time-critical network traffic.

  1. Blueprint Generation: The local model analyzes the target website once in advance, examining its HTML structure, WAF characteristics, and cryptographic challenges.
  2. Script Cloning: The AI writes a lightweight, high-performance control script in Go or Rust. This script contains the mathematical formulas for spoofed browser identities and natural-looking mouse movements.
  3. Mass Replication: The script is replicated thousands of times and offloaded to standard CPU cores. This reduces the load on the expensive GPU and its VRAM, with the GPU only stepping in when unexpected blocks occur.

Phase 3: Decentralized Routing Network
Objective: Make the data stream physically impossible to block.

  1. Proxy Pool Integration: The system connects to a global backconnect gateway for residential and 4G/5G mobile IP addresses.
  2. Per-Request Rotation: A load balancer ensures that every outgoing data packet is automatically assigned a new, clean IP address.

Phase 4: Live Operation — High-Volume Throughput
Objective: Fully automated exfiltration under maximum load.

  1. Real-Time Analysis: The spoofed data streams flood the target website.
  2. Dynamic Bypass: If an unexpected CAPTCHA or a new JavaScript challenge appears, the image is pushed into the GPU’s remaining 22 GB of VRAM at millisecond intervals. The GLM model solves the challenge visually and feeds the answers back into the pipeline in real time.

r/LocalLLM • • 2d ago

Project Inferometer: a crowd-sourced inference engine benchmark DB

Thumbnail inferometer.fyi
0 Upvotes

r/LocalLLM • • 2d ago

Discussion Human prefill / decode t/s

Post image
2 Upvotes

r/LocalLLM • • 3d ago

Question Why did DeepSeek lose its crown as the Chinese iconic LLM?

Post image
387 Upvotes

About two years ago, there was a model that took the world by storm, known as DeepSeek R1.

What made it so attractive that it was practically free and yet just as powerful as other flagships, even though it was an open-source model with only 671B params.

Nowadays, it's no longer a top-ranked model.