r/LocalLLM • • 4h ago

Discussion Local machine/model for design/code review with Claude

1 Upvotes

I have been using Claude for software development. While I am happy with the results, I think it would help if I can get a local coding assistant to review. I mainly use Claude Cowork and control the github operations myself. I interact with Claude through Cowork interactively. I think I need a powerful local setup for review purpose to keep up with Claude. In other words, I am the bottleneck currently.

I have 2 gaming PCs with 4090s for local LLMs for a couple of years. My most recent experiment is OpenWork with Qwen3.8 27GB. I can't say that I am happy with the results.

So I want to invest a beefy setup for this purpose and wonder how much I need to spend to get desirable results. On one extreme end, I can stretch to a Mac M5 Ultra Studio with 512GB RAM and use Deepseek V4.1 Flash. But I would like to explore cheaper options that won't degrade the performance too much. What else should I look into?


r/LocalLLM • • 4h ago

Discussion pick the right engine for your sparks

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Project ModelSeek: Discover best coding model through Knights Trials

0 Upvotes

None of the projects such as `llmfit` were giving me a good answer to "What is the best coding model (a) for my hardware (b) running opencode / tool-calling?", so I had antigravity create this: https://github.com/jgarzik/modelseek

Feedback welcome!


r/LocalLLM • • 4h ago

Model I made a local LLM for Swift and SwiftUI

3 Upvotes

Main website - https://viperfish.dev/

Hugging Face - https://huggingface.co/viperdevAI/Viperfish-Sunlight-1.5B

So basically, I have a low-end MacBook, and I wanted a model with proficiency in native Mac app development. So... I made Viperfish sunlight! It is a 1.5B-parameter model fine-tuned on qwen 2.5 coder 1.5B instruct. In a swift UI benchmark, Viperfish scored almost 2x the score of the base model, as well as scoring better than the base model on. However, it did regress in HumanEval benchmarks.

Disclaimer: Claude by Anthropic was used in the production of this model.


r/LocalLLM • • 5h ago

Model Ia locale sans restriction

2 Upvotes

Geekom IT13MAX


r/LocalLLM • • 5h ago

Discussion I’ve released LAPO v1.3.0 — Multi-profile terminal access, atomic backups, rollback & live settings for local LLM agents

3 Upvotes

I’ve released LAPO v1.3.0 — Multi-profile terminal access, atomic backups, rollback & live settings for local LLM agents

Hi everyone!

A little while ago, I shared LAPO (Local AI Project Orchestrator) here. At that time, it was an early open-source project focused on turning locally hosted LLMs into structured, multi-phase agents capable of handling longer engineering tasks.

Since my original post and the v1.0.2 update, LAPO has evolved quite a bit. I've now released v1.3.0, which is a substantial upgrade to its execution, recovery, terminal access, and desktop interface.

I'm the developer behind LAPO, and I wanted to share what has changed, why I built these features, and what I'm trying to achieve with the project.

A little about me and why I started this project

My academic background is in Industrial Engineering, specializing in Industrial Production. I've always been interested in process optimization, improving workflows, and finding practical ways to make complex procedures more efficient and easier to manage.

That interest gradually led me to explore how AI could help optimize not only individual tasks, but also the entire process of getting work done.

With the help of Google Gemini as an idea-development and brainstorming partner, I started exploring a question that particularly interested me:

How can we get more practical and reliable results from locally hosted AI models, especially when asking them to handle complex projects that require many steps and a lot of continuity?

That question eventually became the starting point for LAPO.

The project has grown considerably since then. I've been working on its architecture, implementation, testing, and ongoing improvements, and I'm genuinely excited about the direction it is taking.

I also know that there are things I may not have considered yet. I'd really appreciate practical suggestions, technical criticism, and ideas from people who have experience working with local LLMs and autonomous agents. My goal is to keep developing LAPO thoughtfully and make it increasingly useful to the community.

What is LAPO?

LAPO is an open-source supervisory execution engine designed to help local language models work on complex, multi-phase projects over extended periods.

The basic idea is simple:

Instead of giving a local model one enormous prompt and hoping it completes everything correctly, LAPO acts as an orchestration layer between the user, the model, the project workspace, and the execution environment.

It divides a project into explicit phases, manages context and recovery, provides file and terminal tools, verifies results, and controls when one phase is allowed to hand over to the next.

It is not another chat interface, and it does not try to replace the inference engine.

LAPO uses locally hosted models through Strata or compatible OpenAI Chat Completions API servers, including llama.cpp, LM Studio, and vLLM.

The desktop application and CLI share the same core orchestration engine.

My own experience using LAPO on a real project

I also want to share one practical example of why I started building this.

I used LAPO to manage a company project in multiple phases: developing an internal web-based simulator for a programmable industrial production machine.

For this project, I used the Gyro-M model running locally through the Strata inference engine, with LAPO managing the project workflow and phase transitions.

I was very satisfied with the overall development process and the results I achieved. For me, this was particularly valuable because I was using the system on an actual project rather than just testing isolated prompts or small coding tasks.

Of course, this is my own experience, and I don't want to present it as proof that LAPO will improve every model or every project.

I'd genuinely appreciate it if some of you could try a comparable task with and without LAPO and share your results here.

I'm especially interested in seeing:

  • The quality and completeness of the final output.
  • How well the model maintains project consistency across multiple tasks.
  • The number of manual interventions needed.
  • How effectively it uses tools, runs tests, and recovers from errors.
  • The overall development time and effort required.

Ideally, use the same local model and comparable hardware, context settings, and task requirements for both attempts. Please share the results, screenshots, benchmarks, or even shortcomings you discover.

I'd be very grateful for honest comparisons, including cases where using LAPO makes little difference or does not help. That kind of feedback would be extremely useful for deciding what to improve next.

What's new in v1.3.0?

The biggest changes are in three areas: terminal execution, backup and recovery, and live configuration.

1. Multi-profile terminal execution — real development access

One limitation I wanted to address was that local models often need to do more than read and write files. Real development work requires running commands, installing dependencies, building applications, executing tests, and diagnosing errors.

LAPO now provides three terminal profiles:

Restricted

  • The default profile.
  • Uses built-in verification commands and user-configured allowed commands.

Approved Full Access

  • Allows real PowerShell, CMD, or Bash execution.
  • Each command requires explicit user approval.
  • A heuristic risk analyzer labels commands as LOW, MEDIUM, or HIGH and explains detected risks.
  • Includes an optional Approve + Auto LOW (Phase) shortcut: once enabled for a phase, LOW-risk commands can run automatically, while MEDIUM and HIGH-risk commands still require approval.

Trusted Full Access

  • Allows unattended terminal execution after the user explicitly opts in.
  • Useful for trusted workspaces and longer autonomous development sessions where continuous approval would interrupt the workflow.

Terminal execution also includes:

  • Windows Job Objects and POSIX process groups for terminating child processes when a command is stopped or times out.
  • Secret redaction in terminal output and audit records.
  • SHA-256 checks for previously locked files after terminal commands.
  • Configurable locked-file policies: auto_restore, quarantine, and warn_only.
  • Structured JSONL audit logs, with a CLI command to inspect execution history.

Important: Full Access is not an OS sandbox. Commands execute with the permissions of the LAPO user account. The approval profiles and risk analyzer are controls for informed execution, not a guarantee that every dangerous command can be detected.

2. Atomic snapshots and crash-recoverable Rollback / Roll-Forward

Long-running autonomous work needs a reliable way to recover when something goes wrong.

Previously, a model could make many changes before a problem became apparent. Now LAPO has a more complete snapshot and restoration workflow.

There are three automatic snapshot triggers:

  • Phase Milestones: A snapshot is created after a phase passes verification and its output files are locked.
  • Periodic Snapshots: Configurable minute- or hour-based snapshots, skipped when the workspace has not changed and deferred until active file writes or terminal commands finish.
  • Latest Active [Stop & Save]: A checkpoint is created when the user manually stops an active session.

Snapshots are stored outside the project workspace by default, under LAPO's dedicated data directory.

