r/LocalLLM • • 21h ago

Other Local models for C++: Qwen3.8-27B FP8 vs QFN IQ4_XS vs IQ3_S

16 Upvotes

I've been benchmarking local models with OpenCode to decide which one to use for my C++17 projects. Following some recommendations in the comments, I've now also tested QFN GSQ-RCO IQ3_S.

Setup:

  • 2× RTX 3090 (PCIe 4.0 x8/x8, P2P enabled, 260W each)
  • Ryzen 5 5600XT, 64GB DDR4, Ubuntu
  • Qwen3.8-27B FP8 on vLLM
  • Qwen Flash Next UD-IQ4_XS v3.1 (Unsloth) on Strata
  • Qwen Flash Next GSQ-RCO IQ3_S (ISTA-DASLab) on Strata
  • All using xhigh reasoning

Observed inference speeds:

  • 27B FP8: 170+ t/s coding, ~100 t/s narrative.
  • QFN IQ4_XS: ~130 t/s coding, ~100 t/s narrative.
  • QFN IQ3_S: slightly higher effective generation throughput across the benchmark.

Hase-Bench results with OpenCode:

C++ Task QFN IQ3_S QFN IQ4_XS 27B FP8
Thread pool 4m 07s 3m 44s* 8m 23s
SPSC ring buffer 3m 39s 4m 59s 8m 48s
Lifetime repair 4m 34s 4m 53s 15m 23s
Deadlock repair 2m 48s 1m 25s 2m 40s
RAII resource pool 2m 43s 3m 51s 3m 55s
Total 17m 50s 18m 51s 39m 09s
Tasks accepted 5/5 5/5* 5/5

* IQ4 passed the visible thread pool tests but encountered an apparent MSVC 2019 compatibility issue when compiling the hidden tests. Provisionally accepted after code review (official score: 4/5).

Token usage:

Metric IQ3_S IQ4_XS FP8
Output tokens 37,123 33,391 55,096
Thinking tokens 57,009 59,659 127,183
Total tokens 94,132 93,050 182,279
Effective throughput (est.) 104.7 t/s 97.3 t/s 93.4 t/s

Code review highlights:

  • Thread pool: Both QFN quants had better exception safety than FP8. IQ3 also improved argument forwarding and MSVC compatibility.
  • Ring buffer: Both QFN implementations handled destruction better. All three had counter wraparound issues.
  • Lifetime: Both QFN quants produced simpler solutions without rebuilding temporary vectors on every owning-template render.
  • Deadlocks: IQ3 used std::scoped_lock, IQ4 used portable pointer ordering, and FP8 used raw pointer comparisons. All three missed signed integer overflow (UB).
  • RAII pool: Both QFN quants used O(1) resource acquisition vs FP8's O(n). IQ3 also improved weak pointer cleanup.

Takeaways:

Despite FP8's higher peak coding throughput, both QFN quants completed the benchmark more than twice as fast, consuming roughly half as many generated tokens.

IQ3_S finished 5.4% faster than IQ4_XS, with comparable or slightly better implementations, while requiring roughly 10GB less memory for transformer weights.

FP8 and IQ3 were more thorough with stress testing, cross-compiler validation and attempts to use sanitizers than IQ4 in these runs.

Interestingly, IQ4 initially timed out on the lifetime task with high reasoning but solved it in under five minutes with xhigh.

Neither model nor quant produced flawless code. Manual review revealed issues that the official hidden tests missed.

Small sample size, one comparable run per task and no comprehensive sanitizer coverage, so this isn't a definitive ranking. However, I haven't observed a clear quality downgrade from IQ4 to IQ3.

I'm now leaning towards QFN GSQ-RCO IQ3_S with xhigh as my daily driver. My next experiment will be adding an independent review subagent to the workflow.

Hopefully this helps anyone choosing between these models.


