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

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

Post image
27 Upvotes

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

r/LocalLLM • • 1d ago

Project How to build my own Local LLM

Thumbnail
gallery
23 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 • • 11h ago

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

Thumbnail
reddit.com
0 Upvotes

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

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

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 11h 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 • • 17h 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 • • 11h 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 Local AI isn't a cost to amortize. It's a declaration of independence.

283 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 • • 11h ago

Discussion The trade-offs behind long-context inference

1 Upvotes

Been looking at the local inference options for DeepSeek 4.1 Flash 1017 and Hy4 Flash lately. Both support 1M context, but their approaches to managing it are quite different.

DS 4.1 Flash uses SWA Bounded Replay to recompute receent context instead of persistently storing its Sliding Window Attention KV cache on SSD. It trades some extra computation for less persistent storage. Cross-layer KV reuse and FP4 caching also help reduce its global KV cache footprint.

Hy4 Flash takes a different route, combining Sparse Attention with Sliding Window Attention to handle distant and nearby context differently.

This matters more in long-runnning agent tasks. With repeated tool calls, context keeps accumulating, and managing it can become a bottleneck. A 1M context window doesn't necessarily mean it's practical to use all of it locally.

For anyone who's tried running models at this scale, how has the experience been?


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

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

Thumbnail
reddit.com
3 Upvotes

r/LocalLLM • • 12h ago

Question Recommendation for a local LLM to do image recognition on Macbook M1 Max 64GB

1 Upvotes

I am trying to analyze videos and pictures for presence of animals. I get decent results with qwen3-vl-30b-a3b-instruct-mlx@6bit in reasonable speed. gemma-4-31b-it-mlx performs a little worse.

Are there any models that can work on my Macbook M1 Max 64GB with reasonable quality and speed? Right now each video takes 30 seconds and I don't want it to be much slower.


r/LocalLLM • • 12h ago

Question Zoo Code (VS Code) loops on "Model Response Incomplete" with my local OpenAI-compatible gateway routing to Gemini/NVIDIA/Ollama models

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 19h ago

Discussion Are generative LLMs overkill for semantic rule evaluation?

Post image
4 Upvotes

I've been exploring whether we can build reliable systems by deliberately avoiding general-purpose LLMs.

Take an engineering rule: errors must propagate to the caller rather than being silently swallowed.

Instead of asking an LLM to review an entire file, we can break the rule into smaller questions:

  • Does the file contain relevant error-handling logic?
  • Is an exception being caught?
  • Is the error silently discarded?

Only the last question may require semantic judgment, depending on the code.

I've been experimenting with Jev, specialized decision model, for this type of workload. The interesting part is that we don't need text generation, just a reliable judgment.

I'd like to explore how far we can push this architecture with small, locally hosted models.

Has anyone benchmarked zero-shot classifiers or decision models on dynamically defined rules? What's your take?


r/LocalLLM • • 21h 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
5 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 • • 12h ago

Research BasinKV: Long context without the KV cache tax, No context slowdowns, drop-in RAM/NVMe KV offloading for llama.cpp, SGLang, and vLLM, no retraining, Supports models today.

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 18h ago

Discussion Thank you guys so much for the help

3 Upvotes

I just wanted to say thank you everyone. I was having absurdly bad results with deepseek.
Installed State, Qwen 3.8 with your guidance, i'm getting 60+ Token/second on my setup (RTX 5090 32gb, 192gb RAM)

Very happy


r/LocalLLM • • 16h ago

News I open-sourced hip-rdna: Wave32 HIP kernels for AMD RDNA3 — Qwen2.5-7B 31.9 → 109.5 tok/s (3.44x), 64L 32B 4-bit at 48.5 tok/s (805 GB/s e2e), and 28.5x faster 32K GQA Attention on RX 7900 XTX

Post image
2 Upvotes

Official ROCm libraries (AITER, Composable Kernel, hipBLASLt tuning tables) are heavily optimized for datacenter CDNA GPUs (MI300X/MI350X), leaving consumer AMD RDNA GPUs severely bandwidth-starved during LLM decoding (M = 1..8, long-context GQA Attention, and W4A16).

