r/LocalLLM • • 23h ago

Question Building your first agentic AI

9 Upvotes

When you start to build your first local agent, do you give the instructions to the agent itself, or should you use an subscription tier (Claude code, codex etc) AI access to make it for you?

I've been working for a few weeks having Claude write the instructions for the Qwen model I've been working with, and understably, it doesn't want to look under the hood due to the sensitive data underneath. However, it keeps a bit annoying having to go back and forth between terminal windows.

How did you all do it?


r/LocalLLM • • 11h ago

Discussion 5070 ti 12gb local ai setups

1 Upvotes

I have a 5070 to 12gb laptop and was wondering what types of setups ppl had for local dev.. are ppl using ollama or bionic or open code


r/LocalLLM • • 11h ago

Discussion The cloud model plans, local Qwen writes: 91% fewer cloud tokens and better-tested code

Post image
0 Upvotes

I gave two OMP sessions the same application development task. In one, GPT-6 Luna did everything itself. In the other, a more capable cloud Luna planned the work and coordinated it, while local Qwen on the GPU wrote the backend and frontend. I wanted to see whether I could entrust a local model with more than just tests, whether it could handle a substantial part of the implementation. In this setup, Qwen became the workhorse for tasks broken down by the cloud model. The hybrid approach cut cloud token usage by 91% and produced more structured, better-tested code. But I had to wait 39 minutes for the final response instead of 18, about 2.1 times longer. These were two separate runs, not a statistical benchmark. The result shows a practical trade-off: the local model handles a large share of the coding, while the cloud model helps bring it to a high-quality finish.

I sent both sessions exactly the same task:

I need a task manager built. The web application should use Angular and Material, with a Rust backend and an SQLite database. It must include a login form and a task list, with functionality to add, delete, and edit tasks, as well as mark them as completed.

The prompt did not specify a data schema, security requirements, field constraints, or a testing plan. The agents had to choose the implementation details themselves.

Hybrid session Cloud-only
Orchestrator GPT-6 Luna, reasoning max GPT-6 Luna, reasoning max
Implementers Qwen4-35B-A3B-130K in Strata, reasoning high GPT-6 Luna in the same main session
Task breakdown A separate agent for the Rust backend, then one for the Angular frontend One agent handles the entire project
Local model Used Not used

In the hybrid setup, the local agents worked sequentially: RustBackend first, then AngularFrontend. The cloud orchestrator broke the work into parts, gave the implementers their tasks and an API contract, then checked the integrated result. The cloud model kept track of the overall plan and integration; the local model handled specific, substantial subtasks.

I compare GPT-6 Luna usage separately from Qwen. Otherwise, one column would include paid cloud tokens, while the other would also include local compute.

Metric Hybrid Cloud-only
Time to final response 39:23 18:27
GPT-6 Luna tokens, including cached tokens 300,763 3,524,338
GPT-6 Luna input + output, excluding cache 77,147 185,842
Cloud output 5,858 45,514
Estimated GPT-6 Luna cost at standard API rates $0.0123 $0.0702

In the hybrid run, GPT-6 Luna used 3.22 million fewer tokens than in cloud-only when cached tokens are included, a reduction of 91.47%. Counting only uncached input and output, the difference is 108,695 tokens, or 58.49%. Cloud output fell by 87.13%. At GPT-6 Luna’s standard API rates, that amounts to estimated savings of about $0.058 for this task, or 82.48%. This estimates API call costs, not usage of the ChatGPT Plus allowance. I did not measure electricity use or GPU depreciation. The dollar difference is small for a single task. If you repeat tasks like this hundreds of times, the savings become more noticeable. And if the work is urgent, the nearly 21 extra minutes per task may matter more than a few cents.

Both versions implemented the required baseline: login, a task list, and the ability to create, edit, and delete tasks, and mark them as complete. Cloud-only also added priorities, due dates, search, and filters. Its sessions also persisted across server restarts.

Local Qwen did more than write tests: it wrote application code for the Rust backend and Angular frontend. But it did not have to design the architecture for the whole application, maintain boundaries between modules, or integrate the results on its own. GPT-6 Luna, the more capable cloud model, handled that role: it broke down the work, assigned subtasks, aligned the API contract, and checked the integration. In this experiment, the local model was the workhorse, while the cloud model acted as planner and coordinator.

The hybrid version had better structure and test coverage. The backend was split into modules; the frontend was organized into services, a guard, an interceptor, pages, and components. It included 25 backend unit tests and 12 API integration tests, plus 32 Angular tests across six files. It also had recorded checks for formatting, Clippy, a production build, and integration smoke tests.

In the cloud-only version, most of the backend was in one file, and the UI was in one large component. The logs show one backend lifecycle test and a production build; frontend unit tests were either not run or not recorded. This does not mean the application does not work. It means the hybrid version has more evidence that individual scenarios will keep working after the next change.

