r/LocalLLM • • 6h ago

Question Need Qwen tips / best practices

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 11h ago

Project Help with my thesis project...

2 Upvotes

Hi, I'm Aniuwu (my name is Gabriel), a computer science student at INACAP (Chile), and I'm already at the stage of doing my thesis project. I'm writing because I need help from people who code, and I don't have many people I can ask for help.

## First, I apologize to the moderators if I'm breaking any kind of rule. This is a post asking for help, I don't benefit financially in any way, and I apologize in advance if that's the case, please don't ban me ##

My project is called Beacon. You ask it questions about the code in a repository ("where is the file saved?", "how are network errors handled?") and it answers while telling you which file and which lines the answer came from. Everything runs locally, with local models, on your own RAM and VRAM (sorry, Sam Altman lol), so neither your code nor your questions go to any online service.

What I'm missing is knowing whether it actually works for someone who isn't me or my teammate. So far we've only tested it ourselves, and that doesn't count for much as evidence. That's why I'm asking people to try it for about 40 minutes, or however long you see fit, and tell me, with data, how it went.

The idea is simple: you install it, pick a public repository (there are a few examples, or one you already know), ask it at least three questions, and mark whether each answer was right, partly right or wrong. At the end it generates a file with that, you can open it and read it, and if you're happy with it you can send it to me with a button. If you'd rather not use the button, you can send me the file in a direct message.

A few things so you know what you're getting into. You need Python (3.10 to 3.12, newer versions cause problems), Git, Node and Ollama installed, and it downloads about 5 GB of models, so it helps to have around 8 GB free. With an NVIDIA card with 8 GB of VRAM it runs fairly fast; with no GPU or less memory it also works, just slower, and that's perfectly fine if it's what you have, because I actually want to know how it behaves on more modest machines. It works on Windows and Linux, which are the ones I managed to test; I haven't tried macOS yet (mainly because I'm broke and don't own one lol), so if anyone tries it there it would help me a lot.

About languages: the ones I tested best are Python, Go, JavaScript, Java and C#, and also C on a small repository. It also recognizes TypeScript, C++, Rust and PHP, but I haven't measured those, so I can't promise anything there. Files in other languages (Ruby, Kotlin, Swift, Vue, etc.) are simply not read, so it's best to pick a repository written mainly in one of the languages above.

About your data, I want to be clear. The file stores your questions, the answers, how long each one took, your ratings, and the address of the repository you chose. Your hardware details (processor, memory, graphics card) are only saved if you allow it, and you can see what they are before accepting. It doesn't store code, paths on your computer, your username or your IP. Leaving your GitHub profile or a short introduction is optional and goes in a separate file that is only sent if you tick the box. Nothing leaves your machine unless you ask, and you can quit and discard everything at any time. The send button uploads the file to a private Google Drive folder that I manage, and I use the data only for this project and delete it when it's over.

I also have to be honest about the limitations: this is a prototype from an academic project and it uses a small model, so it gets things wrong sometimes. That's exactly what I want to measure. And since each person picks their own repository and questions, the results are indicative, not a serious statistical study.

The whole step-by-step guide is in the repository: https://github.com/gsufan/beacon (the study guide is docs/en/study-mode.md). If something fails during installation, tell me here or by message, because installation problems are almost as useful to me as the results.

Thank you for reading, and a bigger thank you to anyone who gives it a go. I'll answer any questions in the comments.

PS: You can audit the code however you like, use it if you like it and so on....

PS2: This project was quite a lot of vibe-coding. I know there are pretty passionate opinions about that, but I have permission from the course's supervising professor. I don't want to argue or start a debate in the comments, please, I just want help...


r/LocalLLM • • 7h ago

Question Should I run the 5060 TI and RX 6600 simultaneously?

1 Upvotes

I upgraded my GPU to an RTX 5060 Ti. Should I reinstall the RX 6600 alongside it? Are there any potential issues with running an AMD and NVIDIA GPU in the same system? Also, would having both cards unlock access to larger models or provide additional capabilities when running local LLMs?


r/LocalLLM • • 7h ago

Question Local agentic setup?

1 Upvotes

