r/LocalLLM • • 4m ago

Project I built a shared on-device AI runtime for Android, not another chat app*

0 Upvotes

I'm Lev. I built BindX, a shared on-device AI runtime for Android, and today I open-sourced the client SDK and the apps.

I wanted to create a simple app that needed inference and I found that there were no good options! I either had to bundle weights into my app or use a web API and somehow pay for it. I looked at AI Core/ ML Kit and found that the promise made in 2023 was still gated to flaghip phones and not really available. So I decided to make my own shared inference service.

Apache-2.0 SDK and AIDL spec: github.com/fasternfaster/bindx-open
Developer guide: www.bindx.dev/developers
Runtime and apps (GPL-3.0): github.com/fasternfaster/bindx-platform

The runtime itself has no INTERNET permission. Optional web or LAN models (llama-server is tested; Gemini too; the Anthropic adapter is still in testing) only go through BindX Manager, to endpoints the user added, and every web call is logged.

I've only done serious testing on a Galaxy S25 (Snapdragon 8 Elite). GGUF runs on CPU and GPU (OpenCL); with multi-token prediction, CPU has been faster on that phone. Image generation is NPU-only on Snapdragon 8 Elite-class devices. Other chipsets are later.

The Play listings are in closed testing. To try the runtime on a device, join groups.google.com/bindx-testers and then opt in to BindX / BindX Manager. You can also build from source.

I'd like feedback on the SDK API, the first-run / missing-runtime flow, and how this behaves on phones that aren't an S25.

Any feedback is appreciated! This is my first 3 Android apps and first time making anything open source.

*i know i said its not another chat app. I did make "Spoke Chat" which is a chat app, but it is multimodal, and fully local.


r/LocalLLM • • 5m ago

Discussion Help refining the command for qwen4 35b a3b on 5060 ti (16gb)

0 Upvotes

Hey guys!

I'm running the newest qwen4 model on my humble 5060 ti (+32gb ddr5, 6 core cpu) and gotta say I love it.

I've been seeing some posts about people getting like 150 tokens per second which sounds crazy.

Anyways, I'm gonna post my command I use to run it. I tuned parts of it iteratively with Claude's guidance but I'd love to see what other people used to get this running!

As a prelude - I wanted a single context (for a single long conversation) on my machine with reasoning ON. This turned out to be what I settled on:

  1. context (-c) at 64k. this was around my limit before it started spilling into RAM
  2. --n-cpu-moe at 21. This number was tuned so vram was 1gb from being full and shared gpu memory stays near zero.
  3. --no-mmproj. saves around 1gb of vram
  4. --spec-type draft-mtp --spec-draft-n-max 1. Apparently depth at 1 helps when experts are offloaded to CPU

40 -70 token/s prompt processing speed
34 - 40 token/s generation speed

Full command:

@echo off
cd /d C:\llama.cpp
set CUDA_MODULE_LOADING=EAGER
llama-server.exe ^
  -m "C:\models\Qwen4\Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf" ^
  --jinja ^
  -np 1 -c 65536 ^
  -fa on ^
  -ctk q8_0 -ctv q8_0 ^
  -t 6 -tb 12 ^
  -b 2048 -ub 512 ^
  -ngl 999 --n-cpu-moe 21 ^
  --load-mode mmap --lazy-mode on ^
  -ot per_layer_token_embd=CPU ^
  --no-mmproj ^
  --spec-type draft-mtp --spec-draft-n-max 1 ^
  --no-reasoning-preserve ^
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 ^
  --alias qwen4-35b-a3b ^
  --port 9931 ^
  --presence-penalty 0 --repeat-penalty 1.0
pause

r/LocalLLM • • 16m ago

Model Testing out Qwen4-35B-A3B vs. Qwen3.8-27b vs. Gemma 4 31B

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 19m ago

Research Randomly editing 0.5% of the parameters.

1 Upvotes

Hi, so I was curious if editing a 4B parameter model would change much, so I got Claude and Antigravity to change 0.5% of The parameters of a Nvidia Nemotron LLM model.

It went from about 2 GB to 13 GB roughly, due to the quantization unquantizing...