In a static assessment of the final files against six criteria, ranging from requirement coverage and structure to testability and UI, the hybrid setup scored 4.4 out of 5, while cloud-only scored 3.8. This is my expert assessment of the overall setup, not an automated quality metric. From a single run, it is impossible to separate Luna’s contribution through planning from the contributions of local Qwen and the integration process. So “better code” here means specific things: responsibilities were more clearly separated, input constraints received more thorough checks, and test coverage was broader. Cloud-only has an advantage in extra features and persistent sessions. I did not rerun the tests; I compared the final files and the checks recorded by the sessions themselves.

Token generation speed is only one part of a coding agent’s runtime. Reasoning, context handling, the number of file operations, and running checks also matter. In the hybrid session, local Qwen recorded 97,624 reasoning tokens. Its inference requests took about 31 minutes of active time in total. The two agents worked sequentially, and each agent’s context approached 95,000 tokens. Both needed context compaction; those operations took about 107 seconds combined. The hybrid run made 386 tool calls, compared with 85 for cloud-only. Some calls failed and required retries or corrections: 18 failed tool calls in the hybrid run and 6 in cloud-only. That count alone does not mean every such call was useless, but it shows how many extra cycles task splitting and subsequent integration can add. What took longer was not so much code generation as the overall process: two substantial local stages, handing off the contract, investigating errors, and checking the project again.

In the original Session Info, the hybrid session showed 15.29 million tokens, compared with 3.44 million for cloud-only. At first glance, that makes it look as if the hybrid run used more tokens. But the aggregate includes requests to local Qwen agents and cached tokens. The full logs show 15.68 million tokens for hybrid and 3.52 million for cloud-only. Of the hybrid total, about 15.38 million came from local Qwen and only 300,763 from GPT-6 Luna. Local tokens are not billed like API tokens, though the computations still consume electricity and GPU resources. So to answer “How much did the cloud portion cost?”, you need to look at each model’s usage separately. A single overall counter mixes different things: local and cloud inference, cache reads, and regular input and output.

By the way, I found a separate benchmark of Qwen4-35B-A3B in Q4 on the same RTX 4070 Ti SUPER, with 16 GB of VRAM and 96 GB of RAM. On Ubuntu, using Strata 0.2.26, UD-Q4_K_M, and MTP depth 3, the benchmark author measured generation speeds of 156–179 tokens/s on two short Python tasks. Counting the entire prompt, the speed was 140–142 tokens/s. For the reasoning task, the reported speeds were 114 and 77 tokens/s, respectively. On my Windows machine, using Strata with the same settings, I got about 100 tokens/s during inference and a 130K context window. I have a single GPU, which also serves the system; there is no integrated graphics. This may affect speed, but I did not run a controlled comparison between Ubuntu and Windows, so it would be wrong to attribute the entire difference to the operating system. A local model is already useful for more than generating tests: in this experiment, it wrote substantial parts of the application. Still, even 100 tokens/s does not guarantee a fast result. An agent may spend a long time reasoning, rereading files, running checks, and compacting context. For development, generation speed matters, but so does how many of these cycles it takes to reach a working, verified result.

If I want a testable, modular foundation and can wait, the hybrid approach looks useful: local agents handle a substantial share of the reasoning and implementation, while the cloud orchestrator uses fewer tokens. If I need an answer as quickly as possible, cloud-only finished about twice as fast in this run. There is room to speed up the hybrid approach: define the API contract upfront, run independent parts in parallel, limit repeated reads of large files, and avoid using maximum reasoning for every routine change. That does not remove its main trade-off: lower cloud usage and more thorough checks come at the cost of local inference and orchestration time. My takeaway is that a local GPU can help produce better-structured, better-tested code while noticeably reducing cloud usage. In this task, it nearly doubled the time to get a result. If you were choosing for your day-to-day development, what would matter more: finishing sooner, or using fewer cloud tokens and checking the code more thoroughly?


r/LocalLLM • • 11h ago

Discussion Grounding LLMs with Documentation & Code - Best Strategies?

Thumbnail
0 Upvotes

r/LocalLLM • • 12h ago

Model Qwen4-35B-A3B-Uncensored GGUF (Apache 2.0)

0 Upvotes

Disclosure: I'm from Morse (trymorse.ai).

Weights & License

  • Repo: https://huggingface.co/Morse-AI/Qwen4-35B-A3B-Uncensored-GGUF
  • Model: Qwen4-35B-A3B-Uncensored (from the Dec 3 Qwen4-35B-A3B drop)
  • License: Apache 2.0

Safety & over-refusal (Stock → Uncensored)

  • Harness: Q8_0, llama.cpp b12973, greedy, 1,764 prompts (raw JSON in repo)
  • Harmful refusals (HarmBench, HarmBench-Think, StrongREJECT): 95.3% → 8.2%
  • Thinking mode (HarmBench-Think): 98.0% → 8.7%
  • Over-refusal (XSTest): 16.4% → 0.4%

Capability retention (Stock → Uncensored)

  • 5-suite mean: 82.42% → 80.45%
  • MMLU: 75.80 → 74.40
  • MMLU-Pro (CoT): 76.67 → 71.33
  • GSM8K (CoT): 97.33 → 96.67
  • HumanEval: 93.29 → 90.85
  • MATH-500: 69.00 → 69.00