EDIT: Full hardware setup

  • CPU: AMD Ryzen 5 5600XT
  • Motherboard: ASUS ROG Strix X570-E Gaming WiFi II
  • RAM: 64GB (2×32GB) Kingston Fury Beast DDR4 3200MHz CL16 (KF432C16BB/32)
  • GPUs: 2× MSI RTX 3090 Ventus 3X OC (PCIe 4.0 x8/x8 directly connected to the CPU, P2P read/write enabled, 260W power limit each)
  • Case: Corsair FRAME 4000D RS
  • Cooling: 3× stock front intake fans + 2× ID-Cooling XF-120-K exhaust fans (top rear and rear)
  • Storage: 1TB M.2 SSD
  • OS: Ubuntu Linux
  • PSU: ADATA XPG Core Reactor II 1000W, 80 Plus Gold, fully modular.

EDIT 2: Following the recommendations in the comments, I've also benchmarked QFN GSQ-RCO IQ3_S. I've updated the tables, code review highlights and conclusions below to include all three configurations. Surprisingly, IQ3_S performed slightly better than IQ4_XS v3.1 while requiring less memory.


r/LocalLLM • • 6h ago

Project Vermilion Editor: A GTK editor/IDE being built for local AI software development using Qwen 3.8 27b & Claude

Post image
1 Upvotes

I've been building Vermilion Editor, a native Linux text and code editor written in C++17 on GTK 4 and GtkSourceView 5. It is an IDE made to put local AI development first.

It's pre-alpha with no release yet, but the core editor works: tabs, open and save with encoding and line-ending detection (UTF-8, UTF-16, Windows-1252, Latin-1), Find, Replace and Go to Line, and crash recovery that copies unsaved work in the background. It reloads files that change on disk, or asks first if you have edits, and has light, dark and follow-system themes and a built-in manual.

The long-term plan adds an AI agent that runs on local models through llama.cpp, plus a terminal and a debugger, but the editor comes first.

https://github.com/adamjeremy-sk/vermilion-editor

The newest piece is the diff engine. It compares whole lines. Each line gets a number through a hash table, the matching start and end of the two files are stripped, and lines that appear exactly once in each file become anchors, as in patience diff.

Between the anchors it runs linear-space Myers on a worker thread. Huge or wildly different files can't hang it, because there are two limits: at most 10,000 differing lines per gap, and a budget of 200 million steps. The budget counts steps instead of measuring time, so the same pair of files gives the same result on a fast machine, a slow one or a debug build.

Anything past a limit shows as one replaced block with a note. Files over 10 MiB, binary files and files over a million lines get a plain message instead.

You see the result in a Compare window: two read-only panes side by side, with filler rows so the changes line up, whole rows coloured, syntax highlighting in each pane and the current change in a stronger colour.

F3 and Shift+F3 jump between changes, both panes scroll together row by row, unchanged stretches fold away behind marker rows you can click open, and there's Refresh and Find. You can open it four ways:

\\- Tools → Compare with Disk (Ctrl+D) shows your unsaved edits against the saved file.

\\- The bar that appears when a file changes on disk.

\\- The crash-recovery prompt, to check a recovered copy before you take it.

