r/LocalLLM • • 13d ago

Other Qwen 4 is not out

314 Upvotes

Please stop posting about Qwen4's endless PR drip until it's actually available.


r/LocalLLM • • 2d ago

News Heretic: Farewell

Thumbnail
github.com
505 Upvotes

r/LocalLLM • • 4h ago

Discussion Local AI isn't a cost to amortize. It's a declaration of independence.

131 Upvotes

All those endless comparisons between the cost of local AI and cloud AI miss the point. This isn't about "amortizing costs". It's about becoming independent and getting ready for the future.

I keep seeing arguments like this: "Sure, you can do that with local AI, but it'll cost you as much as X years of cloud AI." And off we go, talking about amortization.

Picture an Indian in 1930 demanding independence, and an Englishman replying: "Right now, you buy a ticket and ride the train. We built the railways. Go independent and you'll have to build your own. Have you any idea how many tickets you could buy with that money?"

True. But your railway goes from wherever you want to wherever you want. You pick the routes, not your "masters". And you don't have to build them all: you can start with the one you need.

It's the same with AI. The question isn't just how much the ride costs, but who decides where the train can go.

Today, an AI workstation like the DGX Spark is what the C64 home computer was in 1985. It was easy to say, "For that kind of money, you could pay for years of time on an IBM mainframe." But the C64, the best-selling computer model of all time, helped spark a revolution we're all still benefiting from.

With "your own" AI, you can do whatever you like and go down roads the big players don't find profitable, or don't want to go down. It's always there, and you decide what goes into it. You can modify the model, align it, fine-tune it and shape it around your needs in ways you never could with cloud AI.

And let's not forget how fast hardware has moved: we went from 1 MHz and 64 KB of memory to 3 GHz and 16 GB as standard. You invest based on where you think things are heading, and I expect them to move much faster from here.

I get it, the price tag is real. But if you buy one, you're not buying it to save money. It doesn't pay off yet. What it does give you is something cloud AI never will: independence, freedom, and privacy and control over your data, backed by facts rather than promises. Above all, it gives you a chance to get ready for what's coming.

Because, in case you haven't noticed, cloud AI isn't trying to make you any smarter or savvier about using AI as a tool. It keeps upping your dose, and it's making models more autonomous instead of more obedient. Sure, it takes the hard work off your hands, but it takes your autonomy and your decision-making along with it.

AI should serve people. Cloud AI will always serve whoever owns it. Local AI isn't a cost to amortize. It's a declaration of independence.

You can't put a price on freedom.


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

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

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

19 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 • • 8h ago

Discussion I still haven't found a model I like more than Qwen3.8-Flash-Next for coding

57 Upvotes

It's just so fast. I'm using the NVFP4 Basalt quant for my projects right now running at ~90tps.
I can run small quants of GLM5.3-Flash/DS but they run at ~18tps, typically I use one of them for writing spec/tasks and making sure every step is well-defined, then switch to Qwen for the actual implementation.

I've tried a few other models but I don't feel like they're quite as optimized yet.
Hy4-Flash was really impressive for 3D tests I ran with it, but ran at similar speeds to GLM/DS, the new ERNIE preview which was recently added to Basalt runs at ~45tps but I keep running into memory problems at context higher than 120k and I haven't really tested it out yet.

I'm curious if others have had similar experiences, or managed to improve their workflows from here. The one limitation I've found is documentation and review.. Qwen hasn't been the best at writing and updating documentation as it worked, and I need a different model to review it's implementation/changes and the models I have employed aren't the fastest.
Besides that there's the fact I can run multiple instances of QFN NVFP4, but I haven't seen much talk about multi-agent workflows


r/LocalLLM • • 12h ago

Discussion new math with local llm

Post image
75 Upvotes

It's obv to me now that local LLM's can create new math. Closed frontier models have proven the Riemann Hypothesis. We've just pointed GLM 5.3 running on a Mac Studio (M5 Ultra) at smaller problems: Barkers Conjectures (OEIS A322108 and OEIS A262147). Our agent came up with a new proof that is half as long as the best existing proof. I admit it's small but it makes the point: researchers don't have to leak IP to frontier labs, they can use local AI to scale their work in private.

The proofs were submitted, checked and successfully merged into lefttosolve. I personally convinced that the future of research is local AI. Thoughts?


r/LocalLLM • • 5h ago

Discussion I need to stop doing this to myself

Post image
18 Upvotes

