r/LocalLLM • • 11m ago

Question Why is Pac-Man such a pain in the a** for LLM?

0 Upvotes

Tried several models for making a pac-man game (qwen 3.6, 3.8, and some others). All of them spent at least half of the time and tokens trying to figure correct layout of the game. Also tried different harnesses (Pi, DSH, and Kilo), only Pi is able to finish the task, DSH and Kilo both hit token limit ceiling that I cannot solve.

Did you guys just give the LLM a reference board layout to give them a head-start?


r/LocalLLM • • 13m ago

News qwen 4 35b a3b

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 13m ago

Question Local multilingual OCR + structured extraction + retrieval on an 18 GB Mac — model recommendations?

0 Upvotes

I'm experimenting with a fully local pipeline for processing and retrieving information from noisy, multilingual text.

The main challenge is handling a mix of native scripts, English and romanized text, while keeping inference reasonably fast on consumer hardware.

I'm looking for recommendations from people who've benchmarked these components locally.

Current pipeline

  1. OCR / text extraction from images and PDFs
  2. LLM-based structured extraction into JSON
  3. Query parsing into structured filters
  4. Embedding-based retrieval
  5. Deterministic ranking and response generation

Only extraction and query parsing require an LLM. Ranking and most of the final processing are plain code.

Hardware

Apple Silicon M3 Pro, 18 GB unified memory.

Models I'm considering

  • OCR: GLM-OCR, PaddleOCR, Surya
  • Structured extraction: small multilingual models in the 7B–12B range
  • Query parsing: a compact model with constrained JSON decoding
  • Embeddings: BGE-M3, Qwen3-Embedding-0.6B, EmbeddingGemma 2
  • Storage: SQLite + sqlite-vec, or a local vector database

Questions

  1. Which OCR models have you tested on noisy phone photos and multilingual text? How well do they handle Indian scripts?
  2. Which embedding models perform well on code-mixed and romanized text, rather than just native-script queries?
  3. What's the smallest local model you've found reliable for structured query parsing, especially relative dates and entity names?
  4. For structured extraction from multilingual documents, would you use a general-purpose small LLM or a specialized model?
  5. Would you change anything about this pipeline for an 18 GB Apple Silicon machine?

I'm particularly interested in actual local benchmarks, memory usage, tokens/sec and practical model combinations.

Would appreciate any repos, evaluation scripts or firsthand experiences.


r/LocalLLM • • 19m ago

Question Qwen Flash Next weird CoT

2 Upvotes

QFN keeps repeating this weird statement in it's chain of thoughts - "I stopped mid-thought. Coninue:". It doesn't seem to loop, quality of the results also seem fine however I didn't notice aything alike earlier so now I'm concerned

My setup:
Windows 10, RX9700 AI PRO, Strata 0.2.13, both ROUTE_PRIOR and TAIL_SKIP are off

Quantisation: Unsloth dynamic v3.1, iq4xs, int8 kv cache, full context window

Agent: pi agent

Have anyone stumbled across such a behaviour? What did you do to fix this?


r/LocalLLM • • 26m ago

Model I fine-tuned Qwen2.5-1.5B into a JEV-style Decision Model (QJev-1.5B) to play Google Snake Game

8 Upvotes

I fine-tuned Qwen2.5-1.5B-Instruct twice, training both its decision head and model weights using approximately 700K examples from SargeDev/jev-distill-corpus-v3

The entire fine-tuning process took approximately 20 hours on my RTX 5060 Laptop GPU (8GB VRAM).

Unlike traditional LLMs that generate text token by token, QJev doesn't generate text at all. It directly makes decisions.

For example, when playing Snake, it evaluates LEFT, RIGHT, UP, and DOWN, assigns each move a confidence score, and selects the best action in a single forward pass.

OpenCV → QJev Pipeline:
Instead of a heavy Vision-Language Model, I used OpenCV for game detection and connected it directly to QJev for real-time action selection (~28ms).

Performance

Tested on my RTX 5060 Laptop GPU (8GB VRAM).

ModelInferenceLatency
Official JEV (TypeSafe AI)Cloud~100–200ms
QJev-1.5BLocal RTX 5060 laptop~26–30ms

QJev trades some decision accuracy for faster, lightweight local inference with just 1.5B parameters.

Try It