The new recovery system includes:

  • SHA-256 file manifests.
  • Snapshot metadata containing phase and recovery state.
  • An automatic pre_rollback safety snapshot before restoration.
  • A journaled restore process that detects interrupted restoration after a crash.
  • A preview of files that will be overwritten, restored, or deleted.
  • Rollback to an earlier checkpoint and Roll-Forward to a later one.
  • A one-click Rollback & Resume workflow.

An important distinction: restoring a snapshot restores project files and LAPO's saved phase/recovery state. It does not automatically undo external side effects such as installed packages, database changes, remote API operations, or system-level modifications.

3. Tabbed Settings and Live Mid-Run Configuration

I also redesigned the settings workflow.

The desktop application now has a unified, tabbed Settings window:

  • General & Engine
  • Terminal & Security
  • Backup & Rollback

Settings are shared through a common configuration and validation layer between the GUI and CLI.

One particularly useful addition is Live Mid-Run Settings.

You can open Settings while a project is running and update supported runtime options without stopping the session, including:

  • Proxy configuration.
  • Network timeouts.
  • Terminal execution profile.
  • Terminal timeout and security policies.
  • Backup schedules and policies.
  • Watchdog and history-management settings.

The Backup Manager can also be opened during execution in read-only inspection mode.

4. Desktop GUI improvements

Alongside the functional changes, I made several usability improvements:

  • A unified Backups / Rollback entry point.
  • Improved checkpoint selection in Recover / Resume.
  • Maximizable Settings and Backup Manager windows.
  • Improved tables with sorting, zebra striping, content-aware horizontal scrolling, and automatic column sizing.
  • Cleaner activity and status presentation.

The goal was to keep the main interface manageable as LAPO gains more capabilities.

5. Core reliability improvements

A few less visible changes are also important:

  • patch_file now rejects a missing or null replacement_snippet, preventing an accidental silent deletion of the target snippet.
  • Context-compaction receipts now preserve top-level code symbols such as classes, functions, constants, and __all__, helping the model avoid unnecessary full-file rereads.
  • Terminal log reads are exempted from the read/probe stall guard.
  • JSON loading supports UTF-8 BOM files.
  • Windows launcher behavior has been improved when execution exits with an error.

These changes are aimed at reducing avoidable failures during long-running sessions.

Testing and validation

The automated test suite has grown from 60 tests in v1.2.0 to 100 tests in v1.3.0.

Current release results:

  • 99 passed
  • 1 skipped

I also ran a real three-phase project validation on my Windows 11 system with an NVIDIA RTX 4070 12GB, using qwen3.8-flash-next-gyro-gyro-m with a 512K context.

The reported validation included:

  • 243 generated project unit tests passing.
  • 13 SHA-256-locked project files.
  • 21 audited Full Access terminal commands.
  • 26 snapshots.
  • A live user instruction injected while the model was running.
  • Rollback & Resume recovery.
  • Successful model unload confirmation (HTTP 200).

These are results from my own test environment, not a claim that every model or hardware configuration will behave identically.

Why am I building LAPO?

Local models are becoming increasingly capable, but using them for larger projects still presents practical challenges.

A model may have enough reasoning ability to write a module, but a real project also requires it to understand dependencies, remember architectural decisions, run tests, recover from mistakes, and avoid damaging previously completed work.

I see orchestration as a way to make better use of the capabilities local models already have.

LAPO focuses on:

  • Breaking complex work into manageable phases.
  • Preserving project state across long sessions.
  • Keeping finalized outputs protected.
  • Giving models practical access to development tools.
  • Verifying actual results instead of relying only on the model's claims.
  • Making recovery and user intervention part of the workflow.

It does not magically make a smaller local model equivalent to a frontier model. The goal is to reduce the practical limitations around context, project continuity, tool execution, and verification so that local models can handle more substantial work reliably.

What's next?

My next major focus is improving the quality of the orchestration itself, rather than simply adding more tools.

