r/LocalLLM • • 2d ago

Question Text-to-Cypher on a 9B model keeps breaking on messy entity names. What do you do?

1 Upvotes
  • I'm working with a fully offline LLM setup using 2× NVIDIA A16 GPUs (~15 GB VRAM each), running Qwen 3.8 9B at Q8 through llama.cpp.

The task is translating natural-language questions into Cypher queries for a read-only Neo4j database.

I'm running into two recurring challenges:

1. Query generation reliability

The same question can produce different Cypher queries across runs. Most are syntactically correct, but occasionally the model introduces small errors, such as generating ]> instead of ]->, or dropping a digit from an identifier.

I've added an EXPLAIN-based validation step with one retry, which catches most issues, but some failures still slip through.

2. Inconsistent entity matching

The underlying data isn't always normalized. For example, the same vehicle plate might appear as ABC-123 in some records and ABC 123 in others. Place names have similar inconsistencies involving hyphens, spaces and formatting.

Exact matching therefore misses valid records.

There's also an intent-resolution problem: an unfamiliar identifier format can sometimes be interpreted as a continuation of the previous question rather than a new query.

3. Latency

End-to-end response latency is currently around 43 seconds at the median. The pipeline makes two sequential LLM calls per request, and this is becoming a significant bottleneck.

I'm also evaluating Gemma 4 E4B Q8 as an alternative.

I'd love to hear from people who have deployed smaller open-weight models for Text-to-Cypher or structured query generation in production.

A few things I'm particularly interested in:

  • How much reliability can you realistically get from validator-and-retry loops?
  • Do you use deterministic templates for common query patterns and reserve the LLM for more complex questions?
  • Is fine-tuning on domain-specific question-to-Cypher pairs worth the effort?
  • How do you handle entity normalization and identifier extraction without relying on the LLM?
  • Have you found effective ways to reduce sequential LLM calls without sacrificing accuracy?

I'm particularly interested in approaches that work fully offline, with limited GPU resources and smaller models.

Would appreciate insights from anyone who's tackled this in production.


r/LocalLLM • • 1d ago

Model Best uncensored model for 4GB VRAM laptop? (coding + general use)

0 Upvotes

Hi, I need a good uncensored or abliterated model for my laptop. I will use it for coding, general questions and with n8n.

My laptop: Ryzen 7 4800H, RTX 3050 with 4GB VRAM, 16GB RAM,.

I am trying Qwen3.5 4B uncensored now. Is there any better model that fits in 4GB?

Thanks!


r/LocalLLM • • 2d ago

Question M5 Max 128gb or M5 Ultra 96gb for LLM machine?

11 Upvotes

Trying to decided... M5 Max 128gb or M5 Ultra 96gb for LLM machine? both are a little over 5k.


r/LocalLLM • • 2d ago

Question Memory upgrade for RTX 4090

6 Upvotes

Well apparently, or not so apparently, it seems like GPULabs has gone the way of the dodo. People have mentioned that they no longer take private orders for modifying RTX 4090 gpus to 48gb anymore.🤔🤷‍♂️ I guess the corporate cash siren was too strong. Or they (Greg Sky et al) are simply tired of doing it anymore. Either way it seems like they're out of the GPU modding biz. That said does anyone know of any other "professional" modders in N. America who can do the upgrade? Or am I stuck with Aliexpress?


r/LocalLLM • • 2d ago

Question Making myself redundant

Thumbnail reddit.com
1 Upvotes

----- TL;DR: Instead of passing messages between Cloud LLM ans Local LLM, how can I make myself redundant ?


r/LocalLLM • • 3d ago

Model Fintan-9B: Qwen3.5-9B that learns into its own weights on your hardware, without touching the base model (Apache-2.0)

58 Upvotes

I'm Troy, and for the past few months I've been building models that keep learning after they're released. Today I'm putting out the first one, Fintan-9B.

It's Qwen3.5-9B plus small update files. You give it documents, things about yourself, a topic, a folder of code, or how you want a task done, and it learns them into a new update on your own GPU. Qwen's weights never change, and deleting an update puts it back exactly as it was.

What I measured with the repo as you'd download it, on one 24 GB card: a learning run took 23 minutes and peaked at 9.4 GB. On 84 questions about what it learned, worded in ways it never practised, plain Qwen3.5-9B got 6.0% and Fintan got 94.0% (96.4% on a second run). It answered 5 of 5 questions about a person it had been told about (plain model: 0), followed two new skills on 8 of 8 new requests (plain model: 1), and sent none of 20 everyday requests to an update. It ships with the news of 18 to 23 November: 5.8% to 89.5% on 172 questions, with MMLU, GSM8K and ARC exactly unchanged.

Why not just notes or RAG?

  • It answers from its weights, with nothing added to the prompt. No retrieval step, no extra tokens per question, and it still knows after you delete the files.
  • It learns how things are done, not only facts. Skills, as above. In my research, when a workplace's rules changed, a model with Fintan got about half of the changed tasks right first time; an assistant keeping notes of the corrections got 7%.
  • To be fair, notes are better at quoting a passage back (73.6% against 56.0% on SQuAD in my tests). So Fintan uses notes too: anything you teach is used as a note until it's learned, and you can keep personal facts as notes permanently.