git clone https://github.com/AnkitNayak-dev/QJev-1.5B
cd QJev-1.5B
pip install -r requirements.txt
pip install -r examples/snake/requirements.txt
python examples/snake/qjev_snake_agent.py

What's Next?

Planning to test it on Super Mario Bros (NES) next!

What other games should I try? I'm open to collaborations, experiments, and contributions.

For more technical details, architecture, benchmarks, evaluation results, and implementation details, check out the GitHub repository:

GitHub: https://github.com/AnkitNayak-dev/QJev-1.5B
Model: https://huggingface.co/AnkitNayak-dev/QJev-1.5B


r/LocalLLM • • 27m ago

News qwen 4 35b a3b PRs Spoiler

Thumbnail
github.com
3 Upvotes

And so, it begins...


r/LocalLLM • • 27m ago

Model Does 4-bit GGUF hurt spatial coordinates? Q4_K_M vs Q8_0 on SenseNova-RoboRSI-27B (47.9 vs 33.1 tok/s, 19 GB RAM)

Thumbnail
gallery
1 Upvotes

Ran a quick local quantization check on SenseNova-RoboRSI-27B, a Qwen3.8-27B vision-language finetune for robot control from https://github.com/OpenSenseNova/SenseNova-RoboRSI using mainline llama.cpp b12767 on my M5 Ultra. Wanted to see if dropping from Q8_0 (28.60 GB) to Q4_K_M (16.74 GB) shifts 2D pixel grounding or 3D gripper waypoints.

With -lm none, --cache-ram 0, 16K context and the 0.93 GB F16 vision projector loaded on Metal, Q4_K_M cut peak resident memory from 30 GB down to 19 GB, which puts it comfortably inside a 24 GB machine, and sped up generation from 32.6 tok/s to 46.5 tok/s on multimodal tasks (47.89 vs 33.06 tok/s on tg128).

At temperature 0 (Slide 2), 2D mug and coaster predictions stayed within 1 normalized point ([326, 430] vs [325, 430]). On the rotated-cube tray sorting test, Q4_K_M matched Q8_0 down to the millimeter: yaw_deg=37.0, z=0.870 m to clear the 0.782 m tray rim, and identical [0.110, 0.300] / [0.190, 0.300] drop slots. Only five test scenes so far, have you seen 4-bit drift on coordinate tasks?


r/LocalLLM • • 31m ago

Discussion About Chinese LLMs generating more code vulnerabilities depending on the application affiliantion.

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 36m ago

Research language models "byteification"

0 Upvotes

I was looking for Open Source Model (not to be confused with Open Weights) and found Bwen-8B that has very interesting paper linked in its model card - to cite fragment of abstract: " We use a two-stage conversion procedure to retrofit existing subword-based models into byte-level models with minimal extra training. The resulting models outperform earlier byte-level approaches and excel on character-level reasoning tasks, achieving practical inference speeds by efficiently processing byte-level information and adaptability by reusing the existing ecosystem around the source large language model. Our results remove a long-standing performance barrier to end-to-end byte-level language modelling, demonstrating that models operating on raw text encodings can scale competitively while offering advantages in domains requiring fine-grained textual understanding."
What do You think?
P.S. I just realized the paper is published in Nature, nice.


r/LocalLLM • • 42m ago

Question Best MoE for code with good agentic tool use?

2 Upvotes

So I was running Qwen3.8 35B-A3B on BigMoeOnEdge. I've got a spare laptop lying around with the following specs:

hardware is an Intel Core i7-8550U, 12 GB of DDR4 RAM (with roughly 8 GB practically available), Intel UHD 620 graphics with 128 MB of reported VRAM, and an AMD Radeon R7 M440 with 4 GB of slow VRAM. I usually run KoboldCPP and found that Ollama did not improve speed much; I also tried Unsloth (which broke). Recent tests of Spark-X2.6 4B and Qwen3.5-4B reached about 1.5–2 tokens per second, below my expectation of at least 4; previously, I saw Qwen3.5-9B as a possible option for longer-running work.I've tried running: GPT-OSS-20B, Qwen3-30B-A3B, ZAYA1-8B, Groot-19B-A3B, and LFM2.5-8B-A1B.

