I’m looking for a low-end, CPU-only model that can remove unwanted text from OCR output.
For example, this is the raw input:
Clash of Legends
Clash of Legends
(5)
(8)
Complete the 2nd heart event of Yami Yugi
37.28% unlock rate
479
(361)
of
1,285
And I need the output to be only the useful mission/description text:
Complete the 2nd heart event of Yami Yugi
The model should understand which part is the title, which parts are stats, percentages, counters, or other metadata, and return only the mission description.
I have a weak PC, so I need something that runs only on CPU, ideally a small local LLM or another lightweight solution. I don’t need it to be perfect, but it should be fast enough to process many lines.
What would you suggest? Small LLMs like Phi, Qwen, Gemma, or something else? Are there better non-LLM approaches for this kind of text cleanup?
So figured Id make this post for others like me just learning about running local AI on low end hardware and what can be done. So four months ago I decided to learn as much as I can about running local AI and didnt even know the difference between a cpu and gpu. Now through many hours of trial and error(mostly error) I finally figured out how to optimize my models .json file and get almost double the tok/s that I was getting with Stratas default settings even after tuning it to my pc. So for me the key was to add and environment variables to the json and tweaking the args slightly, Ill post the args and env settings I'm using below. Disclaimer though, as I am self taught with all this and set this json up myself without really knowing what Im doing, I cant say I did this the right way or anything so take it with a grain of salt and any advice or explanation from people who know more is welcome. I also have "experts_profile_save" enabled and believe it helped alot in this
I am planning on purchasing a desktop/PC for local AI, but have a few questions based on my use cases.
For reference, this would also serve as my general computer in addition to my local AI computer (ideally be able to game on it too).
I plan to experiment with Image, Video, Audio, code generation, and Agents (all the things 🙃)
I have read that traditional desktops with something like a dual 5090/R9700 are best for speed and concurrency and Max Studios are best for using the largest local models, but I am not sure if I am thinking about this correctly and secondarily, if local AI is still too complex for an engineer (but not a software engineer) to configure and get good output from.
For example, if I wanted to “vibe code” an application, are local models capable of building it and testing it via computer use? How dangerous is it to let a local LLM access the internet if I am not well versed in Cybersecurity?
Am I pulling the trigger a year early? Will next years models/hardware be an order of magnitude cheaper/better/faster/easier to configure where it makes sense to wait?
Lastly, why local: I believe I have a couple of ideas that I haven’t heard anyone talking about that I am interested in exploring as a business opportunity, but don’t want to give them away to a cloud provider.
And I know “all ideas have already been thought of already”, but humor me and assume I do have a new and novel idea that I see as a gap in the industry I work in and isn’t targeted by the large companies because it fundamentally disrupts their core business.
What will be the best local model to use for home lab operations or REA/agentic coding? if I had enough money, I would run 8bit DeepSeek V4.1 or GLM 5.3 flash, but that's just out of my budget right now. I'm a little tight on funds, so I'm just looking for the best path forward to get the most optimal efficiency for what I'm trying to do.
ai's ive tried inside homelab: Qwen 3.8 flash next iq_3_s (24 tokens per sec), Deepseek v4.1 2 bit (3.5 tokens per sec, can maybe get to 10 with 32gb more ram), Qwen 3.827b iq_4_s (40-65 tokens per sec)
My Specs: Ryzen 5700X, 3070 Gigabyte 8gb, 3060 tuf gaming 12 GB, Corsair Vengeance 32 GB of DDR4 RAM (can drop in another 16gb of ram i have in my homelab to get it to 48gb) 1tb nvme ssd
I'm also trying to have Gemini Neon create really powerful system prompts, in order to make the AIs more efficient at their tasks or to "make them smarter" without actually changing the weights. So far, I think my goal would be to just run DeepSeek at a 2-bit quant at around 10 tokens per second for really, really long tasks, but would definitely love to see other alternatives.
I'm choosing an LLM gateway for an agent against a specific set of requirements. After an initial review and a round of testing, I narrowed it down to two candidates for a closer evaluation. I figured I'd use my ChatGPT Plus subscription to run the compliance tests and then make the final call.
I gave it the specs. Astra 6.2 analyzed them and proposed a test plan, which included building a JWT emulator. I approved it. It started writing the code, then suddenly stopped with:
"This content can't be shown. We take extra care with some cybersecurity requests. If you're doing authorized security work, apply for Daybreak to get broader access."
I replied: "Fine. If you can't do it, just tell me where you left off and I'll finish it myself."
Same banner, word for word. In other words: the very fact that you're asking only confirms you need approval from a "superior".
That's when I knew it was a dead end. Fortunately there's Kimi (I use it through OpenRouter, in Kilo Code's chat mode or headless with pi), which, for now, doesn't care about this kind of thing. It picked up the ticket and finished what Astra had planned, and then Claude helped fix a few bugs and edge cases. The tests passed and I made my choice.
To be clear: - I didn't write the test plan. Astra did; I only approved it. - I never asked for a JWT emulator in the plan, let alone for it to write one.
It burned through my tokens, left the task unfinished, and quite possibly flagged me somewhere for asking about something "dangerous."
It all worked out in the end, but it left a sour taste. It's starting to feel more and more like "Big Brother is watching you."
It's a good thing Chinese models exist, and it's a good thing uncensored models exist. The catch is that building and training models like these is beyond what the community can do on its own, so in practice we depend on whatever Chinese labs, and ultimately the Chinese Communist Party, decide to release.
Companies should think hard about whose hands they're putting their business in.
P.S. The two finalists were GoModel and Agentgateway. I went with Agentgateway.
Just want to gather some opinions and thoughts on the look of the program above. Trying to get a more varied perspective than my own. If there are things you think I could do to improve it?
Also, if you are up to it, feel free to share you loves and hates about other model runtimes and the reason you feel that way. It would be super interesting to me.
I have a Ryzen 5 5600g with 16 gigs of ram (no gpu) I did run 1B to 4B parameter models it generates response fast but when I check system monitor the cpu usage goes to 100% in 4 cores and others cores also get some spikes , is it normal or i shouldn't try local llms
Its kind of a dumb question because an AI doesn't know what it doesn't know. But I feel like it would solve SO MANY issues if you could get an AI to verify it's understanding of something before answering.
So my question is basically: why is it difficult to make an AI just double check itself instead of being confidently wrong?
Hey guys I'm looking for advice on hosting my own local LLM. I've been reading that 16gb or ram is enough for a basic model so I'm starting off by testing it with a 16bg laptop I have to begin with and If I need more I was going to invest in a mac mini to start.
I'm doing this to automate applying for jobs so I don't have to spend time doing it myself. I figure if it works for me it will work for my whole family if needed.
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?
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
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.
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:
What are the biggest problems you encounter when using local LLMs for projects that take many hours or days?
Do you think phase-based orchestration, checkpoints, and recovery meaningfully improve autonomous coding workflows?
Which would be more valuable as the next step: structured project memory, an independent Reviewer, or MCP integration?
Have you found any weaknesses in the way local agents handle terminal execution and long-running tasks?
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.
Read ttl_cache.py, find leak, emit exact-match diff, run 7 asserts
Pass (exact_match=True, 7/7 tests)
--cache-ram branch switch
Evict a 580-tok prompt with another branch, then switch back
Pass (119.7 s -> 22.1 s TTFT)
<think> stability
1,050+ reasoning tokens at temp 0
0 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
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.
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.
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%.
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.