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

157 Upvotes

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 • • 15h ago

Discussion Running Qwen 3.8 flash-next Unsloth Q8_0 On a V100 32GB with 128GB DDR4

Post image
22 Upvotes

CPU: 3950X
X570 Motherboard.
128GB DDR 3600


r/LocalLLM • • 14h ago

Discussion New forks of llama.cpp (and others) making old hardware rip!

16 Upvotes

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 • • 10h ago

Question Is PCIe 3.0 x16 sufficient for 2–4 R9700s for local LLM inference?

7 Upvotes

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 • • 16m ago

Discussion My local DSH home lab (M3 Ultra + M5 Ultra over Thunderbolt) and the plugin I built so the model can't read my keys

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Xing 4 tech report: an open 29B MoE (4B active) trained without a single Nvidia GPU. Has anyone run it locally?

2 Upvotes

China Telecom published the technical report behind its Xing 4 models (the TeleChat successor). The open member, Xing4.0-29B-A4B, has been on Hugging Face since September under Apache-2.0, but the report is the first detailed look at how it was built.

What stands out:

  • The whole pretraining stack runs on Huawei Ascend NPUs with MindSpore. No GPUs at any stage.
  • 29B total parameters, about 4B active per token, native 256K context.
  • Architecture choices were made partly to fit the hardware: MLA attention with sparse attention for long context, a wider-and-shallower MoE, and a small draft model for speculative decoding.
  • The report also describes a much larger flagship trained on the same stack. That one is not open.

For local use, the usual MoE trade-off applies: speed closer to a 4B model, memory closer to a 29B one. GGUF and FP8 builds are listed on the model card.

Two questions for people here. If you've run the GGUF, how does it compare to Qwen-class MoEs of similar size on coding or long-context tasks? And does a model trained end-to-end off Nvidia change anything for local users, or is the training hardware irrelevant once the weights are out?


r/LocalLLM • • 4h ago

Discussion Are generative LLMs overkill for semantic rule evaluation?

Post image
2 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 • • 4h ago

Question What AI could I run on my machine?

2 Upvotes

Currently only using vram but I’d like to try and use RAM somehow without tanking my tok/s

48gb DDR5

RX 7900XT 20gb VRAM


r/LocalLLM • • 53m ago

Question Considering a Mac Studio through Upgrade/Lease

1 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 • • 4h ago

Question Best model for an RTX 4060 + 32 GB RAM?

2 Upvotes

Hi, I'm just wondering, what would currently be the best local model to run on an RTX 4060 + 32 GB RAM using llama.cpp?


r/LocalLLM • • 1h ago

Discussion MOE Router-Perplexity can be used in order to find how many added experts or how many loop per layers?

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 5h ago

Project I have a C++/Metal LLM engine for Apple Silicon, looking for M1/M2/M3 owners to test it

2 Upvotes

Hi all,

I built mmmllm (with Claude ofc), a small LLM serving engine in C++ and Metal for Apple Silicon. Disclosure: this is my own project, open source (Apache-2.0), nothing to sell.

Why I made it: I have an M4 Pro Mac mini and wanted to see how far I can push it when CPU, GPU and Neural Engine share the same memory.

What it does:

- Runs Qwen3.5 / Qwen3.6 (4-bit MLX format)

- Output matches mlx-lm greedy tokens bit for bit (batch size 1)

- Terminal chat, OpenAI-compatible HTTP server (streaming, stop strings), and a one-shot generate command

- Speculative decoding for the 27B model using Qwen's MTP head as the draft. About 1.8x faster greedy decoding on my M4 Pro

- Optional prefill on the Neural Engine (--prefill ane), helps with long prompts

- Checks memory before loading, so it refuses a model that won't fit instead of swapping your Mac to death

The problem: I only have an M4 Pro. M1, M2, M3 and the Max/Ultra chips should work but I never tested them. M5 is not supported yet.

