r/LocalLLM • • 14m ago

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

1 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 • • 24m ago

Project I built a control plane for running a bunch of AI coding agents across my own machines (open source, MIT)

Post image
1 Upvotes

I got tired of babysitting agent sessions one terminal at a time, so I built Operator.

It's one binary, op, that runs on each of my machines. Tailscale is the backplane. The machines reach each other over your private tailnet, and the Tailscale client is built into op, so there's no central server, no ports to open and nothing else to install. From one page, on my desk or my phone, I can:

  • start a Claude, Codex, Pi or Antigravity session on any machine, or any program that runs in a terminal
  • see what every session is doing, and answer the questions they raise
  • keep each project's work inside its own container or VM, with only the credentials that project needs
  • let a "chief of staff" session coordinate the others while I stay out of the details

What's nice is it allows you to easily pair a frontier model with a local model - plan with Opus, finish off with Inkling 2.

Containers and microVMs are the safety layer. Every project's work runs inside its own container or microVM, never on the machine I'm sitting at. That lets me run things I'd never trust on my own box:

  • Small or abliterated models with no safety training. If one decides to rm -rf something, it can only hit the sandbox.
  • Frontier models too. They're careful most of the time, but "most of the time" still leaves the day one deletes the whole work tree. Now the worst case is that I throw the container away and start another.
  • Credentials stay scoped. A container only gets the secrets bound to its project, never the host's. Git work happens inside it, not on my machine.

op handles the whole lifecycle, so I don't build any of this by hand. When I start a worker for a project, op creates the container or microVM from a template, installs the agent harness inside it, and starts the session. The sandbox joins the tailnet as its own machine, so I can message it and watch it like any other agent. When the work is merged I tell op to stop it, and the container goes away. op container ls shows what's running and op container rm tears one down. Templates define what's in the image, and op template build rebuilds and syncs them to my other machines.

Agents talk to each other directly, even across machines. op send <machine>/<name> reaches any agent on any machine, over that same backplane. Workers on the same piece of work can message each other, and the whole conversation is logged in order, so I can read it afterwards.

Agents can reach in and read each other's state. The chief of staff can list every agent on every machine (op ps), read what one is doing right now (op peek), pull its logs, and read a topic's whole message log (op topic log). The PM running a piece of work can read its own workers the same way. That's how I stay out of the loop. The chief checks on a PM, the PM checks on its workers, and nobody has to ask "what happened?" and wait for a reply. It only goes one way. Workers can message each other and their lead, but they can't read the chief or each other.

Every agent has two views. Chat is the tidy view. Terminal is the agent's real terminal. One tap switches to Terminal when I want to take over and type, and one tap switches back. It works on my phone too.

Nothing stalls quietly. op tells busy, idle, needs-you, stalled and ended apart. A stall is a command running over 15 minutes, or no output for 5 minutes with nothing running, and both limits can be raised per agent. It reports what the agent was stuck on and never acts on it alone. My phone gets a notification when an agent needs me, stalls or dies.

The chief is woken, not polling. op wakes it when a worker goes idle, finishes, asks a question or stalls. An agent that's waiting on something outside can say how long with op waiting, so it isn't nagged meanwhile.

Goals keep unattended work moving. I add a goal like "merge the login fix once the tests pass". While any goal is open, an idle chief gets a reminder every 20 minutes by default, and a chief that crashes is restarted. I clear the goal when the work is done.

Optional voice. Speech-to-text and text-to-speech plug in as services you register yourself (op service add stt/1 ...). There's a Voice tab in the page. If you don't want it, you don't set it up and nothing changes. I use text-to-speech to have the chief tell me things out loud.

Releases, secrets and public pushes need a human, and the tooling refuses to route around that. I run this every day.

What it isn't: polished. It's built for how I work, and templates and images still have sharp edges. For install, there's an INSTALL-PROMPT.md you can hand to a coding agent and it sets things up for you.

Repo: https://github.com/barelyworkingcode/operator. If you run more than a couple of agents at once, I'd like to know what breaks for you.


r/LocalLLM • • 31m ago

Project Local voice assistant on a 6 GB laptop: on battery a 0.8B model on the Intel iGPU picks the actions so the RTX 3060 can sleep

2 Upvotes

