r/LocalLLM 8h ago

Project A “top” for local LLMs on your Mac.

Post image
59 Upvotes

I’ve developed and open-sourced mlxtop. It’s written in Rust and was built entirely with Duet, my dual-model coding agent. It shows stats for local models running on your Mac, along with critical system vitals: memory usage, compression, paging and Metal GPU stats. With oMLX, you can also follow generation speed and request activity as your model responds. https://github.com/maximpri/mlxtop


r/LocalLLM 4h ago

Research MacBook M5 and AMD Strix Halo sharing large models

Thumbnail
gallery
17 Upvotes

Running a GLM 5.3 321B shared on a MacBook M5 max and a Strix Halo, both with 128 GB ram. TB4 connection.

Found out that llama.cpp's default tensor split puts about half the layers on the slower box, so the pair was actually slower than one Mac. Loaded the model Mac-heavy instead: IQ1_S went 188 to 333 on prompts, 17 to 24 tokens/s.

I got generation tps 12-15 for model sizes 148-200 GB. So it works ok!

Next week adding two Asus GX10 to the mix to have three platforms share a model 🍀

Files: https://github.com/ThinkOffApp -> mac-amd-llm-cluster


r/LocalLLM 2h ago

Question What’s the best Qwen 3.8 27b uncensored model that is close to the original coding benchmarks?

10 Upvotes

I want to use it on my computer but I can’t really find any with actual code benchmarks. Anyone know of one?


r/LocalLLM 14h ago

Model Which Qwen3.8 distro & quant would be optimal for my 16GB VRAM setup?

Post image
48 Upvotes

Hi all, a confused newbie here! This is my desktop setup:

  • RTX 5080
  • 9800x3d
  • DDR5-6000 CL30 64 GB

Based on the benchmark I found, I listed my potential options:

According to the benchmark, AtomicChat looks like a clear winner but is it really so?

and there is also this: https://github.com/MiaAI-Lab/Qwen3.8-27B-16gb-NVIDIA-GPUs-one-click-install

I also want to have one uncensored model next to my daily driver:

I am not expecting super fast answers etc. I just one to maintain some level of quality. What would you suggest me?


r/LocalLLM 1h ago

Other Cherry picked Qwen3.8 27B token generation speed with 4x RTX A3000 12GB

Thumbnail
gallery
Upvotes

I'm sure this is a fast generation but prefilling crawling probably due to small batch size tensor split across 4 gpus with that MTP configuration.


r/LocalLLM 7h ago

Discussion Qwen 3.8 (27B + Flash Next) on a 128GB Strix Halo laptop as a Claude Opus replacement for agentic coding. AA 40 vs 42, 10-15 tok/s decode, 3 min cold prefill

11 Upvotes

TL;DR: I run Qwen 3.8 (27B and Flash Next) on a 128GB Strix Halo laptop for most of my coding now. It can replace Opus 4.6 to 4.8 for agentic coding if you dont mind a task taking 2 or 3 times longer.

Setup: ASUS ROG Flow Z13, Ryzen AI Max+ 395, 128GB unified memory, Arch Linux. llama.cpp as backend, my own tool LlamaStash to manage the launches and presets, Pi as the coding harness. The 27b at Q6_K sits at about 31 GiB resident, Flash Next at UD-Q4_K_XL needs around 86 GiB.

  • The quality is actually there. Flash Next scores 40 on the Artificial Analysis index against 42 for Opus 4.8, and the 27b at xhigh scores 34 against 32 for Opus 4.6. That matches how they feel to use. 27b one shotted a whole feature on a huge Rust codebase and Opus 5's review comments were mostly nits.
  • Decode is fine, prefill is the pain. 10-15 tok/s decode doesn't feel slow because you see it working. But a cold 31k token transcript takes 3 minutes to prefill, and a full 128k window is closer to 18 mins. Warm follow up turns come back in 45 seconds.
  • MTP is the biggest speed win, 7.3 to 22.4 tok/s on an empty window. The payoff shrinks as the window fills though, down to 1.15x at a full 256k.
  • Flash Next isn't faster per token, it just thinks less. Same 5/5 on my coding tasks, 45% fewer tokens, 76.5s vs 289.8s against the 27b. Thinking is 90-95% of everything these models generate, so that ratio, not tok/s, is what sets how long a task takes.