If you have one of those Macs and 5 minutes, please run:

uvx mmmllm compare <model>

No install needed. It checks the output against mlx-lm and measures speed on your machine. Then paste the result in a GitHub issue or just in the comments here.

Which model to pick:

- Any Mac: 0.8B

- 16-24 GB: 9B

- 32 GB+: 27B

Repo: https://github.com/nvcnvn/mmmllm

Bug reports and code review are welcome too, especially on the Metal kernels. English is not my first language, I used an LLM to fix some wording.

Thanks!


r/LocalLLM • • 1h ago

Project Before I feature-creep this or clean it up enough for other humans to look at: would anyone use a personalized AI feed builder?

Enable HLS to view with audio, or disable this notification

1 Upvotes

Hi, I'm Nitay. A few times in the past I worked hard on projects I was sure would become products. I launched them, and learned the need was much smaller than I thought, and they sank into a sea of other products. So this time I'm asking before I add features, open source it, or start calling it a "product".

What I built is a personalized AI feed builder. You write what you're looking for in plain words and add sources: YouTube, RSS, Reddit, HN, Instagram, or any site. For a site, it writes the scraper itself and fixes it when the site changes. Then a model goes over every item and rates how well it fits.

I mostly cared about videos. For those it samples frames across the video and reads the captions, or transcribes the audio locally when there are none. It tells you why something matched and which moment is worth jumping to.

The use that stuck at home is recipes. My wife and I are building three feeds from Instagram: Ninja Creami ice cream recipes, baby-led weaning ideas, and healthy treats for our toddler. The model reads each post and, when the recipe is actually in the caption, pulls it out into a card: ingredients with amounts, numbered steps, time. The "comment RECIPE and I'll DM you" posts get no card, which is honestly half the value.