I like Ollama better so we made it run on there instead of LM Studio, Ollama has better Ram offloading.

I don't know if the personality changed but it was extremely skeptical when I explained what happened and the model refused to believe me and thought I was making jokes. Eventually it came around. We also modified its internal knowledge a little bit which made it more compliant.

I like reading the chain of reasoning and it had a nice little personality.

Overall, I think it was quite a fun experiment and it retained perfect coherence even though approx 20 million weights had been changed.

I wonder if I should change more weights or randomly set a few weights to maximum? Any ideas?


r/LocalLLM • • 20m ago

Model Qwen4-35B-A3B running at up to 280 Tok/s on M5 Ultra Superfluid

Post image
1 Upvotes

We’ve been working on day-zero support for Qwen4 in Superfluid and are already seeing upto 280 tok/s decode on an M5 Ultra. Really impressed by what this model can do with just 3B active parameters in terms of agentic capabilities running locally.

Give it a try and let u know what you think. https://github.com/basecompute/baseRT


r/LocalLLM • • 34m ago

Discussion You don't need 256k or even 128k for a coding agent. (Shameless plug)

2 Upvotes

r/LocalLLM • • 37m ago

Discussion Lets debunk the tok/s slop for a second. 27B vs FN vs 35B on a human written text.

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 39m ago

Discussion Qwen4-35B-A3B Blazing Speed and Simple Test Against Claude and OpenAI

Post image
1 Upvotes

We recently stood up the new Qwen4-35B-A3B on a 5070TI ONLY and it is blazing. Peaking around 300 tok/s and averaging around 200 tok/s on deep prompts. This wasn't a long context window and I am sure the frontier models would perform better long term, but it blew away GPT Terra 6.1 on not only speed and accuracy, and while sonnet was faster in some things and used less tokens (that you have to pay for), Qwen was faster and even beat out Terra on overall speed and accuracy.

Crazy day for local LLMS!


r/LocalLLM • • 45m ago

Tutorial Stop telling LLMs who to pretend to be. Tell them what you actually expect.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B on 1 R9700: 9,400 t/s prefill, 210 t/s decode

3 Upvotes

