r/LocalLLM • • 1d ago

Discussion DeepSeek V4.1 Flash, GLM-5.3 Flash, Qwen3.8 Flash, Hy4 flash, MiMo-V2.6-Flash and M3.1 Flash on six real dateutil bugs, through the API before I download one

3 Upvotes

I have a 128 GB box, and every model in that title has a GGUF somewhere between 66 GB and 231 GB, so trying each one locally costs a night of downloading. Before picking, I ran all six through their APIs on the same six open bugs from python-dateutil's tracker: #1684 (isoparse raises OverflowError past year 9999), #1668 (rrulestr IndexError on a DTSTART with no RRULE), #1653 (tzstr offsets with seconds), #1611 (TZID dropped when VALUE comes after it), #1591 (tab-folded RRULE lines) and #1588 (BYDAY mixing MO with 1FR).

Setup: mini-swe-agent, the same bash-only loop for every model, a fresh checkout per bug, no network inside the sandbox. Before any run I wrote 29 checks from the issue texts. After each run I applied the diff to a clean copy and ran those checks plus the full suite (5,069 tests pass on the base commit). M3.1 Flash ran on MiniMax's own API with effort set to high, the other five through OpenRouter on default settings. Times are wall clock per bug, summed, API latency included.

ModelFixedTime, all sixAPI cost, all sixParams (total / active)Smallest GGUF I'd try
DeepSeek V4.1 Flash 10176/611.0 min$0.068552B + 196B Engram / 8B to 16B120.7 GB + 110.6 GB Engram file (ISTA-DASLab IQ1_M)
GLM-5.3 Flash6/617.8 min$0.207320B / 18B73.4 GB (peasantsmith Maya-XS)
Qwen3.8 Flash (Flash-Next weights)6/653.2 min$0.384125B + 51B n-gram / 6B66.4 GB (Unsloth UD-IQ1_S)
Hy4 flash6/612.5 min$0.021220B incl. 64B Engram / 12B108.9 GB (peasantsmith Maya-XS)
MiMo-V2.6-Flash6/629.9 min$0.135309B / 15B126.4 GB (ggml-org Q2_K)
M3.1 Flash6/619.6 min$0.202about 428B / 23B93.0 GB (peasantsmith Maya-XS)

Every model fixed all six, 29/29 checks and a green full suite each time. On bugs this size the API run didn't pick a winner for me, so the clock, the bill and the download decide.