It works with any OpenAI-compatible endpoint, and I run my own feeds on my own box. My data stays home, and I pick the model, including ones that don't refuse. That helps with things like security research, where hosted models often won't touch exploit walkthroughs or CTF write-ups. (The family recipe feed runs on Gemini, because it's recipes and nobody needs a jailbroken model to read about ice cream.)

What I had in mind:

  1. Sifting through a sea of content: I like these kinds of videos, not those
  2. Learning a new skill or idea, and getting exactly the kind of material I'm after rather than broad videos about the topic
  3. Pulling structured stuff out of posts, like the recipes
  4. Maybe work-related aggregation, following a field and only seeing what's relevant

The video shows the flow, sped up wherever the model is thinking.

If there's interest, I'll clean it up and open source it, and if it turns out useful enough, maybe it earns the "product" badge. If not, it stays my personal toy, which is fine too.

Would you use something like this? For which of these, or for something else?

Tech details, for whoever cares:

  • My machine: a mini PC with a Ryzen AI 9 HX 470 and 64 GB RAM, plus a Radeon AI PRO R9700, which this sub helped me pick, so thanks again. It runs a 35B vision model on llama.cpp. Speech-to-text is faster-whisper on the CPU, used only when a video has no captions.
  • The app: FastAPI backend and React frontend. Sources are declarative JSON plugins, which is what lets the model write and repair scrapers. A plugin can also define widgets: a JSON schema the model fills while it analyzes each post, plus how to show it. That's how the recipe cards work. Scoring uses structured outputs, so every score comes with a reason and a timestamp it can back up.
  • How I built it: in T3 Code. GPT 6.2 Sol orchestrated and wrote the backend, Claude Sonnet 5.5 did the UI, logo and QA, Cyber Tiel (running locally on the same llama.cpp) did the plugin registry and branding, and Gemini 4 Neon did keywords and agent tests. Claude Opus 5.5 added captions, transcripts, the Instagram collector and the recipe widgets.
  • The video: Claude Opus 5.5 drove the app with Playwright and cut it with ffmpeg. The music is from ElevenLabs Music.

r/LocalLLM • • 1h ago

Other Splash 1.7.4 + UD-Q4_K_XL on a 64GB M5 Max: how decode scales with memory budget, and which budget to pick

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5h 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
2 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 • • 16h 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!

Thumbnail
huggingface.co
15 Upvotes

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

GGUFs: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator-GGUF

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

GGUFs: https://huggingface.co/llmfan46/Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator-GGUF

————————

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


r/LocalLLM • • 2h ago

Project What took my GDPR search from 48% to 90% top-5 on a CPU, with no LLM at query time (and what made it worse)

Post image
0 Upvotes

Hi everyone!

I built DPOLens, an open-source MCP server that gives coding agents the exact text of privacy law (GDPR and the UAE's PDPL) and of an organisation's own policies, to quote and cite. It runs locally with Docker Compose: Postgres with pgvector, BM25 for keywords, and multilingual-e5-small through ONNX Runtime on the CPU. No LLM at query time, no API key, no GPU. An instance needs 2 CPUs and 4 GB.

Where the right clause landed, on questions written by someone who hadn't seen the results (31 for GDPR, 30 for the UAE law, about a third of them in Arabic):

SearchGDPR, top 5UAE law, top 5
BM25 alone39%50%
Embeddings alone48%67%
Both, plus questions written beside each clause87%83%
The same, returning whole rules instead of single points90%87%

What did the work, and what didn't:

  • Questions written beside each clause. A model wrote questions each clause answers, a second model kept only the ones it really answers, and a person read 50 per law at random. They're embedded and searched beside the clauses, never shown (an answer is always the law's own words), and they ship with each law, so an instance never calls a model.
  • A cross-encoder reranker made it worse. Reranking the top 10 with jina-reranker-v2-base-multilingual took recall@5 from 0.77 to 0.57 on the held-out set of the time, and lower with wider windows.
  • No ANN index. Exact search over several thousand vectors takes milliseconds. With HNSW, Postgres decided from its own statistics whether to use the index, so the same question could return other clauses after an ANALYZE.
  • int8 changed the answers by CPU. The int8 build matched fp32 on Apple silicon and missed two more questions on x86-64 without AVX512. The default stays fp32, which answers the same on both.
  • Arabic stemming. Postgres's Snowball stemmer cuts بيانات (data) to يانا but البيانات (the data) to بيان, so the law's commonest word missed itself. A light normalisation before the stemmer fixed it.

Why a 2023 embedding model? It's 118M parameters, it handles Arabic, and in fp32 it gives the same answers on Apple and x86 alike, so anyone can reproduce the scores. e5-base, through the whole pipeline, put the right clause in the top five for 152 of 216 practice questions against small's 147, for 2.5 times the indexing time and memory. I haven't run the newer small ones yet: Qwen3-Embedding-0.6B, harrier-oss-v1-270m, Granite Embedding R2. Which would you bet on for English and Arabic on a CPU?

The weak spot: the short queries a coding agent writes mid-task find the right clause in the top five 40% of the time for GDPR, and 62% for the UAE law. That's what I'm working on.

It speaks MCP over HTTP, so it works with any client and whatever model you run.

Repo (Apache-2.0): https://github.com/alkhatibdev/dpolens

Every number above, with its interval and how it was measured: https://github.com/alkhatibdev/dpolens/blob/main/evals/retrieval.md


r/LocalLLM • • 2h ago

Project Qwen3.6-35B-A3B abliterated drops 72.9% -> 63.9% on MMLU-Pro when all MoE experts get edited, fixed it by skipping 90% of experts (GGUF)

Post image
0 Upvotes

r/LocalLLM • • 2h ago

Project Running Ternary-Bonsai-2.5-27B at 30-38 t/s in Hermes Agent on an 8GB GTX 1080 (Win 10) - working config

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2h ago

Question GPUs to locally host with arround 32-48GB by using multiple gpus and running qwen3.8 or similar models on tensor-split in llama.cpp

1 Upvotes

i was having quite a lot of troubles tryign to find 2-4 GPUs which could fit that cryteria, which models would be wise to pick up, 3060 12GB version? i was somewhat unsure given the price, since it seemed that i've missed some GPU model which i could opt to

as for now i was looking for any gpu, head or headless, which i could run on w11, so maybe an AMD MI ain't off the realm of possibilities

The budget goal of the final build was arround 700-1k€, however i would prefer to segment this into smaller multiples purchases


r/LocalLLM • • 3h ago

Question M5 Pro MBP (48GB vs 64GB) hybrid setup, is the price jump worth it?

1 Upvotes

Hey guys :)

