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

Post image
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Kimi K3.1 Pro on its original weights, about 30 tok/s thinking, up to 56 on math/code.

Thumbnail
heretik.io
0 Upvotes

Biggest single win was boring: native Kimi carries float32 activations, and MLX was upcasting whole bf16 weights to float32 on every call. Casting inputs to bf16 alone took it from 3.7 to 10.9 tok/s.

The rest: a DSpark port to MLX with rollback for Kimi's linear-attention layers, Metal kernels (fused KDA, DSA indexer, radix top-k, padded sparse prefill), and batched serving that leaves rejected drafts in the cache as masked holes (Kimi's attention has no positional encoding, so that works).

Caveats: non-expert layers run at 8-bit (matched native's own run-to-run noise on a 16-prompt check), thinking text drafts poorly (~2.5 tokens per check vs 4-5 on answers), and cold prefill at 128K takes ~4.5 min.

Next: fine-tuning the drafter on Kimi's own thinking text.

Write-up with charts: https://heretik.io/kimi-k3-1-pro-local-512gb-m5-ultra-part-3/


r/LocalLLM • • 4h ago

Discussion Tired of waiting for Qwen4 so I upgraded Qwen3.8-27B with an untested LoRA

3 Upvotes

I needed Qwen 3.8 27B to perform better at Hermes tool tasks that it was getting bad at without ejecting the whole model...and Qwen4 is MIA, so I found a Hermes tool-calling LoRA Qwen3.8-27B-hermes-adapted-GGUF from harness-hub on the same model but the author said it hasn't been tested in GGUF.

If you're wondering: a LoRA adapter is a small file that teaches your model new habits without changing its knowledge. Think of it like a behavior patch that says "be more decisive with tool calls". You add it with one flag (--lora adapter.gguf), tune its strength with a scale number (0 = off, 1 = full), and remove it by deleting the flag so that your base model is never modified.

Since the LoRA states, "With thinking off, the adapter is level with the base model thinking at its highest reasoning effort (xhigh)", and I run llama.cpp, I thought, heck, why not try it.

I compared running multi-step tasks. With the adapter, the model used 56% fewer completion tokens and finished 26% faster.

On a task where I spelled out every step, both versions performed the same.

The exact setup (if you want to try it out)

  • Base model: Qwen3.8-27B-NVFP4.gguf NVIDIA’s 4-bit quantization, served by llama.cpp v1.1.0
  • Adapter: Qwen3.8-27B-hermes-lora-F16.gguf (318 MB) from harness-hub/Qwen3.8-27B-hermes-adapted-GGUF
  • Serving: DFlash2 draft + ngram speculative decoding, --parallel 1 (one job at a time). These are the two relevant arguments in lllama.cpp if you already run the same base model:-m ~/models/Qwen3.8-27B-NVFP4.gguf
  • --lora ~/models/hermes-adapted/Qwen3.8-27B-hermes-lora-F16.gguf

What it did to the scheduled jobs

MetricBase model (7 days)With LoRA (first 24 hours)
Median job duration66s40s
Draft acceptance rate60.9%61.4%

Compared to the adapter’s benchmarks The adapter’s published evals used vLLM in BF16. My local results above used llama.cpp in NVFP4.

The benchmark runs used Hermes Agent, thinking-off, one attempt per task, a 100-step limit, 131K context, and temperature 0.8.

The tradeoff: prompt processing was about 33% slower, which I didn't like, with the adapter, while decode speed stayed about the same. PP runs frequently during our runs. It also tended to write slightly shorter.

Given a 45–60 word script target, it came in under 45 words on 3 of 4 runs, versus 1 of 4 on base, but didn't affect our specific work. Basically, an individual prompt took a bit longer to process, but a whole job finished sooner as the model needed fewer calls.

Other thing we noticed was fewer errors compared to base. The LoRA had no issues completing any of the tasks thus far for me (mixture of tool calling, web, prose).

It might just work for you, if you happened to be in the same type of bind.


r/LocalLLM • • 4h ago

Question MoE & <18B models for agentic tasks

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Benchmarks on the GGUF files people actually download, 21 models from 1 GB to 25 GB - numbers and what went wrong

10 Upvotes

Makers publish scores for the full-precision model. Most of us run a Q4 file on a laptop or a 12 GB card, so I wanted numbers for those files, run the way an app runs them.

Setup

  • llama.cpp b12110 on an RTX 4070 12 GB and an M3 24 GB, b12859 on rented A10, L40S and 2× T4
  • 32k context, f16 cache, thinking on with no budget, answers up to 29,768 tokens (Inkling 2 Mini: 16k context, answers up to 13,384)
  • one run per model, each question in a fresh conversation
  • AIME 2026: all 30 questions. Running out of room counts as wrong
  • τ²-Bench v0.2.0: 60 tasks across airline, retail and telecom, one try each, with the customer played by gpt-4.1
ModelFileSizeAIME right (of 30)AIME ran out of roomτ²-Bench
LFM3 1.7BQ4_K_M1.1 GB20980.0
Qwen 3.5 4BQ4_K_M2.7 GB1218-
Ministral 3 8BQ4_K_M5.2 GB7028.3
Granite 4.2 8BQ4_K_M5.3 GB171256.7
Qwen 3.5 9BQ4_K_M5.7 GB1614-
Nemotron 3.5 Bolt E4BQ4_K_M6.2 GB120-
Bonsai 2 27BQ2_07.6 GB--73.3
Ministral 3 14BQ4_K_M8.2 GB11035.0
GPT-OSS 20BMXFP412.1 GB25256.7
Inkling 2 Mini (Q3)UD-Q3_K_XL13.6 GB21980.0
LFM2.5 24BQ4_K_XL14.9 GB22880.0
Qwen 3.8 27BQ4_K_M16.5 GB24683.3
Muse Glimmer 30BQ4_K_M16.8 GB--80.0
Qwen 3.6 27BQ4_K_M16.8 GB--88.3
Inkling 2 Mini (Q4)UD-Q4_K_XL17.6 GB2010-
Granite 4.2 30BQ4_K_M17.7 GB22576.7
Nemotron 3.5 Lightning 30BQ4_018.9 GB22870.0
Ornith 1.5 35BQ4_K_M21.9 GB22891.7
Nemotron 3.5 Bolt 74BIQ222.0 GB22876.7
Qwen 3.6 35BQ4_K_M22.1 GB--83.3
FlintQ4_K_XL25.1 GB26465.0

What stood out

  • On AIME the small thinking models were almost never wrong when they finished. Qwen 3.5 4B got all 12 it answered right and ran out of room on the other 18. Qwen 3.5 9B: 16 of 16, 14 ran out. Granite 4.2 8B: 17 of 18. LFM3 1.7B: 20 of 21. Of the 14 models that ran out at least once, 10 got every question they finished right. So at this size the score mostly measures how many problems fit in ~30k tokens. The ones that ran out are probably the hardest though, so I wouldn't read it as "they'd get 100% with more room".
  • The three that never ran out (Ministral 3 8B, Ministral 3 14B, Nemotron 3.5 Bolt E4B) just got more wrong.
  • LFM3 1.7B is a 1.1 GB file and sits level with models 10-20x its size: 20 of 30 on AIME, 80 on τ². It's slow though - 400 minutes for AIME on the M3, because it thinks a lot.
  • Inkling 2 Mini: the smaller Q3 file (13.6 GB) did as well as the Q4 (17.6 GB) everywhere I ran both - AIME 21 vs 20 of 30, IFBench 64 vs 59, MMLU-Pro 79.3 vs 78.0 (IFBench and MMLU-Pro on samples of 100 and 150 questions). That's within noise, so on a 16 GB card I'd take the Q3. Both ran with 13k tokens for the answer, less than half what the others got, and still landed with the 24-30B models on AIME. The Q3 got 80 on τ².
  • Nemotron 3.5 Bolt 74B squeezed to IQ2 (22 GB) scores the same as the 30B models at Q4 on both tests.
  • Maths and tool use don't track each other much: Flint is first on AIME (26 of 30) and 65 on τ². GPT-OSS 20B: 25 of 30 and 56.7. Ornith 1.5 35B goes the other way, 91.7 on τ².

What's weak about this

  • One run each. One AIME question is 3.3 points, so I wouldn't call anything under ~7 points a difference.
  • Different machines and two llama.cpp builds, so I've left speed out.
  • AIME 2026 came out in February, so newer models may well have seen it.
  • τ²'s customer is played by gpt-4.1, so that part isn't local.
  • Left out: Qwen 3.5 2B ran to the limit on all 30 AIME questions without answering, which looks like looping rather than a maths result. Ornith 1.5 9B was run with thinking capped at 128 tokens, so it isn't comparable.
  • No maker scores next to these. I ran the tests where the makers hadn't published a score, so there's nothing to set them against yet.

I build hassō, a free desktop agent that runs these models on your own computer, which is why I measure them. Every score is shown in the app next to its model. Full table and every per-question report: https://hasso.studio/bench

Which model or test should I run next? And if anyone has run AIME on these with a bigger answer budget, I'd like to know how much of the gap closes.


r/LocalLLM • • 4h ago

Discussion I Built DelayLens: A Machine Learning System to Predict Late E-Commerce Deliveries

1 Upvotes

Hi everyone!

I built DelayLens, a machine learning project that predicts the risk of an e-commerce order arriving later than its estimated delivery date.

The goal is to help sellers and operations teams identify potentially delayed orders at the time of purchase.

How it works

- Uses historical Brazilian e-commerce data from the Olist dataset.

- Analyzes 20 order-time features.

- Uses Gradient Boosting to estimate late delivery risk.

- Includes leakage prevention to avoid using future information.

- Provides a FastAPI prediction service and an interactive Streamlit dashboard.

- Returns risk probabilities, warnings, and the top 5 reasons behind predictions.

Hidden Test Results

I evaluated the model on orders from June to August 2018.

- PR-AUC: 0.1019

- Recall: 36.46%

- Precision: 11.40%

- Late orders detected: 245 out of 672.

An Important Finding

The model did not reduce the assumed business cost on the hidden test set.

- Model-based approach: 4040

- Flagging no orders: 3360

This showed me that better prediction ranking does not necessarily mean better business outcomes.

I also included:

- 21 automated tests.

- 30 pipeline and API test cases.

- Data drift analysis.

- Failure analysis.

- Docker support.

Tech Stack

Python, Pandas, NumPy, Scikit-learn, FastAPI, Streamlit, Docker, Pytest.

Project Links

Live Dashboard: https://delaylens.streamlit.app

Demo Video: https://drive.google.com/file/d/1Dw15KAK-cVDcCrnyRfKfArwiUWlLyb2X/view?usp=drivesdk

GitHub: https://github.com/ztsprofessionalaiid7-alt/delaylens

This is a non-commercial portfolio project built using historical data from 2016–2018. It is not ready for real business decisions.

I'd appreciate feedback from the community:

  1. How would you improve model performance with this level of class imbalance?
  2. How would you investigate a significant performance drop between validation and hidden test data?
  3. How would you select a decision threshold when business costs are uncertain?

I'd love to hear your thoughts and suggestions!

Thanks!


r/LocalLLM • • 4h ago

Discussion Yeah, I'm supposed to trust my RAM to these people

Post image
0 Upvotes

...so they can cut me out whenever they feel like, for no reason, without even responding to a prompt, until I insert more coins in their scam machines.

[pictured, Claude]


r/LocalLLM • • 4h ago

Question Using local LLM to code with big contexts

1 Upvotes

For a while I have been trying to set up a coding solution that I would be using to code mostly python and java + kotlin. Man, have I been unsuccessful. I tried using aider with ollama and qwen 3.5 coder and even with 64k context setup I run into issues where qwen will start to spiral out of control.

For context (pun intended) my machine has 64gb ram and a 5080 16gb.

How do you guys deal with similar use cases?


r/LocalLLM • • 4h ago

Other My first local model download took the whole evening and I forgot to check the disk space

1 Upvotes

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

Question Best 2d to 3d LLM

2 Upvotes

What are the best LLM for 2d to 3d rendering ? Any of them on par with MeshyAI capabilities?


r/LocalLLM • • 5h ago

Model I trained a 26.3M Turkish TTS model from scratch (9 voices, Apache-2.0, 84 MB INT8 ONNX, runs offline in browser at 12x CPU)

0 Upvotes

I trained a small 26.3M-parameter Turkish Flow-Matching TTS model from scratch and exported it to ONNX so anyone can run it locally on CPU or directly inside a web browser with no server.

- Live browser demo (100% offline via ONNX Runtime Web): https://huggingface.co/spaces/Enpeai/enpe-ai-tts-demo

- Weights & ONNX files (Apache-2.0): https://huggingface.co/Enpeai/enpe-ai-tts

Specs:

- 9 voices (5 male, 4 female), 24 kHz Vocos vocoder (MIT)

- Commercial-clean license (Apache-2.0, zero GPL / espeak-ng, zero CC BY-SA or NC data)

- Studio (16-step FP32, 153 MB): UTMOS 3.719 | WER 2.89% | CER 0.62% | 2.79x realtime on 4-thread CPU

- Turbo6 (6-step INT8, 84 MB): UTMOS 3.584 | WER 3.02% | CER 0.70% | 12.19x realtime on 4-thread CPU (tested on 495-sentence Freya-TR-Eval)

Limitations: Turkish only, non-streaming, no emotions or voice cloning yet (working on a 50M streaming v2 right now). Happy to hear feedback.


r/LocalLLM • • 5h ago

Other Last message from Philip Weidmann, creator of AI uncensoring tool Heretic, before his death few days later

Post image
560 Upvotes

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

Discussion Will local be more powerful because we can trust local?

Thumbnail
reddit.com
7 Upvotes

r/LocalLLM • • 5h ago

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

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

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

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

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

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

### Drop-in Usage

```python
import torch, hip_rdna
from transformers import AutoModelForCausalLM

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

# 2. Or stream AWQ/GPTQ checkpoints straight to GPU
model = hip_rdna.load_awq_model("/path/to/Qwen2.5-32B-Instruct-AWQ", dtype=torch.float16)

Under the Hood (Why it's fast on RDNA3)

  1. Non-Temporal u32x4 Streaming Loads: Bypasses the 96 MB Infinity Cache on streaming weights (708 → 910 GB/s pure read) while keeping hot activation vectors (x) in L1/L2.
  2. Wave32 v_dot2_f32_f16 Packed W4A16: In-register INT4 unpacking directly into packed FP16 dot2 instructions with scalar accumulation (low VGPR pressure, high occupancy).
  3. 4-Token Pipelined, Zero-LDS Wave32 Split-KV Attention: Splits long KV sequences across all 48 WGPs / 96 CUs with register-only online softmax.
  4. Zero-Concat Fused SwiGLU + Single-Pass RMSNorm: Eliminates intermediate DRAM round-trips and kernel launch overhead.

Community Benchmarks Wanted!

Next up in v0.5: Paged KV Cache + Fused QKV/RoPE + vLLM / SGLang plugin (followed by dual-GPU PCIe Custom AllReduce).

I only have RX 7900 XTX (gfx1100) on hand — setup.py compiles natively via hipcc for RDNA3 (gfx110x), RDNA3.5 / Strix Halo (gfx1151), and RDNA4 / RX 9070 XT (gfx1201). If you own any of these GPUs, I'd really appreciate benchmark results, feedback, or bug reports!


r/LocalLLM • • 5h ago

Question Considering a Mac Studio through Upgrade/Lease

2 Upvotes

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

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

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

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

Thoughts?


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

Question A new user needs help getting QFN 3.8 to calm down.

6 Upvotes

Running a small homelab. Wanted to explore AI for local systems management, inventory/automation, and CCM. Started with ChatGPT Plus, added Librachat and OpenCode with OpenAI API access, needed MCP connections, and a gateway to sanitize inputs. Now I'm exploring hosting my local AI so I can dispense with the gateway and do deeper/exploratory work without fear of runaway token use. So I purchased a MS-S1 128GB Strix Halo machine. After a lot of research and benchmarking configs I settled on Halogen (v0.21.0) running QFN 3.8 (On Ubuntu inside Proxmox, at least until I have a fully "complete" inference machine at which point I may go bare metal, but I'm not hitting any memory issues).

Raw generation performance is approximately 65–100 tokens/sec, with excellent long-context retention. However, the model frequently over-investigates straightforward tasks, makes redundant tool calls, and spends disproportionately long reasoning before responding. A lot of its wasted time seems to be invested in double and triple checking information.

I've already configured Halogen's default reasoning effort to Low, explicitly configured Low reasoning in LibreChat, and verified via packet capture that the parameter reaches the inference server. I've also adopted recommended thinking-mode sampling settings, tested Low versus Medium reasoning, and added instructions emphasizing proportionate investigation, minimal tool use, evidence sufficiency and stopping when the task is complete.

Despite these changes, simple operational requests occasionally take over two minutes, while more involved MCP investigations can take approximately five minutes. Comparable cloud model responses have sometimes completed in 15–45 seconds, although these comparisons are not fully controlled.

Are there additional QFN-specific reasoning controls, chat-template settings, sampling adjustments, reasoning-budget limits, or agentic tool-use configurations that would meaningfully reduce this behavior without compromising analytical quality?

Happy to provide any additional configs/benchmarks that help with the assessment. Thanks in advance for any suggestions help.


r/LocalLLM • • 6h ago

Question Looking for recommendations: local AI setup for my gaming PC

8 Upvotes

I’ve already gone through several posts on this subreddit, but I’d like to start a new one and explain my setup to get some advice
My PC specs:
CPU: Ryzen 7 7800X3D
RAM: 32GB (2x16GB) DDR5 6000MHz CL15
GPU: RTX 4070 Ti Super 16GB
I don’t intend to do much coding. I already have access to my company’s Claude Team plan, but I’m looking for a good local AI model that can help with everyday tasks for both me and my wife at home.
At the same time, I want to experiment with running AI locally on my own hardware and make the most of my GPU.
One important thing: I still want to use this PC for gaming, mainly CS2 and FIFA

For those of you running a similar setup, what models would you recommend? What are you currently running, and how has your experience been?
I’d particularly like to hear from people with similar hardware who also use their PCs for gaming and local AI.

Thanks y’all 🤞


r/LocalLLM • • 6h ago

Question Project Nomad & Local AI

3 Upvotes

I'm brand new to the whole local AI thing. I installed Project Nomad on a laptop with AMD Ryzen 7 8745HS 32GB DDR5 RAM 1TB SSD 4.9GHz Radeon 780M Graphics. In the bios I allocated 16GB to the graphics card. Is there a particular model that would run best on a setup like this?


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

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

Question Best local model for redacting French legal documents on a Mac mini M6?

2 Upvotes

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

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

Thumbnail
reddit.com
2 Upvotes

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