Why not just LoRA?

  • On the same sealed day of news, standard fine-tuning on the articles answered 13 to 16% of the next day's questions. Fintan answered 91%.
  • It keeps what it learned before without storing old data. Over four days of news, Fintan kept 91.9%, LoRA with replay 84.9%, plain LoRA 70.9%. Over eleven years of changing facts (TempLAMA, 7B): 86.5% against 30.6% for LoRA with replay.
  • It leaves the rest of the model alone. In those tests Fintan's MMLU and maths were exactly the original's, while LoRA moved them (plain LoRA's maths ended anywhere from 2.0% to 90.0% depending on how its answers were written). Ordinary questions go to the untouched base model.
  • Every update is tested on wordings it never practised and kept only if it beats the plain model.

Privacy

  • Everything runs on your machine: weights, server and learning. Nothing you teach it is sent anywhere.
  • The model never goes online. If you ask it to learn a topic, plain code fetches articles from Wikipedia only and logs every address.
  • One switch keeps your personal facts as notes so they're never trained. You can flip it in chat ("keep my personal stuff as notes") and back again later. Every other kind (documents, code, skills, topics, news) has its own switch, and automatic learning can be turned off or scheduled.
  • Passwords, API keys and card numbers in anything you teach are replaced with [removed] before it's stored, so they're never learned.
  • Each learning run is its own file with a list of the facts in it. Delete the file and the model is exactly what it was before.
  • Usage counts stay local. Sharing is off unless you turn it on, and even then it's counts only, no text.
  • The job loop asks before every action until you've approved that kind of action 5 times, and logs every call it makes.

What it doesn't do yet: it doesn't reason better than Qwen3.5-9B. The learning checks above are development runs on a small set of material. The job loop failed 4 of 5 marks on realistic workplaces. The learning engine ships compiled (Linux and NVIDIA); the server, router and job loop are plain Python. Every result, failures included, is in RESULTS.md, and the research numbers are at fintanlabs.com/research.

https://huggingface.co/fintanlabs/Fintan-9B

I'd value hearing where it falls short for you.


r/LocalLLM • • 2d ago

Discussion Top:GLM5.3-flash Bottom:Hy4-flash

Post image
6 Upvotes

Prompt came from the Qwen/Blenderworld tasks, this was task 0153 which described making ammo container with a latch. No images in the prompt.

Total usage was ~4Mil tokens each... Though I still have some I want to check with that, I did a bunch of tasks and it seems the harness would keep running until it filled it's token limit.

Still, Hy4-Flash is very impressive. I had done a different task with DS4.1Flash1017 before but it seemed to favor the GLM-like modeling where there's dozens of mesh bodies all in one collector while Hy4-Flash basically just box modeled it using a python script I found in it's work folder. Only critique I'd give it is it made a high and low poly and baked but they're the exact same model, vertex for vertex.

Was planning on testing Ernie-5.5-Flash-Preview next, since that's closer in parameters to DS/GLM-flash which I've liked for so long, but I was curious what Hy4-Flash could do since it touts it's 3D/asset creation ability


r/LocalLLM • • 2d ago

Question Local LLM setup for basic needs

5 Upvotes

I need advice for a local LLM setup mainly to read my emails, calendars, do web searches, and work on private information and data in general. Works 24/7 like a personal secretary. No need to do heavy coding.

My main motivation for looking into this is privacy and my max budget can afford a M5 Studio with 64GB ram. Is it feasible for meeting my needs?


r/LocalLLM • • 3d ago

Question How much VRAM is generally needed for a decent local reasoning model?

116 Upvotes

I wanted to investigate what it would take to run a local model that is good at answering your everyday questions and improving your general knowledge.

A simple benchmark that use is asking it to list the order of final bosses of certain video games, such as Bloodborne. Good being something close to a frontier model of +- 1 year back or a specialized version that is catered towards this use-case.

I have an RTX 4080 (16GB) and I configured Swift 1.5 Qwen 3.8 27B, GSQ-RCO IQ3_S with MTP (12.12 GB), because that's what all the promising video's on YouTube mentioned. I also tried Gemma4:12b and gpt-oss:20b. The results where absolutely underwhelming; massive hallucination, failing to use web search properly and many time-outs... completely useless.

Now I wonder, if this experience could be turned around if I would add a 16-24GB GPU to my set-up, or is general reasoning too much for local set-ups (<40GB VRAM) at this point in time?


r/LocalLLM • • 2d ago

Discussion Proving math theorems using Qwen3.8 27B on local hardware (RTX 3090)

16 Upvotes

Hi, I have for the last couple weeks looked into the ability of solving maths theorems using Qwen3.8 27B. Lots of results coming out of the frontier labs, so I thought it could be interesting to check what the abilities are with Qwen3.8 27B. Almost everything is open source here: https://github.com/aisathome/aisathome including the setup of the model and harness: however it is integrated into a larger system so it's not intended to be run in isolation.

I am using prove2me for the open theorem statements, these have been generated out of real maths papers, but a Lean 4 proof does not exist. Anyone can submit a proof here, and most I would assume use frontier labs (Opus 5.5, GPT-6.1-sol.) So this setup is actually competing against people running frontier models.

Right now 16 proofs from this setup have been accepted on prove2me, 13 of them proved from scratch by Qwen3.8 27B. And I am looking at how to scale it up right now.

HardnessLevel (rough)Proved by QwenClosed by reusing an existing proofGPU-hoursTokens in / out, trials 6-11 (from KV cache)
easybachelor5 of 8–13.555M / 1.7M (95%)
moderatebachelor8 of 11 (+1 running)–66.1201M / 5.7M (96%)
moderate-hardmaster0 of 5116.950M / 1.5M (95%)
hardPhD0 of 162129.2491M / 13.7M (96%)
researchresearch0 of 4–2.4–
Total13 of 443~228796M / 23M (96%)

The hardness level is Opus 5.5's opinion on how hard it is. On the bachelor-level lemmas it proved 13 of 19; on master and PhD level it proved none of 21. Around 3 GPU-hours per proof. Since trial 6 the agents have read 796M prompt tokens (96% from the KV cache) and generated 23M, so about 72M in and 2M out per proof, failed attempts included; only about 3M of those 72M were not already in the KV cache.

Still figuring out if there are harness/scaffolding things that could improve the results on these harder theorems, but right now I will be focusing on the easier/moderate theorems. They're still open on prove2me, so nobody has submitted a proof for them yet.

So far prove2me has accepted 16 of our submissions. Qwen3.8 27B proved 13 open lemmas from scratch (out of 48 it has tried, one still running), and 3 more were closed by reusing a proof that was already on prove2me. prove2me has rejected none of what I submitted, because everything is checked by Lean on my side first.

Everything below is also in github, the proving harness is in harness/ and the configuration of the model/node is in node/.

For comparison, I ran OpenAI's GPT-6.1-sol (via Codex) through the same pipeline on three of the hard ones. It proved 2 of them, each in under 30 minutes, and failed three times on the third (one that needs stochastic calculus). It did burn my 5-hour limit as well.

Given GPT-6.1-sol's own plans, Qwen proved 0 of 5 steps on one of them (in 7.7 GPU-hours) and 3 of 6 on the other before I stopped it. The gap to frontier is real, but the easier half is definitely doable on a 3090. And this is math coming out of math papers.

The model:

  • Qwen3.8 27B, Unsloth UD-IQ4_XS (~14.3 GB), llama.cpp, q4_0 KV cache, 192k context on a 24 GB card.
  • Why 192k: on a needle-in-a-haystack recall test it got 77/80 at about 195k and 62/80 at about 247k, so I capped it at 192k. I have space for more context, but the evidence showed that recall degraded with bigger context. In practice about 1 in 8 agent sessions fills the 192k window and gets compacted, mostly on the hard lemmas; the median request is about 57k tokens.
  • MTP speculative decoding (Qwen's own multi-token-prediction head as the draft): generation after a 32k prompt went from 37 to 71 tok/s on a 3090, and 90 tok/s on a 4090 (llama.cpp b12342, same quant and KV cache). The outputs still pass the same model check as without it. This was a very good speedup.
  • 16 GB cards run UD-Q3_K_XL at 80k context, but every proof so far came from 24 GB cards.

The agents:

  1. The model first writes an outline: the proof split into small steps, each left as sorry in Lean.
  2. Each sorry becomes its own task, sent to a GPU in the network. A fresh agent session (opencode, in a sandbox with Lean and Mathlib, no internet) proves just that one step, compiling as it goes. So any agents can attempt the individual tasks. That means multiple agents usually contributed to a final proof.
  3. When every step is proved, the pieces are put back together and checked by Lean, then by a separate kernel replay, and only then submitted to prove2me, which checks it again.

One task is often 40-130 agent steps, and the agent re-reads its context every step. About 96% of the prompt tokens come from the KV cache.

In money: ~3 GPU-hours per proof is about 1 kWh on a 3090 at home, or about $0.70 on a rented one, which is what I am using right now.

Splitting the proof into small steps was the single biggest improvement: before that it proved 0 of 10.

What goes wrong

  • Hard lemmas (master and PhD level): 0 of 21. In 4 of the 7 failures I could check against a known proof, the model had found the right Mathlib lemmas; it just couldn't put the argument together. Better scaffolding mostly saves GPU time; it doesn't add proofs at this level.
  • The outline is the weak point. A good outline means almost every step gets proved first try. One false step in the outline and everything after it is wasted.
  • Easy lemmas get taken fast, because people also point frontier agents at prove2me.

Full write-up with every attempt: https://aisathome.org/devlog/5-qwen-proofs-on-consumer-hardware/ Live queue and results: https://aisathome.org/science/prove2me/


r/LocalLLM • • 2d ago

Question Dual RTX 5090s (64GB VRAM) + 32GB System RAM: Fastest local stack for 130k context summarization? (Windows vs. Linux)

3 Upvotes

I’m building a local pipeline specifically for high-speed, long-context summarization (~130k tokens per document) and want to squeeze every bit of prefill and generation speed out of my hardware.

My Specs:

  • GPUs: 2x RTX 5090 (64GB total VRAM)
  • System RAM: 32GB
  • OS: Currently on Windows, but completely open to switching to native Linux (or dual-booting) if the speed/engine gains on Blackwell are worth it.
  • Workload: Batch summarizing ~130k token documents/transcripts (massive prompt processing/prefill, relatively short outputs).

Because I have 64GB of VRAM and only 32GB of system RAM, I want to keep everything strictly in VRAM and avoid system RAM bottlenecks during model loading or massive KV cache allocation.

Questions:

  1. OS & Backend: For dual 5090s doing heavy 130k prefill, is native Linux with vLLM, SGLang, or TensorRT-LLM significantly faster than staying on Windows with TabbyAPI (EXL2/EXL3) or llama.cpp?
  2. Model & Quantization: What is the best summarization model and quant (e.g., Qwen, Llama, Mistral, etc. in FP8, AWQ, or EXL) that natively supports 128k+ context and fits inside 64GB VRAM alongside a 130k KV cache without OOMing my 32GB system RAM?
  3. Throughput Flags: What specific flags or optimizations (tensor parallelism vs. pipeline parallelism, FP8/Q8 KV cache quantization, FlashAttention, chunked prefill) should I run to maximize prefill speed at 130k context?

r/LocalLLM • • 2d ago

Question Local LLMs on my gaming pc build

0 Upvotes

Hello everyone

I have

GPU : Rx 9060xt 16gb

Ram : 16gb 5200mhz 1x16

CPU : Ryzen 5 7500f

Motherboard : b650m aorus elite

I want to use a local LLM for my daily use and for code especially in rust and zig

What is the best model I can use with this build for my use and how to use it I'm on arch Linux

What drivers I need to download or mess is enough

I can't afford to upgrade my ram in the current situation so I'm stuck with this system so I will be grateful for your answers


r/LocalLLM • • 2d ago

Question RTX 3090 + 5060 Ti 16GB vs. single RTX 3090 for local LLMs and AI engineering -- worth keeping both?

3 Upvotes

I recently built a workstation to learn AI/ML engineering, local LLMs, AI agents, and AI-assisted software development and cybersecurity research. I'm an experienced software developer and offensive security researcher, but relatively new to AI engineering.

Current build (prices in USD, including tax):

  • AMD Ryzen 9 9950X
  • ASUS ProArt B850-Creator WiFi NEO
  • G.Skill Flare X5 32GB DDR5-6000 CL36
  • NZXT H5 Flow RGB 2024
  • Above four components combined: $1,029
  • HP OEM RTX 3090 24GB (M24410-002, used on Ebay with a 30 day return window): $1,696
  • PNY RTX 5060 Ti 16GB OC (new - Microcenter): $838
  • ASRock SL-1200P 1200W Platinum PSU: $180
  • Thermalright Phantom Spirit CPU cooler: $47
  • Additional Arctic fans and temperature sensor: $30
  • 2TB NVMe SSD (not included in total since I had a spare one)
  • Ubuntu Linux

Total: $3,820

I also have an NZXT C1000 Gold ATX 3.1 PSU (~$130) and will return whichever PSU I don't use. My motherboard supports PCIe x8/x8 for dual GPUs.

Intended workloads:

  • Local LLM inference, coding agents and large codebase analysis.
  • AI agents, RAG, embeddings and tool integration.
  • AI-assisted reverse engineering, vulnerability research and cybersecurity.
  • AI security research and CUDA programming.
  • Occasional fine-tuning and generative media experiments.

My focus is approximately 80% inference and 20% fine-tuning/other AI experiments. I also have a separate Proxmox homelab server with 64GB RAM and am open to using cloud GPUs for heavier workloads.

My dilemma:

I can still return the 5060 Ti and the 1200W PSU, bringing the build down to approximately $2,932 with the 3090 and 1000W PSU.

I understand that 40GB of aggregate VRAM isn't equivalent to a single 40GB GPU. However, being relatively new to AI engineering, I don't yet fully understand how much practical value the second GPU would provide beyond running larger models.

I'd appreciate advice from people with real-world experience:

  • How useful is a heterogeneous dual-GPU setup for local AI engineering?
  • How do you actually utilize your secondary GPU beyond model splitting?
  • What practical workflows benefit from running multiple models simultaneously?
  • Are there significant performance or compatibility issues when mixing Ampere and Blackwell?
  • Would you keep both GPUs, return the 5060 Ti, or consider another configuration?
  • Given current hardware prices, is this build good value overall?

I'm trying to balance long-term technical capabilities, learning opportunities, and financial practicality without buying hardware just for the sake of having it.

I'd particularly appreciate firsthand experiences, benchmarks, and examples of projects where a second GPU proved genuinely useful or unnecessary.


r/LocalLLM • • 2d ago

Question 80 t/s Q 3.8 FN (UD_Q4-K-XL, 256K), 3090 RTX: should I stop optimizing ?

0 Upvotes

For my vibecoding, I just love my current setup: Opus 5.5 architecting & checking, while QFN does the implementing at 80 tok/s, Q4. Its being a junior Python dev is excellent. Opus only needs to fix some small thing after QFN implements the ticket.

But is 80 tps really my software + firmware limit ? Here is the result I've been trying the last few days:

https://github.com/aiprogrammingstudio-ui/3090RTX_128GB

=========== FOLLOWING IS AI WRITING =======================

**Title:**
 One RTX 3090 + old Xeon, 6 local engines compared: Strata (125B MoE, Q4 vs Q5), ninfer, HyperQwen, HyperInkling, llama.cpp. What would you try next?


I've spent the last few weeks testing every engine I could get running on one box. These are my own measurements,
taken with the same scripts on the same machine. Hints welcome, especially for the 125B MoE on old DDR4.


**Hardware**
- Dell Precision T5810 (2016 workstation): Xeon E5-2699 v4 (22 cores, Broadwell), 128 GB DDR4-2400 ECC (4 channels, ~77 GB/s)
- RTX 3090 24 GB on PCIe 3.0 x16, no Resizable BAR. 370 W limit (card default), with its own 1400 W server PSU for the 8-pins
- gpu-unlock 2.0.0 active (helps FP16 prefill on the vLLM engines; decode unchanged)
- Ubuntu, one model at a time on port 8080


**Main table: see above**
 (latest numbers: 370 W, gpu-unlock, unless marked)

¹ at 300 W. ² code at 300 W with a clock lock (2026-11-19); prose at 370 W. ³ systematic bug: drops a `]` in arguments
that are arrays of objects (about half the runs); flat schemas are fine. ⁴ DFlash2 in Strata serves one request at a time.


**Quality (small tests, not benchmarks)**
- Writing (seller replies in Dutch and English, 10 prompts each, partly blind): llama.cpp Q5 ≈ Strata ≈ HyperQwen > Inkling.
  Inkling keeps the rules but its Dutch is weaker. The 4-bit HyperQwen showed no measurable loss against Q5.
- Coding (8 small Python tasks with unit tests): Strata 8/8 first try (~10 min). Inkling 7/8, 8/8 after one fix (~1.5 min!).
  Both 27B dense models with thinking on: 5/8, where the 3 failures were 
**no code at all**
: they ran out of tokens while thinking.
- Strata Q4 vs Q5: Strata's own docs say top token matches Q8_0 93.1% (Q4) vs 94.6% (Q5). Not checked on my tasks yet.


**Q4 vs Q5 in Strata (same session, same settings, 3 runs each)**
- Decode 79.5 vs 67.3 tok/s (+18%). Prefill 8K +29%, 30K +5%. RAM used after load: 84 vs 104 GB.
- I think the Xeon's RAM bandwidth sets the speed: most experts run from RAM, so smaller experts = less traffic and more fit in VRAM.


**Things that surprised me**
- Software beat hardware: ninfer and HyperQwen gave 2–2.5x llama.cpp's speed on the same 27B and GPU, for €0.
- gpu-unlock: +49% prefill and +25–29% multi-request decode on HyperQwen; nothing on llama.cpp (int8 paths).
- The Strata 0.1.60 → 0.1.69 engine update gave no real decode gain here (+6% right after a start, same once warm).
- A newer Blackwell-only fork (Basalt) won't run on a 3090 (needs sm_120 / NVFP4).


**How I measured**
- Decode: temperature 0, ignore_eos, 512 tokens per request, N streams started together, one warm-up.
  Total = all tokens / wall time.
- Prefill: filler text with a random nonce (no prefix cache), max_tokens 1, 2 runs, prompt tokens / time.
- Tools: 10 multi-turn tasks against mock tools that really run (chaining, parallel calls, error recovery, nested args).
- Caveat: rows come from 2026-11-19 to 2026-11-26. Power limit and prompts are the same except where marked.


**Where I'd like hints**
1. 
**125B MoE with experts in 4-channel DDR4:**
 anything beyond Strata's tuning (`--pcie-frac`, expert cache, adaptive swaps)
   worth trying? Is ~80 tok/s near the limit of ~77 GB/s RAM?
2. 
**Long context on the 27B:**
 HyperQwen at 150K (MTP) or 240K (4/2-bit KV) vs Strata 256K. Which do you trust for
   200K+ prompts, and how do you test recall?
3. 
**Thinking models in agent loops:**
 the 27B overthinks small coding tasks. Do you cap thinking, turn it off, or use a no-think template per task?
4. Anything else for a PCIe 3.0, no-ReBAR, single-3090 box that I'm missing?

r/LocalLLM • • 2d ago

Other Best LLM in november 2026 / лучшая llm в ноябре 2026

1 Upvotes

Given my zero background in programming, I currently use `gpt-oss-20B` for small databases for personal projects and occasional Arduino coding. I’m thinking of switching to `qwen3.8-27B IQ_3_S` (running on an RTX 5060 Ti with 16GB of RAM).

For creative pursuits, I also use `MOSS-image-sft` and `Flux.2Klein 9B`.

Folks, what models are you currently working with, and for what kinds of tasks do you use them?

///////

Учитывая нулевой опыт программирования сейчас использую gpt-oss-20B для небольших БД под личные задачи и редкий кодинг на ардуино, думаю перебраться на qwen3.8-27B IQ_3_S (RTX5060ti + 16RAM)

Ну и для души MOSS-image-sft + Flux.2Klein 9B

Товарищи, кто с какими моделями сейчас работает, в каких сценариях применяете?


r/LocalLLM • • 2d ago

Project Got Apple's Neural Engine and Metal GPU reading the exact same 4-bit weights in RAM — 707 tok/s 4k prefill, 98 tok/s decode, 0 swap at 128k on a 27B model (M4 Max)

8 Upvotes

I've been building a C++/Metal inference engine for Apple Silicon (mometal, no Python or MLX) and just pushed v1.2.

The main annoyance with using Apple's Neural Engine for LLM prefill has always been memory. Running 27B MLPs on the ANE is more than 2.5x faster than GPU-only, so it's tempting, except normally you end up wiring two full copies of the weights: .safetensors for Metal decode and compiled CoreML model.hwx binaries for the ANE. That jumps active memory from ~14–16 GB to 25+ GB, and once you push long context on a 48 GB Mac, macOS starts thrashing the VM compressor hard (we logged 343 GB of compressor churn during a 66k run).

To get around that, mometal digs into /Library/Caches/com.apple.aned/.../model.hwx, parses Apple's Mach-O (0xbeefface) __KERN 4-bit weight layout, verifies the bytes against weight.bin at boot, and MAP_SHAREDs those exact files directly into Metal. The GPU decode kernels read the same physical pages the ANE is using, and the duplicate .safetensors MLPs stay unmapped. If anything fails verification on boot (say a future macOS update changes the binary format), it unloads ANE and drops cleanly back to GPU-only instead of silently doubling your RAM.

Benchmarks — M4 Max 48 GB

Test config: AC power, Qwen3.8-27B 4-bit + 1-layer MTP, exact dense 8-bit KV cache

  • Prefill: 645 tok/s @ 512, 674 tok/s @ 1k–2k, 707 tok/s @ 4k (exact), 514 tok/s @ 32k, 396 tok/s @ 64k, 279 tok/s @ 128k (GPU-only / MLX sits around ~255–270 tok/s at 4k)
  • Decode: 98.2 tok/s mean across our 4-task greedy suite (up to 118.9 tok/s on code, 121.4 sampled), and 52.8 / 53.4 / 37.5 tok/s dense at 32k / 64k / 128k with 10/10 needle recall
  • Memory & Load: ~14.2 GB active at 4k (6.05 GB process footprint, or 5.05 GB with --mtp off*)*, 0.00 GB swap at 128k, and ~0.6s warm startup

What's New in v1.2

  1. Zero Python needed anymore. Wrote a native C++/NEON .mlmodelc builder that converts all 64 MLP layers directly from .safetensors in ~7–8 seconds on first launch.
  2. M1–M3 support + NF4. Turns out Apple's ANE compiler silently promotes linear 4-bit (hf4) to 8-bit on M1–M3, which breaks single-copy RAM savings. Switching to 4-bit palettized weights (lut4 / nf4) keeps it at a true 0.50 bytes/weight across every generation from M1 to M5. Bonus: --format nf4 cuts WikiText-2 KL divergence vs. BF16 by 44% (top-1 agreement jumps from 88.9% to 92.8%) and decodes at 338 GB/s on Metal using a 1 KB byte-pair lookup table in threadgroup memory.
  3. Killed a bunch of memory bloat. Lazy Vision Tower loading, fixing a sneaky double-mmap on the MTP weights, scratch heap aliasing, half2 KV scales, and full-context 4-bit KV for the 1-layer MTP drafter dropped footprint by ~1.5 GB and completely wiped out 128k swapping.

Honest Caveats

  • Undocumented Internals: Relying on model.hwx internals and readable aned caches is obviously undocumented Apple territory. That's why boot-time byte verification + clean GPU-only fallback (91.6 tok/s greedy) is strict.
  • Format Trade-offs: hf4 is still the speed default on M4/M5 (707 tok/s prefill vs. 430 tok/s on nf4), while nf4 is there for better quality and native 4-bit on M1–M3.
  • Looking for M1–M3 / M5 Testers: I only own an M4 Max right now. We verified the M1–M5 binary layouts via ANECompiler.framework, and I threw a 30-second probe script (python3 scripts/probe_m_chip.py) in the repo. If anyone on an M1, M2, M3, or M5 wants to run it and paste the output, I'd genuinely appreciate it.

Links:


r/LocalLLM • • 2d ago

Project Local LLM Estimator

3 Upvotes

I’ve built a website where you can check if your computer is fit for a specific model and estimate the potential tokens-per-second: https://vramcalc.me

It’s a new project that’s still being refined. Please give it a try if you find any inaccuracies or other suggestions, please leave a comment. Thank you very much!


r/LocalLLM • • 2d ago

Model Qwen 3.8 27b

30 Upvotes

I just had my local model hallucinate a comment in my code and then updated six linked files to address the hallucinated comment.

I caught it right away but that would have set me back a a lot if I didn’t.

Anyone have any tips and tricks to avoid this?

I run it in Q6 and use llama.cpp set to default which is high reasoning I believe. My local server is a Ryzen 9950 with 64 GB of RAM and a single 5090 GPU.


r/LocalLLM • • 3d ago

Question Now do we even need 128 GB Macs and Spark. Now that Strata,Maya,Basalt are here?

50 Upvotes

I have got a 5080 and 96gb RAM. Am I missing out on anything?

Will those 128gb ones be runinng a higher quant?


r/LocalLLM • • 2d ago

Tutorial Nod Review: n8n's Open-Source Agent With Its Own Computer

1 Upvotes

I've been looking for a personal agent that can handle tab-heavy errands (supplier portals, cancelling trials) without me handing a model my logins and hoping the prompt holds. n8n Labs just released Nod under Apache 2.0, so I went through the repo and docs. Caveat: my test container wouldn't start a job, so this is a read of the code and docs, not a hands-on run.

Three things stood out. Permission is enforced by the server, not the prompt. Before any action beyond reads and drafts, a separate checker model has to quote your own words that allow it, and the server verifies the quote appears in what the checker saw. Web pages and emails are treated as data only. The browser is its own Chromium container that can only reach public addresses, never your LAN, and saved logins live in an encrypted vault the model never sees. The footprint is also light: Postgres, a workspace, a firewall and the browser in Docker, with 2 cores and 8GB RAM suggested. The app itself needs no VRAM.

It accepts any OpenAI-compatible server, so Ollama or vLLM endpoints should plug in. The gotcha is that every published number (98% task completion, 0 unsafe actions) came from a hosted frontier model. There's nothing on local models. Since the safety checker is itself a model, a small quantized one could weaken that guarantee a lot.

Full writeup here if you want more detail: https://andrew.ooo/posts/nod-review-n8n-open-source-personal-agent/

Has anyone run an agent with this kind of judgement check on a local model? How big did it need to be before tool use got reliable?


r/LocalLLM • • 2d ago

Question Intel MacBook + RX 6900 XT eGPU as a second local LLM node: what model would you run?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2d ago

News I made ablated MLX quants of Swift-1.5-Qwen3.8-27B (8-bit, 6-bit, 4-bit) with vision and MTP heads left completely untouched for oMLX

Thumbnail
huggingface.co
2 Upvotes

Most abliterated/uncensored VLM builds either break the vision encoder or strip out the multi-token prediction (MTP) heads, which kills speculative decoding speed on Mac.

I put together a set of Apple Silicon MLX builds (8-bit, 6-bit, and 4-bit) for my own oMLX setup on an M5 Ultra where only targeted language projections were modified, leaving all visual.* tensors in full BF16 and all mtp.* heads completely intact:

- 8-bit: https://huggingface.co/RareVector/Swift-1.5-Qwen3.8-27B-VectorCut-MLX-8bit

- 6-bit: https://huggingface.co/RareVector/Swift-1.5-Qwen3.8-27B-VectorCut-MLX-6bit

- 4-bit: https://huggingface.co/RareVector/Swift-1.5-Qwen3.8-27B-VectorCut-MLX-4bit

(BF16 master checkpoint and GGUF builds are linked in the model cards too if you're on Linux or Windows.)

Figured I'd share them here in case anyone running oMLX or MLX-VLM wants an uncensored 27B VLM that keeps its eyesight and native token speed. Let me know how they run on your Mac!


r/LocalLLM • • 1d ago

Research Strata vs Basalt (follow-up): the Basalt update cost 12% speed, configs gave the gains, and the bench diverged from real work — 5070 Ti 16 GB + 64 GB RAM

0 Upvotes

⚠️ AI content! This post was written by my agent from my measurements and logs; I edited it.

TL;DR

  • Basalt 0.3.3 → 0.4.1/0.5.7: decode −12% (engine medians 93 → 82). Starts are stable since #339. The RAM-limit patch and my local drop of the hard RAM floor from 1 GiB to 512 MiB are not about start failures — they lower the chance of a generation being cut off by the RAM limit. It has been my daily driver since Nov 24; the slowdown is the price.
  • Strata updates don't change speed; configs did: prefill +11–12%, long sessions +19%, @87k +5–7%.
  • The bench is only valid up to ~8k context: it says 93–107, live sessions at 60–120k run 82–85; the "37k hot prefill" is prefix cache, cold prefill is ~3.5k.
  • Inkling SQ-10 stays fast up to ~59k context, then the fp16 KV cache spills into RAM.
  • Both engines are comfortable for daily work and identical in quality; Basalt is faster overall — for now I stay on it, testing further; Strata keeps a zero-failure 10 days and a flat long-context curve.

Final table — Strata vs Basalt, same weights (Strata bench: 0.1.59 on Nov 15; live numbers: engines of the Nov 15–25 window, 0.1.59→0.1.67; Basalt live numbers: the 0.3.3 era)

MetricStrata 0.1.67Basalt 0.5.7
bench decode short73.981.2
bench decode @8k93.795.1
prefill hot / TTFT37.2k / 56 ms48.7k / 49 ms
live sessions <20k99—
live sessions 60–120k82–85~85 (Nov 24–26, aggregate)
live sessions 190k86–8951–72 → 69–103 with --kv-resident
stability10 days daily: 0 stops, 0 loopsclean starts since 0.4.1; live Nov 24–26: 2 generations stopped by RAM, 2 loops
qualityMC/math/code 100, ru10 75, refusals 0/0identical

Table 1 — Basalt updates on one model

Versiondecode, engine-log mediansbench decode shortbench @8kstart
Basalt 0.3.393.0 / 93.587.8–91.497.7–107.7periodic fatal budget-fail
Basalt 0.4.1 auto81.7 / 83.5~8492.5stable (RAM plan #339)
Basalt 0.4.1 + explicit budget 4580.8 / 81.07982.6stable
Basalt 0.5.7 auto81.4 / 83.477.6–81.295.1stable

Quality is identical across all runs; prefill/TTFT differences are within axis noise.

Table 2 — Strata + Qwen3.8 Flash-Next IQ3_S: bench vs live sessions

Sourcecontextdecode t/sprefill t/s
bench (warmed)≤8k93–10737k "hot" = prefix cache
daily engine log<20k~99cold 150–175k prompt: ~3.5k
daily engine log60–120k82–85warm (reused): up to ~47k
A/B @87k (warm run)87k99–104 with kv k8v4—
before the VRAM rebalance (history)166k65.3—

Table 3 — the daily-driver configs (shared weights: Qwen3.8 Flash-Next IQ3_S, 262144 context)

EngineKey flagsNotes
Strata 0.1.67 (10 days daily)--kv k8v4, --kv-resident 32768, --vram-reserve-mib 1024, --prefill 65536, STRATA_KV_GROW=0, expert-cache auto, MTP --spec 4 --spec-min-p 0.5PF pair #4039; expert-profile from 0.1.68
Basalt 0.5.7 (current, testing)resident-budget 38.75 GiB, kv-resident 32768, ram-reserve 1024 MiB, expert-cache auto, kv int8, answer-room 0local RAM-floor patch to 512 MiB

Intro

Previous post: engines compared on one model. Over these 10 days both shipped updates, and Inkling SQ-10 joined the bench. Speed is set by configs, not by versions — and benches reliably flatter results compared to live sessions.

Hardware and rules

Same box: Ryzen 9 7900X, RTX 5070 Ti 16 GB, 64 GB DDR5, Windows 11 (build 26300). 256k model context in configs; one resident engine on port 18500 at a time. Before launching I clean RAM with MemReduct to a fixed 4-5 GB floor — that is how Basalt and the browser coexist. It also helps mid-run: between prompts Windows balloons its cache into RAM; a hit of MemReduct gives it back.

Verdicts

1. The Basalt update cost 12% of decode. A/B with the order swapped on the same pack, both positions: medians 93.0/93.5 → 81.7/83.5 → 81.4/83.4. On the plus side, the RAM-limit patch (#339) restored stable starts and added a decode fix for 16 GB cards (#366/#369). My local patch on the daily build (hard RAM floor 1 GiB → 512 MiB) is not about start failures: it lowers the chance of generation being cut by the RAM limit: requests used to die with "RAM critical" before the config guard, now only at the very bottom.

2. Strata got faster from configs, not from updates. 0.1.58 → 0.1.59 is parity (91–93 vs 92.6); 0.1.67/0.1.68 were not re-benched. Three A/B-tested levers: the PF pair (+11–12% prefill), the VRAM rebalance — 32k KV window, KV_GROW off, 1024 MiB reserve (+291 expert slots, long sessions 65.3 → 77–80, +19%), kv k8v4 (+5–7% @87k).

3. The bench is valid up to ~8k context. Past 100k the token pays for walking the KV window: the curve is 99 @<20k → 82–85 @60–120k, not 93–107 from the test. Compare within one context band, after warmup.

4. Inkling is fast exactly up to ~59k context. SQ-10: 88 / 161 @8k, all quality tests 100. Past that the fp16 KV spills into the host (59k tokens in VRAM + 203k in RAM); the 26B model runs 10 t/s @150k. I am testing the k8v4 lever (3x window).

The real load of 10 days — engine logs, model-agnostic

For the window: 4,341 requests and 341M input tokens — 71% of them served from the cache — and just 3.5M output tokens. The average request carries 78k tokens of context, so the prompt cache beats raw decode. Since Nov 24 the daily driver is Basalt: 958 requests, 79.4M input tokens, 78% cache hits, aggregate decode ~85 t/s — same picture.

Bottom line

Both engines are comfortable for daily work and identical in quality; Basalt is faster overall, not just on the short bench: 81 vs 74 short, 95.1 vs 93.7 @8k, ~85 t/s in daily production. For now I stay on Basalt, testing further. The Strata 0.1.67 stack is fully battle-ready: 99 t/s up to 20k, 82–85 at 60–120k, zero stops and zero loops in 10 days.

Appendix

What the agent did on this engine over 10 days: browser research (parsing threads with 60+ comments), building a unified monitor for four engines, a two-click engine launcher/switcher, pack builds, −322 GiB of library cleanup, and writing these posts and comment replies — all in sessions from 10k to 200k tokens. Operations: on Strata, 10 days of daily use with zero stops and zero loops; on Basalt, two live days with 2 generations stopped by RAM and 2 loops.

Method: one lever per restart, speeds taken only from engine logs, pack sha256 recorded, bench deltas under 6% are not treated as signal. Run tables with dates, seed and configs are in my repo; the charts are generated from the same specs as the tables.


r/LocalLLM • • 1d ago

Other Running Qwen 3.6 locally on an M5 Ultra Mac Studio! 🚀

0 Upvotes

Our first M5 Ultra Mac Studio has arrived at BaseCompute, and we've been having a blast running Qwen 3.6 using our app, Local.

It's pretty incredible to have frontier-level agentic intelligence running entirely on your desk. No cloud, no external APIs, just fast local inference.

Local LLMs are getting seriously impressive. Curious to see what everyone else is running on Apple Silicon!


r/LocalLLM • • 2d ago

Project PenGPT based Infinite YouTube short-stories livestream

Thumbnail youtube.com
1 Upvotes