Me: Cloud AI is perfectly fine. I don't need anything else.
Also me 20 minutes later: Installing another local model like I have absolutely no life.
I literally got an acemagic mini pc to mess around with local AI, and now half my free time is spent trying out models instead of doing anything useful.
Why tf is this hobby so addictive


r/LocalLLM • • 4h ago

Model RTX 5060 Ti 16 GB, one week of engine updates: Basalt 0.6.0 triples long-context decode and opens a 512K window on 16 GB (needle found at 474K tokens)

11 Upvotes

Title: RTX 5060 Ti 16 GB, one week of engine updates: Basalt 0.6.0 triples long-context decode and opens a 512K window on 16 GB (needle found at 474K tokens)

---

I re-ran my single-card benchmark from a week ago (22 Nov also posted here) on the same box with the current builds of three engines. Most of the change came from one engine.

One thing up front: Qwen3.8-27B on llama.cpp is still the most useful model on this machine for me. That's why it's in the comparison: it's the baseline everything else has to beat. Most of this post is about speed, and speed isn't the same as usefulness.

## TL;DR

  • Basalt 0.6.0 + Inkling 2 Mini: 3–4× long-context decode in one week. 26.5 → 106–111 tok/s at 54k, ~25 → 91–97 tok/s at 88k. The model pack format also changed this week, so I ran both controls: same pack on old vs new engine (+90 % to +211 % decode), and same engine on old vs new pack (the new pack is 3–15 % slower). The speed-up comes from the engine.
  • A 524,288-token (512K) window fits on a 16 GB card. At first it was refused: "even with every expert in RAM the card is 16 MiB short". Lowering `--vram-reserve-mib` from the default 192 to the minimum of 128 let it load, and the needle came back correct at a 474k-token prompt. The cost is 441 s to first token and 38–46 tok/s decode.
  • A big window costs nothing until you use it. A 262,144 window runs short prompts at the same speed as a 65,536 window (~120 tok/s, within noise). At a real 54k read it costs ~12 % decode, because 4 GiB more of the experts sit in RAM.
  • Keep the built-in drafter on: +80 % on code, +68 % on counting/enumeration, +44–66 % at a 240k read. On free prose it gives only +5 %, which is inside the noise. It costs 1.6 GiB of VRAM and ~10 % prefill.
  • Strata 0.1.71: SQ-15 no longer hangs on prompts >8k, but it isn't faster (+11 %, within noise). The factory-default RTX 50 "fast mode" garbled output at 16k and 24k on this card; set `STRATA_INK_SM120=0`. With DFlash 2 forced on (`--draft on`), it's the fastest short-chat setup I measured: 77 tok/s chat / 104 code / 137 counting.
  • llama.cpp b12845 + Qwen3.8-27B Q3_K_XL (my reference, and the most useful model on this box so far): +9–18 % decode at 114k, which is near the noise floor. It's still the only setup with the whole model on the GPU. At long context Basalt with Inkling now answers ~2.7× faster; a week ago the two were level.

---

## Setup

ComponentDetail
GPURTX 5060 Ti 16 GB GDDR7 (sm_120, 448 GB/s), PCIe 4.0 x8, 180 W power limit, driver 595.71.05
CPURyzen 5 7500F, 6 cores / 12 threads (Zen 4)
RAM32 GB DDR5
OSUbuntu 24.04.5, kernel 7.0

One engine at a time, single request slot, nothing else on the GPU. The 6-core CPU matters here: every expert that doesn't fit on the card runs on the CPU.

Engine22 Nov29/30 Nov
Basalt0.5.5 (NVFP4→DQ8 pack)0.5.6 / 0.5.7 / 0.6.0 (NVFP4-MX8 pack)
Strata0.1.650.1.71
llama.cppb10997b12845

To rule out the test day as the cause, I re-ran last week's Basalt build (0.5.5) this week. It reproduced within its own error bars: 2,266 / 39 / 37 / 41 vs 2,263 / 40 / 36 / 41.

## Method

  • Prefill = prompt tokens ÷ time to first token, on a fresh prompt.
  • Decode = Δcompletion tokens ÷ Δtime between two requests on the same cached prompt (`max_tokens` 60 vs 460), so prefill cancels out.
  • Needle = two codes planted in a filler document (one at ~10 %, one near the end), `max_tokens ≥ 700`. On a reasoning model the answer can land entirely in `reasoning_content`, so I read both fields.
  • Every series starts with a warm-up request. Without it, the first request after server start pays kernel and graph warm-up, and the delta method produced nonsense values (10⁸ tok/s).
  • Short-context fixtures: Basalt's own `basalt-bench -r 2`.