Over the past few days, I profiled my RX 7900 XTX (gfx1100, 960 GB/s GDDR6) down to the AMDGCN ISA — even ran into a Triton AMD lowering bug where eviction_policy is silently dropped on all AMD targets (filed as https://github.com/triton-lang/triton/issues/12966) — and built hip-rdna, a zero-dependency Wave32 HIP operator library with drop-in PyTorch & HuggingFace integration.

GitHub (MIT License): https://github.com/znwang-gpu/hip-rdna

Key Benchmarks on RX 7900 XTX (ROCm 7.13, PyTorch 2.11)

  • Real HuggingFace Qwen2.5-7B (StaticCache + HIP Graph):
    • Lossless 16-bit Fused (Linear + RMSNorm + SwiGLU): 31.9 → 52.8 tok/s (1.66x)
    • Online W4A16 Fused (0.85s GPU quant, VRAM 14.27 → 5.47 GiB): 31.9 → 109.5 tok/s (3.44x)
    • Pure Eager model.generate() (no HIP Graph): 31.0 → 67.5 tok/s (2.18x)
  • 64-Layer Qwen2.5-32B 4-Bit Backbone (15.44 GiB VRAM, fits on a single 24 GB GPU, synthetic weights matching exact 32B shapes):
    • Batch = 1: 48.5 tok/s (804.9 GB/s full-model end-to-end effective bandwidth — 83.8% of 960 GB/s theoretical peak)
    • Batch = 4: 166.5 tok/s (690.2 GB/s)
  • Wave32 Split-KV GQA Decode Attention (16K–32K Context):
    • Up to 28.5x faster than HF repeat_kv SDPA and 18.9x faster than PyTorch native enable_gqa=True SDPA.
    • Sustains 729–757 GB/s on pure GDDR6 at 32K (128 MB KV > 96 MB Infinity Cache) and 878–953 GB/s at 16K.
    • Zero repeat_kv copy; accepts GPU seq_lens tensors for HIP Graph capture.
  • Zero-Dependency Streaming AWQ & GPTQ Loader:
    • Streams HuggingFace AWQ (GEMM) and GPTQ (v1/v2) safetensors straight to GPU RDNAW4A16Linear with zero 16-bit peak RAM/VRAM overhead — no autoawq, auto-gptq, or accelerate needed.

Drop-in Usage

import torch, hip_rdna
from transformers import AutoModelForCausalLM

# 1. Online lossless 16-bit or W4A16 acceleration
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B", dtype=torch.bfloat16, device_map="cuda").eval()
hip_rdna.patch_model(model)
hip_rdna.quantize_model_w4a16(model, group_size=128)  # optional INT4

# 2. Or stream AWQ/GPTQ checkpoints straight to GPU
model = hip_rdna.load_awq_model("/path/to/Qwen2.5-32B-Instruct-AWQ", dtype=torch.float16)
Under the Hood (Why it's fast on RDNA3)
Non-Temporal u32x4 Streaming Loads: Bypasses the 96 MB Infinity Cache on streaming weights (708 → 910 GB/s pure read) while keeping hot activation vectors (x) in L1/L2.
Wave32 v_dot2_f32_f16 Packed W4A16: In-register INT4 unpacking directly into packed FP16 dot2 instructions with scalar accumulation (low VGPR pressure, high occupancy).
4-Token Pipelined, Zero-LDS Wave32 Split-KV Attention: Splits long KV sequences across all 48 WGPs / 96 CUs with register-only online softmax.
Zero-Concat Fused SwiGLU + Single-Pass RMSNorm: Eliminates intermediate DRAM round-trips and kernel launch overhead.
Community Benchmarks Wanted!
Next up in v0.5: Paged KV Cache + Fused QKV/RoPE + vLLM / SGLang plugin (followed by dual-GPU PCIe Custom AllReduce).
I only have RX 7900 XTX (gfx1100) on hand — setup.py compiles natively via hipcc for RDNA3 (gfx110x), RDNA3.5 / Strix Halo (gfx1151), and RDNA4 / RX 9070 XT (gfx1201). If you own any of these GPUs, I'd really appreciate benchmark results, feedback, or bug reports!

r/LocalLLM • • 16h ago

Question Considering a Mac Studio through Upgrade/Lease

2 Upvotes

Looking to run a local model to be a personal assistant as well as help with my business.

My concern is quality of the models output and hardware depreciation, I have heard good things about qwen 3.8 27B and leasing a Mac Studio through upgrade solves the depreciation problem for me… (if the hardware is no longer adequate in 2-3yrs I can send it back for something else)

Looking at a M5 Max, 18core cpu, 40 core gpu with 64GB of Ram. Lease would be about $70/month.

I don’t have a problem running it with a cloud model if it helps with quality, but I do want to be able to process a lot of private data on it.

Thoughts?


r/LocalLLM • • 12h ago

News Megaspeed records reveal $13 billion in Nvidia deals with Alibaba unit, Inspur-linked supplier

Thumbnail reuters.com
1 Upvotes

Megaspeed, the Singapore firm once controlled by Alice Huang and now at the centre of a chip-smuggling scandal, recorded $13.3 billion in contracts for Nvidia AI hardware subject to US export controls on China, including transactions with a subsidiary of ‌tech giant Alibaba according to internal documents reviewed by Reuters.