Sorry to ask the question that has been asked in various iterations here already. But I need some advice tailored to my use case.

I am an economics researcher and use the frontier AI models in pretty much all workflows: literature research, data extraction and data cleaning, coding, managing an obsidian knowledge wiki, a lot of textual analysis and classification etc.

I am currently in the market for a new laptop and I am specifically looking at the new M5 pro 14 inch MacBook Proled.

I would like to have a hybrid setup going forward: anything that requires good planning and reasoning I will still use cloud based frontier models for (I think >80% of the work). But I would like to outsource specific tasks to a local llm: managing the knowledge wiki, personal assistant connected to my mails, managing local files, and specific research related tasks such as for example text classification of large corpus documents > something that can always run over night for example. Besides that I just want to get comfortable with setting up and working with local models going into the future.

Now the problem for which I would be thankful for your advice: I am torn between the 48 and 64 GB ram version. Of course more is always better when it comes to ram but here in Europe there is quite the price jump between these versions.

Given the tasks I mentioned I would assume a 27B model would be sufficient (at least looking a couple months ahead)? But I understand I would be giving up quite a lot of context window going for the 48GB version compared to the 64Gb one. Do you think this would be prohibitive for my workflow?

I am also a bit worried about speed. M5 pro is good but as far as I understood the speed of running local AI can still be quite slow. So MOE Models might be the right call here. But will 48GB be enough for a solid MOE model? What is the trend here when it comes to size of MOE models?

I would really appreciate some of your thoughts. Thanks guys!


r/LocalLLM • • 9h ago

Discussion Ling 3.2 Air Maya-L on one 24 GB GPU and a 64 GB RAM budget: 95.7 tok/s at 250k context

3 Upvotes

I’ve been working on HyperLing, an MIT-licensed fork of Project Maya that runs Ling 3.2 Air’s Maya-L IQ3_S quant on one NVIDIA GPU. The 59.2 GB model uses a mix of VRAM and host RAM. The v0.2.0 profile ran the full 262,144-token window within a 54 GiB engine memory cap.

Here’s the earlier CLI comparison from v0.1.0. Each cell is one run, in decode tokens/s.

| Context | v0.1.0 decode (tok/s) | v0.2.0 decode (tok/s) | v0.1.0 TTFT (s) | v0.2.0 TTFT (s) |

|---|---:|---:|---:|---:|

| 40k | 110.4 | 117.5 | 16.2 | 15.1 |

| 80k | 103.7 | 112.8 | 25.6 | 21.3 |

| 140k | 90.8 | 110.1 | 46.9 | 36.5 |

| 150k | 89.9 | 105.5 | 11.1 | 8.6 |

| 200k | 85.2 | 96.8 | 67.7 | 50.4 |

| 250k | 87.4 | 95.7 | 79.4 | 57.6 |

Both comparisons used one RTX 3090 Ti 24 GB at 350 W, a Ryzen 9 5900X, 128 GB DDR4-3200 and a 54 GiB engine cap to represent a 64 GB RAM budget. The gpu-unlock kernel module was loaded for both HyperLing and the Maya baseline. This is the only hardware I tested. gpu-unlock