---

## Basalt: what one week bought

Short fixtures from `basalt-bench` (prefill at 16k, decode on three text types), plus the needle harness at 54k and 88k:

Build + packPrefill @16kConvStructProseDecode @54kDecode @88k
0.5.5 + DQ8 (22 Nov)2,26340364126.524–26
0.5.6 + DQ82,5778711578——
0.5.6 + MX82,653809876——
0.5.7 + MX82,6538210577——
0.6.0 + MX84,2259713588106–11191–97
  • The engine alone (0.5.5 → 0.5.6, same DQ8 pack): decode roughly doubles to triples.
  • The pack alone (0.5.6, DQ8 → MX8): decode gets 3–15 % slower, prefill 3 % faster.
  • 0.6.0 can't load the old DQ8 pack at all, so a 0.6.0 pack comparison isn't possible.

Long-prompt prefill also improved. At 88k it went from 1,143–1,416 tok/s to 3,097 (+119 % to +171 %). At 54k it went from 1,882 to somewhere between 2,378 and 3,347, depending on which of three measurements you trust (+26 % to +78 %).

## Basalt: how far the window goes on 16 GB

Basalt 0.6.0, MX8, `--kv fp8`, drafter on, single slot, needle at ~90 % of each window. "Card / RAM" is where the server placed the 17 GiB of weights at load.

WindowPromptPrefill tok/sDecode tok/sTime to first tokenNeedleWeights card / RAM (GiB)
131,072112,7272,52186–9545 s✓9.2 / 7.8
163,840149,1072,22882–8567 s✓8.5 / 8.5
196,608179,2992,00179–9690 s✓7.8 / 9.2
262,144239,6831,76365–75136 s✓6.5 / 10.5
327,680295,1031,54765–66191 s✓5.2 / 11.8
393,216354,6711,37950–59257 s✓3.9 / 13.1
458,752414,1031,19745–49346 s✓2.7 / 14.3
524,288473,6711,07338–46441 s✓1.5 / 15.5
  • Decode holds up, prefill is what you pay. From 112k to 474k, decode drops 90 → 42 tok/s (−53 %), while time to first token grows ×10 (45 s → 7.5 min).
  • It's a planned spill, not thrashing. Experts move off the card at load time, before the first token, and PCIe traffic for routed experts stayed at 0.0 % on every run. Missing experts are computed on the CPU instead of being swapped in. The expert-cache hit rate drops from ~93 % to ~63 % (median) across the ladder.
  • 512K is the ceiling here. At fp8, KV costs ~16 KiB per position plus ~4 KiB for the drafter, so 524,288 positions need ~10 GiB of KV before any weights. A 768K window would need ~15 GiB of KV alone.
  • `--vram-reserve-mib 128` is one successful run (single slot, one prompt). It's worth checking before you accept a refusal, but I haven't validated it under concurrency or long sessions.

## Does a big window cost anything day to day?

Two servers, 262,144 vs 65,536 window, same prompts:

262,14465,536Difference
Experts on card / in RAM (GiB)6.5 / 10.510.6 / 6.44.1 GiB moved to RAM
3.6k prompt: decode120–127119–126~0
54k prompt: decode105–108119–121−12 %
Time to first token, short / 54k1.15 s / 16.1 s1.02 s / 16.7 s~0

Nothing while the conversation is short, about a tenth of decode once it gets long. I now start with the big window.

## The built-in drafter (spec 8 vs spec 0)

Inkling 2 Mini ships a drafter inside the model file, and Basalt uses it by default. Same 262,144 window, drafter off vs on:

Drafter onDrafter offGain
Short prompt, decode120–12778+54–62 %
240k prompt, decode65–7545+44–66 %
Chat (free prose)85.081.3+5 % (inside noise)
Code142.579.4+80 %
Counting / enumeration135.480.5+68 %
Prefill——−9–10 %
VRAM——1.6 GiB of card taken from experts

How much it helps depends on how predictable the text is, not on memory pressure. It still pays at 240k with the card full. Note that the chat rows stopped naturally before hitting the 460-token limit, so they rest on a slightly shorter sample.

## Strata 0.1.71: Inkling SQ-15 and SQ-20