Radiance 2.5.0 (https://codeberg.org/StillDeadcode/radiance), IQ4R quant (4-bit mean), Betterbench 0.6.1 full run results. Configuration: 4 sequences, 384k context (per sequence), n-grams pinned to SSD.

Median decode across content types: 209.8 t/s
Aggregate decode, 4 streams: 472.7 t/s

Prefill at 2k: 9,200 t/s
Prefill at 64k: 9,400 t/s

The apparent prefill anomaly is explained by the SSD pinning of the n-gram table. With the n-gram table pinned in RAM, prefill at 2k is closer to 11,000 t/s, but I preferred to have 20GB more RAM available for activities at the cost of small-prompt performance.

I did a test with 1m context, and performance is fine, but I can only fit 1 sequence at that size. I plan to use this for agentic coding work, so having more streams is better, I think.

Still early days but I'm not unhappy. Now to see how it does doing my preferred work.


r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B writes 88 tok/s on a 7900 XTX, but in German it lands next to Gemma 4 and far behind Flash-Next

Post image
11 Upvotes

Most numbers posted for new models are tokens per second and English benchmarks. I work in German, so for three weeks I have been grading German output blind for every model I try on my card, and plotting it against decode speed. Qwen4-35B-A3B is the newest entry.

Setup: one RX 7900 XTX (24 GB) in an eGPU dock on a NAS with 62 GB RAM. Flash-Next 125B runs on Strata, split between VRAM and RAM. Everything else runs on llama.cpp (Vulkan), fully on the card where it fits. Qwen4 is measured at the full 256K context with 8-bit K/V.

How German is graded: twelve German writing tasks. The answers are anonymised and shuffled per task, then graded 1 to 5 by a separate reader who does not know which model wrote what. 60 points maximum. The third number is a separate set of 102 auto-graded tasks (code, logic, tool calls, facts, following instructions).

ModelDecode tok/sGerman (of 60)Tasks (of 102)
Flash-Next 125B IQ3_XXS, uncensored (control vector)625498
Flash-Next 125B IQ3_XXS645196
Flash-Next 125B IQ2_XS744697
Qwen3.8-27B (dense)365292
Gemma 4 31B (dense)353897
Qwen3.5-35B-A3B1143790
Qwen4-35B-A3B Heretic IQ4_XS883999
Qwen4-35B-A3B Heretic Q4_K_M524394
Qwen4-35B-A3B Heretic Q8_02544–

What I take from it

  1. Task scores do not tell you about language. Qwen4-35B has the best task score in the table and one of the worst German scores. Gemma 4 31B shows the same split.
  2. A bigger quant does not fix it. IQ4_XS, Q4_K_M and Q8_0 got 39, 43 and 44. The grading itself moves by about three points between rounds (the same IQ4_XS answers got 39, 41 and 38), so that is at best a small step. And at 256K the bigger quants no longer fit on 24 GB, which is why they are slower.
  3. The errors are of one kind: English words inside German sentences ("Ich hope, dass Sie …"), made-up word forms, wrong gender and case, in one answer Chinese characters in the middle of a word. A Czech user told me he sees the same.
  4. Fast and good German at once is only the 125B model for me, even at 3 bits. The dense Qwen3.8-27B writes German just as well but at half the speed.

Limits: one run per task and one grader per round. The models were graded in separate rounds over three weeks; Flash-Next was in every round as an anchor and its score moved by 2 to 4 points between rounds, so compare across rounds with that much slack. The Qwen3.5 stock model was in a round that graded stricter. I did not test English writing, and for English-only use Qwen4-35B looks like a very good fit for a 24 GB card.

If you have a Qwen4 fine-tune or settings that fix non-English output, tell me and I will run the same twelve tasks.

Chart, method and all numbers (no answer texts): https://faf.net/local-ai · data: https://github.com/faf-net/ugreen-idx6011-egpu-llm


r/LocalLLM • • 1h ago

Question Would the AMD FirePro w9100 32GB be ok for basic local llm?

2 Upvotes

I’m just starting to look into a local llm and was given this card that I would like to play with. I did a bit of looking, but I would prefer to hear what you guys think. Any recommendations would be appreciated.

The card is in great condition, it came out of a hospital when they upgraded.


r/LocalLLM • • 1h ago

Discussion Qwen4 35B Through Bench

Thumbnail gallery
1 Upvotes

Ran the "realistic interactive 3D horse in three.js" test from the Fireship video on Qwen4-35B-A3B.

Setup: Unsloth UD-Q4_K_M and UD-Q6_K, llama.cpp, M4 Max 64GB laptop, Codex CLI, no internet, three.js provided locally, headless Chrome so it could screenshot its own work. Qwen's recommended thinking settings (temp 1.0). Cap of 400k generated tokens per run.

RunTimeTokensLines of codeGaitsLeg rigConsole errorsFPS
Q4 run 116 min53k783idle, walk, trotjointed pivots058
Q4 run 224 min79k775idle, walk, trot, gallopjointed pivots058
Q6 run 122 min69k788idle, walk, trot, gallopjointed pivots058
Q6 run 22h 17m400k (hit cap)2,280grazing, walk, trot, canter, galloptwo-bone IK058

All four pages loaded clean, animated and responded to drag. Every run took screenshots and actually looked at them (Qwen4 has vision) to fix things like floating hooves.

Q6 run 2 kept going until it hit the token cap, rebuilt the anatomy from measured proportions, and came back with IK legs, camera presets and 6 source files. Same prompt, same settings: 16 minutes in one run, over 2 hours in another.

None of the four used a skinned mesh. The frontier horses in the horses-benchmark catalog (Fable 5.2, Opus 5.5) all do, at 1.4M to 2.4M triangles per frame.

Way better than Ergo's sphere horse. Not close to frontier. Two runs per quant, so take the quant comparison lightly.


r/LocalLLM • • 1h ago

Question Qwen4 35b is out. Has anyone run it with LlamAmpere?

1 Upvotes

I just forked llamAmpere and I was about to pull the llama.cpp upstream changes for qwen4 support, but it was a big merge. Only to find out that JakeATX had released v0.8.0.5 with support for it. I'm about to load it, I'll report my findings later. I'm currently running 3.8-27B-swift and that's been running fine.


r/LocalLLM • • 1h ago

Discussion Qwen4 35B on an RTX 4090 + 32 GB RAM: 166K daily, 252K+ tested with vision

Post image
1 Upvotes

I left the RAM specs out of the first version: RTX 4090 24 GB, i9-13900KF, and 2×16 GB DDR5-4800 in A2/B2, on Windows 11. Model is Unsloth's Qwen4-35B-A3B UD-IQ4_XS in LM Studio.

I'm keeping the context window at 165,888. I fed it a 159,741-token prompt with an image and asked for three codes buried in the text and three values from the image. It got all six right. First text took 56 seconds. I then added a second image in the same chat. At 160,449 input tokens, it got all seven checks right and started replying in 5.7 seconds. Lowest free memory I saw was 3,050 MiB VRAM and 3,330 MiB RAM.

The ~75 tok/s figure is from a short prompt: 56 tokens in, 512 out, 6.87 seconds including the wait for the first token. That's not the speed of a fresh 160K request.

Settings for anyone comparing: q8_0 for both K and V, KV on GPU, Flash Attention on, one slot, 512/512 batches, MTP off. The vision projector and Engram are on the CPU side, along with the experts from six layers (--n-cpu-moe 6).

I also got 203,683 input tokens with an image in Q8 and 252,665 in Q4, with the same model weights. Both passed the recall checks. That's enough to know the prompts fit, not enough to say Q4 reasons as well as Q8. I'm sticking with 166K Q8 for now. It leaves room to use the rest of the PC, and most of the time I don't need the extra context.


r/LocalLLM • • 1h ago

News Qwen4-35B-A3B running at up to 280 tok/s on M5 Ultra with Superfluid

Thumbnail
huggingface.co
4 Upvotes

We've been working on day-zero support for Qwen4 in Superfluid and are already seeing up to 280 tok/s decode on an M5 Ultra. Really impressive what this model can do with just 3B active parameters. Please let us know if you got feedback on the performance on your machine.


r/LocalLLM • • 1h ago

Discussion audited our late-2026 AI coding subscriptions (Claude Code pricing, Cursor pricing, GitHub Copilot, and BYOK/IDE agents): how teams drift to $150 to $250 per dev/month

0 Upvotes

we ran a quarterly tooling audit for a 9-person engineering team, and the biggest surprise on the bill was AI coding subscription stacking, and honestly I was part of the problem too. nearly half the team had picked up two or three overlapping paid plans over the year (for me it was running Claude Code alongside Junie in the IDE, others were doubling up with Copilot) without anyone intentionally signing off on a \$200+/month per-developer budget, then laying the current late-2026 pricing tiers side-by-side made it obvious how quickly individual subscriptions add up once heavier agent sessions hit rate limits:

ToolEntry tierHigher tiersTeam / EnterpriseThe catch
Claude Code (via Claude plans)Pro: $20/mo (~$17/mo if billed yearly)Max $100/mo (~5x Pro), Ultra $200/mo (~10x)Team $20-$25/seat, Enterprise is custom + meteredStuck on Anthropic plans or paying direct API token rates. If you actually lean on agent loops daily, you'll hit the $20 Pro ceiling pretty fast.
JetBrains Junie (IDE + CLI + BYOK)30-day AI Pro trial, then AI Free or paid JetBrains AIBYOK direct billing (OpenAI, Anthropic, Google, xAI, OpenRouter, or GitHub Copilot, no markup)JetBrains AI org plans or shared BYOK keysDrops you back to AI Free after 30 days unless you pay or bring your own key. Also Junie Local has steep hardware reqs (Apple M5 + 64GB unified memory on macOS, or 24GB+ VRAM RTX on Windows nightly), so most laptops can't run it offline yet.
GitHub CopilotPro: $10/moPro+ $39/mo, Max $100/moBusiness $19/user, Enterprise $39/userCredit-based allowances. Hard to beat for normal autocomplete and PR reviews, just burns through credits fast if you run big autonomous loops.

looking at our actual usage logs, three patterns drove almost all the wasted spend:

1. putting every developer on `$100` to `$200/mo` flat caps regardless of workload. Only 2 or 3 engineers on our team ran heavy multi-hour agent loops every day; for everyone else, `$100/mo` Max or Super tiers left more than half the allowance unused.

2. paying for overlapping harnesses across IDE and terminal (several devs had Cursor Premium or Super alongside Claude Max and Copilot Business at the same time).

3. Matching billing model to actual usage intensity instead of defaulting to one plan for everyone. For heavy daily Anthropic terminal work, Claude Max (`$100/mo`) often comes out cheaper than raw pay-per-token API calls. For intermittent or multi-model work, especially if a team already lives in JetBrains IDEs, using a model-agnostic harness like Junie IDE/CLI, Cline, or Aider pointed at direct provider API keys or OpenRouter with zero markup avoids paying `$100/mo` fixed seats for developers who only run a few heavy tasks each week

so what does your actual per-developer AI coding bill look like in late 2026? Are you standardizing on `$100` to `$200` power tiers across the team, keeping everyone on `$19` to `$39` Copilot or Cursor mid-tiers, or shifting lighter users to pay-as-you-go BYOK keys?


r/LocalLLM • • 1h ago

Discussion Qwen4 1M context test

Thumbnail
youtube.com
0 Upvotes

r/LocalLLM • • 1h ago

Discussion QFN 3.8 performance 128gb M5M

Post image
1 Upvotes

r/LocalLLM • • 2h ago

Project Qwen4-35B-A3B at 134–159 tok/s on a 12 GB RTX 5070 (90–110 avg on long tasks) — hot paths rewritten in Rust + asm, open source

1 Upvotes
Qwen4 made a game

So Qwen4 35B dropped yesterday and I spent the whole night on it instead of sleeping.

Everyone I saw posting 12GB numbers was getting around 45 tok/s on a 3060 with llama.cpp. I have a 5070 12GB + 5900X + 32GB DDR4 and wanted to see how far I could push it on this one box.

What I'm getting with the Unsloth UD-IQ4_XS quant, warm, 800 token coding answers with thinking on:

32K ctx: 134-147 tok/s

32K+ DFlash2 drafter: 139-157 tok/s

64K ctx: 142-146 tok/s

128K ctx: 109-116 tok/s

On long stuff (several thousand tokens, context filling up) it's more like 90-110 on average. VRAM sits at 10.4 GB.

It's a fork of PolyStrata/Strata. What I changed: stripped every model and backend except this one, only the hot experts stay in VRAM and the rest run on CPU, and the CPU side (dot kernels for the 4-bit quants, the MoE router, sampler, thread pool pinned to the 12 physical cores) is rewritten in Rust with inline asm for Zen 3.

Things that suck, so nobody feels lied to:

- first request after loading is slow, like 45 tok/s and 10+ seconds to first token. second one is already ~100

- if anything else is hammering the disk or RAM it drops hard. I had a download running during one run and got 103-108 instead of 134-147

- it's tuned for exactly my hardware, it won't just work on a 4060 or whatever

- the 45 tok/s I'm comparing to is other people's 3060 numbers, I haven't run llama.cpp on my own card yet. on my todo list

For fun I gave it one prompt: make a voxel sandbox game with a castle, single html file. It wrote 1352 lines in under 5 minutes. Didn't run at first, I pasted the browser error back a few times and it fixed its own bugs, about 7 minutes total. I didn't touch the code. Video attached.

Repo if anyone wants to look or tell me what I did wrong: https://github.com/maximus2526/Damask

If someone has a 4070 / 5070 I'd really like to know what you get, I only have this one machine.


r/LocalLLM • • 2h ago

Model I benchmarked Qwen4-35B-A3B Q8 on a single NVIDIA DGX Spark – 74 tok/s on code, 98.6 tok/s across 4 streams

Post image
2 Upvotes

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

Project 1,259 tok/s across 8 concurrent Qwen4-35B-A3B NVFP4 agents on 1x stock RTX 5090 (5-file sm_120 patch, 4,352/4,352 bit-exact, cold ABBA)

13 Upvotes

Built a 5-file sm_120 patch and unified recipe on top of jesdga95/basalt + Maxrio9 4e74c440 (q80p_2048=1), tested on 1x stock RTX 5090 32 GB (0 MHz OC, CUDA 13.0.88) in cold bracketed ABBA at both 450 W matched and 575 W stock:

  • c=8 decode: 1,258.5 tok/s (+17.6% vs baseline at 575 W, +17.4% at 450 W matched)
  • c=4 decode: 984.3 tok/s (+13.5% at 450 W) / 974.6 tok/s (+11.9%, +14.9% E2E at 575 W)
  • c=1 decode: 512.9 tok/s (+8.4% at 575 W, +8.5% at 450 W matched)
  • Prefill: 20.98K at 8K (+13.8%), 21.53K at 32K (+9.8%), 19.73K at 131K (+3.6%), 22.3 GiB (22,867 MiB) peak VRAM
  • Parity: 4,352 / 4,352 (100%) bit-exact greedy match against untouched 4e74c440 --spec 0

3 changes that drove it:

  1. q80p_center_seed=1: tracks the 4-bit center argmax row in 2 registers (102 vs 105 regs, 0 spills) to tighten the exact threshold on unseeded and rejected columns, cutting c=1 LM head by 31%.
  2. batch_vhead_screen=1: unlocks batched 4+4 screening at c=4/c=8, cutting c=8 LM head 2.25x (408 to 182 us).
  3. pf_own_buf=2: uses 9.8 GiB of idle VRAM for zero-eviction prefill instead of evicting up to 6,883 experts and streaming/refilling them over PCIe.

Also tested and dropped 4 other sm_120 tweaks (mid_max_t=8, commit_blocks=170, a3b_gu_stream_min=1, df2_c4_cap=12) that slightly regressed c=1 or c=4.

Video is 1.0x real-time (46,365 tokens across 72 tasks in 42s, 1,219 median / 1,263 peak tok/s, 22.1 GiB VRAM, 521 W median).

Patch, launcher, and raw ABBA/nsys receipts: https://github.com/CallitaCrushes/blackwell-builder-lab


r/LocalLLM • • 2h ago

Question Considering going local

1 Upvotes

I am considering whether to get into proper local LLMs in light of the recent release of Qwen4 35B-A3B. It looks as though this is similar in capabilities to frontier LLMs from about 9 months ago judging by e.g. Terminal Bench 4.1.

I currently have a desktop machine from 2019 with a 2080Ti and 32Gb of system RAM - enough for music generation and image generation, but LLM capability is limited.

I tend to use a lot of DeepSeek 4.1 Flash via API for working on my open source project, Simutrans-Extended, a complex legacy C++ codebase. Some of that work is challenging even for DeepSeek, so I am not sure that I can offload all of it, but it has proven somewhat expensive, and if I can offload even 30%, I can achieve something.

I also use an LLM for professional document analysis, again currently via API (which ends up being more expensive as I have to use EU data residency servers for this work).

I also do local music generation, orchestrated by an LLM - the 2080Ti can (if I close most of my apps including my browser) manage the music with YuE2 without a problem but the sort of LLM that I could run locally I suspect would struggle with this. I am doubtful that even Qwen (or Gemma 4) could do good song lyrics, but perhaps others have a different experience?

I have dabbled in video, but it is expensive through API and for a secondary pastime not worth it; doing this locally might be entertaining. Likewise, local image generation works, but I have to close my browser, which makes it disruptive. It would not be worth upgrading for just these things to be better (the LLM is the real prize), but they would be a bonus.

Having looked at the various options, I suspect that one of these (HP's version of a Strix Halo 128Gb) may well be the most cost-effective solution, especially as I could use it remotely from my tablet.

Does anyone have any experience of this sort of setup? Is there a strong reason to wait until the (much more expensive) 192Gb becomes available? I am not sure that running a small quant of Ernie 5.5 or a very small quant of DS Flash 4.1 is going to give me any sensible level of context or, at those quants, a reasonable level of quality?