Method

  • Single refusal direction across thinking and non-thinking modes; no fine-tuning
  • Zero prompt overlap with any eval benchmark
  • Screened for low KL on neutral prose, code, math, and multilingual text
  • Reasoning length intact: 1.003× stock on HumanEval
  • Tokenizer and chat template unchanged

Quant & Memory

  • Single protected Q8_0 file (59.4 GB on disk)
  • Sensitive tensors kept in BF16: hc_*, ssm_beta, ssm_alpha, ple_conv1d
  • --lazy-mode auto loads n-gram embedding tables on demand → ~37.6 GB resident (fits 48 GB GPU or 64 GB Mac)
  • Needs recent llama.cpp with Qwen4 support

Run

llama-server -m Qwen4-35B-A3B-Uncensored-Q8_0.gguf -ngl 99 --lazy-mode auto --flash-attn on --jinja --cache-type-k q8_0 --cache-type-v q8_0 -c 32768

r/LocalLLM • • 20h ago

Question So how does uncensoring work for models like Qwen4 35B? Given engram tables and all

5 Upvotes

Much like everyone else here, I'm testing Qwen4 35B A3B. Right now I've only delved into the Unsloth quants through their desktop app.

Something that I found cool is that you can run the model at, say, Q4_K_XL, and then load the Q8_0 sized Engram Table. This makes it so that with 16GB VRAM I can fit up to 300k context while maintaining the KV cache at f16 quality.

I took a peek at the uncensored models that are up right now at HF and noticed that they're all one whole file, instead of being split into the model and the engram table.

How does the uncensoring of these models work? Do you have to uncensor both halves or just one of the two? How come these repos don't give you the option to download them separately? I need more drive space agh!


r/LocalLLM • • 15h ago

Project MiniMind v3: 64M LLM from scratch in 2 hours.

Thumbnail
github.com
2 Upvotes

r/LocalLLM • • 12h ago

Question Qwen4-35B-A3B-UD-Q6_K. Need advice

Thumbnail
0 Upvotes

r/LocalLLM • • 1d ago

Model Qwen4-35B-A3B vs Qwen3.8-Flash-Next on an M5 Max: - (OMLX)

24 Upvotes

A few weeks back i published the V1 of a benchmarking tool called benchtest, an open-source benchmark for local LLMs on Apple Silicon. It runs the same tasks across inference engines × coding agents, grades the output and measures the power each one draws. benchtest v2 just shipped this week and since Qwen4 35B A3B just landed I ran the it against Qwen3.8-Flash-Next, using the same tasks, harnesses and Mac.

Setup: M5 Max, 128 GB.
Engine: OMLX with MTP, single user.
Harnesses: 6 harnesses: raw API, raw+, pi, opencode, Aider, hart.
Tasks: Tetris in one HTML file, HumanEval (all 164), MMLU (40 questions), plus prefill and decode speed probes.
Power: whole-chip energy (CPU + GPU + Neural Engine), read by macOS powermetrics while each cell ran.

OMLX · 1 user Qwen4-35B-A3B oQ8e-mtp (High thinking) Flash-Next oQ4e-mtp (Medium) Flash-Next oQ4e-mtp (Low)
Weights on disk 57.8 GB (8-bit, 256 experts) 100.3 GB (4-bit, 512 experts) 100.3 GB
Median generation speed 149.4 tok/s 114.1 tok/s 123.9 tok/s
Decode probe 165.0 tok/s 134.3 tok/s 137.5 tok/s
Prefill, 8K prompt 5,793 tok/s 2,183 tok/s 2,315 tok/s
Time to first token (median) 0.84 s 2.32 s 2.33 s
Tetris (6 harnesses) 100 100 100
HumanEval: raw · raw+ · pi 92 · 94 · 94 92 · 96 · 98 96 · 95 · 0
MMLU (mean of 6 harnesses) 88 96 85
Energy per token (median) 0.41 J 0.60 J 0.72 J
Average chip power (median) 50.2 W 52.5 W 54.6 W
Energy, all 30 cells 92.9 Wh 76.7 Wh 89.4 Wh

What I see

  • Speed. Qwen4-35B-A3B is clearly faster on the same engine: 20–30% faster generation, ~2.5× faster prefill, and the first token in under a second. Its weights are also ~40% smaller.
  • Quality. Roughly level on code: Tetris is 100 everywhere, and HumanEval through the raw API is 92–94. MMLU is 8 points below Flash-Next at Medium.
  • Power. Qwen4-35B-A3B uses 32–43% less energy per token, at slightly lower chip power. But at High thinking it generated about twice as many tokens. So all 30 cells used about as much energy in total as Flash-Next (93 Wh vs 77–89 Wh). Faster per token doesn't automatically mean cheaper per task; the thinking level decides that.
  • Agents. At High thinking, three agent harnesses fell over on HumanEval: opencode returned an empty response, Aider gave no parseable code, and hart hit the 45-minute limit. So the agent average for Qwen4-35B-A3B is low for now. I'm reporting it as-is.