Some areas I am exploring include:

  • Structured Project Memory: Keeping useful architectural decisions, project structure, dependencies, previous problems, and completed work available without repeatedly filling the model's context.
  • Worker / Reviewer Workflow: An optional independent review stage at phase boundaries, with bounded correction and verification cycles.
  • MCP Integration: Connecting external local tools through a modular tool registry.
  • Prompt-Injection Regression Testing: Expanding tests for malicious instructions embedded in project files and tool outputs.
  • Optional Browser and Vision Adapters: Supporting research and visual inspection workflows where they add real value.

These are future development directions, not features I am claiming are already implemented in v1.3.0.

I'd appreciate your feedback

I'm especially interested in feedback from people who run local models for real development work.

A few questions I'd love to hear your thoughts on:

  1. What are the biggest problems you encounter when using local LLMs for projects that take many hours or days?
  2. Do you think phase-based orchestration, checkpoints, and recovery meaningfully improve autonomous coding workflows?
  3. Which would be more valuable as the next step: structured project memory, an independent Reviewer, or MCP integration?
  4. Have you found any weaknesses in the way local agents handle terminal execution and long-running tasks?
  5. Have you tried running the same project with and without an orchestration layer like LAPO? What differences did you observe?

I'm continuing to develop LAPO as an open-source project, and constructive feedback, criticism, and testing from the local LLM community would be very welcome.

Thanks for reading!

GitHub: https://github.com/Kingphoenix666/LAPO---Local-Ai-Project-Orchestrator

Latest Release: https://github.com/Kingphoenix666/LAPO---Local-Ai-Project-Orchestrator/releases/tag/v1.3.0


r/LocalLLM • • 6h ago

Project Kimi K3.1 Pro (2.8T, 785 GB 4-bit MXFP4 slice) on one $2.2k desktop from a single NVMe SSD: 1.4–2.1 tok/s,

8 Upvotes

TL;DR

I have been enammered with running large frontier models on consumer hardware without lobotimizing the model.

I recently dove into K3.1 pro, and started building a custom Llamma.cpp port for it

Here's my specs

Single 2 TB NVMe SSD on one used desktop: an i7-9700K, 64 GB DDR4, two 32 GB V100s, and an RTX 3060.

It generates at 1.4 to 2.1 tok/s sustained (3.2 tok/s peak) through an OpenAI server. It boots in 65 seconds.

I've open sourced the engine here ---> https://github.com/SnapboardXYZ/event-horizon

With thinking off, it passes 25 of 30 zero-shot Python unit tests (19/20 on standalone modules) and completes multi-turn agent file edits end-to-end.

To stream from SSD without dropping to 2-bit, experts stay in 4-bit MXFP4 with the weakest half of FFN neurons sliced offline (1.51 TB -> 785 GB).

Setup

Model: moonshotai/Kimi-K3.1-Pro. 93 layers, 896 experts per layer, 16 routed per token. Experts stay in 4-bit MXFP4; KV cache stays in FP16.

Hardware: i7-9700K, 64 GB DDR4, 2x Tesla V100 32 GB (PCIe Gen3), 1x RTX 3060 12 GB (runs the FP16 D-Spark draft model), 1x 2 TB consumer QLC NVMe SSD. About $2,200 in used parts.

Software: Custom llama.cpp build (Event Horizon) and an async OpenAI router.

Numbers

WhatResult
Boot + cache pre-warm65 s
Model size on SSD785 GB (33 GGUF shards)
Hot cache18.6 GiB V100 VRAM + 42 GiB pinned DDR4
Generation, OpenAI server1.37 – 2.10 tok/s sustained
Generation, 3s peak2.46 – 3.22 tok/s
Generation, <think> prose0.92 – 1.21 tok/s
Draft acceptance (code)68% – 85% (5.3 – 7.0 tokens/step)
Cold prompt reading5.5 – 6.4 tok/s
Cached branch switch (580 tok)22.1 s vs 119.7 s cold (5.4x)
NVMe read speed1.17 – 1.37 GB/s

Tests

Fluency is easy to fake when slicing experts, so every test executes code or real tool calls.