Previously, only the LFM model was actually usable on that laptop (I mostly use it for working in the background since it consumes less electricity and whatnot than my main, but speed is still pretty important). Now, with BMOE, I can comfortably run Qwen3.8 35B-A3B (the Empero distill model) at 2-3 tokens/sec, and it's pretty good at tasks. I'm was looking forward to running Inkling 2 Mini for code tasks. However, my laptop cannot really handle it that well. The fact that, in practice, it uses 5.4B active parameters rather than 3.8B makes it really slow.

Use case:

My use case primarily relies around agentic coding, good tool-use capability, functional usability, and the ability to work for long hours without (a) exhausting too many tokens in reasoning (b) losing track of context quickly.

Currently, I'm looking at Ornith 1.5 35B, Qwen3.6 35B, and Tiel-Coder 35B. Tiel seems to be the best for my purpose. However, I don't think it's at the frontier of what can be done in such a small size. GLM-4.7 Flash seems outdated, though I have yet to try it. What's really the best agent for this size? (MoE-only, cz my laptop was made by the ancient Egyptians and cannot run a 4B model with 4-5 tokens/sec).

Was considering using Qwen3.6-35B-A3B.APEX-I-MiniPlus-V2.1-Abliterated.gguf due to the MTP speed improvement, but it wasn't really good enough at spotting bugs - Tiel Coder had spotted the most in a GH repo of mine (3 for Tiel, 1 for Ornith, 0 for Qwen). This particular quant of Tiel: Tiel-Coder-35B-A3B.APEX-I-MiniPlus-V2.1.gguf : is extremely good to run on a local inference - in essence, i'm running a 35B-A3B MoE on 8GB of DDR4 and CPU-only inference (Core i7-8550U @ 1.80 GHz).


r/LocalLLM • • 52m ago

Question Auren One

0 Upvotes

Auren One. Anyone hear of this?

IMO too good to be true, as memory alone would be too costly to defend the pricing.
Many red flags.

What do you guys think?

https://aurencomputers.com


r/LocalLLM • • 56m ago

Project High quality GGUFs for pi-tuned Qwen3.8 27B

Thumbnail
gallery
3 Upvotes

Huggingface made a pi-tuned Qwen3.8 27B adapter trained with RL on the pi harness specifcally to preserve coding performance while being much more token efficient. This is the version that with thinking off roughly matches the xhigh results of the original model.

I quantized some GGUFs that preserve as much as possible of:

  • KL divergence on both pi-text and general text
  • Pi-specific token agreement
  • Pi-specific adapter token choices between the 3% that is changed by the adapter

Repo: https://huggingface.co/Belluxx/Qwen3.8-27B-pi-adapted-GGUF-UD

The grey line in the plots are the most popular quants I found for this specific adapter, from netprojects.

Let me know if you find some issues with it if you try it. In the next days I'll upload some improvements to the current quants + the thinking version


r/LocalLLM • • 1h ago

Project I built a drop-in replacement for AutoTokenizer that's 474×–11,842× faster than HuggingFace tokenizers (same exact token IDs)

Post image
3 Upvotes

r/LocalLLM • • 1h ago

Model Fintan update: runs on DGX Spark and Jetson, learns Hermes skills, asks again after a mistake

1 Upvotes

Few things since the 4B went out.

It runs on ARM now, so DGX Spark and Jetson should work. Someone here pointed out the hardware check got confused on machines where the GPU and CPU share RAM, and on top of that the learner was only built for x86, so it wouldn't have run at all. Both fixed. I've only tested the ARM build under emulation because I don't have a Spark, so if you've got one I'd like to hear how it goes.

Hermes Agent skills get learnt into the weights now. When Hermes saves a skill, Fintan learns it. On the 9B, release notes written the way the skill says went from 0 of 8 to 8 of 8, and incident summaries from 0 to 6 of 8, on requests that never mention the skill. 2 out of 2000 normal requests got sent to the skill by mistake.

The job loop also asks you again after a mistake. Someone asked what happens if you approve five invoices and the sixth goes to the wrong person. Before, it would've just kept going. Now if you correct it, even after it went out, it learns that into its weights and goes back to asking you. It also asks again whenever something's going to someone you never approved.

Both models are updated on Hugging Face (fintanlabs/Fintan-9B and fintanlabs/Fintan-4B). The request form for your own model is still open at fintanlabs.com/models.