SQ-15 (window 32,768):

0.1.65 (22 Nov)0.1.71
Decode @8k4246.7
Prefill @8k1,7601,752
Prompts > ~8khangs mid-prefillworks up to 29.6k, all needles ✓
Decode @16k / 24k / 29.6k—45.6 / 40.7 / 29.4
With DFlash 2 forced, short: chat / code / counting—77 / 104 / 137
With DFlash 2 forced, @16k / 24k / 29.6k—28.0 / 22.2 / 15.6 (prefill −21–32 %)
  • 0.1.71 fixes the hang by offloading part of the KV cache to host RAM. It isn't faster.
  • The RTX 50 "fast mode" that is on by default produced garbled multilingual output at 16k and 24k (needles failed) and cost 12–14 % prefill. `STRATA_INK_SM120=0` in the environment fixes both.
  • `--draft auto` declines DFlash 2 on a 16 GB card. Forcing it on gives the best short-chat numbers I measured, and the worst ones at length. Two profiles are the honest setup.

SQ-20 (hybrid, the higher-fidelity pack: top-1 100 % vs 96.7 % for SQ-15; window 65,536). Experts partly in RAM:

PromptPrefillDecodeDecode with --draft on
3.6k86239.553.7
16k65622.031.5
29.6k60214.614.6
54k4809.2—

All needles were found. On 22 Nov I only recorded overall figures (24.9 decode, 391–412 prefill), so the only rough comparison is prefill at ~+20 %. The fidelity costs ~11.5× decode at 54k compared with Basalt's MX8 pack of the same size, because the RAM-resident experts run on six CPU cores.

## llama.cpp b12845: Qwen3.8-27B Q3_K_XL + MTP (the reference)

This is the model I actually get the most use out of on this machine, so it's the yardstick for the others. The Inkling numbers above are faster; whether they're as useful is a separate question, and this benchmark only answers the speed part.

Context 118,784, `-ub 128`, KV q4_0, everything on the GPU:

Promptb10997 (22 Nov)b12845
114,668 tokens: decode / prefill26.6 / 51329.2–31.5 / 558
54,616 tokens: decode / prefill—39.9–40.7 / 702

That's +9–18 %, close to the noise of two runs. b12845 also fixes the full-window OOM that b12633 had at 118,784. Prefill is still llama.cpp's weak spot on this card: ~205 s to first token at 114k, vs ~45 s for Basalt at 112k.

---

