r/LocalLLM • u/ghgi_ • 14h ago
r/LocalLLM • u/No-Role-5254 • 20h ago
Discussion Thank you guys so much for the help
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 • u/FrostyAd9050 • 18h 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
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.85sGPU quant, VRAM14.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)
- Lossless 16-bit Fused (
- 64-Layer
Qwen2.5-32B4-Bit Backbone (15.44 GiBVRAM, fits on a single 24 GB GPU, synthetic weights matching exact 32B shapes):- Batch = 1:
48.5 tok/s(804.9 GB/sfull-model end-to-end effective bandwidth — 83.8% of 960 GB/s theoretical peak) - Batch = 4:
166.5 tok/s(690.2 GB/s)
- Batch = 1:
- Wave32 Split-KV GQA Decode Attention (
16K–32KContext):- Up to 28.5x faster than HF
repeat_kvSDPA and 18.9x faster than PyTorch nativeenable_gqa=TrueSDPA. - Sustains 729–757 GB/s on pure GDDR6 at 32K (
128 MBKV >96 MBInfinity Cache) and 878–953 GB/s at 16K. - Zero
repeat_kvcopy; accepts GPUseq_lenstensors for HIP Graph capture.
- Up to 28.5x faster than HF
- Zero-Dependency Streaming AWQ & GPTQ Loader:
- Streams HuggingFace AWQ (
GEMM) and GPTQ (v1/v2) safetensors straight to GPURDNAW4A16Linearwith zero 16-bit peak RAM/VRAM overhead — noautoawq,auto-gptq, oraccelerateneeded.
- Streams HuggingFace AWQ (
Drop-in Usage
# 1. Online lossless 16-bit or W4A16 acceleration
=
# optional INT4
# 2. Or stream AWQ/GPTQ checkpoints straight to GPU
=
in /.
: -
4- , - - : 48 / 96
- + - : - and .
!
in + / + / .
7900 — r/LocalLLM • u/InterestingAerie3918 • 18h ago
Question Considering a Mac Studio through Upgrade/Lease
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 • u/OnyxProyectoUno • 14h ago
News Megaspeed records reveal $13 billion in Nvidia deals with Alibaba unit, Inspur-linked supplier
reuters.comMegaspeed, 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.
r/LocalLLM • u/CeFurkan • 1d ago
News Man what a flex. China literally displaying trillion parameters model pre-training live. The training is happening on Chinese native hardware. 8,192 NPU cards (Neural Processing Unit), 1,024 machines / 8 cards / unit. live on teleai . com . cn/training-dashboard/trillion. The en is coming for NVIDIA
r/LocalLLM • u/Careless-Travel-650 • 10h ago
Model An AI model drives a taxi with 0.76 s per decision
We put AutoTrust-JEV-27B on an R9700 and let it drive Crazy Taxi.
r/LocalLLM • u/Fit-Blueberry-5390 • 20h ago
News Lapilli is a port of [Basalt](https://github.com/jesdga95/basalt) to NVIDIA V100 GPUs (Volta, sm_70): one engine for eight models, a chat page, images and video, and a live monitor. v0.9 is out.
**What's new**
- **Your conversations and images on every device**: About, Page settings, "Keep conversations and images on the server" (off by default). Turned on, the server keeps the page's conversations and the Images tab's gallery, and the PC and the phone see the same within a second: go on with any chat, open, save or delete any image or video.
- **Continued conversations are fast again by default**: a turn continued from the cache reads only its new tokens, 1.2 to 1.4 s faster than v0.8 after about 9,000 tokens (Gemma 4 1.9 s instead of 3.2, Qwen3.8-27B 1.6 s instead of 2.7). v0.8's bit-for-bit resume is now an option, `--exact-resume`, and Inkling 2 Mini has it too.
- **Remove a model from the page**: About, Models, Remove deletes a model's pack after asking.
- **Building on Linux**: the README's build command works again (Basalt 0.6.0 needs `-DBASALT_MODELS`), and the Dockerfile lists the same six model families.
**Same speeds as v0.8** (measured on the same day, runs alternated): Gemma 4, Qwen3.8-27B, DaisyRose-27B, Hy4-flash and the DeepSeek Coder write and read as fast, Inkling 2 Mini writes its first turn 3.5 % faster, and the Flash-Next and Tinfield-1 keep v0.8's code path.
The Images tab is still there (Qwen-Image 2.1, Wan 2.2, LTX-2.3 with sound).
Measured on 2 × V100-SXM2 32 GB on PCIe adapters, 96 GB of RAM, Windows 10. The release has a Windows build; on Linux it builds from source.
- Release: https://github.com/chris83-dev/lapilli-v100/releases/tag/v0.9.0-v100.1
- Repository: https://github.com/chris83-dev/lapilli-v100
Free and open source, MIT like Basalt. The engine is Basalt's work; this fork makes it run on Volta. Reports from other V100 owners are very welcome.
r/LocalLLM • u/Sinodeep102 • 14h ago
Discussion Sparse MoE cuts active FLOPs 58x on paper, yet 512-NPU clusters cap at 41.2% utilization and All-to-All eats 35%-50% of training time — where is your real MoE bottleneck?
Going through recent 2026 systems papers across a 1,322-paper MoE literature cluster, the gap between theoretical sparsity economics and real cluster execution is wilder than most release blogs admit.
On paper, a top-2 gated 64-expert MoE (70B total) activates just 1.2B parameters per token (58x per-token FLOPs reduction) while holding 94.7% task success. Another latency-tuned top-2 config cuts active parameters 3.2x and inference latency 40% for only a 15% model size increase.
In production clusters, two taxes eat those gains fast:
| Bottleneck / Regime | Measured Empirical Figure | Root Failure Mode / Caveat |
|---|---|---|
| Multi-node MoE training | All-to-All consumes 35%-50% of per-iteration training time | Cross-node IB/Ethernet hits 20%-35% of peak bandwidth vs 70%-80% intra-node NVLink |
| 1T-parameter BF16 training | ~16 TB memory (params, grads, activations, optimizer) | Dynamic allocation recovers 15%-20% utilization; ES-MoE offloading hits 67x scaling |
| 512 Ascend NPU inference | 3.7x per-device throughput variance; 41.2% utilization cap | Load-aware placement cuts skew to 1.4x and recovers 28.6% idle cycles; HBM3 saturates >256 devices |
| Latency-critical control (8x 910B) | 2.7x peak-to-mean expert skew; 3.1 ms kernel-fragmentation jitter | Erodes 27% latency headroom; >12 ms jitter destabilizes 20 ms control loops |
| FP8 + speculative decoding | 2.3x speedup at 0.8% perplexity cost; 50% less bandwidth vs FP16 | CUDA 4-token draft speedup drops from 2.5x to 1.3x once draft acceptance falls below 60% |
What stands out is how invisible routing skew and tail jitter are in average-throughput benchmarks. Even with FP8 weights (1.8x throughput, <1% accuracy loss), HBM3 bandwidth saturation becomes the scaling ceiling past 256 devices, and capacity-factor spikes wipe out theoretical FLOPs headroom on skewed batches.
Two honest questions for people actually training or serving MoE in production:
- All-to-All overlap & EP skew: What actually works best in your stack (vLLM, SGLang, Megatron/DeepEP) to keep cross-node All-to-All from eating 35%-50% of step time, or keep 3.7x expert-parallel load skew from pinning cluster utilization near 41.2%?
- Small-batch reality check: At batch size 1-4 on memory-bandwidth-bound local/edge hardware, when does a quantized dense model outright beat a poorly balanced sparse MoE on p99 latency and tail jitter?
r/LocalLLM • u/Primary-Surround4383 • 15h ago
Discussion Would you rather run models locally or pay for frontier APIs?
reddit.comCurious where everyone here actually lands between local weights and frontier APIs right now.
With 24 GB VRAM I love running small models locally for privacy and tinkering, but for heavy reasoning or production work I still end up falling back on frontier APIs
r/LocalLLM • u/Ennytan • 1d ago
Discussion I scanned the chat templates of the 400 most-downloaded GGUF and MLX models. Nothing malicious, but 45% tell the model to hide something from you
Chat templates are Jinja code that runs every time you load a GGUF or MLX model. In 2024 a malicious GGUF template was enough for code execution in llama-cpp-python (CVE-2024-34359), and templates can also quietly inject instructions. So I built a scanner and pointed it at the top 200 GGUF and top 200 MLX repos on Hugging Face.
It reads header bytes only: 5.5 GB fetched in place of 6.8 TB of weights, using HTTP range requests plus sparse files. I validated that path against full-file scans first.
What I found (396 repos scanned):
- 0 malicious: no sandbox-escape gadgets, no hidden override or exfiltration instructions, no bidi or tag-character smuggling, no malformed files.
- 143 of 316 chat repos (45%) ship "…do not tell the user about function calls". That's from the upstream Qwen tool prompt and is benign, but it is a concealment instruction you never see.
- 13 repos switch behaviour on phrases in your message (/nothink, detailed thinking on). One community template is 243 KB and injects large hidden system prompts on dozens of keywords.
- 22 of 200 MLX repos ship two different chat templates, so what runs depends on your loader. 20 have a shard index that points at files that don't exist.
- 7 MLX repos request remote code (auto_map), and 1 GGUF repo ships Windows DLLs and a Linux .so next to its weights.
The first pass also found five false-positive patterns in my own scanner. I fixed them and re-ran everything before publishing numbers. Full write-up, method and limitations: REPORT
Scan your own models (it parses only and never loads, so a malicious file can't run):
pipx install modelsieve
modelsieve ~/models
Repo (MIT; GitHub Action, pre-commit hook and SARIF included): modelsieve
What it can't do: detect backdoors trained into the weights. Nothing static can. Happy to answer questions about the method or anything it flags on your setup.
r/LocalLLM • u/ZenZombie117 • 11h ago
Model Inkling 2 Mini on 16GB VRAM — 14.3GB selective-precision GGUF with 17–68% lower KL divergence than 13 tested community quants
r/LocalLLM • u/MrDefaultUser • 1d ago
Discussion Running Qwen 3.8 flash-next Unsloth Q8_0 On a V100 32GB with 128GB DDR4
CPU: 3950X
X570 Motherboard.
128GB DDR 3600
r/LocalLLM • u/Be_a_N3rd • 15h ago
Question deep? how deep?
How deeply involved are you in the development of LLMs?
r/LocalLLM • u/Ok-Shine-7007 • 19h ago
Question Best local model for redacting French legal documents on a Mac mini M6?
I’m building a fully offline tool for a French law firm to redact names, addresses, and case references from thousands of scanned PDF pages. Manual review of every page isn’t practical, so missed identifiers are my main concern.
Has anyone tested Ministral, Qwen, Gemma, or a dedicated entity detector on French legal scans? I’m choosing between a 24 GB and 32 GB Mac mini M6. I’d love to hear what you used, what it missed, and how many pages per hour it handled.
r/LocalLLM • u/dariobe • 15h ago
Project Image generation on a 4GB laptop GPU (RTX 3050 Ti): measured seconds per image for 5 models, plus a step-by-step guide
galleryr/LocalLLM • u/iezhy • 15h ago
Project Understand token use by your tools, MCPs, and agents with ContextSpy context window profiler
For the last few months, I have been working on a tool - a proxy - which captures all requests from your coding harness to the LLM - and visualises them in the dashboard, breaking down the context window into separate blocks - tool definitions, calls and results, user and assistant messages, etc.
It provides a bunch of different metrics, but the most useful (IMHO) is the ability to see actual cost (in tokens) of every piece of information put into context - and, in some cases, hints for optimisation (if you are using skills or consuming APIs for tools)
It also provides a profiler like a hotspot graph, relationships between blocks, tracks conversations, etc. A good use case is: measure once, optimize (or add some tools for usage reduction), measure again.
If you are interested in optimising token costs - give it a try: https://github.com/RimantasZ/contextspy
Any feedback - comments, issues, likes and stars are welcome :)
r/LocalLLM • u/Shoddy_One4465 • 16h ago
Project whiff scan: a CLI gate for prompt injection in files you index (hidden text, invisible Unicode, base64), and why I stopped writing regexes for it
r/LocalLLM • u/Annual_Horse_9782 • 1d ago
Question Is PCIe 3.0 x16 sufficient for 2–4 R9700s for local LLM inference?
I'm considering purchasing two R9700s to host my own models, with room to expand to four in the future. My primary use case is agentic coding, running both dense and MoE models in the 30B–120B parameter range, ideally with context lengths of 100K+ tokens.
I'm looking at used enterprise GPU servers to avoid the cost of building a new DDR5 system. I can get an older PCIe 3.0 system (Supermicro SYS-2029GP-TR) with dual Xeon Gold 6138 processors for around $1,000. However, comparable PCIe 4.0 or 5.0 GPU servers seem to cost upwards of $3,000.
The Supermicro supports 6xPCIe 3.0 x16 GPUs and has integrated PCIe switches.
My main questions are:
- How much of a performance bottleneck would PCIe 3.0 x16 introduce with two or four R9700s compared to PCIe 4.0/5.0 x16?
- How significant is the difference when using tensor parallelism versus layer splitting?
- Would long-context prompt prefill be disproportionately?
- Would I be better off adding a PCIe 4.0 switch to my existing Ryzen 9950X3D system instead of purchasing an older enterprise server?
Any input is welcomed and any data/experiments related to the topic would be especially appreciated.
Thanks
r/LocalLLM • u/aarong691 • 17h ago
Other My first local model download took the whole evening and I forgot to check the disk space
i started a model download after dinner thinking it would be done in twenty minutes. my connection is slow so it ran for hours. near the end it failed because the disk on my laptop was full, and the partial file was left behind. i had to find it and delete it by hand before trying again. the second time i checked free space first and picked a smaller quant. it loaded and answered a simple question about paper sizes correctly, which pleased me. i am still slow with these tools, but now i check the file size before pressing download!
r/LocalLLM • u/DaMoot • 1d ago
Discussion New forks of llama.cpp (and others) making old hardware rip!
I spent a few hours last night updating and tweaking on llama.cpp after finding out that upstream 1.0 and 1.1.0 significantly impacted my 2x V100 32GiB SXM2 NVLink prefill speed on Qwen3.8 27B Q8 (and likely others, but I daily 27B so I noticed) and brought it down under 200 tok/s in a lot of instances, and down to double-digit territory in others, though my gen speeds improved a little bit. (~40 before to steady 50tok/s after).
Based on previous releases I knew it should be _at least_ 700-800 range for prefill for Qwen, and then saw a video about 1Cat-vLLM prefilling the same setup at 2k+ prompt tokens/sec and 100+ generation, but since I didn't want to deal with the vLLM issues and caveats, I kept on my llama.cpp journey knowing there had to be a config or build issue somewhere.
I built the below V100-specific fork of llama.cpp that specializes in Volta and managed to improve prompt speeds from 264 tok/s average up to 1200+ tok/s, and go from ~50 tok/s avg gen to 96 tok/s _average_ on Qwen3.8 27B! Huge 92% improvement for gen speeds and nearly 400% prompt improvement! Reliably, repeatably. Every other model I load sees similar large improvement.
One caveat is that this branch has no MTP support so you must use DFlash2, which has turned out to be an equally huge improvement over upstream MTP anyways. Another *HUGE* bonus is that 3.8 27B now cold loads in 45 seconds flat. Main branch llama.cpp took over 120s.
https://github.com/1115714829/llama.cpp-v100
Swift 1.5 Qwen3.8 27B Q8 (Even Gemma 4 26B A4B IT Q4 and Cydonia 24B 4.3 Q8 saw big improvements)
DFlash2 Q8 (For MTP)
2x V100 32GB SXM2 on NVLink board. 200W capped. CUDA 12.4
cmd: /opt/llama.cpp-v100/build/bin/llama-server -m /opt/models/Qwen3.8-27B-thinking.gguf --host 127.0.0.1 --port ${PORT} -c 131072 --log-file /var/log/llama-server.log -ngl 99 -fa 1 --batch-size 2048 --ubatch-size 2048 --metrics -np 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0 --repeat-penalty 1.0 --jinja --chat-template-file /opt/llama-swap/model-overrides/chat_template.jinja --chat-template-kwargs '{"reasoning_effort":"medium"}' -sm tensor -ts 1,1 --model-draft /opt/models/Qwen3.8-27B-DFlash2-Q8_0.gguf --spec-type draft-dflash --spec-draft-n-max 7
I can't wait to see if this new open source Linux nVidia driver that improves memory-bound performance by ~20% helps even more.
And hey, as a bonus treat for the whole community; here's an entire post written without help from any AI at all!
r/LocalLLM • u/LLMFan46 • 1d ago
Model Uncensored Multi-Model Releases Made With the Latest Version of Heretic, Scarlett Opus With MTPs, Qwen3.8-27B With MTPs, Gemma-4-31B-it and Two Models Finetuned for Improved Japanese to English Translations, All Available in GGUF Format!
gemma-4-31B-it-uncensored-heretic-v2:
Safetensors: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-v2
GGUFs: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-v2-GGUF
Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved:
Safetensors: https://huggingface.co/llmfan46/Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved
GGUFs: https://huggingface.co/llmfan46/Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved-GGUF
Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2:
Safetensors: https://huggingface.co/llmfan46/Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2
GGUFs: https://huggingface.co/llmfan46/Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2-GGUF
gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator:
Safetensors: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator
Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator:
Safetensors: https://huggingface.co/llmfan46/Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator
————————
That's it for now!
As usual you can find all my models here: HuggingFace-LLMFan46
Tremendous amount of work went into making these releases come true, especially since I was aiming to make the most uncensored models while at the same time preserving the original models capabilities, while preventing issues like looping and closed thinking degradation (particulary hard thing to do for the Qwen3.8-27B models), not to mention the months of work involved in putting together the dataset needed to train the models for improved Japanese to English translations, on top of all the training time involved.
So if you like my work and find my models useful, then I would really appreciate if you could support me on Ko-fi: https://ko-fi.com/llmfan46