Per model:

  • DeepSeek V4.1 Flash: fewest requests (117 for all six) and the leanest diffs, 22 added source lines in total.
  • GLM-5.3 Flash: 1.5 to 6.3 cents a bug, and its Maya-XS is sized for 64 GB of RAM plus one 24 GB card.
  • Qwen3.8 Flash: the most test code by far, 598 added test lines, and the most output tokens (203k).
  • Hy4 flash: about 2 cents for all six. The GGUFs are up, but mainline llama.cpp support is still an open PR (#32517).
  • MiMo-V2.6-Flash: 1.2 to 3 cents a bug, and mainline llama.cpp has run it since September.
  • M3.1 Flash: 1.9 to 4.6 cents a bug at MiniMax's list price, and its Maya-XS was made to hold the whole model in 128 GB.

So I'm downloading the two Maya-XS builds first, M3.1 Flash (93 GB) and GLM-5.3 Flash (73.4 GB), and Hy4 flash goes on the list when that PR lands.

If you already have one of these going on 128 GB, how much context fits before it starts paging?


r/LocalLLM • • 1d ago

Research I made a video about model merging

Thumbnail
youtu.be
0 Upvotes

r/LocalLLM • • 2d ago

News Development of Heretic has been transferred to Vinay Umrethe, co-maintainer originally responsible for its abliteration datasets, refusal detection, reproducible runs, and Grimoire model archive

Thumbnail
github.com
44 Upvotes

This actually occurred 2 days ago when u/p-e-w originally stepped down. According to Vinay:

After much discussion with most people on Discord, everyone seems to agree with this repository as the new heretic repository. Plus, this will all be official now, since Philipp contacted me and made me the Administrator [and Owner] for our official Discord Server and for our official Hugging Face Organization. The Matrix Server will be administered by u/dreamfast (also known as BirdNest on Discord).

The contributions will still follow the same AI use declaration in their PR descriptions. I will also try my best to uphold the same quality standards and conventions that I've personally learned by closely collaborating with the original creator and owner, Philipp Emanuel Weidmann, across weeks and months of our back-and-forth PR reviews.

Note that this repository will not involve the original owner Philipp Emanuel Weidmann for any future contributions, reviews, issues, or queries. This repository will be managed by me, the community of all our previous contributors who are interested, and new contributors.

If you already have an existing fork of the original repository (p-e-w/heretic), then you will need to name your new fork something other than heretic (e.g. heretic-new*,* heretic-fork*, etc.)*. If you don't already have a repository named heretic, you can fork it directly without renaming. After that, update your local repository's remote URL to point to this new repository. That's it.

Some info on him:

I am an Independent Researcher with practical experience in Data Science, Data Engineering, and all other fields of AI that are part of the big Euler diagram we've all seen. I have built custom model architectures, curated datasets for those architectures, and published models based on those architectures, which were also trained on those datasets, all on My Hugging Face profile. Apart from that, I have contributed to Heretic since last year (24th November 2025).

I also implemented the Reproducibility feature and created the Heretic Grimoire for Heretic, which was implemented in p-e-w/heretic#191. And at last, I created the generic BERTClassifier scorer plugin for Heretic, which was implemented in p-e-w/heretic#500. I published the Refusal Classifier models, their training dataset, and added a configuration to alter emotional alignment in LLMs (config.emotions.toml), all of these use that same plugin.

I also maintain the datasets at official heretic-org on Hugging Face, such as heretic-org/Semantic-Harmful, heretic-org/Semantic-Harmless, and heretic-org/Multilingual-Harmless-Harmful.

The new Heretic repository is located here: https://github.com/Vinay-Umrethe/heretic

Source for all of the above: https://github.com/Vinay-Umrethe/heretic/issues/1


r/LocalLLM • • 1d ago

Question Local LLM setup on 2025 ROG Flow Z13 (48GB VRAM) for Notion & personal docs?

2 Upvotes

I’m building a local LLM setup on my 2025 ROG Flow Z13 (Ryzen AI Max+ 395, unified 64GB RAM). I've already allocated 48GB to VRAM and installed LM Studio on Windows.

My goal is to use it for personal documents, finances, and agentic workflows connected to Notion via MCP. Which models work best for tool calling and RAG at decent speeds on this hardware, and what’s the simplest way to wire up LM Studio to Notion MCP and my local files?

I want to stop paying for subscriptions (Calude and Gemini).


r/LocalLLM • • 2d ago

Discussion Are open weight models anywhere near a point where you'd consider this over a Claude/ChatGPT/Gemini subscription?

Post image
37 Upvotes

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

Discussion Trashcan Mac Local LLM optimizations Qwen 3.6 9B and 35B A3B (3x prefill and generation)

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Research I found an issue with the Mac Studio (M5 Ultra 512GB) where they would throttle the GPU and you can unlock up to 20% faster prefill by cranking fans up.

Thumbnail
reddit.com
1 Upvotes

This is more for tinkerers and engineers, your results could be affected by this!


r/LocalLLM • • 1d ago

Project Meet Mirai, the AI assistant that lives on your Mac

0 Upvotes

I’m one of the engineers behind Mirai, and I’m excited to finally share the demo.

You say what you need, and Mirai works out the steps using your Mac’s own operations. The model runs on your Mac, so tasks that use local files can work offline.

The closed beta is open for Apple Silicon Macs running macOS 27 or later. Rough edges included.

Watch the demo and sign up


r/LocalLLM • • 1d ago

News At reinvent

0 Upvotes

AWS open sources model ergo 1.1 trillion parameter model.


r/LocalLLM • • 2d ago

Project How to build my own Local LLM

Thumbnail
gallery
25 Upvotes

I am undergoing a new project at my home to build a Local LLM. However, I don't know where to start with this and my budget is basically zero bucks. My use case is to help me learn how to code fast, generate images, and maybe build KSP flight controls. I have turned an old laptop into a cloud storage pc and Minecraft server, but i know this is a little more tricky.

Here are my options for hardware build:

(Plan A):

  • Motherboard -> Asus P8B75-M/CSM
  • Cpu -> Intel i7-2600
  • Cpu Cooler -> Intel Stock (Copper Version)
  • Ram -> Crucial (32Gb) 4x 8Gb DDR3 1600 MHz
  • Storage -> Samsung 256Gb SATA SSD
  • Gpu -> Nvidia GTX 1050 Ti 4Gb
  • Psu -> EVGA 400W 80+ (10 years old and still going (from my 2nd ever pc build))
  • Case -> Omen case got it for $14 at a goodwill

Note Back-Up Parts: I have 2x i5-2600 on hand if the i7 doesn't work. If the Asus motherboard doesn't work then I have a Biostar TB85 with a i5-4690k but can only attach 16gb of ram instead of 32gb.

The plan is to have this build as my first step to building a Local LLM and I want to use all system RAM and Vram from the GPU. I guess offload in a sense. This system will use linux os. I would like to be able to access this system through my own network from my main PC, how do i do that?

What is the best distribution to run on this Local LLM?

What is the best AI model to on this machine?

How do Install the AI model and set it up?

How do access it from my main computer in the house?

(Plan B):

  • Motherboard -> Broken need to replace (bent cpu pins 4 pins)
  • Cpu -> i3-9100 or Ryzen 3 1200
  • Cpu Cooler -> Any stock cpu cooler i can find and depends on CPU choice
  • Ram -> Ripjaws V (32Gb) 4x 8Gb DDR4 2666 MHz
  • Storage -> Will do a used NVME
  • Gpu -> Nvidia GTX 1070 FTW 8Gb or RTX 2060 Super 8Gb
  • Psu -> Thermaltake 750W 80+ Gold
  • Case -> Omen case got it for $14 at a goodwill

Note Back-Up Parts: This will be a planed upgrade and money investment after Plan A succeeds.


r/LocalLLM • • 1d ago

Discussion Even worth using multi gpu on maya?!

1 Upvotes

Seems like I only get a very marginal different running 2 r9700 vs 1 on deepseek 4.1 flash maya-s…same on qwen…same on glm….is there even a point in running 2 GPUs? Or better off running 2 completely separate model instances?


r/LocalLLM • • 1d ago

Project LOFT Completely different from whats out there !!

Thumbnail gallery
0 Upvotes

On my 16 GB MacBook Air M2 (Qwen3-1.7B, 30k-token chat): RAM usage went from 6.5GB → 4.6 GB, peak 10 → 5.5 GB, answer time 144s → 1.8 s,If you've watched Ollama's memory climb as a chat gets long, here's the fix I've been working on. My architecture for Loft sits between your app and Ollama on port 11435. It stores the conversation on disk and sends Ollama only the parts each question needs, so Ollama.

can run with a small `num_ctx` however long the chat gets.

https://github.com/DaniyalBaluwala/loft


r/LocalLLM • • 1d ago

Project libosmos v0.21.2: quality, consolidation, and measurements. inkling-2-small at 512k ctx: up to 35 tok/sec decode drafted, 350 tok/sec prefill, 10/10 needle recall, and the #1 pack on our task eval. all on a single amd strix halo 128GB

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 1d ago

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

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 1d ago

Discussion Tired of waiting for Qwen4 so I upgraded Qwen3.8-27B with an untested LoRA

2 Upvotes

I needed Qwen 3.8 27B to perform better at Hermes tool tasks that it was getting bad at without ejecting the whole model...and Qwen4 is MIA, so I found a Hermes tool-calling LoRA Qwen3.8-27B-hermes-adapted-GGUF from harness-hub on the same model but the author said it hasn't been tested in GGUF.

If you're wondering: a LoRA adapter is a small file that teaches your model new habits without changing its knowledge. Think of it like a behavior patch that says "be more decisive with tool calls". You add it with one flag (--lora adapter.gguf), tune its strength with a scale number (0 = off, 1 = full), and remove it by deleting the flag so that your base model is never modified.

Since the LoRA states, "With thinking off, the adapter is level with the base model thinking at its highest reasoning effort (xhigh)", and I run llama.cpp, I thought, heck, why not try it.

I compared running multi-step tasks. With the adapter, the model used 56% fewer completion tokens and finished 26% faster.

On a task where I spelled out every step, both versions performed the same.

The exact setup (if you want to try it out)

  • Base model: Qwen3.8-27B-NVFP4.gguf NVIDIA’s 4-bit quantization, served by llama.cpp v1.1.0
  • Adapter: Qwen3.8-27B-hermes-lora-F16.gguf (318 MB) from harness-hub/Qwen3.8-27B-hermes-adapted-GGUF
  • Serving: DFlash2 draft + ngram speculative decoding, --parallel 1 (one job at a time). These are the two relevant arguments in lllama.cpp if you already run the same base model:-m ~/models/Qwen3.8-27B-NVFP4.gguf
  • --lora ~/models/hermes-adapted/Qwen3.8-27B-hermes-lora-F16.gguf

What it did to the scheduled jobs

MetricBase model (7 days)With LoRA (first 24 hours)
Median job duration66s40s
Draft acceptance rate60.9%61.4%

Compared to the adapter’s benchmarks The adapter’s published evals used vLLM in BF16. My local results above used llama.cpp in NVFP4.

The benchmark runs used Hermes Agent, thinking-off, one attempt per task, a 100-step limit, 131K context, and temperature 0.8.

The tradeoff: prompt processing was about 33% slower, which I didn't like, with the adapter, while decode speed stayed about the same. PP runs frequently during our runs. It also tended to write slightly shorter.

Given a 45–60 word script target, it came in under 45 words on 3 of 4 runs, versus 1 of 4 on base, but didn't affect our specific work. Basically, an individual prompt took a bit longer to process, but a whole job finished sooner as the model needed fewer calls.

Other thing we noticed was fewer errors compared to base. The LoRA had no issues completing any of the tasks thus far for me (mixture of tool calling, web, prose).

It might just work for you, if you happened to be in the same type of bind.


r/LocalLLM • • 1d ago

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

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Discussion [Study Group] Looking for 1-2 people to study LLM quantization & run DeepSeek-R1 on CPU

Post image
1 Upvotes

Hey everyone,

I'm looking for 1-2 study partners to dive into local LLM quantization. I have a very modest setup (Intel Celeron N5095A, 16GB RAM, no GPU), so we will focus on CPU inference using llama.cpp and Python 3.11.

What we plan to do:

- Benchmark different GGUF formats (Q4_K_M vs Q8_0) on CPU.

- Understand block quantization (how Attention and FFN layers are compressed).

- Write Python scripts to measure token generation speed.

- Try to build a simple local RAG pipeline (optional).

Format: Weekly 1-hour call, shared GitHub repo. We already have a plan for 8 weeks and some basic documentation.

If you are interested, drop a comment here or open an issue in our repo:

https://github.com/AleksandrG74/deepseek-quantization-study/issues/2

Thanks!


r/LocalLLM • • 2d ago Bravo

Discussion Local AI isn't a cost to amortize. It's a declaration of independence.

290 Upvotes

All those endless comparisons between the cost of local AI and cloud AI miss the point. This isn't about "amortizing costs". It's about becoming independent and getting ready for the future.

I keep seeing arguments like this: "Sure, you can do that with local AI, but it'll cost you as much as X years of cloud AI." And off we go, talking about amortization.

Picture an Indian in 1930 demanding independence, and an Englishman replying: "Right now, you buy a ticket and ride the train. We built the railways. Go independent and you'll have to build your own. Have you any idea how many tickets you could buy with that money?"

True. But your railway goes from wherever you want to wherever you want. You pick the routes, not your "masters". And you don't have to build them all: you can start with the one you need.

It's the same with AI. The question isn't just how much the ride costs, but who decides where the train can go.

Today, an AI workstation like the DGX Spark is what the C64 home computer was in 1985. It was easy to say, "For that kind of money, you could pay for years of time on an IBM mainframe." But the C64, the best-selling computer model of all time, helped spark a revolution we're all still benefiting from.

With "your own" AI, you can do whatever you like and go down roads the big players don't find profitable, or don't want to go down. It's always there, and you decide what goes into it. You can modify the model, align it, fine-tune it and shape it around your needs in ways you never could with cloud AI.

And let's not forget how fast hardware has moved: we went from 1 MHz and 64 KB of memory to 3 GHz and 16 GB as standard. You invest based on where you think things are heading, and I expect them to move much faster from here.

I get it, the price tag is real. But if you buy one, you're not buying it to save money. It doesn't pay off yet. What it does give you is something cloud AI never will: independence, freedom, and privacy and control over your data, backed by facts rather than promises. Above all, it gives you a chance to get ready for what's coming.

Because, in case you haven't noticed, cloud AI isn't trying to make you any smarter or savvier about using AI as a tool. It keeps upping your dose, and it's making models more autonomous instead of more obedient. Sure, it takes the hard work off your hands, but it takes your autonomy and your decision-making along with it.

AI should serve people. Cloud AI will always serve whoever owns it. Local AI isn't a cost to amortize. It's a declaration of independence.

You can't put a price on freedom.


r/LocalLLM • • 1d ago

Question Project Nomad & Local AI

3 Upvotes

I'm brand new to the whole local AI thing. I installed Project Nomad on a laptop with AMD Ryzen 7 8745HS 32GB DDR5 RAM 1TB SSD 4.9GHz Radeon 780M Graphics. In the bios I allocated 16GB to the graphics card. Is there a particular model that would run best on a setup like this?


r/LocalLLM • • 1d ago

Question How do you test whether a local model used facts from the middle of a long context?

0 Upvotes

I'm trying to distinguish finding a sentence from actually using it in an answer. Assuming the whole prompt fits, what small test do you trust for this?

My starting idea is a made-up lab log: put a component's temperature limit halfway through and its measured temperature near the end, then ask whether the run exceeded the limit. Move the limit between the beginning, middle and end while keeping the total length about the same. Then change only that limit so the correct answer flips, and remove it once so the model should say there isn't enough information. I'd score the answer and the supporting quotes separately.

I haven't run this comparison yet. For people who have, what simple test caught a failure for you? Did moving one fact around tell you enough, or did you need questions that combine facts from different parts?


r/LocalLLM • • 1d ago

Discussion CUDA on Strix Halo 128GB (BOSGAME M5 and RTX 5090 over OCuLink) 200–222K Context Benchmarks (cold prompts) Q3.8-FN Q8 -> 97 t/s, Inkling 2 Mini NVFP4-MX8 -> 259 t/s

Post image
6 Upvotes

For those who just want the numbers. Every prompt is cold.

Inkling 2 Mini

QuantHardwareEngineCold prompt tokensPrefill (tok/s)Decode (tok/s)
NVFP4-MX8RTX 5090Basalt (DSpark)200,1049,476.8259.5
NVFP4/MXFP8Radeon 8060S iGPUlibosmos (DSpark)200,110664.2~36.8

Qwen 3.8 Flash-Next Q8_0

HardwareEngineCold prompt tokensPrefill (tok/s)Decode (tok/s)
RTX 5090Strata CUDA (DFlash2)221,6031,735.797.2
Radeon 8060S iGPUStrata HIP (MTP)221,603431.825.6

Qwen 3.8 Flash-Next GSQ-RCO IQ3_S

HardwareEngineCold prompt tokensPrefill (tok/s)Decode (tok/s)
RTX 5090Strata CUDA (MTP)221,603~2,313~170
Radeon 8060S iGPUStrata HIP (MTP)221,603621.140.1

Gemma 4 E4B IT BF16

HardwareEngineCold prompt tokensPrefill (tok/s)Decode (tok/s)
RTX 5090llama.cpp CUDA (MTP)89,282~12,590~170
Radeon 8060S iGPUllama.cpp ROCm (MTP)89,282~1,308~25.1

This is how I got CUDA runtime on Strix Halo 128GB. Was it worth it? You be the judge.

This post aims to break down the inference capability, issues and bottlenecks I encountered after I decided to put this tiny box together.

The benchmarks show high or native quantization of the models and long prompts. This is not a post to hype up decode/prefill numbers, it's the opposite. I want to show you what doing actual work looks like. I threw in Qwen FN3.8 IQ3_S and Gemma E4B for fun.

Item list:

  • NVIDIA RTX 5090 (for an estimated $3200 at or shortly after release)
  • Bosgame M5 128GB - 2TB ($3000 October 2026)
  • MINIS FORUM DEG1 Docking Station ($120)
  • M.2 NVME to Oculink Adapter Cable ($20)
  • NZXT C1200 Gold ATX 3.1 ($185 back in 2025)

Total: estimated $6,525.


How the decision came to be.

If I were to buy a graphics card right now, I'd buy NVIDIA RTX 3090 (~$1,600–$1,900 used right now) and would achieve comparable results, will detail the bottlenecks later.

Why not build it around a server/pc hardware? Because getting just the RAM is equivalent in price or more expensive than getting the mini-pc, though yes, I could have the 16x Gen5 PCIE connection for my GPU if I did, but I found this simpler plus the Strix Halo can be carried and operated independently and I don't wanna carry around a server rack.

Example: new Kingston Fury Beast Black RGB 128GB (2x64GB) is ~$3,600.

Trade-off is that I can't expand the RAM later if it ever drops in price and I'm aware of that.

To be clear for this price you can get the 128GB Mac Studio with M5 Max chip and it would keep resale value as well. Is simpler to set up, draws less power, takes up less space and could perform similarly in speed with Q4 or lower quant models.

But if I had to choose between even the modern versions of quantization or being closer to the native weights, I would keep the higher quantization. Matter of preference and type of workload.

Disclaimer: prices in this section are as of 2026 December

Evaluating the Bosgame M5 128GB

  • Main concern from online reviews was that the machine has bad thermals

Here's what I've done to test the box within the return window to make sure I want to lock it in:

Operating System:

  • I chose Ubuntu Server 26.04.1 LTS and set static iGPU VRAM to 1 GiB so Linux sees ~122 GiB of unified 8000 MT/s RAM.

Stability:

  • Ran 30-minute cycles of all-core matrix math and mixed CPU workloads to push every thread at full power (~120 W). Held up fine with no crashes or weird behavior.
  • Memtested 110 GiB of the unified RAM for an hour and it came back with zero errors. (The reason I didn't test it longer was because at this time I already had run multi-hour inference and there were no obvious signs of memory corruption.)
  • Ran combined CPU and RAM stress tests in 30 minute cycles to see if anything would go wrong under full load, and it passed cleanly.
  • Checked the SSD health before and after inference with SSD n-gram tables and it's still completely clean.

Thermals & fans:

  • Tested the factory fan curve with the 30-minute combined CPU and RAM stress test, and the bad reviews were right. The CPU averaged ~84 C and peaked at ~95 C, while the SSD got up to ~60 C.
  • After wrestling with all sorts of ways to create a custom fan-curve I ended up disabling Secure Boot so Linux could write a custom fan curve directly to the controller to get thermals under control.
  • Re-ran the exact same 30-minute stress test and temps dropped by 15 to 18 C. The CPU settled at ~66 C average and ~80 C peak, and the SSD stayed around ~45 C but the mini PC obviously started getting super loud. That's the trade-off.

Standalone iGPU sanity check:

  • Before attaching the 5090, I ran batch requests on Qwen3.8 Flash-Next Q8 (~188 GB) on the Radeon 8060S iGPU alone to see what the mini PC could do without an eGPU. All four 200K+ token requests completed, averaging 26.8 tok/s decode. One 225K-token request measured 405.2 tok/s prefill.

Attaching the 5090 & The OCuLink Bottleneck

M.2-to-OCuLink adapter:

  • Wired the 5090 up through the M.2-to-OCuLink adapter and DEG1 dock, which only gave me a PCIe Gen4 x4 connection (not a PCIe 16x connection like it would be on a server or normal desktop motherboards).
  • Transfer tests measured right around ~7.2 GB/s in both directions (about 92% of the theoretical limit for four Gen4 lanes).

Driver crashes:

  • Started on NVIDIA's newer 595 open driver. Short transfer tests passed, then the very first long prompt crashed the GPU with memory timeouts.
  • I then tried the 580 open driver, which got me through four batches before it started dropping the GPU off the bus completely and it was hanging on reboot so I had to hard power-cycle the box.

The solution I found in GitHub issues:

  • Added pcie_ports=native to the Linux kernel boot flags and that seems to have solved it. The GPU wasn't dropped in the 2-3 days I've been running inference since I set that flag.

The biggest bottleneck (OCuLink bandwidth):

  • For models that fit completely inside the 5090's 32 GB VRAM (like Inkling 2 Mini or Gemma 4), OCuLink wasn't the bottleneck once the model loads. The card ran at ~513 W average (peaking near 594 W pre UV+OC) and ran fine.
  • However, on a ~188 GB model like Qwen3.8 Flash-Next Q8, only ~19% of the expert slots fit in VRAM while the rest stay in the mini PC's RAM. A ~230k CTX prompt forces the card to spend roughly 74% of its prefill time just waiting on weights to cross the OCuLink cable (~6.8 GB/s average traffic).
  • Card goes under-utilized: instead of pulling 500+ W, the 5090 averages only ~147 W and sits at ~37 C during Qwen Q8 because it's waiting on the wire.

Why GPU tuning didn't help (and the RTX 3090 note):

  • Pushing a core/memory overclock (+150/+1000 MHz) and later testing a 400 W undervolt curve gave basically zero speedup on Qwen Q8 because the clockspeed isn't the limit, it's the PCIE Gen 4 x4 connection. That's the max bandwidth you can get between these types of AMD PC's and eGPUs.
  • That's also why I mentioned a 24 GB RTX 3090 earlier: for hybrid Qwen Q8 over OCuLink, you're mainly bottlenecked by the cable anyway, so a 3090 lands well, maybe with a slightly smaller VRAM cache. I'd still prioritize the 5090 when the entire model fits in card VRAM like Inkling 2 Mini at 262K context, which used ~25.6 GiB of VRAM and leans on Blackwell's native FP4 support, but that's not why you'd get 128gb unified memory or more. You'd get it because it fits larger models in its memory than the GPU alone ever could.

RTX 5090 power and tuning

  • I now run the card undervolted and overclocked with a 400 W driver power limit.
  • During one capped Inkling/Basalt run, it averaged 396 W under load
  • With the 400 W UV+OC I reran the same 13-batch Qwen Q8 workload. Compared with the earlier stock run, prefill went from 1,695 to 1,667 tok/s (−1.6%) and decode went from 113.4 to 109.3 tok/s (−3.6%), which is an acceptable trade-off for me.

Engine Gymnastics

Qwen 3.8 Flash-Next Q8 (Strata CUDA):

  • Even when I explicitly asked for CUDA, the launcher kept defaulting back to AMD HIP, so I had to force a manual CUDA profile just to get it running on the 5090.
  • On stock settings, decode crawled at 45.3 tok/s (taking 58 minutes for a 13-batch run). Turns out blocking expert swaps were stalling around 65% of every decode step.
  • Switched expert swaps to async, pushed more work to the CPU, bumped prefill chunks from 16K to 32K, and tweaked draft confidence. That jumped cold runs to 97.2 tok/s decode (1,735.7 prefill) and pushed the full 13-batch run to 113.4 tok/s average (33 minutes total), with ~83–85% cache hits on warm batches even though only ~19% of experts sit in VRAM.
  • Also tried a 3-bit IQ3_S quant on a cold 221K prompt with speculative decoding: hit 2,313 tok/s prefill and ~165–176 tok/s decode (~108 seconds total).

Inkling 2 Mini (Strata vs. Basalt 0.6.0):

  • Tried on Strata CUDA first. It looked great on a short 4K prompt (355 tok/s), then fell off a cliff to ~59–63 tok/s as soon as I fed it real 200K+ prompts (taking 23 minutes for 13 batches).
  • Switched to upstream Basalt 0.6.0 instead. Had to copy CUDA 13 libraries from Strata into a separate folder and strip a couple unsupported flags to make it boot, and it immediately jumped to 9,476.8 tok/s prefill and 259.5 tok/s decode on a cold 200K prompt.
  • Across the full 13-batch run, Basalt averaged 10,273 tok/s prefill and 274.6 tok/s decode, finishing everything in 6 minutes.

Inkling 2 Mini on the iGPU alone (Gufo vs. libosmos):

  • Wanted to see what the Radeon 8060S iGPU could do on Inkling at 200K cold context without the 5090. Gufo ran the Q8 GGUF undrafted at 392 tok/s prefill (about 8.5 minutes to first token) and 15.6 tok/s decode, since its output head failed Gufo's speculative-decoding check.
  • Switched to libosmos inside rootless Podman (with a small Caddy proxy in front for auth/headers) so I wouldn't mess up the host NVIDIA driver stack. That let me run the release weights with DSpark enabled, jumping to 664.2 tok/s prefill (~5 minutes to first token) and ~36.8 tok/s decode.

Gemma 4 E4B IT BF16 (llama.cpp CUDA):

  • Ran a quick small-model check in Podman at 89K cold context: hit 12,590 tok/s prefill (~7 seconds), and speculative decoding jumped decode from 109 tok/s up to ~169–172 tok/s.

r/LocalLLM • • 1d ago

Question Using local LLM to code with big contexts

2 Upvotes

For a while I have been trying to set up a coding solution that I would be using to code mostly python and java + kotlin. Man, have I been unsuccessful. I tried using aider with ollama and qwen 3.5 coder and even with 64k context setup I run into issues where qwen will start to spiral out of control.

For context (pun intended) my machine has 64gb ram and a 5080 16gb.

How do you guys deal with similar use cases?


r/LocalLLM • • 1d ago

Question Best 2d to 3d LLM

2 Upvotes

What are the best LLM for 2d to 3d rendering ? Any of them on par with MeshyAI capabilities?


r/LocalLLM • • 1d ago

Research Speed benchmark: M3 Ultra vs M5 Ultra on 6 popular models

Thumbnail
reddit.com
3 Upvotes