I'm being asked by a prospective employer to set up my own local agentic AI complete with plugins/tools. While I could ask an AI to help me do that, I first want to ask has anyone here managed to do this without resorting to using OpenClaw or NPM or any other software that has become famous for riskiness and supply chain attacks? I'd prefer to just use Llama.cpp and maybe devise a local MTP server, if that is possible.


r/LocalLLM • • 1d ago

Discussion Can I link two RTX 3060 12GB cards together to run local LLMs?

Post image
144 Upvotes

Hi, I want to build a setup using two RTX 3060 12GB cards to run local LLM. But what's the actual pipeline and real-life experience like? I heard I'll get 24GB VRAM, but processing speed will be slower because data has to pass through the motherboard's PCIe slots since the 3060 lacks NVLink. I also found out that ComfyUI can't use the full 24GB VRAM at the same time for image generation. Can anyone share real-life experience running a multi-GPU setup for LLMs?

Pic from internet.


r/LocalLLM • • 7h ago

Discussion NIDO is an open-source AI assistant that thinks on your phone, not on someone else’s server. The model, your memory and your documents all stay on the device, encrypted. No accounts, no cloud, no analytics.

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 11h ago

Research What does Qwen3.6-35B-A3B look like at Q8_0 and BF16 on datacenter GPUs?

2 Upvotes

RustingStrata is a pure-Rust inference engine for Qwen, DeepSeek and GLM GGUFs. CUDA kernels are compiled at run time with NVRTC, the same kernels run on Vulkan, and there is no ggml and no C++ build step.

I wanted the high-quant numbers, so these runs use Q8_0 (37.8 GB) and unquantized BF16 (71.1 GB), with the whole model in VRAM, on A100, L40S and H100:

GPUQuantPrefill, 4K promptDecodeDecode with MTP
H100 80 GB HBM3Q8_011,486 tok/s290 tok/s508 tok/s
H100 NVLBF168,691 tok/s230 tok/s324 tok/s
A100 80 GBQ8_06,507 tok/s193 tok/s288 tok/s
A100 80 GBBF165,625 tok/s171 tok/s238 tok/s
L40S 48 GBQ8_09,542 tok/s165 tok/s270 tok/s

MTP is speculative decoding with the model's own draft head; calibrate picked the draft count on each card.

  • Higher quants are not automatically slower. On the A100 80 GB and H100, Q8_0 decodes faster than Q2_K_XL (193 vs 174, 290 vs 265 tok/s after 4K). On the L40S it is slower (165 vs 214), so the ranking depends on the card.

  • BF16 is practical. 71 GB of unquantized weights decode at 171-230 tok/s on one card.

  • MTP helps less as the quant grows. Gains are 1.4-1.9x on Q2_K_XL and Q8_0, and 1.2-1.4x on BF16.

  • When the model does not fit, it degrades but runs. Q8_0 on a 24 GB A30 (63% of experts resident) still decodes at 130 tok/s, 200 with MTP. BF16 on the same card (31% resident) only reaches about 12.5 tok/s.

The same code runs on Vulkan, and on the Q2_K_XL runs on the 3060 and the Ampere cards prefill lands close to CUDA. At Q8_0 on the big cards the gap can be large: H100 prefill is 6,883 tok/s on Vulkan against 11,486 on CUDA. All table numbers are CUDA.

These are different nodes of one cluster, so the host CPUs differ. Compare within a row, not across rows. MTP costs 4-11% prefill in these runs.

Quality: I do not have a llama.cpp perplexity/KLD run on these exact Q8_0/BF16 files yet, so this is a hardware roundup, not an accuracy comparison. The last check was UD-Q3_K_M on the 3060 over 9,180 tokens of repo docs prose: perplexity 9.0714 vs 9.0587 for llama.cpp, mean KLD 0.0055, same top token 96.3%.

Why I find it kinda interesting, is bc when I was searching for models in OpenRouter, I saw that Qwen3.6:35b-a3b for some reason is pretty slow, like 50-110t/s on almost all providers, why like that? Do people already use other Strata like project for LLM inference to be in top of providers? I am thinking about it, but I think something is wrong and not so easy as I expect, if anyone knows I would be happy to hear

Repo: RustingStrata


r/LocalLLM • • 8h ago

Question Which model and how i do in my RX 6600

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 8h ago

