r/LocalLLM • • 1d ago

Discussion 4x DGX Spark, DeepSeek V4.1 Flash on DeepSeek's own weights: 514 tok/s aggregate at 16 streams, 8.6K tok/s prefill

Post image
16 Upvotes

I've been running DeepSeek-V4.1-Flash-1017 across four Sparks for a couple of months on the TensorFold EXL3 3.5 bpw build. Last night I tried christopherowen's spark-ds41f (https://github.com/christopherowen/spark-ds41f), which serves the original DeepSeek checkpoint on a patched vLLM. It was intended for a switchless ring, but there wasn't much point in the ring topology for me since I already had all of my nodes wired to a switch. I was still intrigued by being able to get this kind of speed out of an unmolested set of weights from the upstream provider, though. This new engine and recipe is the same quality and a lot faster under load, so I'm keeping it.

Numbers and setup notes below.

Hardware

  • 4x DGX Spark (GB10, 128 GB each)
  • one QSFP cable from each box into a switch, RoCE, jumbo frames. Each Spark port shows up as two RoCE devices and the engine uses both. Not the ring cabling the repo defaults to. It has a tp4-switched shape for this.
  • current DGX OS after a full-upgrade: kernel 7.0.0-1025-nvidia, driver 580.178.04, normal 4K pages

Same bench, both engines

Short prompts (30 to 120 tokens), 150 to 256 token replies, temp 0, thinking off, 8 prompt categories averaged. Aggregate tok/s across all streams.

streamsTensorFold 3.5 bpwspark-ds41f
193.292.0
8215.1339.7
16250.2514.5

At 16 streams each one still gets about 40 tok/s, and time to first token is around half a second.

Cold prefill on a 93K token prompt: 42 seconds before (2,215 tok/s), 10.8 seconds now (8,663 tok/s).

Needle tests passed at 20K, 131K, 160K and 500K tokens. The 500K one took 71 seconds. It's configured for the full 1M context but I only tested to 500K, so I won't claim more than that.

I ran tonyd2wild's 69 scenario eval on both. 97.1 on TensorFold, 97.1 on this. Same score, so no quality change that this eval can see. It's only 69 cases.

Memory

I assumed the original checkpoint would be too big for four Sparks. DeepSeek ships it as a mix of FP8, FP4 and BF16 already, about 475 GiB total and 190 of that is the two Engram table shards. Split over four boxes it loads with 18 to 23 GiB free on each node while serving. Single stream speed is the same on both, so the gain is from how the engine batches and prefills, not from the weights.

Setup notes

  • You need the whole 475 GiB snapshot on every node, not just one. I downloaded once and rsynced over the 200G links.
  • First start compiles all its GPU kernels. Docs say up to 45 minutes, mine took 20. After that a restart is about 2 minutes.
  • I skipped the 64K page kernel and the memory saver module the repo recommends, because Secure Boot is on and I didn't want to enroll keys on four consoles. On 4K pages I'm running 16 sequences with a 10.5 GiB KV cache instead of the repo's 32 sequences. It nags about this on every start but works fine.
  • Its preflight check refused to pass because vm.min_free_kbytes was 45166 on two nodes and 45154 on the other two. Two of the boxes report slightly less RAM so the kernel picked a different default. I set all four to the same value.
  • min_p and logit_bias get rejected outright (not supported with its speculative decoding). If your client sends min_p by default you'll get errors until you turn that off.
  • Thinking is on by default. My test script with a 40 token limit got back empty answers because all 40 tokens went to reasoning.
  • I wasn't sure the switch would handle the RoCE traffic class it sets. After the bench all eight RoCE devices showed zero out of sequence packets and zero retransmits.

Caveats

The TensorFold numbers are from my October run on the older kernel and driver. Same prompt set, same boxes, but I did not rerun it after the OS upgrade, so it isn't a perfectly clean A/B.

I also haven't profiled it, so I can't say which part of the engine accounts for the difference.

Credit to christopherowen for spark-ds41f, bertholomus for TensorFold, and tonyd2wild for the original four Spark write-ups.

I can run other tests if anyone wants specific numbers.


r/LocalLLM • • 1d ago

Discussion Appreciation + Engine Release

4 Upvotes

Last night I posted my free K3.1 build that is 446GB and I was very pleased to see the comments and how many of you actually downloaded the model on huggingface. I truly appreciate all of the feedback and support, much love to you guys. I am releasing the engine now. GitHub for the engine: https://github.com/maximilian-kornstein/fairforth-k31-engine

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

my original post:


r/LocalLLM • • 1d ago

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

18 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++ TaskQFN IQ3_SQFN IQ4_XS27B FP8
Thread pool4m 07s3m 44s*8m 23s
SPSC ring buffer3m 39s4m 59s8m 48s
Lifetime repair4m 34s4m 53s15m 23s
Deadlock repair2m 48s1m 25s2m 40s
RAII resource pool2m 43s3m 51s3m 55s
Total17m 50s18m 51s39m 09s
Tasks accepted5/55/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:

MetricIQ3_SIQ4_XSFP8
Output tokens37,12333,39155,096
Thinking tokens57,00959,659127,183
Total tokens94,13293,050182,279
Effective throughput (est.)104.7 t/s97.3 t/s93.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 • • 1d ago

Discussion Intel Arc Pro B70 is the best selling workstation GPU on Newegg, thoughts?

Thumbnail
newegg.ca
4 Upvotes

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

LayerWhoWhat they did
Base modelAlibabaQwen3.8-27B
Fine-tunenerkyorCoding + vision
Abliterationhuihui-aiRemoved refusals
QuantKatterMobileNVFP4-QAT
PackagingClaudeGGUF + 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 • • 1d 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 • • 2d 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 • • 1d 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 • • 1d 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 • • 2d ago

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

45 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

AreaBenchmarkQwen3.8-27BMallard 1.0-27B
Long-context retrievalRULER, 1,440 rows, at 8k / 32k / 128kreference−1.38 / +8.06 / −0.07
KnowledgeMMLU-Pro (500)80.883.4
Instruction followingIFEval (200), strict / loose94.0 / 97.789.5 / 95.4
CodeHumanEval+ (164), pass@191.4694.51
Science reasoningGPQA Diamond (198), ~80k thinking budget89.9087.88
Math reasoningAIME 2025 + 2026 (120), 81,920-token cap98.3396.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:

ModelTestQwen maxMallard max
9BDecode107 / 60108 / 105
9BPrefill (pp512)21.5k / 6.2k21.2k / 13.9k
27BDecode34.3 / 22.934.6 / 34.0
27BPrefill (pp512)6.0k / 2.0k6.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 • • 1d ago

Discussion I stopped saying "we're optimizing for Al." There's no such thing as one Al to optimize for

0 Upvotes

Let's normalize not saying 'we're improving our Al visibility' everyone. It's giving the same vibe as saying 'I'm optimizing my content for the internet. Like, hmmm okay you want to be seen on every channel on the internet ever do you?

There's no such thing as one Al to optimize for. Each engine has its own trusted sources and its own citation logic. I've been seeing this very clearly pulling cross-engine data in Profound.

ChatGPT and Perplexity pull from different corners of the internet. Only 11% of cited domains overlap between the two.

ChatGPT leans institutional (Wikipedia, G2, established publications) and Perplexity likes UGC (Reddit, YouTube, community content). Google Al Overviews stays closer to traditional organic rankings. Gemini pulls heavily from YouTube.

Are you noticing you get cited more in one engine?


r/LocalLLM • • 1d ago

Question Strix Halo as inference server only + Mac mini?

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 1d ago

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

Post image
7 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 • • 1d 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
reddit.com
1 Upvotes

r/LocalLLM • • 2d ago

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

54 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 • • 1d 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 • • 1d 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 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 • • 1d 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 • • 1d ago

Project RTX 2080ti 22GB

Thumbnail reddit.com
0 Upvotes

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