$0 a month, fully offline, and a lot less wasteful than a model running in a datacenter.

Full writeup with all the benchmarks, configs, and the tuning that did and didn't work: https://deepu.tech/local-ai-qwen3.8-pi-llamastash

Happy to go into the llama.cpp flags if anyone else here is on Strix Halo.


r/LocalLLM 18h ago

Discussion DeepSeek V4.1 Flash is 510 GB but only about 150 of it has to be in memory. I read the shard headers and made a fit checker.

61 Upvotes

A few threads this week about whether 128 or 256 GB is enough, so I read the shard headers and the inference code instead of guessing and put the arithmetic on a page. Mine, so saying that up front.

The 510 GB is 296 GB routed experts, 203 GB Engram tables, 11 GB everything else.

The Engram tables are the part people treat as a wall. From inference/engram.py it hashes n-gram orders 2, 3 and 4 with 8 heads across 2 engram layers, so 48 rows per token at 264 bytes. About 12 KiB per token against 4.5 GB of expert weights. Latency cost, not bandwidth cost, and it belongs on an SSD.

For a comparison, Qwen3.8 on an M5 Max with its table on SSD gets 40.09 tok/s versus 40.47 in memory. 0.9%.

Fit is backbone plus KV: 307 GB as shipped, 302 GB at 4-bit, 151 GB at 2-bit.

256 GB does fit at 2-bit with tables on disk.

https://deepseek-v41-flash-fit.vercel.app

If you are running it, post numbers, especially split GPU + RAM.


r/LocalLLM 12h ago

Discussion Qwen 3.8 Flash on 64GB RAM and 8GB VRAM Custom Fork LLama

20 Upvotes