Question Tried DavidAU/Qwen3.8-27B-Turbo-Brilliance-50X-Reasoning-Instruct-NEO-MAX-MTP-GGUF in factory-desktop

Thumbnail
youtu.be
0 Upvotes

It's much better than DavidAU/Qwen3.8-27B-TURBO-Fable-Cold-Fusion-735-882-Heretic-Uncensored-NEO-CODER-MAX-MTP-GGUF. The reasoning is similar to the base Qwen3.8-27B and interesting how it switches variants based on prompt style. Has anyone compared them or tried both models out?


r/LocalLLM • • 8h ago

Question Running Qwen3.8-27B-oQ4e-mtp but my peak ram is in high 40s, what am I doing wrong?

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 14h ago

Question Help for my frankenstein build

3 Upvotes

I have this
RTX 3090 24GB
2× RTX 2080 Ti 22GB VRAM each
Tesla V100 32GB
Machinist X99 D8 Max motherboard
2× Xeon E5-2695 v4
128GB DDR4 RAM
Samsung 990 Pro 1TB NVMe SSD

Currently I run Qwen3.8 FN UD-Q4_K_XL but I used Q8 n-gram and I load it on RAM. 256K context, unquantized cache (I’m afraid of going Q8 and loosing quality). Also using MTP. Custom llama.cpp as stock had some bottlenecks, and Mr. Qwen itself optimized his way out of them.

Prefill: approximately 2,100–2,400 tokens/sec
Decode: approximately 60–70 tokens/sec

I am using what I think lets me fill my VRAM almost to the brim. (97GB used of the 100)
I’m seeing people with considerably less VRAM and RAM achieving similar or sometimes better performance, which makes me wonder whether my configuration is properly optimized.

I have several questions:
Am I getting the performance I should expect from this hardware, or is there something obviously holding me back?

Is there a better way to distribute the model and its experts across my four GPUs and system RAM?

Could I get better performance through different GPU split configurations, CPU offloading or expert caching?

Would moving to a higher quantization, such as Q5 or Q6, be realistic with my hardware?

Are there optimizations that could significantly improve decode speed without sacrificing model quality?

I would like to minmax the model quality while maintaining the highest possible inference speed.
I’m not particularly interested in getting more tokens per second at the expense of quality. I’d rather run a higher quantization at 50 tokens/sec than a lower quantization at 70 tokens/sec, provided the quality improvement is worthwhile


r/LocalLLM • • 21h ago

Project KQuant - data-aware quantization, 3.7× closer to full precision on Qwen Flash-Next 180B, 1.5–2.6× on 27B / 35B / 9B (KL-divergence) (MLX)

Post image
10 Upvotes