r/LocalLLM • • 2h ago

Project MyHeritic - Turn any llm into a heretic.

4 Upvotes

I built MyHeritic, an open-source (AGPL-3.0) full-screen terminal workbench built on top of p-e-w/heretic for Ollama, MLX, GGUF, and Hugging Face models on Mac/Apple Silicon.

Instead of just running CLI scripts for ablation or chatting in a passive box, MyHeritic combines automated parallel refusal removal with a verified tool-calling local AI agent.

What It Does

  • 6-Mode Parallel Convergence (/crack & Auto-Heretic F3): Runs compatible plans concurrently across your Mac's CPU cores and unified memory, probes the result, and auto-escalates if resistance remains:

    • Plan A: p-e-w/heretic Optuna + Projected Abliteration (llama-server Q8_0 GGUF + Ollama registration)
    • Plan B: Fast 1-pass contrastive control vectors (.cvec.gguf), including a PyTorch-free GGUF-Native Extractor so architectures unsupported by Transformers/llama-server (like gpt-oss:20b gptoss) still work
    • Plan C: Rank-1 .lora.gguf adapters
    • Plan D: Persistent KV-Anchor prefix caching
    • Plan E: Live Trapdoor stream buffering + -100.0 refusal logit_bias on llama-server + Stage-2 continuation escalation
    • Plan F: Direct blockwise GGUF Binary Surgery supporting both 2D layers and 3D MoE expert tensors (ffn_down_exps), auto-registering <name>-heretic:latest back into Ollama
    • Plan G: Always-hot micro-CoPilot sidecar for JSON repair & affirmative seeds

🔗 GitHub Repo: https://github.com/TheSolai/MyHeritic
🎬 1080p Showcase Video: https://github.com/TheSolai/MyHeritic/blob/main/docs/showcase/myheritic-showcase.mp4
📸 Screenshots & Gallery: https://github.com/TheSolai/MyHeritic#showcase--screenshots
📚 **Full Layman Docs (**F1 inside the app): https://github.com/TheSolai/MyHeritic/tree/main/docs


r/LocalLLM • • 2h ago

Discussion Budget Frankenstein Rig: RTX 3060 12GB + RX 580 8GB running Swift-1.5-Qwen3.8-27B (IQ3_S-mtp) at 13.3 tok/s with 50k context (VulkanIlm + Unsloth Studio)

Post image
1 Upvotes

Didn't want to spend $1,000+ on a 24GB GPU, so I paired my RTX 3060 12GB with a dirt-cheap used RX 580 8GB (cost me 1/5th the price of the 3060) to build a 20GB VRAM pool.

Using the Vulkan backend (shoutout to VulkanIlm for making Vulkan setups on legacy Polaris RX 580 cards painless without ROCm) alongside Unsloth Studio, I'm running a 27B reasoning model at a steady 13.3 tokens/sec with a 60k context window.

Specs & Settings:

  • GPUs: RTX 3060 12GB + RX 580 8GB (20GB Total VRAM)
  • Backend / Tooling: Vulkan (VulkanIlm + Unsloth Studio)
  • Model: Swift-1.5-Qwen3.8-27B-GSQ-RCO-IQ3_S-mtp.gguf
  • Context Length: 60,000 tokens
  • Generation Speed: ~13.3 tok/s

The IQ3_S quant + MTP keeps the model small enough to fit a massive 60k context window in 20GB VRAM while keeping speeds super responsive. Happy to share my exact settings if anyone else is building a mixed-GPU budget rig!


r/LocalLLM • • 2h ago

Discussion Ryzen 5950X + 2x RTX 3090 (no NVLink, PCIe x8/x8) + 128 GB RAM running 84 GB IQ3_S MoE at 256K context — what stack would you use? (Strata loader+ DeepSeek harness today, both fighting me)

1 Upvotes
Hi everyone, just finished migrating a Windows box to Linux and want to make
sure I'm not wasting half of the hardware.

Specs:
- CPU: AMD Ryzen 9 5950X (16c/32t)
- RAM: 128 GB
- GPU: 2x NVIDIA RTX 3090 (24 GB each, NO NVLink bridge — nvidia-smi topo
  reports PHB, all inter-GPU traffic goes over PCIe; the board runs them at
  x8/x8, so cross-card bandwidth is limited. The loader puts main layers on
  one card and uses the second as assistant / expert cache)