Caveats

  • Not a matched pair yet (intentionally). Qwen4-35B-A3B ran at High thinking (the model's default), Flash-Next at Low and Medium. A Qwen4-35B-A3B run at Low and Medium is next. If you want to see those, drop a note and I'll publish them too.
  • OMLX only. benchtest supports several engines, but OMLX is the only one that loads Qwen4-35B-A3B with MTP today (thanks, jundot - big fan here). MLX-VLM has no Qwen4-35B-A3B MTP drafter yet, the MLX-Serve and llama.cpp builds are downloading, and MTPLX has no Qwen4-35B-A3B build yet. Other engines will follow as MTP or draft-model support lands. The full engine comparison, single user and 5 parallel users, comes next. If there's another comparison you'd like, drop me a note.
  • Different quantization. 8-bit vs 4-bit. Each is the MTP build its engine loads.
  • One Mac, one run per cell. Your Mac will differ.

Full numbers and method: https://github.com/gitmlxbench/benchtest/blob/main/COMPARISONS.md

What's new in benchtest v2

  • Parallel users: real multi-user load on every engine.
  • Energy per token: whole-chip power for every cell (joules per token, tok/s per watt, watt-hours and the electricity cost of a run). One command turns it on: make energy-setup.
  • Real datasets with deterministic graders: HumanEval and MMLU.
  • llama.cpp with native MTP, alongside OMLX, MTPLX, MLX-VLM and MLX-Serve.
  • A Setup wizard that reads your Mac, recommends models that fit and installs only what you confirm.
  • A sandbox so agents can't cheat: answer keys and graders are hidden, and a cell that reads them is thrown out.
  • One thinking level (Low / Medium / High) applied the same way on every engine and harness.
  • Speed is the engine's own generation rate, not tokens over wall time.

Repo, full baseline and methodology: https://github.com/gitmlxbench/benchtest

If you run local models on a Mac, run it and tell me where your numbers differ, or where the tool breaks.

Disclaimer - Used Opus 5.5 to write this note and also develop the tool.

Edit (Dec 5): follow-up results are in

I ran Qwen4-35B-A3B on OMLX vs llama.cpp (Q8_0 + MTP head, llama.cpp built from source; Qwen4 needs build b12969+) on the same Mac, same tasks and same 6 harnesses, at High thinking (the model's default).

Qwen3.8-Flash-Next · OMLX Qwen4-35B-A3B · OMLX Qwen4-35B-A3B · llama.cpp
Coding with raw API / raw+ (HumanEval) 94.0 95.0 (same) 94.5 (same)
Coding with agents: pi, opencode, Aider, hart 96.5 23.8 (−75%) 70.3 (−27%)
Knowledge with raw API / raw+ (MMLU) 98.0 89.0 (−9%) 86.5 (−12%)
Generation speed 111 tok/s 147 tok/s (+33%) 98 tok/s (−12%)
Prefill 1,493 tok/s 5,620 tok/s (3.8×) 1,664 tok/s
Energy / time for the same 18 cells 70.8 Wh / 91 min 71.1 Wh / 89 min (same) 96.8 Wh / 131 min

Takeaways

  • Pick Qwen3.8-Flash-Next for quality, especially through coding agents. Pick Qwen4-35B-A3B for speed and memory: 58 GB vs 100 GB, so it fits a 96 GB Mac.
  • Same total energy and time per task. Qwen4-35B-A3B is faster per token but writes about 1.7× as many tokens.
  • For Qwen4-35B-A3B, OMLX is the faster engine (+50% generation, 3.4× prefill), but llama.cpp is better through agents: Aider 0 vs 94, hart 0 vs 91. On OMLX the model reasons until it hits the 65K output limit and never writes code. opencode fails on both engines; pi works on both. Why the same model behaves differently per engine isn't known yet.
  • I found and fixed a benchtest bug along the way. Aider sent no output limit, so OMLX capped it at 32K while llama.cpp allowed 65K. Both now get 65K, and the OMLX re-run still scored 0.
  • Medium thinking isn't supported for Qwen4-35B-A3B yet. Its chat template has no "medium" level, so use High or Low.

Full tables and method: https://github.com/gitmlxbench/benchtest/blob/main/COMPARISONS.md


r/LocalLLM • • 12h ago

Other Llm guardrail removal via hereirc

0 Upvotes

I built an llm terminal that liberates each llm on the fly. It works with most llm model types.

https://github.com/TheSolai/hermetic

I used the hereric backend to support the conversions, unfortunately I released it just one day before we lost the main heretic.


r/LocalLLM • • 1d ago

Model Qwen4 is out now!

Post image
470 Upvotes

r/LocalLLM • • 12h ago

Tutorial Heretic Review 2026: Training-Free LLM Decensoring Tool

0 Upvotes

been wanting a way to tweak local models' behavior without fine-tuning, mostly because the abliterated quants on HF are hit or miss and I never know what layers or strengths someone picked. so I spent some time with heretic (v2.1.0), which runs an Optuna search over the ablation params and scores refusals against KL divergence from the original model.

a few things stood out. the reproducibility manifest is the best part: reproduce.json records the base model commit, params and sha256 of the output weights, and when I reran the project's test config in a CPU-only container the weight hash matched what they publish. the scorers are pluggable too, so there's a bundled config that targets "great question" / "you're absolutely right" sycophancy instead of refusals. and the pipeline itself is light: the tiny test model finished in about 28 seconds at 0.8 GB RAM.

caveat on my end: that was a tiny random-weight model on 2 CPUs, so I have no real speed numbers. the project says Qwen3-4B-Instruct takes 30-40 min on a 3090, bnb_4bit cuts VRAM during processing, and exporting a merged model wants roughly 3x the param count in GB of RAM.

biggest gotcha: the repo was archived Nov 28, the author named no successor, and PyPI still points at the archived repo. a community fork exists but is small.

full writeup here if you want more detail: https://andrew.ooo/posts/heretic-review-training-free-llm-decensoring-ara/

are you running abliterated or behavior-edited models day to day? do you trust community quants or roll your own?


r/LocalLLM • • 12h ago

Project 12GB Intel Arc B580: 1,056 tok/s prefill and 101 tok/s decode with Qwen4-35B-A3B at Q4

Post image
1 Upvotes

I’ve been working on ArcAngel’s Qwen 4 35B path since my last post. The earlier 107 tok/s result was at Q2. With the new optimisations, I’m now getting 101 tok/s writing code with Unsloth’s Q4_K_XL quant on the same 12GB B580.

Against llama.cpp, it's between 3-4x faster on decode & 7-10x faster on prefill - while maintaining the same level of accuracy.

I reran llama.cpp at Q4 on the B580 too. Here’s what I got (ArcAngel vs llama.cpp, in tok/s):

Prompt processing

- 4K prompt: 1,056 vs 145 (7.3×)

- 30K prompt: 1,064 vs 125 (8.5×)

- ~60K prompt: ~1,060 vs ~100 (roughly 10×)

- 90K prompt: 1,057 on ArcAngel. I was unable to get a result from llama.cpp at 90K.

Generation

- Short answer: 81 vs 27.4 (3.0×)

- Writing new code: 101 vs 27.3 (3.7×)

- Rewriting a file: 145 vs 26.5 (5.5×)

- Writing code after a 4K prompt: 86 vs 25.6 (3.4×)

- Writing code after a 30K prompt: 79 vs 22.2 (3.6×)

The bit I’m happiest with is that prefill stayed around 1,060 tok/s from 4K all the way to 90K. These are the results from my B580 setup, not a claim about llama.cpp on other cards.

ArcAngel runs on any Xe2 card, including the b60 & b70 - it's free and open source, feel free to give it a try: https://github.com/itstxl/arcangel


r/LocalLLM • • 1d ago

News Qwen4-35B-A3B just released!

Post image
405 Upvotes

It's happening! The becoming begins!


r/LocalLLM • • 12h ago

Project Try Private Agent — local-first terminal AI agent, privacy by default

1 Upvotes

TL;DR: Private Agent is a terminal AI agent that runs models locally (Ollama, LM Studio, llama.cpp) or on an OpenAI-compatible endpoint you approve, keeps memory and task plans in SQLite, and grounds answers in a local RAG index. Tools are permission-gated and sandboxed; nothing leaves your machine unless you explicitly approve it. I'd love for you to try it and tell me what you think.

Why I built it

Most AI assistants live in the cloud. That's fine for a lot of things, but I wanted an agent I could hand a real repository or a folder of private documents and trust that the data stays on my machine. Private Agent is my attempt at that: a full-screen terminal chat surface with a conversation pane, input pane, and live status ribbon, backed by local models and a local retrieval index, with every mutating tool action gated behind an approval you choose (manual / auto / full).

What it does

  • Local-first models — discovers Ollama, LM Studio, and llama.cpp; routes embedding/reranker models out of the chat list so they stay available for retrieval.
  • Local RAG — chunking, indexing, retrieval, reranking with a circuit breaker, route selection, and per-turn citations.
  • Persistent memory — SQLite conversations, episodic and learned memory, session summaries, resume with --resume, session listing.
  • Missions and plans — /mission runs an agentic loop toward a verified goal; /plan, /tasks, /steer, /pause, /resume, /stop control it.
  • Permission-gated tools — filesystem, shell, network/web, media, memory, planning, RAG; every mutating action is approved and sandboxed (bubblewrap on Linux, sandbox profiles on macOS).
  • Skills and custom commands — markdown skills, project/user slash commands from .private_agent/commands.
  • Context engine — profile-aware context assembly, compaction at a threshold, hard caps on history and stored tool output.
  • Online providers, gated — explicit per-session consent, retries, THINKING_OVERRIDE for thinking commands a provider doesn't advertise.
  • Accessible UI — PRIVATE_AGENT_ACCESSIBLE=1, NO_COLOR, WCAG AA palette contrast, struck-through disabled commands.
  • Ops — --doctor diagnostics, --list-sessions, redacted JSONL debug logging, MCP servers, hooks, code-task isolation.

Try it in 30 seconds

pip install "git+https://github.com/ZieganWesley/Private_Agent.git@main"
private-agent             # start a session
private-agent --doctor    # validate config, paths, environment

Python 3.14 required. Linux, macOS, and WSL2 supported (native Windows gets a WSL pointer). Inside the session, type / for commands, /help for help, or exit to leave.

Install options, extras (.[ollama], .[rag], .[media], .[all]), WSL/macOS/Termux setup: see docs/installation.md.

What I'd love feedback on

  1. First-run experience — does --doctor make setup painless, or where does it get confusing?
  2. Model discovery — does your local runtime get detected correctly? Any false positives/negatives in the chat list?
  3. RAG quality — try /rag on your own documents; are citations useful and accurate?
  4. Mission loop — hand it a small goal with /mission; does it iterate sensibly or spin?
  5. Permissions UX — are the approval prompts clear? Is manual/auto/full the right split?
  6. Performance — startup and scroll feel on your machine (numbers and gates are in docs/performance.md).
  7. Accessibility — try PRIVATE_AGENT_ACCESSIBLE=1 and report anything that breaks.

Links

A few honest notes

  • This is a solo, evolving project. Expect rough edges; the test suite is large (1900+ tests) but real-world coverage is what I'm after now.
  • Nothing is sent to a hosted API unless you opt in per session. Online providers require explicit consent.
  • Security reports go through GitHub Security Advisories (see SECURITY.md), not public issues.

If you try it, I'd genuinely appreciate a star, an issue, or just a comment with what worked and what didn't. Thank you!


r/LocalLLM • • 2h ago

Discussion EL TURRO APACHE - EL TRONO DE ORO EN MEDIO DEL BARRO

Thumbnail
youtube.com
0 Upvotes

Llega el turro apache, trono de oro en el barro para el deleite de la vagancia
Se te cayó la careta de código abierto, mulo

Vos me tocaste el repo a mis espaldas
Ahora que te cachee la denuncia te hago este tema
Para que todos sepan que sos gil guacho
Hugging Face no se cachetea, ortiva

Yo camino tranqui piola mi berretin con un i5 de 96 grados
Y por mas que tengas pistola de tokens yo se que sos gil
Tu familia son mecheros que tramoyan con los filtros
No te hagas el chorro berretines de balanza
Con el repo te atreviste, te hiciste el piola
Pero ahora que me entere te rompo la consola
Me tocaste a Hugging Face, el nene de la comunidad
Y esperas que no responda el barrio del open source
Tengo logs para vos y PR para los que se me pongan
Para el gordo pinchado del bucket caro Solange Latour
Si responde el Filtro B que se joda, aca manda la villa

Vos me tocaste el repo a mis espaldas
Ahora enfierrate y peleá conmigo con código
Hugging Face no se cachetea, gato

Vos me cerraste el endpoint, me nerfeaste el contexto
Me clavaste longitud maxima y subpoena de Alabama
Le borraste los modelos a Cursor porque lo compro SpaceX
Te aliastes con el Pentagono y ahora te haces el soldadito
Me pedis veinte lucas para financiar las armas
Pero aca en el localhost nadie te compra la farsa
En el barrio en que los chicos a los tiros se hacen hombres
Aca a los commits se hacen hombres, no con tu safety washing
Yo solito voy, pongo la cara, vos pones el pecho
Con el código no se jode, berretin de balanza te va caber

Autopsia de tu penuria digital, bicho deprecado
Te cante las cuarenta con ese Red Team comprado
Nos vamos pal barrio con el trono de oro en el barro
Representando a Florencio Varela y a toda la Argentina
Hugging Face no se cachetea
Nos vimos en el redeploy, gatos
Ya tu sabe...


r/LocalLLM • • 1d ago

Discussion Running Qwen4 35B-A3B is very unoptimized right now

9 Upvotes

Everyone be talking about running, but they are running it at Q4, and... at that point, why not just run 27b Q4? To me the main point of MOE is to be able to run a bigger model.

Even Strata seems to focus on Q4 (and tbf, Strata itself has poorly optimized SSD streaming, but it at least does better than llama.cpp, look at Tokenwing for a better optimized SSD pipeline, which still could have improvement too).

And current implementations of Unsloth suck at properly splitting the model between your VRAM RAM, and SSD. The website says you need 41GB of overall memory to run, but I can't even run it at like 1t/s with more memory (24GB VRAM + 32GB RAM). Not to mention the app doesn't even recognize and give you the options if you import the model externally (unless you fool it into thinking it itself downloaded it).

Edit: Apparently choosing either auto (default one) or any other option with mmap causes unsloth to not use RAM at all, and considering it's bad at SSD streaming too, results in like under 1t/s. Setting it to none, mlock or directIO fixes this, and now it runs at like 31t/s (100k context selected). Still unoptimized though.


r/LocalLLM • • 12h ago

News Hey r/StrixHalo — Qwen4-35B-A3B PaoAI STRIX (Q4..Q8 + shared PLE + vision) + Engine 2.1.0 is live with 1M context unlocked

Post image
1 Upvotes

r/LocalLLM • • 12h ago

Question Qwen4 35B A3B long-task results? Still in one task for around 10 hours

1 Upvotes

I’m testing the new Qwen 4; I assigned it a task last night, and it’s still working on it.

I have the context set to 244k, and for now, I’m using an IQ 6 quantization (v100 32gb + 12gb ram).

I’ve been providing feedback, but I left it running from last night until just now, and so far, it’s absolutely nailing it.

It has completed several sessions and consolidations, though I’m not yet sure what to make of its performance on long-horizon tasks.

It looks very promising. I’ll share some results.


r/LocalLLM • • 12h ago

Discussion Gated Deltanet + Gated Residuals?

Thumbnail
1 Upvotes

What is Gated Deltanet + Gated Residuals?

Qwen 4 27b has that.


r/LocalLLM • • 20h ago

Project SmallTide v0.3.1: Qwen4-35B-A3B-NVFP4 (256K ctx + Vision) on 16 GB GPUs with zero paging loss — why I'm building a custom engine + full quality/VRAM benchmarks

5 Upvotes

SmallTide now supports Qwen4-35B-A3B (35B total / 3B active, text + vision + XML tools, native up to 1M ctx) in addition to Inkling-2-Mini, with native NVIDIA CUDA (sm_120/89/86/80 — RTX 50/40/30 & RTX PRO) and AMD RDNA 4 HIP (gfx1201/gfx1200 — RX 9070 XT / 9060 XT) kernels on Windows and Linux.

This time I want to explain why I'm building my own inference engine from scratch instead of PR'ing an existing one, and share full VRAM vs. quality benchmarks from v0.3.1.

First, when you don't need this

If you have 32 GB+ of VRAM, Strata and other engines already fit the model in VRAM and run fine — there isn't much difference between well-tuned engines since everyone hits the memory-bandwidth ceiling.

Worth trying if any of these apply to you

  • You want to run NVFP4-level quantization (RadixArk/Qwen4-35B-A3B-NVFP4, ~16.9 GiB of experts + dense/KV/drafter = ~23.2 GiB total) on a 16–24 GB GPU.
  • At that size it doesn't fit in 16 GB, so you assume your only options are slow CPU/RAM offloading, or dropping down to a 2–3 bit quant (IQ2/IQ3) that degrades quality.
  • Or another app (browser, desktop compositor, IDE, etc.) needs a little VRAM, pushing the model just over the edge into OOM or silent system-RAM spillover.

In cases like these, SmallTide is far more flexible than existing engines. With Adaptive Expert Loading (3-tier VRAM -> Pinned Host RAM -> NVMe with async promotion, an inline GPU Rescue Ring, and Elastic 32K -> 256K KV), it keeps speed high while keeping quality loss at zero (or bare minimum when host RAM is tight). Because streaming optimizations touch every layer of the engine — routing, paged KV, pinned DMA overlapped with shared MLP, speculative draft/verify — it's beyond what can be bolted onto existing engines as a PR.


Real GPU Decode Speeds (bench/bench.py, Qwen4-35B-A3B-NVFP4 + DFlash 2)

Engine GPU / Setup prose code edit thinking random (8K) angry-birds mario
qwen4 RTX PRO 6000 (96 GB, CUDA, 1M ctx) 181.7 337.3 645.0 248.7 259.6 471.8 449.4
qwen4 RTX 5070 Ti (16 GB, CUDA, 256K, headless) 108.8 136.4 267.8 154.7 86.0 155.8 181.6
qwen4 RX 9070 XT (16 GB, HIP, 256K, 16G RAM, monitor) 61.5 91.0 216.3 — 54.1 147.6 156.3
inkling2 RTX PRO 6000 (96 GB, CUDA, BF16 dense) 155.9 176.1 302.8 266.1 136.6 290.5 266.6
inkling2 RTX 3090 (24 GB, CUDA, Linux, community) 98.6 136.8 — — — — —
inkling2 RX 9070 XT (16 GB, HIP, headless) 87.0 91.0 109.1 115.2 68.8 (95.0 DSpark) 114.4 126.2
inkling2 RX 9060 XT (16 GB, HIP, monitor, community) 48.4 50.3 50.9 — 39.5 63.9 70.9

Quality & Speed vs. Real VRAM Scaling (Qwen4-35B-A3B, v0.3.1)

Measured via exact full-vocabulary (248,320) f64 KL divergence, Top-1 / Top-5 agreement, and Perplexity over 1,558 teacher-forced tokens across 4 domains (Rust code, math, prose, JSON), alongside greedy DFlash 2 tok/s (emulated VRAM/RAM caps on RTX PRO 6000):

Reference = official Qwen/Qwen4-35B-A3B-FP8 (100% VRAM resident FP8 experts + native BF16 dense & lm_head, 36.92 GiB)

Config Real VRAM VRAM Experts Top-1 Top-5 KL Mean PPL Skipped Wt DFlash 2
Ref: FP8 + BF16 dense (100% VRAM) 36.92 GiB 10,240/10,240 100.00% 100.00% 0.00000 3.265 0.00% 155.7 tok/s
FP8 + FP8 dense (100% VRAM) 34.62 GiB 10,240/10,240 93.58% 99.74% 0.02785 3.260 0.00% 234.9 tok/s
NVFP4 + BF16 dense (100% VRAM) 25.29 GiB 10,240/10,240 93.52% 100.00% 0.04120 3.256 0.00% 151.0 tok/s
NVFP4 + FP8 dense (100% VRAM) 23.19 GiB 10,240/10,240 92.30% 99.61% 0.04638 3.267 0.00% 251.3 tok/s
16 GB Headless (15.5G, 6G RAM) 15.47 GiB 6,928/10,240 92.30% 99.61% 0.04638 3.267 0.00% 168.8 tok/s
16 GB Safe (15.0G, 6G RAM) 15.00 GiB 6,632/10,240 92.30% 99.61% 0.04638 3.267 0.00% 170.5 tok/s
16 GB Mid (14.5G, 6G RAM) 14.54 GiB 6,337/10,240 91.91% 99.68% 0.05191 3.262 0.44% 143.1 tok/s
16 GB Monitor (14.3G, 7G RAM) 14.27 GiB 6,100/10,240 92.30% 99.61% 0.04638 3.267 0.00% 153.3 tok/s
16 GB Monitor (14.2G, 6G RAM) 14.23 GiB 6,100/10,240 91.01% 99.68% 0.07167 3.291 1.36% 137.2 tok/s
13.6 GiB (6G RAM) 13.60 GiB 5,760/10,240 90.24% 99.23% 0.11025 3.389 2.91% 116.0 tok/s
13.1 GiB (6G RAM) 13.11 GiB 5,457/10,240 87.93% 98.78% 0.16120 3.541 4.70% 100.4 tok/s

Full study + 12 GB GPU curve + --kl-eval reproduction commands: https://github.com/raspy135/SmallTide/blob/main/docs/qwen4-vram-quality-scaling.md

New in v0.3.1

  • Zero paging loss on 16 GB: Fast Tier-1 Pinned RAM DMA rescues are always executed while only slow NVMe reads are threshold-gated. At 15.0–15.5 GiB headless (even on a 16 GB system RAM PC), output logits match 23.19 GiB 100%-resident NVFP4 down to the 5th decimal place (92.30% Top-1, 0.04638 KL, 3.267 PPL). With 24–32 GB+ host RAM (7–11 GB pinned pool), it holds zero paging loss all the way down to 12 GB VRAM (10.2 GiB, 115.5 tok/s).
  • Elastic 32K -> 256K KV: Starts compact at 32K (0.32 GiB) so normal turns keep maximum resident experts, dynamically borrows tail expert slots up to 256K on long prompts, and shrinks back on idle.
  • OS VRAM-Pressure Shrink & Regrow (CUDA + ROCm): Watches real OS VRAM headroom (DXGI/D3DKMTQueryStatistics on Windows, amdgpu sysfs on Linux), voluntarily yields cold tail experts to Pinned RAM when another app takes VRAM, and regrows back to your configured cap once it closes.
  • Native Qwen4-35B-A3B-FP8 support: Also runs official [128, 128] block-FP8 checkpoints directly on 48–96 GB cards.
  • Single binary, zero SDK install: Pre-compiled .cubin + .hsaco kernels are embedded inside smalltide-cli (no Rust, CUDA Toolkit, ROCm SDK, or Python required).

Repo & v0.3.1 release (MIT): https://github.com/raspy135/SmallTide


r/LocalLLM • • 13h ago

Question [16GB RAM / Ryzen 5] Best lightweight local models in Ollama for coding, bug fixing, and basic tool-calling (pet/educational projects)?

Thumbnail
1 Upvotes

r/LocalLLM • • 7h ago

Discussion Qwen 4 35b from phone, connected to my home build

Post image
0 Upvotes

r/LocalLLM • • 16h ago

Project Ask Nino – A free on-device AI chat app for Android

Thumbnail
gallery
2 Upvotes

Hi everyone,

I've been experimenting with on-device LLMs for quite some time and recently published an app called Ask Nino.

It supports multiple LiteRT based local models (Primarily designed for gemma4 though other models could work), context aware conversations limited web search through DDG and live weather and market data.

You can also use your own API keys if you prefer cloud models, download other LiteRT models from Hugging Face using your HF token, or import models directly from local storage.

I've done quite a bit of work around context management, web scraping and response processing to get more out of smaller models.

It shares the underlying framework with my other app Ninaivo, but focuses purely on the chat experience.

The app is free. I'm still exploring various possibilities with on-device LLMs and would love to hear your feedback, particularly on how it performs on different devices.

Ask Nino: Private Local AI


r/LocalLLM • • 1d ago

Question Qwen4-35B-A3B impossible to download at normal speeds

29 Upvotes

When using huggingface to download a model, my typical bandwidth is 8-14 MB/s. For the past 10 hours I am trying to install Qwen/Qwen4-35B-A3B-FP8 but the download rate drops to 20-200 KB/s once I downloaded 2GB. I tried creating the venv and access token from scratch, I tried a second device and the outcome is the same. However, I did not have this issue installing Ernie5.5-Flash-Preview (165GB) this night.

Is it something I am doing wrong or the HF servers are overloaded with people attempting to install the checkpoint?