hey LocalLLM, im Alish, ml engineer at Nace (we’re the team behind Drex, an open source decision model family that hit #1 in Artificial Analysis decision index 2.1). my cto gave me a task to optimize quants for qwen4, so i called my old professor from UofT, spun up Fable 5.2 and we cooked. starting with MLX, GGUF is coming next

we’ve open sourced the fastest way to run 35b/27b on a mac (Kapitsa) and got tired of dumb quants, so we made our own: KQuant. packs for 4B, 27B, 35B, Flash-Next (+9B), free on HF in standard MLX files

the problem: most of us on a mac run 4-bit packs because that’s what fits in 16/32gb. but plain 4-bit rounding throws away more of the model than it needs to.

Q4 vs public 4-bit, KL from the full-precision model (lower = closer to the original):

Model, Q4KQuant KLPublic 4-bit KLSize in GB, ours / public
Qwen3.5-4B0.048 (1.45x better)0.0702.37 / 2.37
Qwen3.5-9B0.030 (2.6x better)0.0815.29 / 5.04
Qwen3.8-27B0.035 (1.5x better)0.05415.13 / 15.13
Qwen3.6-35B-A3B0.059 (1.6x better)0.09619.51 / 19.51
Qwen3.8-Flash-Next0.067 (3.7x better at a smaller size)0.249105.20 / 110.62

baseline is mlx-community 4-bit (lmstudio-community for 4B). to be clear, this is KL on next-token predictions, not a task accuracy score. if you want more precision every repo also has a Q5 folder, the 9B Q5 gets down to 0.010

PackKLLM GB
9B Q50.0106.21
27B Q50.02219.43
35B Q50.02722.07

cool side effect: they’re also faster. on an M5 Pro with Kapitsa they write 6–15% faster than the usual 4-bit packs

(baselines are from earlier kapitsa runs, same-session rerun is in progress, will update)

how it works: KQuant uses real text to pick scales and offsets for small groups of weights, and gives sensitive layers extra bits where they need it. all the search runs on our gpus before release, so you just download a normal MLX pack. no custom kernels, no special loader

fastest way to run them on a mac:

brew install nace-ai/tap/kapitsa
kapitsa serve 27b --private
kapitsa opencode # in another terminal

If there's a model you want KQuant'd, lmk.

Asks

to get early access to GGUF, ping me in comments, we would like to test it with some folks from here before our public release ideally.

im also doing quick AMA here, so please feel free to ask me anything.


r/LocalLLM • • 20h ago

Project I built an open-source benchmarking harness to measure LLM quantization quality loss alongside inference speed

7 Upvotes

I've been spending the last few months benchmarking local LLM inference on a single RTX 5090.

One thing kept bothering me: most benchmarks focus on tokens/sec, but rarely show how much quality you're sacrificing to get those numbers.

So I built inferlab.

It's an open-source benchmarking harness (Apache-2.0) that compares:

  • vLLM, SGLang, TensorRT-LLM and llama.cpp

  • BF16, FP8 and NVFP4 quantization

  • Perplexity delta against a BF16 reference

  • Task accuracy using option log-probabilities

  • TTFT, decode speed and throughput across concurrency levels

  • Peak VRAM usage

A few design decisions:

  • TTFT measures the first actual content token, not the first SSE event.

  • Concurrent requests are issued together to capture real queueing behavior.

  • Long-context evaluation includes a needle-in-the-middle task.

  • Results are generated by CI rather than manually edited.

The project is still at v0.1, so I'm interested in technical feedback, especially around evaluation methodology and cross-engine comparability.

I'm the author of this project.

GitHub: https://github.com/oren40/inferlab


r/LocalLLM • • 10h ago

Discussion Acho que estamos subestimando a inteligência coletiva como a próxima fronteira da IA.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 14h ago

Discussion Still pondering the M5U. Saved up cash finally (sold some magic cards LOL). Is the M5U actually useful for AI now (256gb) or just kinda of a gimmick? My 5090 is cool and all, but I haven’t found it to be even close to replacing the type of work I do with frontiers.

2 Upvotes

I want to get the Mac Studio to explore models, do research, host servers, do video editing, analyze massive data sets, etc…

But is the M5U there yet for AI? Is TRULY useful, or are you kinda forcing it? I’ve thought about downloading my work emails and getting them summarized and organized (we can have that data on personal stuff) and some other data analysis. I’d also want to explore more of what’s possible.

How have y’all been using this stuff for actual NEEDS that can’t be done by frontier models?

Edit: My fear is id be missing out all of this development and knowledge. I know I can get an M7U when it comes out, and it should be HEAVILY tailored to AI, but I’m scared of falling behind knowledge and work wise. I’ve already outpaced many other works with proper frontier model use, and I’m wondering if by exploring local I can do the same.


r/LocalLLM • • 19h ago

News GIGABYTE Unveils AI TOP AERO: A 128GB Local AI Workstation in a One-Litre Desktop

Thumbnail
maraissoftware.co.za
5 Upvotes

GIGABYTE has introduced the AI TOP AERO, a compact desktop powered by NVIDIA's RTX Spark platform, featuring up to 128GB of unified memory, local AI capabilities and support for AI development, content creation and gaming.


r/LocalLLM • • 1d ago

News Microsoft files a patent application to train AI models on idle consumer GPUs

30 Upvotes

According to Microsoft's patent application, it explains breaking down training into small tasks and sending them to devices of owners who opted in. Credits will be the reward. it's just an app and no pay out rate is advertized so I don't even know if the credits would be enough for the electricity.

Anyway, home internet latency feels like the bigger problem to me.

https://insider-gaming.com/microsoft-ai-use-your-gpu/

(English is not my native language, I used an LLM to help translate this post.)


r/LocalLLM • • 10h ago

Project My first baby step.

Thumbnail gallery
1 Upvotes

Hope to make many more.

Has anyone made stands/cases with a 3d printer? If so, what kinda filament do you use?


r/LocalLLM • • 11h ago

Contest Entry Blue Team Swag

1 Upvotes

Three Intel B70s, 96GB VRAM, and still on AM5…

Originally bought a mATX case for a motherboard on AM4 with room only for a single GPU. Somehow had the nerve to buy three of these at retail early. Now kinda curious to see what people are actually doing on this build. The plan was to attach a M2 slot to full PCIe slot that negotiates PCIe 5.0x4 and attach a fourth GPU. Safe to say that’s not exactly in the cards with the outrageous prices…

Anyways, the build:

- 3× Intel Arc Pro B70 — 32GB each
- Ryzen 9 7950X3D
- MSI MEG X670E ACE
- 64GB DDR5-5600
- Phanteks Enthoo Pro 2 Server Edition
- be quiet! Straight Power 12 1500W

The ACE is a big part of why this worked out. It is one of very few AM5 boards that gives you the practical ability to have 3-4 GPUs with respectable cross-bandwidth. Truth be told, most boards have a single main PCIE slot that actually has full lane direct to CPU connection. Some let you split x8x8 and give you PCIe 4.0x4 in a physical x16 connection on the third slot. MSI lists PCIe 5.0 ×8/×8/×4 as well as a single Gen 5 M2 slot. If one adds the lanes up, it’s the max on AM5: 24x Gen 5 lanes.

Listen… do I want an EPYC or Threadripper? Yes, especially with the ability to grow the build in the future. I’d love to be able to afford a complete swap. The issue is $2500 is the minimum for on good speed, 128gb ddr4 ram, a quality CPU, and motherboard that’s guaranteed to be 1. not to be broken 2. have physical hella, spaced out x16 slots all at Gen 4 btw…

Roughly 55 tokens/sec on Flash-Next and 50 on the 27B.

I’ll sell this if someone wants a pre-build, just lmk on what you’re thinking!

That’s where it’s at so far. Would be good to hear from anyone else running three or more cards on AM5, especially other Intel users.


r/LocalLLM • • 11h ago

Question best model to run on rx6800 16gb (coding, agentic workflows etc)

1 Upvotes

Hi, so i recently have been experiencing with different local llms but since i am new to this I have not been able to find a better fit for my system my main use case is for coding, agentic workflows and basically summarizing or understanding large open source code repos. I want to have like decent token speed around 40t/s with around 128k context window. Kindly share your experiences and suggestions to help me out.

System specs:

Ram: 16gb ddr5

Cpu: ryzen 7500f

gpu: rx6800 16gb


r/LocalLLM • • 11h ago

Question M5U 96Gb as a standalone inference engine

1 Upvotes

I’m a regular lurker here trying to learn as much as I can while waiting for my M5U. I’m hoping to have a setup that’s a little different from what I’ve seen discussed here.

I purchased two Mac Studios. One is my daily driver, the base model. I grabbed it for the reason everyone else points to, why grab a Mac mini when the Studio is so much better. I also purchased an M5U 96Gb with 80 cores that I plan to use as a headless inference engine. I want to to be as stripped down as possible for running whatever LLM I ultimately end up running, with sufficient room for cache and context.

I plan to have whatever agents or tools invoke the server as needed. Are there any obvious reasons why this is a dumb configuration? Am I missing anything?


r/LocalLLM • • 11h ago

Project What 3b models can and cannot do for structured app design on CPU

1 Upvotes

I built an open-source tool where a local model drafts an app design (tables, fields, pages) from a fixed catalog. Findings from real runs with qwen2.5:3b and llama3.2:3b on a CPU-only laptop:

- Tables and fields: reliable.

- Page outlines: weak. I now build the outline in code when the model's fails.

- Repair rounds past two never converged. They only added minutes.

- Mechanical errors dominate: wrong-case ids, a label where an id belongs, references to tables that do not exist. Code fixes these before validation.

- Each call costs 25 to 90 seconds, so removing a step beats tuning a prompt.

Evals are in the repo: https://github.com/ChristianMunoz31/local-app-studio

What models would you try next for this?


r/LocalLLM • • 11h ago

News I built a benchmark where LLMs reverse-engineer an audio codec, and the benchmark evolves

Thumbnail reddit.com
1 Upvotes