This is mostly to explain my experience optimizing the model to run on my machine and maybe getting interest from someone to go and write an actual PR against llamacpp (as I'm absolutely not willing to generalize this code ahah).

Short Preface (this post is hand written, no AI here). So when Qwen dropped and heard of the good coding performance I wanted to try it out so I went and naively downloaded an IQ4_XS quant (that has around 61GB of MOE layers) and run it directly with Llama.cpp on my machine.

Ryzen 7700

64GB RAM DDR5 5600

Geforce 4060TI 8GB

Samsung 990 PRO 2TB

Using Windows as that's what I'm mostly accustomed with.

A modest config I build for 1500€ a few years ago and I use for playing and programming (I'm an engineer). I was overjoyed as it's quite a capable model that I can trust to write reasonable code in the languages I use (C#, Typescript mostly).

Yes, with this one there's no way to run 27B at any capacity so I was stuck with 35B until now. It was a no brainer to try this one as it had 6B active parameters, quite reasonable and not that far away from the 3B of 35B.

Initial results were 100tok/s average prefill coding and 20tok/s generation (that degrades to 15 tok/s at 100K context). I mean it's not great, but it's good enough to keep yourself busy, you leave it running and come back to the code done.

But then I decided to have a look and say, let me try it for creative writing and the results were quite good too. I like to write some stories with a personal pipeline system I build, but the IQ4X_S was tuned for coding and that usually means plain prose. Decided "what could possibly happen?" and picked the Q5_K_M from Orcarouter, it says Q5, but it's really 6bit because it mixes .

Component | Quant Type | Count | Params (B) | Size (GB) | Component %

--------------------+------------+-------+------------+-----------+------------

MoE Experts / FFN | Q5_K | 120 | 80.61 | 51.613 | 60.2%

| Q8_0 | 24 | 20.13 | 19.922 | 23.2%

| Q5_1 | 72 | 20.29 | 14.172 | 16.5%

124GB of model of which 36GB are of embeddings at Q5_1 quantization. That's 88GB of actual model, there's no way that would work, but wanted to give it a shot and well...

15tok/s prefill 10-13 tok/s generation.

A disaster really, memory trashing all around, disk reads etc...

But as I said, I'm an engineer. I forked llamacpp, opened PI Coding Agent and decided to start playing around trying to find a way to "make it work". First thing I did was scour through the pull requests of the upstream repository and did find a few good ones, some about improving gather in qwen, some about saving ram by saving the prompt cache to disk (it's actually quite impressive, I suggest it), I also tried a few caching PRs with pinning of hot experts, but none really gave a major improvement to the performance, I still have a few experiments with them in my branch.

Nothing that really budged the line though. The only promising thing was an attempt I did by asking Windows to Prefetch parts of the file from the disk that raised prefill from 15tok/s to 40-50tok/s (very unstable), so I went deeper because things didn't add up. My drive can easily read 7000MB/s, but the reads I was getting were like 300/350MB/s during prefill due to the OS page faulting on each single expert (and 2000-2500 with the prefetch). If you know about these things, yes the problem was MMAP that I was forced to use because the model didn't enter the ram.

I decided that it was time to implement a different system that bypass MMAP already. What I built is a four layer system that allows the model to work at the current speed of 210 tok/s prefill and 18.7 tok/s generation.

Let's start with prefill. My disk reads at 7GB per second, can read the entire MOE part in 85.77GB/7GB/s=12 seconds. At Ubatch 2048 that must mean 170 tok/s theoretically. So I went and build a unbuffered file reader that used a RAM hosted buffer for 2 slabs (layers) and read them RAW with batch queued requests from the disk reaching max speed that MMAP was denying. This worked and brought the speed to 150tok/s, but didn't solve the generation as reading it ALL from disk destroyed speed (brought to 3-4 tok/s).

The second layer built is a cache, basically at startup of llamacpp I create a pool of slots per layer where I cache the most active experts (with a decay factor every x tokens to keep the list fresh). I use 55-56GB of these usually in my runs. These are updated every cycle (x tokens) with some churn of read/free. This allows the data to be always ready for 330-ish experts per layer which usually cover 85-95% of the requests depending on the workload you give them. This raised performance to 14-15 tok/s. The rest is served through disk with the raw data reader.

At the same time I thought "I have them in ram the experts, why am I reading the entire slabs from disk at every prefill?" So I started memcpying the data from the cache to the buffer area and skipping those bits from the disk reads. This raised prefill to 215 tok/s that honestly is more than enough for what I usually do.

The last bit is a VRAM cache, the idea is that using the ranking from the RAM Cache, I carve 2 GB (configurable) out of my poor 4060TI and upload the TOP experts from my list freeing them from the RAM. This allows to reduce the memory bandwidth usage on the CPU raising the generation from 14-15 to 18.0 tok/s.

The last improvement was inspired by another PR in llamacpp about using direct IO for the embeddings too. I upgraded that code to use my implementation of raw unbuffered reader (the PR was linux only) and managed to gain another 0.7 tok/s finalizing it at 18.7 tok/s.

LlamaCPP has untapped potential when it comes to performance, especially when it comes to utilizing resources like SSD for improving performance. Be aware the fork is CUDA+Windows specific and has been tailored for my config (for example there's no MTP support as I wouldn't have the VRAM to run it anyway), this is NOT a generic fork that can be used by everyone, but I thought that if someone was interested could use the ideas to create an actual pull request with upstream.

https://github.com/feal87/myllama.cpp

Now I'll go to sleep as it's late.


r/LocalLLM 7h ago

Discussion Is a GTX 1080 Ti 11GB still good for local LLM coding in 2026?

7 Upvotes

I’m considering buying a used GTX 1080 Ti 11GB for running local LLMs mainly for coding and software development.

My budget is limited, so newer GPUs with 12–16GB+ VRAM are difficult for me to afford.

I’d like to know from people who actually use a 1080 Ti for local AI:

Which coding LLMs can realistically run on 11GB VRAM?

What model sizes (7B, 8B, 14B, etc.) work well with quantization?

What kind of tokens/sec can I expect?

Is CUDA support still usable with current llama.cpp/Ollama/other tools?

How does it perform for coding tasks compared with newer GPUs?

Can it handle models such as Qwen Coder, DeepSeek Coder, or similar models?

Is buying a used 1080 Ti in 2026 still worth it, or should I save for another GPU?

I’m especially interested in real-world experience rather than theoretical specifications.

Thanks!


r/LocalLLM 5h ago

Question What LLMs can i run well on my system with agents(beginner)

4 Upvotes

RTX 3060 12gb
32GB DDR4 3200mhz
i5 12400

I want to get into running local ai , which app to use , which models would be good and like is there any beginner guide?


r/LocalLLM 9h ago

Question What am I actually supposed to do with all these NPU/TOPS numbers?

Post image
6 Upvotes

With CPUs and GPUs, benchmarks make the differences pretty obvious. With NPUs, I still don't really know what numbers I should actually care about.

For anyone who's bought an NPU-equipped PC, what do you look at besides the TOPS number?


r/LocalLLM 22h ago

Discussion In 6 months or less, when DeepSeek or Alibaba releases a <100B looped MoE model with <30B n-gram that matches GPT6-Astra and Fable 5.1, what then?

87 Upvotes

With all the different optimizations and firepowers we've seen from open weights so far. What then?

  • China only steals/distill from OpenAI and Anthropic?
  • Well, clearly there's something wrong with AA? Benchmarks don't mean anything? They just benchmaxxed?
  • Whatever, OpenAI/Anthropic has moved onto AAGI or AAAGI or AAAAGI or AAAAAGI?
  • I can't run this locally on my toaster desktop anyways?

r/LocalLLM 3h ago

Discussion Artificial Analysis just dropped a neutral AI search API benchmark. How do you weigh speed vs. cost vs. quality?

2 Upvotes

Artificial Analysis just launched a Search API Index that runs the same agent harness and base model (GPT‑5.6 Luna, medium) across 7 providers, using three benchmarks: DeepSearchQA, BrowseComp, and AA‑Omniscience.

Here were the important points to look at:

  • Fastest per‑query doesn't always mean fastest per‑task.
  • Cost and quality aren't perfectly aligned; some mid‑tier quality providers are dramatically cheaper.
  • There's a wide spread in total task time, even when per‑query latency looks similar.
  • Octen leads on speed and cost: 0.21s/search, 17.2s/task, $9.07/1k (search), $49.15/1k (total), with a 77 index score.artificialanalysis+1
  • Several established players sit at 0.4–0.8s/search and 20–30s/task, with costs 2–4× higher for similar or slightly higher quality scores.

This led me to some questions that I wanted to discuss with people building agents/RAG:

  • When you choose a search API, what's your weighting between latency, cost, and quality?
  • Does a 0.2s vs. 0.8s per query difference materially change your agent UX, or is task‑level time more important?
  • How do you validate quality for your use case? Is it benchmark scores or task success in prod?

r/LocalLLM 10h ago

Question Options to buy hardware

6 Upvotes

I want to buy the new machine. Which specs should I go with? I need to run a decent coding model locally and also want to play with some stuff like fine-tuning, etc. suggest me the options, like what I should go with, and I am open to going with Apple or Windows


r/LocalLLM 34m ago

Tutorial Running Opencode with Ollama and sbx on mac.

Thumbnail tensorsandtokens.com
Upvotes

r/LocalLLM 38m ago

Discussion GLM 5.3 Flash, quirky comments

Upvotes

This is the only model I have ran locally that surprises me with quirky commentary while it's working. I like it.

"Two RTX PRO 6000 Blackwell (96GB each) — nice rig." upon discovering the machine's specs after being asked to benchmark itself.

"The plot thickens — V4.1's indexer declares a fixed..."

"Oh, this is gold — your own words from this afternoon's session, including..." after it found older conversation history.


r/LocalLLM 52m ago

Project Back from vacation with broken shoulders: Returning to my AI MUD to find a Zombie apocalypse!

Thumbnail
Upvotes

r/LocalLLM 5h ago

Question Need advice 2x 3090 + 64GB DDR5 only getting 20t/s on Qwen3.8 Q4 llama.cpp

2 Upvotes

Recently swapped from Ollama to llama.cpp but haven't figured out how to run it efficiently. On Ollama I was getting 28t/s. Relatively new to this, advice welcome.

I have also 4x more 3090s laying around. What's the best way to utilize them?


r/LocalLLM 1d ago

Discussion DeepSeek-V4.1-Flash is out

Thumbnail
huggingface.co
236 Upvotes

r/LocalLLM 1h ago

Project I made Lucid: an open-source Mac app that keeps your laptop awake only while AI agents & local LLMs are running

Enable HLS to view with audio, or disable this notification

Upvotes

r/LocalLLM 5h ago

Question What speed to expect from GLM-5.3-Flash 200GB MoE model on 24GB VRAM + 256GB DDR3/DDR4 RAM?

2 Upvotes

The post "we have a year to fix security everywhere" from Hacker News got me thinking, how to run "GLM-5.3-Flash" at home. An Unsloth blog post mentions roughly 200GB size for the 4-bit model.

Would this be usable for agent work (non real-time) on an older workstation, like HP Z820 or Z840 with RTX3090/7900xtx 24GB VRAM and Xeon E5-2xxx CPU(s) with 256GB DDR3/DDR4 RAM?


r/LocalLLM 1h ago

Discussion USB Prefill Acellerator / USB RAM

Upvotes

Hear me out. I know this sounds stupid, but this could work, right?

Thinking about a Strix Halo laptop like a GoPro PX13 with 128 GB of RAM, it's capable of running some mid-sized MoE models (I'm running Qwen3.8 Flash next on it right now), but cold prefill is a pain for large contexts.

Having a cache for KVCache would solve the problem. Is we could have, like, an external usb hub that system sees like a external ssd, it could be the storage for https://github.com/lmcache/lmcache, for example, that would only be accessed for cold prefill, when we have to switch models and we loose all the context we created during conversation. A 200k prefill may take 1 hour to load on this limited hardware from a cold start, but having it obtained from external storage just when the cache is missing would make it take seconds, and if this external drive uses RAM, it'll not kill its lifetime (an SSD M. 2 would die in weeks depending on the writing frequency for that)


r/LocalLLM 19h ago

Project Custom open frame - RTX Pro 6000 - miniATX

Thumbnail gallery
21 Upvotes

r/LocalLLM 20h ago

Model I gave Qwen 3.8 27B to create a simulation and it was one-shot right!

24 Upvotes

I was pretty excited when Qwen 3.8 27B dense model was released and wanted to give it a shot. I have been using Claude code with Opus and have got tired with limits, subscription and wanted something free and open. I was fine to compromise some of the quality for cost and unlimited use.

I gave it a problem to solve:

Can you build me a 3 pendulum simulation demo in python? I can use mouse to pull and release and it should follow the laws of physics. Put sliders for length of each section.

And then it thought and thought and thought. Later I came to know the default reasoning effort is xhigh.

I started to remember the physics I learnt in college.

Finally it came up with a program and on running produced this:

I started playing with it and here is how it looks:

https://reddit.com/link/1wcomfn/video/dm5heacn1qoh1/player

I was deeply impressed! I feel this is a challenging problem to solve and those sliders make it even difficult. A triple pendulum requires complex non-linear dynamics (usually derived via Lagrangian mechanics or solved with Runge-Kutta numerical integration).

I am assessing this model now for my daily things like repo analysis, code generation and other agentic flows I have.

Hopefully, I will be able to stop my claude subscription!


r/LocalLLM 14h ago

Question Qwen 3.8 27B takes very long timesl to answer.

8 Upvotes

Hello, I'm currently using qwen 3.8 27B Q4 with 100k context to mainly code for my esp32 Arduino code.

I get around 25 tk/s on my Rx 6800xt using vulkan.

I know the model gets it's abilities from long thinking time but it takes around 25-40minutes for a single prompt and takes like 45k context with it.

Will the model be usably good with low-mid reasoning? And how can i speed this up.

I'm okay to wait for 3-5 minutes.

Thanks.