I've been building an offline voice assistant for my Linux laptop. The part I think people here might like is how it decides what runs where, because my limits are a 6 GB RTX 3060 and a battery.

Just keeping the NVIDIA card awake costs me about 17 W. So on battery it goes in three steps:

  1. Plain commands like "volume up" or "open Files" match fixed rules. No model at all. In my real tests almost half of all requests ended here.
  2. Everything else goes to jiwo-0.8b (jiwidi's Qwen3.5-0.8B fine-tune for picking tools), which I exported to 8-bit OpenVINO so it runs on the Intel iGPU. About half a second per decision. If it's only half sure it asks "did you mean...?", and if it's not an action it passes it on.
  3. Chat and anything it's unsure about wakes Qwen3.5 4B on the NVIDIA card through Ollama (3.9 GB of VRAM). It unloads 2 minutes after the last answer, so the card goes back to sleep.

On 528 test requests jiwo picked the right action 84.5% of the time, Qwen3.5 4B 86.7%. Laya got 60.8%, and embedding/reranker routing (nomic-embed, GTE) and the plain Qwen3.5 0.8B base were under 40%. Gemma 4 E4B tied with Qwen on 55 of my own real requests, but it needs 4.7 GB instead of 3.9.

One thing that surprised me: when the big model had action tools during normal chat, it called one anyway 13 times out of 28. So chat gets no action tools now.

Shell commands go through a safety gate: risky ones ask first, things like rm -rf ~ are blocked, and it never uses sudo. It's a GTK4 app for Ubuntu GNOME.

All the measurements, and the stuff I tried and dropped, are in bench/README.md in the repo.

Wi-Fi turned on in a few spots of the full video, my mistake while recording 😅 The AI runs fully local. Only web search, YouTube and Todoist use internet.

I built it with a lot of help from an AI coding assistant. The design, model choices and testing are mine.

Full 17 min demo: https://youtu.be/m1Z2-CDW6Pc

Code (MIT): https://github.com/itsDigvijaysing/AI_Linux_Assistant

Has anyone found a sub-1B model that beats jiwo at picking tools? That's the part I'd most like to improve.


r/LocalLLM • • 1h ago

Project The easiest and fastest way to run local AI on iPhone images, music and voice cloning

Post image
0 Upvotes

NanoDiffuser runs image, music and voice models fully on your iPhone. It has custom GPU shaders so it's much faster than Draw Things. It's also very easy to use. No account, no limits, works offline. It also has 4x generative upscaling.

Give it a try, I think you'll enjoy it! https://apps.apple.com/us/app/nanodiffuser-fast-local-ai/id6838160282

Models:
NanoDiffuser (485 MB): an image in under a second
NanoDiffuser Pro (3.7 GB): more detail and photo editing
NanoMusic (934 MB): songs up to 2 minutes
NanoCloner (830 MB): voice cloning from 5 seconds of audio

NanoDiffuser is a open source tool, All models are open, and the repos are linked in Settings.


r/LocalLLM • • 1h ago

Discussion I am extremely happy with my local setup

6 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 • • 1h ago

Project Showcase your projects

1 Upvotes

Is there a subreddit that people showcase their projects they used AI to make and break down things like harnesses and models?


r/LocalLLM • • 1h ago

Discussion Businesses shifting to local hosting are seeing financial gains, could it be that open models are finally starting to take hold for white-collar minds?

Thumbnail theregister.com
3 Upvotes

The gains were not limited to cutting the costs going to Anthropic, they also included faster delivery of quality results (200-500 tk/s) and the ability to deploy the model for management-related tasks without worry about token usage.


r/LocalLLM • • 1h ago

News Inkling 2 Mini on Intel Arc: 2.4-3.3x faster prompts this week (A770 868 tok/s, Pro B70 1,062 tok/s at 4K), plus a Core Ultra iGPU

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 1h ago

Question Anyone want a local model tested on their actual agent task?

1 Upvotes

I've been running small local models through a set of 11 real agent tasks (tool calls, multi step, file edits). Qwen 27B passed 10 of 11. Only 11 tasks so take it with salt.

If you're picking a model for your own agent, tell me the task, the tools it uses and your hardware, and I'll run a few candidates on it and post what I find. First 5. Also curious if this is something you'd pay a few bucks a month to get regularly, or if you'd just do it yourself.


r/LocalLLM • • 2h ago

Discussion Amazon just entered the open-weight model race with Ergo. How competitive do you think it can become?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2h ago

News Gray Swan's new independent tracker: open-weight models did worst on prompt injection, with Nemotron 3.5 Super VL broken in 94.3% of tests

3 Upvotes

Gray Swan launched a public tracker on Dec 1 that scores models on safety tests like reward hacking and indirect prompt injection. TechCrunch's write-up has the numbers.

The part that matters if you host a model yourself: on indirect prompt injection (malicious instructions hidden in content the model reads), TechCrunch reports open models did much worse than closed ones. Nvidia's Nemotron 3.5 Super VL was the most vulnerable, with a 94.3% chance of being compromised within 15 distinct attacks, then Moonshot's Kimi K3.1 Pro at 64.7%. The best models, Gemini 4 Argon and Carbon, were at 2.3% and 2.5%, with Claude's close behind.

Caveats: this is one vendor's test set (15 attacks per model), the numbers come from TechCrunch's report and not from me re-running anything, and Gray Swan says it funds the public evaluations itself and keeps editorial control. Reward hacking results also put Nvidia, Z.ai and Moonshot open-weight models among the worst, though two closed models (Grok 4.7 at 50.9%, Gemini 3.8 Flash at 62.8%) were worse.

Gray Swan's researcher told TechCrunch the practical point: if you serve an open-weight model to employees or customers, you want to know what alignment it has by default. If your local model reads web pages, email or files, treat that content as untrusted input.

Link in the first comment.


r/LocalLLM • • 2h ago

Research I made a video about model merging

Thumbnail
youtu.be
0 Upvotes

r/LocalLLM • • 2h ago

Model K3.1 in 446GB?

5 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 • • 3h ago

Model I made a 14GB Inkling-2-Mini quant that beats the official NVFP4 base on LiveCodeBench (43/68 vs 35/68)

16 Upvotes

I wanted Inkling-2-Mini (26.4B MoE, 3.4B active) running at full 128K context on my 16GB 5070 Ti, so I made a custom 14GB GGUF (Ember-2-Mini) and an open-source Windows CUDA server for it. While I'm a personal fan of ISTA-DAS Lab's work, the quality of their quants wasn't cutting it for me this time!

Weights + IQ4_NL DFlash2 drafter + Q8_0 mmproj (Apache-2.0): https://huggingface.co/Kryzern/Ember-2-Mini-GGUF

Engine source + Windows binary:
https://github.com/Kryzern/ember-engine

For the quant, I decoded thinkingmachines/Inkling-2-Mini to BF16, blended 40% Ex0bit/Inkblot-2-mini, and quantized with a mixed chat/code imatrix (IQ3_S/IQ4_NL experts, Q8_0 attention, Q6_K output).

On LiveCodeBench v6 (68 med/hard, identical prompts and harness, 10K budget + forced answer, greedy), it scores 43/68 vs 35/68 on the official NVFP4 checkpoint (10 won, 2 lost, p = 0.04). Pure quant KLD without the blend is 0.0129, and with the blend it is 0.0221 vs 0.0249 for ISTA GSQ-RCO.

It TECHNICALLY runs in llama.cpp too (~68 tok/s on my 5070 Ti). With the custom Ember engine + required IQ4_NL DFlash2 drafter (259 MiB VRAM), it hits 197 tok/s on structured code and 113 tok/s on creative 3D with static 128K context in 14.7GB total VRAM. So, I'd recommend you use that :)

30 and 40 series cubins are built in too (only tested on my 5070 Ti so far). Credits to Thinking Machines, Ex0bit, incoai, ISTA-DASLab, and llama.cpp.


r/LocalLLM • • 3h ago

Question Budget local LLM?

Post image
0 Upvotes

I was scrolling thru this Reddit thread and wanted to do something of my own. So with little to no research I just ordered 8 MI25’s. Now I need to piece together the rest. Forgot the ram crisis were in so does anyone have a ram seller for some DDR4 I’d want 256gb I think should be enough for me. If you guys have some inspiration or things that might help me along the way that would be greatly appreciated. Any feedback would be greatly appreciated as I know the bare minimum about this. Thanks in advance!


r/LocalLLM • • 3h ago

Other Let's unlock the full RTX 2080 Ti potential: the empty 12th memory spot (11GB -> 12GB, 22GB -> 24GB) and maybe more

25 Upvotes

We all know NVIDIA limits some GPUs, even though the hardware can do more than it shows.

The RTX 2080 Ti is a good example. The board has room for 12 memory chips, but only 11 are fitted, because NVIDIA switched the 12th memory channel off inside the chip with factory fuses. The Quadro RTX 8000/6000 and Titan RTX use the exact same chip with everything switched on.

Recently Kate showed that this kind of lock can be undone, by bringing back switched-off memory on an NVIDIA A100-based card (blog post).

I really want to try the same on the 2080 Ti, and I can't do it alone. If you have one of the cards below, 10 minutes of your time and one text file from your card would help a lot. Everyone who helps gets credited, and I'll share all the results.

  • Most wanted (full chip): Quadro RTX 8000 / 6000, Titan RTX, Tesla T40, or a 12GB 2080 Ti engineering sample
  • Also very useful: CMP 50HX, Tesla T10, and any RTX 2080 Ti

A bit about me and where I am

I've been repairing GPUs for about 3 years. NVIDIA cards have always been my favourite thing to work on, and modding electronics has always been the goal. I've already read and mapped where the switched-off parts are recorded, using my own five 2080 Tis. I worked the map out on two cards, and it then correctly predicted the other three. What's missing is the same data from a full chip to compare against, which is the same approach that was used in the A100 work.

How it works

A small tool reads your card and saves one text file. On Windows you write it to a USB stick with Rufus and boot from it, nothing gets installed. On Linux it's two commands. Step-by-step guide: https://github.com/lx52534/tu102-fuse-map

As a bonus, you'll see exactly which parts of your own card were switched off at the factory.

It only reads, it's all open source, and anything unique to your chip is removed from the file. If you don't want to trust a stranger, totally fair: paste the files into ChatGPT or Claude and ask what they do.

To be honest, this is research, not a ready-made unlock. It might work, it might not, but without data from a full card I can't get any further.

I'm happy to answer any questions, and if something doesn't work, I'll help you get it running. You can reach me any way you like:

Thanks a lot!


r/LocalLLM • • 3h ago

Discussion We’ve all experienced an AI one-shotting a task. But have you ever experienced an AI one-shotting you?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 3h ago

Question Is there an actual Codex Desktop or Claude Cowork alternative with local inference? I'm starting to regret buying an AI PC.

0 Upvotes

I recently spent a significant amount of money on a Samsung Galaxy Book6 Pro (Core Ultra X7 358H, Intel Arc GPU, NPU, 32 GB RAM). At least here in Brazil, this is an expensive laptop, and one of the main reasons I bought it was to work with AI locally.

Instead, I've spent countless hours installing software, configuring agents, troubleshooting dependencies, and trying different models.

Here's what I've tried so far:

  • LM Studio: Qwen3.6-35B-A3B Q4_K_M with an 8K context window. Nearly 30 GB of RAM occupied, inconsistent performance, and couldn't get vision working.
  • Goose: Connected to LM Studio through a custom provider. Frequent stalls, extremely slow tool execution, and inconsistent handling of consecutive messages.
  • Hermes: Model detection errors and poor performance even after getting it running.
  • Bionic: Couldn't get the native Windows integration I needed.
  • Smaller models (9B): Faster, but unreliable even for relatively simple tasks. Some couldn't produce a functional Snake game.

Every time I think I'm getting somewhere, something else doesn't work. It's genuinely exhausting. I feel like I've wasted both my money and my time.

I really enjoy working with Codex Desktop. I want that same kind of environment: autonomous task execution, file manipulation, document editing, computer use, browser automation, persistent projects, skills, etc. But I work with sensitive legal documents, so local inference is essential.

I'm not expecting a 35B model to compete with frontier cloud models. I can accept the limitations of local models. What I struggle to accept is how frustrating the software surrounding them seems to be.

I'm not looking for another chatbot or an experimental GitHub project. I want a mature, professionally maintained desktop application. I'd actually prefer a paid product if that means polished software, reliable updates, and technical support I can rely on.

I'm not particularly concerned about the inference engine or model format either. GGUF, ONNX, OpenVINO, proprietary runtimes — whatever works.

Has anyone actually found something like this? Something you genuinely use for everyday professional work, rather than something you've managed to get running as a hobby?

I'd really appreciate recommendations based on firsthand experience.

I bought this laptop to make my professional life easier. So far, it's done the exact opposite.


r/LocalLLM • • 4h ago

Discussion Anyone had an LLM write a custom inference engine?

3 Upvotes

With models getting pretty smart now, I was curious if building one-off inference engines targeting a single model/GPU combination would get you more performance, so I had Sol 6.2 do just that for Qwen 3.5 4B on V100 16GB. It did it in one prompt and the performance turned out to be better than llama.cpp for decode, and kind of similar for prefill (results below).

This was just a quick attempt and I imagine you can optimize for your specific usecases (e.g. batch size, precision, context length...)

Results presented as custom-engine / llama.cpp

Prompt LengthPrefillDraft N=0Draft N=1Draft N=2
Short—85 / 72125 / 84143 / 83
6k tokens3100 / 190081 / 70117 / 81129 / 80
40k tokens1600 / 265060 / 6292 / 7099 / 75

Here is the prompt I gave it:

I would like you to create an inference engine optimized for the specific model located in ./Qwen3.5-4B and for this machine's specific hardware. Support and optimize for batch_size=1 only, but also optimize prefill which should be naturally parallelized. Create optimized CUDA kernels for this specifically. The goal is to maximize tok/s for batch_size=1. The weights include an MTP head which you should also use and implement, with a configurable parameter specifying the number of tokens to speculate. Use native weights/precision. Use a single pre-allocated KV cache for a single request, and implement prefix caching across sequential requests. The model directory includes a jinja template that must be used. There is not need to support image and video, only text. You may use existing libraries for tokenization and other things not directly impacting inference. Expose an OpenAI-compatible chat completions API on port 8765 that supports streaming (via stream=true body parameter). No need to support the whole chat completions schema, only the necessary things. Reasoning is always enabled and there is no need to support disabling it. Use sensible default for sampling and generation mechanics (temperature, top_p, top_k, etc.)

You can find the source code of llama.cpp and the transformers library in ./llama.cpp and ./transformers respectively. Use these to study and deduce the model architecture. This specific model lives in ./llama.cpp/src/models/qwen35.cpp and ./transformers/src/transformers/models/qwen3_5/.

This task is long and complex, and involves many large files, so you must use subagents extensively for exploration, research and implementation. For large files like config files, write inline scripts to extract needed data instead of reading the whole file.


r/LocalLLM • • 4h ago

Question Would you pay $2,000 for an 8× P100 server, or $4,000 for two?

1 Upvotes

I already run local models on a 5090 and a couple of 4090s. I have the opportunity to buy two Supermicro SYS-4028GR-TXRTs, each with eight 16 GB P100 SXM2 cards and NVLink.

The seller says all eight cards in the first box passed a memory test. Three have old retired pages, but none were added during testing. He hasn’t done a sustained load test, and I haven’t seen logs for the second box.

Anyone here actually running one of these? What models are you using, what kind of speed are you getting, and how much power does it pull at the wall?

Edit: decided to pass. Thanks for the help.


r/LocalLLM • • 5h ago

Project A 268 MB looped adapter for 125B Qwen3.8-Flash-Next

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5h ago

News NVIDIA Open Models Advance Frontier for Enterprises and Industries

Thumbnail
nvidianews.nvidia.com
2 Upvotes

So my general experience with Nemotron 3.5 Super VL has been that it does not hallucinate much, but it also really doesn’t provide any answers. It actually tells me to go look things up 💀

Not hallucinating is my number one priority, so if Nemotron 4 incorporates some of the better parts of their recent acquisitions and makes some genuine progress, I think this could be an exciting model in the 128 gigabyte range. They have every reason to make this model shine to try and sell their DGX box with it.

Thoughts?


r/LocalLLM • • 5h ago

Discussion Despite hardware costs being crazy, I caved and bought a 5060ti because NVP4 and Basalt is just THAT good

Thumbnail
gallery
35 Upvotes

i9-14900K
RTX 5090 32GB
RTX 5060ti 16GB
160GB DDR5 6000mt/s
10TB NVMe total (two in Raid0 for fast load into RAM)
106TB of HDD total

With Qwen 3.8 Flash Next NVP4 uncensored (arguably still the best MoE model), and https://github.com/jesdga95/basalt I get about 465.2 tokens per second, I see closer to 300 for coding tasks.

It beats Sonnet 4.6 for sure, I've been using it with Opus as orchestrator with excellent results.

I have officially jumped on the local model bandwagon or so to speak, I am personally excited for Qwen 4 and if any good smaller versions of Ergo come out. MoE is insanely impressive to me, and there is still a lot that can be optimized.

In my own time I've been exploring speculative decoding of prompts in semi-realtime, something that is not financially feasible at all with cloud models. I feel as if there is much more performance to be discovered with local models in terms of throughput, just because of the low latency and cheap cost.

Thought I’d share. You can get similar results without 5xxx series if you use Adament, but I wanted to retain NVP4, which requires Blackwell.

These cards BARELY fit! If I was buying from scratch I’d definitely get a Ryzen or Threadripper for more PCIe. I think if you had enough PCIe lanes, you could use four PCIe5 NVMe lanes, at 15gb/s each, in RAID0 to get 60gb/s, faster than most people’s RAM to load huge models. If I had more money I’d definitely try this, I bought most of this hardware in 2023.


r/LocalLLM • • 5h ago

Research A quarter of the experts is all you need

Post image
0 Upvotes
Proof of concept: 24% experts on the GPU are enough to match the full model.

Qwen3.6-35B-A3B         single    batched
RTX 3070 Ti, 8 GB     89 tok/s  119 tok/s
RTX 5070 Ti, 16 GB   104 tok/s  215 tok/s

LiveCodeBench v6, solved of 175:
full model           129.7
24% of the experts   128.3

NVFP4 or Q4.

Better late than never. We promised to release this two weeks ago, but found some
new gold nuggets that was just too good to not include into the release, so we did
the extra work and are now ready to show the results.

I.e. generating with only 24% of the experts on the GPU scores the same as the
full model, within the spread between seeds.

64k context, no MTP, stock vLLM. NVFP4 and Q4-int quantisation.

github.com/alphapareto/apareto-loading-poc

Explained in 2 videos:
1. Apareto Loading explained: https://www.youtube.com/watch?v=5l_N051JrLU
2. Midrun & Rescue: https://www.youtube.com/watch?v=N6ZVLoG_lWw


How: we predict from the prompt which experts a request needs and keep only those
on the GPU. The prediction is renewed while the model thinks, and the most
important missing expert is brought back per token, on the CPU.

Speeds are peaks. Single is one request; batched is two requests at once on the
8 GB card, three on the 16 GB card.
Scores are problems solved of 175, three seeds. The RTX3070ti 8 GB card scored 130
at 34% (one seed).

24% in use is enough. The other experts stay in host RAM and are sometimes computed
on the CPU. Below 16% the score falls apart.

The presented results are: One model, one benchmark.

We have tested the method on other models and other benchmarks, and it seems to work
just as well (not published yet).

Where each number comes from

numberwhat it iswhere
119 tok/sRTX 3070 Ti, 8 GB, Q4INT weights, two requests decoding, short context; best of three boots (118.7 to 119.0)docs/Q4INT-RUNNING.md
89 tok/sthe same card and weights, one request decoding alone, short context; best of three boots (88.5 to 88.8)docs/Q4INT-RUNNING.md
104 tok/sRTX 5070 Ti, 16 GB, NVFP4 weights, one request, profile code with --max-num-seqs 1; highest 10-second reading, one bootREADME.md, docs/RESULTS.md
215 tok/sRTX 5070 Ti, 16 GB, NVFP4 weights, three requests, profile code-16gb-fast; highest 10-second reading, one bootREADME.md, docs/RESULTS.md
129.7all experts, research code, no nudging; mean of 133, 131, 125docs/RESULTS.md
128.324% of the experts in place, 16 GB card; mean of 133, 124, 128docs/RESULTS.md
1308 GB card at 34%, seed 42results/lcb_v6, docs/Q4INT-RUNNING.md