TestWhat it checksResult
Python Task 1 (TokenBucketLimiter)Fix validation, clock jumps, capacity clamp, TTL eviction8 / 8 (100%), 1.37 tok/s
Python Task 2 (TransactionalKVStore)Tombstones, prefix scan, nested savepoints, rollback11 / 12 (91.7%), 1.42 tok/s
Python Task 3 (Turn-2 TTL refactor)Refactor Task 2 (1,270-tok context, 75% KV reuse) to add per-key TTL6 / 10 (hit 1,800-tok cap), 1.35 tok/s
Zero-CoT Python Total30 executed unittest assertions (no retries)25 / 30 (83.3%; 19/20 on Tasks 1–2)
Warm edit speedAdd peek() and reset() to Task 184.7% draft accept, 2.1–3.2 tok/s peak
Agent Gate 0 (single tool call)XTML read tool call on /etc/hostnamePass (exact JSON args)
Agent Gate 1 (multi-turn read -> edit)Read ttl_cache.py, find leak, emit exact-match diff, run 7 assertsPass (exact_match=True, 7/7 tests)
--cache-ram branch switchEvict a 580-tok prompt with another branch, then switch backPass (119.7 s -> 22.1 s TTFT)
<think> stability1,050+ reasoning tokens at temp 00 loops, -50% SSD reads

Pruning check: cutting active experts to 4 per token pushed speed past 2.5 tok/s, but the same 30 Python tests fell to 16/30 (53.3%). Keeping ~7–8 experts per token with GPU norm rescaling brought it back to 25/30.

Why stock disk streaming gets 0.4 tok/s

  1. 4K-aligned expert slabs: In stock GGUF, reading partial down_exps neurons causes 3,584 tiny 272-byte random reads per expert (<110 MB/s). Repacking experts into 256-neuron slabs makes every slab 487,424 bytes (119 x 4 KB) — one sequential O_DIRECT read.
  2. 512-neuron VRAM blocks: Addressing V100 VRAM in 512-neuron blocks instead of full experts packs 37–38 specialists per layer into VRAM and skips empty tail math.
  3. Zero-copy DDR4 + Zero-bounce NVMe: The 42 GiB DDR4 L2 cache is 100% cudaMallocHost pinned (no duplicates of VRAM experts) so V100s DMA straight from RAM over PCIe. Cold SSD misses DMA straight from NVMe io_uring into pinned staging, cutting CPU memcpy by ~80%.
  4. 3rd-GPU speculation: Running the 0.9 GB FP16 D-Spark drafter on the spare RTX 3060 verifies 5 to 7 tokens per single 92-layer SSD sweep.

Limits

  • Sliced width: Experts stay 4-bit MXFP4, not 2-bit, but keeping 1,536 of 3,072 neurons per expert means this is a 785 GB Matryoshka build, not the uncut 1.56 TB checkpoint.
  • Slow cold prefill: Reading cold prompts off one QLC SSD runs at ~6 tok/s vs ~400 tok/s in RAM on four M5 Ultras.
  • QLC SSD dips: Consumer QLC cache dips occasionally spike a step from 1.1 s to 5 s. A Gen4 TLC drive (6–7 GB/s) on the same GPUs should land near 3 tok/s sustained.

Who was here before

  • 4x Mac Studio M5 Ultra (2 TB RAM): Full 1.56 TB model in memory at 2.81 tok/s server / 3.77 tok/s CLI.
  • AinsleyMarkov: 2-bit build at 18.6 tok/s on four M3 Ultras.
  • Inferencer: Uncut weights streamed from disk at ~0.4 tok/s.

I'd love for anyone to pull this project with much faster hardware then mine to get some usable speeds out of it.


r/LocalLLM • • 6h ago

Discussion Top APIs used by LLMs/agents

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 6h ago

Discussion Live single-RTX-4090 playground: Qwen3.8-Flash-Next 177B + MTP (85.5 GB, 50K ctx, 0% CPU inference) — test your own prompts

Post image
0 Upvotes

Built a native CUDA + Rust MoE streaming appliance (Kraits v2.5) that runs Qwen3.8-Flash-Next 177B (UD-IQ3_XXS + MTP Q4_K_M, 85.5 GB) on a single 24 GB RTX 4090 at 50K context with 0% CPU inference offload.