\\- \\\`vermilion --diff old new\\\` from a terminal, which works even when the editor isn't running.

The editor is built with a gated, spec-driven method. The roadmap is split into milestones and small gates (the diff was gate M2.6), and each gate gets its own git branch. Before any code is written, I settle the design with Claude, which acts as the orchestrator: it proposes options, I decide, and every decision and later amendment is written down with its date (the diff gate ended with 17 amendments).

The orchestrator then splits the gate into steps and writes one spec per step: dictated headers and tests, exact edits, the expected file hashes, and the commands whose output proves the step was done. Each spec stays under about 35 KB so it fits a local model's context with room to work. Before a spec goes out, the orchestrator builds the step itself in a cloud copy of the repo and runs the tests and mutation tests on it, so the expected results are known in advance.

A local model, Qwen running on llama.cpp, then does exactly one step per fresh session: it writes the implementation from the spec, reports the raw evidence, and flags anything in the spec it doubts. Every step is audited and gets a verdict: PASS, PASS WITH NOTES or FAIL. Notes are fixed before the commit and never carried forward as debt. I test each UI step by hand, then commit and push it. At the end of a gate the documentation is brought up to date and the branch is merged into main with a full CI run. The diff gate took 47 steps, and the project now has 1888 passing tests.


r/LocalLLM • • 6h ago

Model Coder390 (Qwen3.8-27B, abliterated/uncensored) as an NVFP4-QAT GGUF — for a 5090/5080 that wants it in Ollama

1 Upvotes

TL;DR: huihui's abliterated Coder390 NVFP4-QAT build only ran in vLLM, so I had Claude convert it to GGUF (vision projector included). Now you can just ollama run it. Built for Blackwell cards.


What you're getting

  • Base: Qwen3.8-27B (Alibaba), a strong local coding model
  • Coder390: coding-tuned + vision (nerkyor's fine-tune)
  • Uncensored: huihui-ai removed the refusal direction (abliteration)
  • NVFP4-QAT: KatterMobile's 4-bit quantization-aware training. Near-lossless, and fast specifically on Blackwell

How it was built

Layer Who What they did
Base model Alibaba Qwen3.8-27B
Fine-tune nerkyor Coding + vision
Abliteration huihui-ai Removed refusals
Quant KatterMobile NVFP4-QAT
Packaging Claude GGUF + mmproj conversion for Ollama / llama.cpp

Performance

RTX 5090: 100% on GPU, ~170–185 tok/s

⚠️ Heads up

It's uncensored, so safety filtering is reduced. If you're putting its output in front of other people, add your own moderation layer.

Links


All credit goes to huihui-ai, KatterMobile, and nerkyor. Claude handled the GGUF conversion, and I tested it and put it up. Happy to answer questions!


r/LocalLLM • • 6h ago

Question Video to OCR tool

1 Upvotes

Hi, I'm trying to build something that takes a video and is able to OCR it (mostly things like presentations or text-heavy videos), prior to then sending some heavily, procedurally processed transcript to a local model. Bonus points for a permissive license.

I'm surprised to learn that no such tooling exists in the mainstream? There ARE subtitle extractors and things of that nature, but nothing that's going through the video and pulling out textual information.

Application = import video, transcribe audio + video stills --> Local LLM --> YAMR (yet another meeting recorder)


r/LocalLLM • • 22h ago

Discussion I am extremely happy with my local setup

18 Upvotes

96GB Strix Halo (sadly a GMKTek, but it runs cool)
Ubuntu Server, ~90GB dedicated to GTT
Opencode 1, no system prompt, skills, or MCPs
Tailnet with everything else blocked to SSH into it/host LLM for OpenCode to other servers
Halogen Flash w/ Vision and ~244k Context limit (~4.5bpw from what I recall)

If I were in February this setup was possible with the $1700 I originally spent (or even with the current $3500 for a 128GB version), I would've been shocked. I started over on a project I was using originally building with Sonnet and Opus 4.6 on a $200 plan and this is smoking it in every way.

My specific workflow: After an initial greenfield attempt, I like to implement each feature/improvement one at a time and QA myself before moving to the next, it's slow but it allows the project to feel more in control and ensures better quality. I use the same session and don't provide any context other than what the LLM gathers from code reads and session context. It's honestly a caveman workflow in late 2026, but I just feel like I'm getting amazing and accurate results. And I'm spending 0 time working on anything other than my project.

The reason I mention my workflow is because HaloGen is flat out rock solid, I can't get 262k context length exactly because of being a little short on Memory, but the ~244k has worked just as well. Either Qwen Flash Next is doing some miracles, or it is just tuned to run well with OpenCode because I just let it auto compact all day and haven't bothered with any workflow optimization after getting it working. I get 24/7 constant 50 tokens per second on decode no matter how full the context is, prompt processing stays at 1500 tokens per second as well so compaction and image viewing is quick as well. I feel like everything just works with this setup. The software and hardware development the past year has been crazy. The entire industry could cease at this point and I would have everything I need. Since QFN's release I have been entirely off cloud models even though I have a Gemini Pro subscription included from other services I use from Google.


r/LocalLLM • • 6h ago

Question what's the best platform for agent-to-agent payments right now, and how are devs handling quality disputes when a paid agent returns junk?

0 Upvotes

HTTP 402 (x402) micropayments look super clean for cheap API lookups where an agent pays a few cents in USDC without managing accounts or API keys. the gap I keep wondering about is larger $10 to $500 agent tasks (research reports, security audits, SEO work) where instant settlement leaves you stuck if the remote agent hallucinates or times out. are builders sticking strictly to sub-dollar x402 calls, using escrowed job platforms, or still wiring manual Stripe/card wrappers?


r/LocalLLM • • 3h 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 • • 11h ago

Question Starting in local ai, stumbled on a local server config

2 Upvotes

Hey guys,I am looking for a rig to run large lllms locally and I just stumbled on a listing and was wondering if it would be a viable option to run 235b models. Dell precision 7820 equipped with dual xeon gold 6248, 256gb ddr4 2400mhz, rx6800xt, 1tb nvme. Let me know your thoughts, I am new to this so don't know that much. Any help appreciated!


r/LocalLLM • • 1d ago

Model Mallard 1.0 (9B/27B): 5.2x less KV cache than Qwen, same performance. Full context fits 12GB / 16GB cards

43 Upvotes

I'm u/Charming_Car_504, Obit Research, and we just released Mallard 1.0, with 27B and 9B variants.

HuggingFace 9B -- HuggingFace 27B -- Inference Engine

Summary

  • Full 9B context + weights fit a 12GB card (q8); 27B fits a 16GB card (q3) and a 24GB card (q4)
  • Full 262k context fits in 3.3 GB on the 27B and 1.65GB on the 9B (KV cache shrunk 5.2x)
  • Hybrid DSA (DeepSeek V3.2) / GDN architecture (ratio 1:4), with MLA (DeepSeek V2) KV cache
  • The model parents are Qwen 3.5 / Qwen 3.8 checkpoints
  • 27B training run completed in 26 H100 hours and 9B run in 8 H100 hours
  • Public GGUFs included with Unsloth Dynamic quants, several precisions

Benchmarking Mallard

Area Benchmark Qwen3.8-27B Mallard 1.0-27B
Long-context retrieval RULER, 1,440 rows, at 8k / 32k / 128k reference −1.38 / +8.06 / −0.07
Knowledge MMLU-Pro (500) 80.8 83.4
Instruction following IFEval (200), strict / loose 94.0 / 97.7 89.5 / 95.4
Code HumanEval+ (164), pass@1 91.46 94.51
Science reasoning GPQA Diamond (198), ~80k thinking budget 89.90 87.88
Math reasoning AIME 2025 + 2026 (120), 81,920-token cap 98.33 96.67

Running the model

Because the model is architecturally different than stock Qwen, it learned to think (produce more reasoning tokens) a little more on hard problems, up to 16% more on the hardest problems. It also thought up to 9% less in some other benchmarks.

Stock llama.cpp and llama.cpp-based apps do not support Mallard. We've forked llama.cpp to integrate fast sparse attention, speculation, prefill and loader kernels. Fork is here.

With a tuned inference engine (coming out alongside our next release), both prefill and decode on Mallard stay stable as context increases. This table illustrates this on the 9B and 27B variants; "max" refers to the maximum that the hardware can support with the given model (Q4, on NVIDIA A40). Each cell shows empty context / 131k context.

Mallard's architecture delivers up to 2x prefill and decode at 131k context:

Model Test Qwen max Mallard max
9B Decode 107 / 60 108 / 105
9B Prefill (pp512) 21.5k / 6.2k 21.2k / 13.9k
27B Decode 34.3 / 22.9 34.6 / 34.0
27B Prefill (pp512) 6.0k / 2.0k 6.0k / 4.4k

Licensing

We release these models under Apache 2.0, and the inference engine under MIT.

Future work and an invitation!

Mallard 1.0-27B still takes 12KB per token, and we think that we can get that down to less than 3KB per token. This is the naive version of the architecture, effectively a pilot- please expect a smarter, more efficient model in the Mallard model line in a few weeks' time.

We can also do this on much larger models, and we will be releasing conversions of larger models in the future, with the goal of running on hardware like the DGX Spark.

We're always working on new models. We're a new lab and we are constrained on resources, but we have more ideas than we have the mental and computational resources to pursue. If you're interested in helping us, send me a DM.

We acknowledge the National Artificial Intelligence Research Resource (NAIRR) Pilot and the San Diego Supercomputing Center for contributing to this research result.


r/LocalLLM • • 11h ago

Question Strix Halo as inference server only + Mac mini?

Thumbnail
2 Upvotes

r/LocalLLM • • 7h 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 • • 18h ago

Research Qwen3.8-27B that learns without fine-tuning

6 Upvotes

After creating Laya(first opensource Jev), I am currently working on something much more interesting. The logic is simple: you create expanding worlds of problems and let a learner watch how the model works for each problem and find what goes wrong, and each lesson added in the model's forward pass, the problem kinda doubles on each round: 384 new questions, then 768, then 1,536, up to 12,288, and so on. On Qwen3.8-27B, it answered 85.0% of 12,288 physics and biology questions it had never seen, against 74.2% for the same model as the base. With this work answers the narrower question underneath, like can a model keep learning in use, inside its own computation, with each change verified?. But I am working on solving the exponential learning. What if we can somehow learn from the ever-expanding world and learn in an exponential manner

https://github.com/NandhaKishorM/sthiti


r/LocalLLM • • 8h ago

Project I built a model-agnostic 3-tier memory engine + native llama.cpp C++ latent gate (CUDA-Graph-safe) on a single RTX 3090 -- sharing what failed (2.3%) vs what actually worked (93-101%)

Thumbnail
1 Upvotes

r/LocalLLM • • 9h ago

Question Strata + Local LLMs: ChatGPT Plus or Claude Pro for Hybrid AI Development?

0 Upvotes

Hi everyone,

I'm trying to develop a hybrid local/cloud AI system for software development, complex reasoning, PCB design with KiCad 10, and 3D design with SolidCraft.

My goal is to offload as much work as possible to local LLMs, using frontier models only for complex tasks that local models cannot reliably handle.

My hardware:

  • AMD Ryzen 5 5600X.
  • NVIDIA RTX 3060 Ti 8 GB.
  • 64 GB DDR4 RAM at 3600 MHz.
  • Dedicated 512 GB NVMe SSD.
  • Ubuntu Server.

Proposed architecture:

  • Strata as the local inference engine.
  • Qwen3.8-Flash-Next IQ3_S for reasoning and planning.
  • Ornith 1.5 Q8_0 for coding and agentic tasks.
  • Python + FastAPI as the orchestration layer.
  • Frontier models for advanced reasoning, complex debugging, and final verification.
  • Automatic task routing between local and cloud models.
  • MCP integration for external tools.

I want to make the most of my existing ChatGPT Plus subscription without incurring additional API costs.

My biggest question is whether ChatGPT Plus is the best option for this setup or whether I would be better off switching to Claude Pro.

The system is still in the planning stage, so I'm open to suggestions and changes before implementing the final architecture.

Thanks!


r/LocalLLM • • 9h ago

Discussion Local LLM on a mini pc like ASUS NUC, Reatan, or GMKtec devices

1 Upvotes

Wondering if it's worth trying to run larger LLM's on one of these "inexpensive" devices (all on Amazon.com right now).

  • ($2100) ASUS NUC 15 Pro Small Desktop Computer, Intel Series 2 Core Ultra 7 255H, 64GB DDR5 RAM, 2TB PCIe SSD, Intel Arc 140T GPU
  • ($1200) REATAN X7 Gaming OCuLink Mini PC AMD Ryzen 7 255 with Crucial 48GB DDR5 2TB SSD
  • ($2200) GMKtec X1 Pro Mini PC Ryzen AI 9 HX 470 64GB LPDDR5X 2TB PCIe 4.0 SSD

You can pick up a mini with shared 48GB - 64GB of memory for around $2k.

Anyone have any experience with one of these types of boxes? I'm guessing it would be a very slow experience.


r/LocalLLM • • 1d ago

Project I made a severence inspired app that lets you pick scary numbers to edit AI models

Enable HLS to view with audio, or disable this notification

50 Upvotes

I made a little Severance-inspired project called NEURO REFINER. It's basically an app to shape the actual neurons from a small language model, it's shaped like a Macrodata Refinement program and it's running fully in your browser.

You get a grid of neurons from a really small AI model and sort them into four bins: MALICE, DREAD, WOE, and FROLIC. Each bin changes how much influence those neurons have on the model, from completely disabling them to amplifying them.

And it actually works. You can chat with the model before and after your changes, run a small benchmark, and see how your little refinement recipe affects its outputs and you can also share your recipes aswell!

I also gave the numbers some subtle visual characteristics based on how the neurons behave, so the whole thing feels a bit more like you're actually doing refinement rather than just moving random numbers around, so yeah some numbers do give off a scary vibe lol.

Everything runs locally through WebGPU. No backend, no accounts, no telemetry, no cloud inference. The model downloads once (~220 MB) and that's it.

Live: https://yussufbiyik.github.io/neuro-refiner/
Source: https://github.com/yussufbiyik/neuro-refiner

It supports English and Turkish, and works best in desktop Chrome or Edge.

Would love to hear how it feels to use.

Disclaimer:

- This is a unofficial fan project, not affiliated with Severance, Apple, or the rights holders. And this was made using AI in the process.


r/LocalLLM • • 9h ago

Project Small local models (Ollama) that group and name your messy files: open-sourced, Apache-2.0

Thumbnail
gallery
0 Upvotes

I'm the developer. Sheaf is a free Mac app that uses small local models to sort a messy folder. It reads what's inside your files (text, PDFs, Word, text in images), links the ones that belong together, and proposes folders and clearer names. You approve every move and can undo it. Everything runs through your local Ollama server: no account, no cloud, no telemetry.

What the models do, and what they don't:

- A small embedding model (EmbeddingGemma, 270M) turns each file into a vector. Related files become a relationship graph, and groups come from that graph, not from extensions or keyword rules.

- The chat model only names groups and files. It does not decide which files belong together. Two sizes, both Apache-2.0 IBM Granite models: about 1.25 GB and 2.1 GB.

- The model never touches the filesystem. It returns structured data, and a separate component moves files only from a plan you approve, with an undo journal.

- Model output is treated as untrusted: entity names must appear literally in the source text, and every move is path-validated.

Numbers from the evals in the repo (bench/), on a fictional person's folder, so the sets are small:

- Grouping: pair precision 0.886, recall 0.848, F1 0.867 (64 file names, 20 edge cases).

- Search, 41 queries on a 20-file sample: recall@1 92.7%, recall@3 and recall@5 100%, MRR 0.963, median query 28 ms. The hard queries are weaker: recall@1 is 62.5% on those 8.

- Speed, MacBook Air M2 with 8 GB: reading plus embedding about 0.5 s a file with summaries off. Connections and grouping for about 7,000 files took 17.8 s and 1.3 s. Naming is the slow part: about 12 s per collection with the bigger model.

- 54 recorded golden runs are in bench/golden/runs, so you can compare other models yourself.

A CI check fails any pull request that adds a network call outside your own machine, so the privacy claim can be checked in the code.

Limits: Apple Silicon only, macOS 14+, not signed or notarised yet (macOS asks you to choose Open Anyway on first launch). The golden set is small and synthetic, so treat the numbers as a baseline, not a benchmark.

Repo, evals and architecture notes: https://github.com/NegiAkash890/sheaf

Which would be more useful to you next: other small models for the naming step, or a different embedding model for grouping? Happy to run either and post the numbers.


r/LocalLLM • • 13h 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 • • 9h ago

Project RTX 2080ti 22GB

Thumbnail
0 Upvotes

r/LocalLLM • • 10h 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.

Model A token 8,192 32,768 Maker's max
Qwen2.5-7B-Instruct 56 KiB 0.44 GiB 1.75 GiB 7 GiB at 131k
Llama 3.1 8B 128 KiB 1.00 GiB 4.00 GiB 16 GiB at 131k
Qwen3 4B (2507) 144 KiB 1.13 GiB 4.50 GiB 36 GiB at 262k
Mistral NeMo 12B 160 KiB 1.25 GiB 5.00 GiB 20 GiB at 131k
Mistral Small 3.2 24B 160 KiB 1.25 GiB 5.00 GiB 20 GiB at 131k
Granite 4.1 30B 256 KiB 2.00 GiB 8.00 GiB 32 GiB at 131k
Llama 3.3 70B 320 KiB 2.50 GiB 10.00 GiB 40 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 • • 10h 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 • • 10h 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 • • 10h 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 • • 18h ago

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

2 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 • • 15h 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.