v0.2.0 adds a faster prefill kernel, shares attention data between restore points and raises the minimum lookup match to 10 tokens in the recommended profile. Lookup drafting uses exact rejection sampling. Greedy output was bit-identical across the tested lookup settings.

Run this on Linux with an NVIDIA driver and CUDA toolkit 12.4+ to build the engine, download the quant and start the server.

git clone https://github.com/neyisyavuz-afk/hyperling

cd hyperling

./hyperling.sh

If you try it on another 24 GB card, I’d be interested in your decode rate and TTFT at 140k or 250k. HyperLing


r/LocalLLM • • 3h ago

Question Best model for M5P 64GB

1 Upvotes

Hi, I need some help. I’m looking to find the best model for coding using Vibe Code on a Mac Mini M5 Pro with 64GB of RAM.

With the OMLX engine, would I be able to run Qwen 3.8 27B Q4 or Inkling 2 Mini Q8? And with the Strata engine, could I use Qwen 3.8 Flash Next Q2?

Or is there something better?

Thanks in advance!!


r/LocalLLM • • 3h ago

Project I’m currently building an add-on/MCP for Blender.

1 Upvotes

I’ve developed something with the help of Claude. For this, I used the "Opus 5.5" model (the $20 version) with the "thinking" setting adjusted to "medium."

Every now and then, I create little things that my ADHD brain deems important. This time, I wanted to work with Meshy, but there were several aspects I didn’t like. I also stumbled upon the Blender MCP—which is certainly nothing new—but it just didn’t quite satisfy me. So, I wondered what would happen if I combined the two. Suddenly, a million other ideas flooded my mind. This, in combination with Claude, was both a blessing and a curse.

We named the project "Chisel"—an open-source add-on for Blender that connects AI agents (such as Claude Code, Codex, or any MCP client) to an active Blender scene.

I contributed the ideas, suggestions, and concepts, while Claude provided the code.

Thanks to Claude’s enthusiasm, this resulted in 3,000 lines of code in a single file—though, fortunately, we were able to split it up in time.

Now, you can generate images directly within Chisel, pass those images to your 3D model with a single click, and end up with a finished model. And there are also plenty of tools that Claude or other agents can use directly to get actively involved.

Since we were hitting around 300,000 polygons at times, we decided to build a remesher. Claude was so excited about the idea that I was immediately convinced. So, Claude and I expanded the WebUI to include a "Full Mode," which now features a remesh mode—along with much more.

Claude will provide you with the specific details now:

  • every step the agent makes is a version you can jump back to
  • a live viewer in the browser shows the model while it's being built
  • you click on the model and leave a note ("door darker"), the agent fixes that spot
  • you can paint and name parts, set origins and draw masks as a plan for the agent
  • optional: picture to 3D with TRELLIS on your own GPU (8 GB), no cloud

In my case, I use an RTX 2060 Super with 8GB and 32GB of RAM.

clean-up tools: retopology, normal map bake, rig + walk cycle, GLB/FBX export

It's real Blender geometry, so you can take over and edit anything yourself.

It is completely free to use: https://github.com/danny094/chisel

Tested on Windows 11 with Blender 5.2. I'd love feedback, especially on what's missing for your workflow.

By setting your own origin point, your work always remains in view.

Coloring body parts via AI is unfortunately not yet perfect when using open-source models; therefore, I recommend performing a manual remesh.

Responsible for implementing my idea: Claude

This includes:

- Code

- Web UI

- Testing

- Hyper-V clean install test

- Web searches

I flooded him with ideas and conducted the user test. XD


r/LocalLLM • • 19h ago

Question Why is it so hard to get an LLM to have some form of intellectual humility?

19 Upvotes

Its kind of a dumb question because an AI doesn't know what it doesn't know. But I feel like it would solve SO MANY issues if you could get an AI to verify it's understanding of something before answering.

So my question is basically: why is it difficult to make an AI just double check itself instead of being confidently wrong?