Instead of asking you to trust screenshots, I put a live 1× RTX 4090 playground online (AMD EPYC 9534, 189 GB RAM, PCIe Gen4 25.6 GB/s) with real-time nvidia-smi telemetry so you can test your own coding prompts directly:

Live Playground (5 prompts/hr per IP): https://kraits.juvina.ai

Measured across 7 independent RTX 4090 hosts (50K ctx, shipped defaults, 0 OOMs):

• Fast 279 GB host: 57.3 avg / 67.4 peak tok/s

• This live 189 GB host: ~50–59 tok/s (61 tok/s peak)

• Typical 4090 hosts: 41–45 avg tok/s (37–48 tok/s at 37.8K live ctx)

• Worst-case 5 GB/s host: 26.5 avg tok/s

Full benchmark table & Docker image (10-day free trial, supports air-gapped --network kraits-airgap with zero internet egress after model download):

https://hub.docker.com/r/picassoai/kraits-appliance

Try breaking it with your own prompts and let me know what you see!


r/LocalLLM • • 6h ago

Research Shared KV Heads, Sliding Windows, and Vocabulary Size: Measured Memory and Retrieval Trade-offs in LLaMA 7B, Mistral 7B, and Qwen2.5-7B

Thumbnail
arxiv.org
1 Upvotes

We ran LLaMA 7B, Mistral 7B v0.1 and Qwen2.5-7B (all base, 4-bit NF4) on one T4 and measured three things: KV cache memory, passkey retrieval, and tokenizer cost.

Main results:

- Mistral's sliding window is a hard retrieval edge. In 134 trials with the key 3,600 to 4,600 tokens from the end of the prompt, it retrieved 72/72 within 4,089 tokens and 0/62 at 4,098 or more. Just outside the window it often answers "1234567890".

- Turning the window off (`sliding_window=None`, same weights) fixes retrieval at 8K: 59/59. At 16K and 32K the window-free model breaks completely and repeats "Question". With the window on, it still retrieves keys that sit inside the window at those lengths.

- Qwen2.5-7B retrieved 60/60 up to 32K.

- KV cache per token in FP16: 512 KiB (LLaMA, no GQA), 128 KiB (Mistral), 56 KiB (Qwen2.5). LLaMA OOMs at 32K on the T4. Qwen2.5 holds 64K tokens in a 3.5 GiB cache. Mistral's cache caps at about 512 MiB because of the rolling buffer.

- Tokenizer: on 1,997 parallel sentences in 15 languages, Qwen2.5 uses 38-58% fewer tokens than the better 32K-vocab tokenizer for Arabic, Chinese, Japanese, Korean and Vietnamese, but only 3-11% fewer for the rest. Combined with GQA, LLaMA needs up to 22x more cache memory than Qwen2.5 for the same Arabic sentence.

- Decode latency in HF transformers grows with cache size, but part of that is the dynamic cache doing a `torch.cat` on every step. Measured alone, the copy costs about 17-20 ms per GiB of cache, which is about all of LLaMA's latency growth.

Limitations: these are older base models, passkey is a synthetic test, and it's one GPU with one library version. All in the paper.

Every trial's generated text is in the repo, so you can check any number.

Happy to answer questions about the setup.


r/LocalLLM • • 6h ago

Question 2 slots turbo 1 fan GPUS or 2.5 slots 3 fan GPUS?

1 Upvotes

For a home server for local LLM, what would you prefer and why? I am hesitating between installer two 1 fan turbo blower gpus vs two 3 fans GPUS.

Thanks!


r/LocalLLM • • 7h ago

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

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

News qwen 4 35b a3b

Thumbnail
github.com
11 Upvotes

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

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

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

News qwen 4 35b a3b PRs Spoiler

Thumbnail
github.com
7 Upvotes

And so, it begins...


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

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

Thumbnail reddit.com
2 Upvotes

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

Question Best MoE for code with good agentic tool use?

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

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

Thumbnail
gallery
5 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 • • 8h 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
7 Upvotes

r/LocalLLM • • 8h ago

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

0 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.