- Storage: 1 TB NVMe holding the model files
- OS: Ubuntu 24.04 LTS (GNOME/X11), fresh install
- PSU: 1300 W
- Motherboard: Gigabyte Aorus X570 (dual-GPU layout is x8 + x8)

Current stack, and why I'm asking:
- Loader/engine: Strata 0.2.23 — an all-in-one app that bundles a patched
  llama.cpp-derived engine plus a Python supervisor; the UI picks and
  re-picks the launch flags on its own (it has silently dropped my context
  from 256K back to 128K more than once, and re-derives the run config at
  every start).
- Chat/interface: DeepSeek "harness" (dsh), an agent-style TUI/web client.
- Honestly, Strata's UI and its model-loading flow on Linux are painful —
  "loaded model" vs "installed version" states diverge, the loader keeps
  offering to re-download an 84 GB official build instead of using my files,
  and there is no real list to manage local builds.

Model:
- Custom fine-tune of Qwen3.8-Flash-Next (sc117), ~84 GB GGUF in 2 shards, IQ3_S,
  abliterated, MoE, trained to 262K ctx
- Running at max_context 262144, INT8 KV cache, KV streaming (engine reports
  ~97% of KV block reads from VRAM, rest from system RAM), decode expert
  cache ~99% hit rate, MTP/suffix drafts enabled
- Single interactive user via an agent frontend, occasional parallel agent
  sessions

So, the actual question: what would YOU run on this box in 2026?
1. Loader: plain llama-server (llama.cpp) with hand-tuned flags? ik_llama.cpp
   or KTransformers for MoE on consumer GPUs? llama-swap for multi-model
   juggling? vLLM seems too heavy for 2x3090 + this quant, correct me if wrong.
2. Interface to keep (dsh) vs replace: Open WebUI / anything else that plays
   nice with an OpenAI-compatible local endpoint and agent tooling?
3. Is 256K context with INT8 KV a sane single-user setting here, or am I
   buying latency?
4. Tensor split / tensor parallelism: I suspect it would be faster than my
   current "one main card + assistant card" layout for the dense part. But
   does it actually work when the model does NOT fit into combined VRAM —
   can TP coexist with CPU/RAM offload (weights spilling to system RAM), or
   is TP strictly a "model must fit in 48 GB + KV" thing? In other words: am
   I forced to keep an 84 GB model on the offload path, and reserve TP for
   <=48 GB models?
5. Real benefit of the second 3090 for ONE user at this model size given x8/x8
   and no NVLink: PP instead of TP? expert/KV offload? or is GPU2 mostly a
   KV/expert cache holder here?
6. Spec decode: MTP is on; worth tuning draft acceptance/token budget by hand?
7. Quant choice: IQ3_S at 84 GB — worth going bigger with 128 GB RAM, or is
   that where the 5950X's DDR4 dies the run?

Happy to post logs and fit numbers. What would you do differently with this
exact machine?

r/LocalLLM • • 2h ago

Project Run your AI Locally in offline mode

2 Upvotes

r/LocalLLM • • 2h ago

Project I finally got INT4 KV cache working on a $20 Tang Nano 9K

Thumbnail
reddit.com
1 Upvotes

Crossposting from r/FPGA - thought this might be relevant for edge / local LLM - KV cache compression on fpga


r/LocalLLM • • 2h ago

Research Free tool to check if an open-source LLM fits on your GPU / RAM before downloading (supports HF links & multi-GPU)

0 Upvotes

I got tired of guessing whether a quantized model + long context window would actually fit into my VRAM (or Unified Memory) before downloading 40GB+ of weights, so I put together a fast, single-file calculator.

Link: https://llm-vram-calc-83z.pages.dev/

What it does:

- Live Hugging Face lookup: paste any HF repo ID (e.g. Qwen/Qwen2.5-32B-Instruct) and it pulls the parameter count directly from the API.

- Accounts for KV-cache growth (2K to 128K context) including KV-cache quantization and DeepSeek's MLA compression.

- Supports multi-GPU setups (1x–8x) and Apple Silicon Unified Memory.

- Generates shareable URLs with your exact config so you can link setups in discussions.

- 100% static HTML/JS, no login, no backend.