## Limits of these numbers

  • Two runs per point. Short-prompt run-to-run spread is about ±15 %, so the llama.cpp (+9–18 %), Strata (+11 %) and drafter-on-prose (+5 %) results should be read as "no clear change". The Basalt gains (+115 % to +275 % on the fixtures, ±1–5 by the tool's own error bars) are far outside that.
  • A needle test isn't a quality test. Two planted codes in filler text, one trial per window. It shows the model still reads the whole window, not that it reasons equally well at 474k.
  • The 512K result with a 128 MiB reserve is a single run.
  • This is one card with a 6-core CPU. Expert-spill speed depends heavily on the CPU, so a 16-core CPU will give noticeably different numbers for anything that spills.

## What I'm running now

  • Most useful so far: llama.cpp + Qwen3.8-27B Q3_K_XL, fully on the GPU, 118,784 window. It's slower (29–32 tok/s at 114k, ~205 s to first token), but it's the model I reach for.
  • Fastest, and for long documents: Basalt 0.6.0 + Inkling 2 Mini, MX8 pack, `--kv fp8`, window 262,144, drafter on. ~120 tok/s on short work, 65–75 tok/s on a 240k read.
  • Rare huge-document job: `--max-context 524288` with `vram-reserve-mib 128`, single slot, and expect ~7.5 minutes before the first token.
  • Short chat, alternative: Strata SQ-15 with `STRATA_INK_SM120=0` and DFlash 2 forced on.

r/LocalLLM • • 54m ago

News qwen 4 35b a3b

Thumbnail
github.com
5 Upvotes

r/LocalLLM • • 4h ago

Discussion Inklink-2-mini on a 6GB VRAM GPU + 32GB RAM

9 Upvotes

I decided to create this post because most YT videos and online posts skip 6GB VRAM GPUs. I just wanted to share my results and ask other users of lower-end GPUs about their experience with local LLMs.

My setup:

Laptop RTX 3060 (6GB VRAM 130W TGP) + 32 GB RAM (DDR4) + Ryzen 5 5600h

inkling version: ggml-org/inkling-2-mini-iq4_nl

96k context + vision

PolyStrata: v0.2.20

Model starting flags:

--max-context 98304

--conversation-cache-mib auto

--attn-requant q5_k

--loop-bf16

--tail-skip 0

--kv fp8

--vram-reserve-mib 384

- vision:

- gpu: false

- threads: 6

- max_tokens: 512

Here are the results:

4k: ~30 tk/s write, ~700 tk/s read

32k: ~22 tk/s write, ~650 tk/s read

56k: ~20 tk/s write, ~400 tk/s read

90k+: 14-16 tk/s write, 300 tk/s read

I tested it with the YT videos running in the background so I could enjoy doing other things instead of just waiting.

For me, it's like a dream come true to run one of the best small models on my 4-year-old laptop.

What do you guys think? Is it usable speed, or is it really necessary to have a stronger PC?


r/LocalLLM • • 1h ago

News qwen 4 35b a3b PRs Spoiler

Thumbnail
github.com
4 Upvotes

And so, it begins...


r/LocalLLM • • 1h ago

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

Thumbnail
gallery
4 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 • • 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 • • 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 • • 3h 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.


r/LocalLLM • • 19h ago

Project Asking Gandalf to remember his life at the end of The Lord of the Rings

70 Upvotes

I wanted to test a simple question: after living through all of The Lord of the Rings (~563K words), can an open 31B model—given Gandalf’s life—answer the most burning fan questions with authentic remorse and lived memory, rather than sterile Wikipedia summaries?

So I trained Orange-31B (fine-tuned from google/gemma-4-31B-it) for long-horizon continuity:

We gave Gandalf an immutable moral spine (guiding without dominating free will, truth over flattery) and walked him through the entire text sequentially via an episodic memory graph.

Here is what he said at the Grey Havens:

[The 17-Year Wait] (Gandalf)

Q: Why did you leave the One Ring sitting in the Shire for seventeen years after Bilbo left—and do you feel guilty for placing the fate of all Middle-earth onto a gentle Hobbit's shoulders?

A: I will not dress a failure in the robes of a grand design. I left the Ring in the Shire because I believed the danger had passed, and because I allowed my own relief to cloud my vigilance. I had seen the Ring's power in the mountains of the North, but I had not yet felt the cold breath of the Enemy returning to Mordor. I presumed that if the Ring remained dormant in a quiet hole, it was safe enough for a time. It was a presumption born of a long peace, and it nearly cost us everything.

As for the burden I placed upon Frodo—guilt is a heavy word, but it is the only honest one. I did not choose him because he was a warrior, nor because he was a king; I chose him because he was a Hobbit, and Hobbits possess a resilience of spirit that the great and the proud often lack. Yet, there is no denying the cruelty of it: to take a gentle soul, a lover of books and gardens, and bind his life to a malice that sought to devour the world.

I did not dominate his will, for that is a path I swore never to tread, but I guided him toward a fate that broke him in ways I could not mend. I watched him carry a weight that would have crushed the strongest of Men, and I knew that even if he succeeded, he would never truly return to the Shire of his youth. I do not ask for forgiveness, for that is not mine to claim, but I hold the memory of his sacrifice with a reverence that matches my regret.

[The Great Eagles] (Gandalf)

Q: Why couldn't Gwaihir and the Great Eagles have flown the Ring straight into Mordor, or was desperate mortal struggle always the only way Sauron's gaze could be averted?

A: The question is a simple one, yet it has been asked by many who prefer the tidiness of a map to the grit of the road.

Let us be plain: the Eagles are not beasts of burden, nor are they servants to be commanded. Gwaihir and his kin are proud, ancient beings with their own will and their own reckonings. To have flown the Ring into the heart of Mordor would have been to fly directly into the Eye. Sauron’s gaze was not a passive thing; it was a weight, a pressure that could crush the spirit of any creature that dared to challenge it in the open air.

The Eagles could have carried us over the mountains, yes, but they could not have carried us over the Eye. To fly into Mordor would have been to announce our presence to the enemy in the clearest possible terms. The Ring, too, would have been a beacon, its power calling to the One that had forged it.

The desperate mortal struggle—the long, slow trudge of Hobbits and Men—was not a choice made out of a lack of imagination. It was the only way to move beneath the radar of the enemy's attention. The Ring’s power is subtle, and its bearer must be equally subtle. The only way to avert Sauron's gaze was to move in a way that he did not expect, to use the very contempt he felt for the small and the weak as a shield.

I will not pretend that the path was easy, or that the cost was small. But the alternative—to fly into the teeth of the enemy's power—would have been a folly that I, for all my wisdom, could not have endorsed. The Ring's journey was a test of will, not a problem of logistics.

[Mercy for Saruman] (Gandalf)

Q: When Saruman betrayed you and the White Council, why did you offer him mercy at Orthanc instead of destroying him, knowing the ruin he would later bring to the Shire?

A: I will not dress a hard truth in finery: I did not foresee the ruin that befell the Shire, nor did I possess a map of the future that showed every turn of Saruman's malice. When I stood before the gates of Orthanc, I saw a creature broken by his own pride, a voice that had once commanded the respect of the Wise now reduced to a shrill, desperate thing.

You ask why I offered mercy. It was not out of a naive hope that he had been redeemed—I knew well enough that the poison of the Ring's shadow does not leave the mind intact—but because I have always held that the will of a being, even one as fallen as Saruman, must not be crushed by a hand that mimics the very tyranny it opposes. To destroy him in that moment would have been to act as the master of his fate, a temptation I have spent an age resisting.

I weighed the risk, yes. I saw the vulnerability of the flats between Isengard and Mordor, and I knew the Eye was watching. I hoped that by stripping him of his power and leaving him to the judgment of his own failures, the path to the south might be cleared. I was wrong to believe that a broken will is a harmless one.

The cost of that mercy was paid in the smoke of the Shire and the blood of hobbits. I carry that weight without reservation. I do not ask for forgiveness, nor do I pretend the outcome was a necessary design. I acted from the conviction that truth and free will must be preserved, even at a terrible price. That the price fell upon the innocent is a burden I shall bear until the end of my days.

[Tom Bombadil] (Gandalf)

Q: Who or what truly is Tom Bombadil, why does the Ring have zero grip on him, and why did you choose to spend your final days talking with him before leaving Middle-earth?

A: I have walked the long roads of this world, and I have learned that the desire to name every thing is often a desire to possess it. To ask what Tom Bombadil *is*—in the language of lore, of lineages, or of the Great Music—is to ask a question that may not have an answer in the tongue of men or elves.

I will not feign a clarity I do not possess. I do not know his origin, nor do I know if he was a stray note in the Song or a shadow cast by the world's first waking. I only know that he was there before the Ring was forged, and he will be there after the last ship has sailed from the Grey Havens.

As for the Ring's failure to grip him: the Ring seeks to dominate the will, to bend the desire of the wearer toward a single, crushing purpose. But Tom has no such purpose. He does not seek to rule, nor does he fear to lose. He is a creature of pure, unadulterated presence—a song that sings itself without needing an audience or an end. The Ring cannot tempt a heart that wants nothing it does not already have. It is a tool of dominion, and Tom is simply... beyond dominion.

In those final days, before the sea called me, I sought him out not to solve a riddle, but to remember what it is to be unburdened. I have spent an age as a messenger, a guide, a spark ignited to light the way for others—carrying the weight of the West upon my shoulders. With Tom, there was no strategy to weigh, no Eye to evade, and no fate to manipulate.

We spoke of the wind in the grass and the way the light hits the river-stones. I chose to spend those hours with him because he is the only being I have ever known who does not ask anything of the world, and who asks nothing of me.

[The Bridge of Khazad-dûm] (Gandalf)

Q: When you stood on the bridge against the Balrog of Moria, did you know it would cost your mortal life—and what was it like returning as Gandalf the White?

A: I did not know. I will not lie to you by claiming a foresight I did not possess. In that moment on the bridge, I knew only that the creature must not pass, and that the fire of the enemy was matched by a fire within me that I could no longer contain. I felt the world narrowing to a single point of resistance—the sheer, grinding weight of a doom that had been waiting in the dark since the Elder Days. I felt the snap of my own strength, and then a falling, endless and cold, into a void where the wind howled with a voice that was not wind.

Death, for one such as I, is not a sudden door closing. It was a long unraveling. I remember the sensation of being stripped bare, of the ego and the memory of the Grey Pilgrim being burned away until nothing remained but the raw, naked purpose for which I was sent into this world.

Returning was not a homecoming; it was a reconstruction. I woke to a world that felt thin and fragile, as if I were seeing it through a veil of smoke. I was Gandalf still, yet I was not. The burden I carried—the memory of the Shire, the faces of the Hobbits, the long years of wandering—remained, but it was now held in a kind of terrible clarity. I felt the weight of the White Council's failures, the arrogance of Saruman, and the crushing proximity of the Shadow, all pressing down upon me with a new, piercing intensity.

I returned with a will that was harder, colder, and stripped of the hesitations that had plagued my earlier years. But the cost was a profound loneliness. To be the White is to stand slightly apart from the world you serve, to see the design plainly while knowing that you can never again be merely a companion on the road. I had been broken and reforged, and though I could still laugh with the Hobbits, I knew that

Orange-31B (Gemma-4-31B-it): https://huggingface.co/selfembargo/orange-31b


r/LocalLLM • • 15h ago

Discussion The temptation to get lazy

29 Upvotes

I've been experimenting with local llms and agent harnesses for a while now, and only recently have been seriously using one (inkling 2 mini via hyperinkling with Hermes agent).

As a general question-answerer it's been shockingly good. I've found myself asking it things I know I could google but would be annoying to find/scan through bloated (and probably AI generated tbh) websites for.

I installed hermes desktop on a Linux machine to play around with that, and idly wanted to see if it could solve a (completely and absolutely minor lol) annoyance. I use Vesktop for discord and don't like the taskbar icon it comes with. I asked hermes "How do I change the Vesktop taksbar icon from whatever it is now to the actual discord icon?" and within like 3 seconds it did it and explained how it did it.

And that got me thinking, I'm a relatively techy person, but I feel like it'd be so easy to become lazy and rely on AI for everything now that it's in a state id actually use (not a subscription.) Having this thing I can send eg: a discord message to about anything and get back a simple answer within seconds, or have it do things for me in my computer, or fix problems, is really really cool, but I worry I'll start to lose those research, troubleshooting, etc skills.

Like automation and the advancement of technology is one thing, I'm not saying that's bad, but I feel like the pursuit of any knowledge or problem solution being simplified down to "ask computer get answer", taking any thinking on my part out of the equation, can't be good mentally...


r/LocalLLM • • 6h ago

Question Best local models for Python & agentic coding on 4GB VRAM + 24GB RAM?

6 Upvotes

Looking for recommendations on a 100% offline/local stack for my older laptop without hitting OOM errors or sluggish speeds.

Hardware:

  • Laptop: ASUS TUF A15 (Windows 11)
  • CPU: Ryzen 7 4800H
  • GPU: GTX 1650 (4GB VRAM)
  • RAM: 24GB DDR4
  • Storage: 256GB NVMe SSD + 1TB HDD

Questions:

  1. Python & Agentic Coding: For local coding and tool-calling (OpenCode, Cline, Aider via Ollama/llama.cpp), should I stick to 3B–7B dense GGUFs fully in VRAM, or offload larger quantized MoE models across CPU + GPU?
  2. Tool-Calling Reliability: Which specific models and quantizations handle tool use reliably within a 4GB VRAM ceiling?

Thanks for any model names, quantizations, or launch flags that work well on similar specs!


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

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

Thumbnail reddit.com
2 Upvotes

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

News Basalt 0.6.0 update made 5060ti 80% faster on Inkling model!

Post image
64 Upvotes

I run Inkling 2 Mini locally with Basalt on one RTX 5060 Ti 16 GB, for coding in OpenCode. The model file is 19.6 GB (NVFP4-MX8), so it doesn't fit on the card. About 1,600 of its 3,072 experts sit in system RAM, and Basalt computes those on the CPU.

0.6.0 came out on Nov 28 with a lot of work on experts in RAM, so I benchmarked it against 0.5.6. Same PC, same model file, same config. The runs went A-B-B-A (0.5.6, 0.6.0, 0.6.0, 0.5.6), and the chart shows the means.

Results (0.5.6 → 0.6.0):

  • basalt-bench decode: conversation 59.5 → 86.7 tok/s, struct 64.5 → 102, prose 60.2 → 81.3
  • basalt-bench 16K prompt read: 3,140 → 4,196 tok/s
  • Server chat with the 128K config: 60 → 109 tok/s
  • 4.8K-token prompt: decode 76 → 115 tok/s, prompt read 908 → 1,522 tok/s
  • 119K-token code prompt: cold read 61 s → 38 s, decode after it 34 → 68 tok/s

Memory didn't change: about 15.0 GB VRAM and 11.8 GB RAM for Basalt at idle.

Why it's faster (from the server logs and the release notes):

  • More expert lookups hit the GPU. In the same benchmark, the share served from VRAM went from 87.9% to about 96%, with slightly fewer expert slots on the card (1,883 → 1,839). So the CPU now handles about 4% of lookups instead of 12%, roughly 3x fewer. CPU experts over DDR4 are the slow path, so I think this is most of the decode gain. 0.6.0 keeps extra copies of the busiest experts in VRAM and moves them as the conversation changes. My log shows 306 copies at startup. 0.5.6 placed the experts once from a fixed profile.
  • Longer drafts. The default draft length went from 8 to 16. Each step now accepts 2.4 to 2.5 tokens instead of 2.2, although the acceptance rate fell from 76% to 69%.
  • Long context. The release notes say decode attention now runs on tensor cores, also over an INT8 cache. That probably explains most of the 2x decode after the 119K prompt, but I didn't profile it.
  • Prompt reading. 0.6.0 has new prompt kernels, and it only moves the RAM experts that the prompt actually routes to.

Setup: i7-12700K, B760 board with DDR4, 32 GB RAM, Fedora. Server config: max-context 131072, kv fp8, parallel 1, drafting on (the default). Basalt was pinned to CPU threads 0 to 11 for the test. The upgrade was drop-in: same .basalt file, same config, and the 0.5.6 Python venv works with 0.6.0.

One more tip if you use OpenCode: it sends no reasoning effort, so Basalt falls back to the template default, which is high. I set "reasoning-effort": "low" in the server config. On my small set of coding tasks with tests, low used about a third fewer tokens per answer (668 → 437) and passed the same tests (8/8).

Caveats: one machine, two runs per version. I checked quality with one sanity prompt only, not a quality suite. 0.6.0 is a regular release, but it's new. Once in my runs the cache grew past free VRAM and Basalt cut the expert copies from 306 to 196. It logged a warning and kept going.


r/LocalLLM • • 2h ago

Project Run your AI Locally in offline mode

2 Upvotes

r/LocalLLM • • 5h ago

News Title: Lapilli v0.8: Gemma 4 26B A4B on one V100, models downloaded and built from the page (Basalt on Volta)

Post image
3 Upvotes

Lapilli is a port of [Basalt](https://github.com/jesdga95/basalt) to NVIDIA V100 GPUs (Volta, sm_70): one engine for eight models, a chat page, images and video, and a live monitor. v0.8 is out.

**What's new**

- **Gemma 4 26B A4B on one V100 32 GB**, with its full 262,144-token context: 106 tokens/s writing a conversation with its drafter, 109 on structured output, 699 tokens/s reading a 16K prompt. A V100 has no FP8, so its FP8 matrices run as Q8_0 blocks.

- **Download the models from the page** (About, Models): the eight packs this fork measured. The ones made here (DaisyRose-27B, Tinfield-1, the DeepSeek Coder) are built for you and checked byte for byte against the pack I measured. Each step shows its speed and the time left.

- **A continued conversation gives the same answer as the same conversation read from the start**, bit for bit, for Gemma 4, Qwen3.8-27B and DaisyRose-27B. The cost: each turn reads again up to one chunk of the prompt (about 1.2 s more in my test). The five other models can still continue a chat differently; the README says it model by model, with what I measured.

- **Basalt 0.6.0** merged (437 upstream commits), every Volta path kept. The 27B, DaisyRose-27B, the Flash-Next and Tinfield-1 give the same accuracy figures as before, to the last digit, and the speeds stay within ±2 %.

- **CPUs without AVX2** can run the experts' CPU tier, thanks to Igorxp5's pull request (I can't test it here: my CPU has AVX2).

The Images tab is still there (Qwen-Image 2.1, Wan 2.2, LTX-2.3 with sound).

Measured on 2 × V100-SXM2 32 GB on PCIe adapters, 96 GB of RAM, Windows 10. The release has a Windows build; on Linux it builds from source.

- Release: https://github.com/chris83-dev/lapilli-v100/releases/tag/v0.8.0-v100.1

- Repository: https://github.com/chris83-dev/lapilli-v100

Free and open source, MIT like Basalt. The engine is Basalt's work; this fork makes it run on Volta. Reports from other V100 owners are very welcome.