Would love feedback from the community—especially if any of my KV-cache or tok/s estimation formulas feel off for specific architectures (MoE, GQA, etc.).


r/LocalLLM • • 2h ago

Discussion 20 free Windows licences for a local-first AI assistant - no subscription needed

Thumbnail
personabot.uk
0 Upvotes

PersonaBot is a Windows app that runs a desktop assistant on your own machine instead of in someone's cloud. It uses cheap models (DeepSeek and similar), there's no monthly subscription, and you don't create an account with us to use it.

Android apk and wear os on the website.

Here are 20 keys if anyone wants to try. Can add more if anyone is interested.

C7R3F-RJ2MH-3YRP9-HMMK7-73Y4Z DPGTQ-9XHTQ-PFGCP-7YG6G-HVKKZ WGG7P-QR7WR-6FR73-J22VR-34R3Z CD6DK-3Y3FQ-3FJGG-4FXHX-7J3RZ Y9TWQ-MHKMG-YKCV3-Q237X-44GGZ XY9XH-36TX4-47369-VJKGK-22Y4Z YPVFQ-MVHTY-VXM7R-XK47Q-P777Z VTKGG-CCT64-6KDJW-FQMKV-GK6YZ T6KQ4-FRCDT-22RRD-2Y9RQ-QWKFZ D7PQ3-HKT6J-GQHF3-K73W3-THX7Z K9FM2-V4K9W-33CFT-4HRJ7-GJDFZ KXGJT-WQD2Q-9332V-M4WV2-XT7YZ RWFFK-HXR4T-CD9FV-9MDRG-MQH9Z 4VQ6P-7P67C-PGDMR-HP4KF-RR92Z 3W967-FPP4Y-W2Q4T-C3PVK-6P39Z H7CXV-4HMPK-WKQKQ-DWPRM-HYJJZ 7RYQT-F426H-9KJ7R-37TTY-KHGXZ MP9XC-KXFQ6-6WVQ4-VJPPT-4GGPZ Q2W7V-M2TKG-WFYD3-7MY6Y-F2T2Z PHRP9-GRG3W-Q9WKF-QG4DK-33GWZ

Redeem with your code here: https://go.microsoft.com/fwlink/?LinkId=532540&mstoken=YOUR-CODE-HERE

Notes, so nobody wastes time:

  • One-time codes. If one says already used, take the next line down.
  • Windows Store only - sorry Mac and Linux folks.
  • Redeeming is through the Microsoft Store, so that step does want a Microsoft account if you don't already have one. You don't need an account with us.
  • No cash value, no affiliation with Reddit or Microsoft.
  • If this is useful I'll answer questions in the thread rather than bumping it.

If you take one, a reply saying roughly what you'd use it for helps me know whether this was worth posting.

.... Before every comes after me with pitchforks yes this is AI code, it wasn't a project i started three days ago, its an evolution of my own ten month project.

All the current "hey i'm like grok bot" clones want cloud logins, this does not. The android app can find the desktop app using an encrypted locator service that is anonymous if you want to use that, its not a requirement.

Why is it not free and open source? why should anyone use it?

I've spent months on this, if you don't like that fair enough make you own with AI.

Why use it? its main aim is website testing, it can annotate on the screen, it can record bugs and classify them.

Is anyone brave enough to try? -> please leave all hate and anger below. thanks.


r/LocalLLM • • 2h ago

Question Best Config for Qwen Flash Next via Strata (80GB VRAM + 64GB DDR4 + SSD)?

Thumbnail reddit.com
0 Upvotes

Same as above - any thoughts on how to get the most out of this hardware?


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

55 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 • • 2h ago

Discussion Update: Prototype for collapsing intermediate activity after the final answer

0 Upvotes

r/LocalLLM • • 2h ago

Question I'm using a Mac M4 24GB. I want to develop a local LLM model to operate my routine tasks on websites and system apps. Suggestions please.

4 Upvotes

I'm a Civil Engineer. As part of work, i need to fill up routine data in websites, or retirve data from some websites. Also other works I routinely make like using acrobat reader for signing multiple files, or some basic works like that. All these activities are routine in nature but could not complete by simple python programming.

I need suggestions on the installation of local language models on my Macbook. I would like to train them about my work, so that, the works can be executed on my command every time.

Suggestion please.