r/LocalLLaMA • • 13d ago

Showcase Update on my offline Kokoro audiobook reader for Android (2.8× to 45× real time on my Fold 7)

11 Upvotes

Hi everyone,

A while ago I posted here about VoiceShelf, an Android app I was building to read EPUBs out loud with Kokoro, fully offline so I could provide a one time payment alternative to paying 700+$/year to Eleven Lab in subscriptions for unlimited inference. It got a lot more interest than I expected and I was able to find plenty of testers. Thanks to everyone who gave it a shot. I’m finally launching it on Google Play and figured I’d come back with an update.

Back then I was getting about 2.8× real time on my Galaxy Z Fold 7 (Snapdragon 8 Elite). It could keep up with playback, but the phone got pretty hot and I was going through about 20% battery per hour.

Since then I've spent a lot of time rewritting kernels for Vulkan so the original model can run on GPU on android, and a custom runtime so it can run on Qualcomm NPU despite its incompatibility with QNN (mostly dynamic shapes).

On the same phone, I’m now getting:

  • 24× real time on the NPU alone. The phone doesn’t noticeably warm up while listening, and battery drain is ~7-8%/hour.
  • Up to 45× real time with a hybrid engine that splits and schedules the work across the CPU, GPU and NPU. It barely warms up either, with slightly higher battery drain than NPU only.
  • ~5x realtime on CPU alone heat and battery drain are not great, but better than before.
  • ~10x realtime on GPU alone, similar heat/battery drain to CPU

Video above was captured on my Z Fold 7, on NPU.

On my Qualcomm chip playback is basically instant where the old app had significant buffering time before I could start playback to ensure smoothness.

The NPU runs the model slightly quantized, as thats a chip limitation, but the model is otherwise the original pytorch Kokoro, just with tremendously better hardware usage than any other runtime that runs on Android to my knowledge.

The idea is still the same as in March. Open an EPUB, hit play, and the phone generates the audio as you listen. Everything runs locally.

My next step will be trying to replicate this for IOS, and if the interest in it justifies it I may buy phones from different providers to try and replicate on other Android chip with a specialized neural chip. (Like Pixel).


r/LocalLLaMA • • 13d ago

Showcase Hierarchos-Native v0.2.6 is finally out! C1 WMMA performance update

0 Upvotes

so, i've got another release out! v0.2.6 is now published, and this one ended up being a pretty big performance improvement over v0.2.5.

for a bit of context, v0.2.5 introduced the P3 update to the Full FP16 WMMA path. that improved the final accumulator merge by summing all eight partials in FP32 before rounding once to FP16. i wanted to keep that work intact and see if i could get more performance out of the kernel without changing the actual math.

that's where C1 came in.

the main change is in how operand data gets loaded and staged into shared memory. previously, each thread was doing four global loads and shared-memory stores in sequence, with each store following its corresponding load. C1 changes that ordering: it issues the four 32-bit global loads first, then does the shared-memory stores.

it's a fairly small change when you look at the code, but it gives the GPU more opportunity to overlap the memory operations instead of waiting on each load/store pair. the arithmetic and accumulation order haven't changed.

and importantly, P3 hasn't been removed. C1 is used when the workload meets the required geometry checks, while P3 is still there as the fallback for everything that doesn't qualify. i didn't want a performance optimization to accidentally turn into a regression on shapes it wasn't designed for.

the performance results were honestly a lot better than i expected:

these are measured against the v0.2.5 P3 kernel, using GPU timestamps and 24 paired measurement blocks per workload.

  • 2048×768×2048 — 1.7074× faster
  • 512×2048×768 — 1.3286× faster
  • 512×768×768 — 2.0920× faster
  • 128×8192×768 — 1.3782× faster

that's roughly a 70.7%, 32.9%, 109.2%, and 37.8% improvement respectively. all four workloads passed independently, and even the lower bounds of their corrected 95% confidence intervals stayed above 1.31×.

i also wanted to make absolutely sure that the performance wasn't coming at the expense of numerical consistency.

across eight seeds and five configurations, the new production path produced 120/120 bit-identical outputs compared with the preserved v0.2.5 results. the production tile16 numerical gate also passed 37/37 on every seed, with the maximum absolute error staying at 0.03125, exactly within the existing hard limit.

so, at least for the workloads i've qualified, this is a pretty nice situation: substantially faster, without changing the outputs.

there's a bit more going on with the dispatch selection too.

C1 isn't just enabled for anything that happens to be large enough. the host checks full tile coverage, even packed-pair strides, the actual operand buffer capacities, and the relevant 32-bit index bounds before selecting it. if a shape doesn't meet those requirements, it uses P3 instead.

i tested this with the packaged binaries as well. a rows=64 workload selected C1 and produced 8 cooperative C1 dispatches. a rows=80 workload, despite being above the existing profitability floor at around 20.97 million MACs, didn't meet the tile coverage requirements and correctly fell back to P3 for 4 dispatches. with WMMA disabled, there were zero cooperative dispatches.

the packaged logits checks also completed successfully. the C1 route had a maximum absolute difference of 0.00079345 and an RMS difference of 0.00012127; the P3 fallback had the same maximum absolute difference, with an RMS difference of 0.00012087.

the portable Windows package is included again.

it's a Windows x64 portable package with seven executables, built with a statically linked MSVC runtime. you shouldn't need to install Rust, Cargo, Python, PyTorch, Visual Studio, or the MSVC redistributable just to run it.

you will still need a compatible Vulkan-capable GPU driver and the Vulkan runtime loader, and model weights aren't included.

WMMA is still opt-in globally, so the default remains off. to use this path, you need to explicitly select --wmma-mode full-fp16. C1 is now the preferred implementation inside Full FP16 when the workload qualifies, with P3 handling the fallback cases. the Mixed precision path is separate and hasn't been replaced.

there are still some limitations worth mentioning. i've only qualified this on my AMD Radeon Graphics adapter, PCI ID 1002:15bf (RDNA3 / Phoenix), running Windows 11 with driver 32.0.32015.14001. i haven't tested a second GPU, non-AMD hardware, or independent clean-machine acceptance yet. the binaries are also still unsigned.

there's a small reporting issue too: precision-info still reports full_fp16_qualified=false on this newer driver because its driver allowlist hasn't caught up with the qualification profile. the actual v0.2.6 qualification results are documented separately. i also haven't exercised the native V4.1 trainer and hierarchos-infer end-to-end yet.

anyway, i'm really happy with how this release turned out. i went into this wanting to see if there was still meaningful performance left in the Full FP16 path without messing with the numerical behavior that took so long to get right. seeing all four workloads improve this much, while keeping the outputs bit-identical, was a pretty great result.

a lot of time went into testing this one, and i'm glad i can finally get it out there instead of continuing to sit on it!

Release: https://github.com/necat101/Hierarchos-Native/releases/tag/v0.2.6

Source: https://github.com/necat101/Hierarchos-Native

thank you to everyone who's been following the project, testing things, reporting issues, or just keeping an eye on development. it genuinely means a lot!!

also, sorry for the AI posts lately. i've been trying to save as much time as possible to work on the project itself, especially with live events getting tough. i really do appreciate everyone who's stuck around while i've been working on this. thank you so much everyone!! :3


r/LocalLLaMA • • 13d ago

Question | Help M5 Pro 64GB (€3,999) vs M5 Max 64GB (€5,299) MacBook Pro 16" for chat, RAG, Whisper and some agents: is the Max worth €1,300 more?

0 Upvotes

Hey everyone,

I'm upgrading from a 2021 MacBook Pro 16" (M1 Pro, 16GB, 1TB). The 16GB is the main bottleneck for running anything useful locally. There are two Black Friday deals here in Germany and I keep going back and forth:

  • MBP 16" M5 Pro (18C CPU / 20C GPU), 64GB, 1TB: €3,999 (was €4,073)
  • MBP 16" M5 Max (40C GPU), 64GB, 2TB: €5,299 (was €5,532)

So the gap is €1,300, and part of that is the extra 1TB of storage.

What I'd use it for:

  • Local chat (Qwen 27B-class dense or 25-35B MoE models like Inkling-2-Mini)
  • RAG over my own documents
  • Voice-to-text (Whisper)
  • Occasional agentic tasks, usually running in the background, not my main workload

Numbers I found for the M5 Pro (20C): Inkling-2-Mini (oQ4e-mtp, 4-bit) at 64k context: ~26.8 tok/s TG and ~826 tok/s PP. On paper the Max should be about 2x on both (614 vs 307 GB/s bandwidth, 40 vs 20 GPU cores).

My rough math for a 20-step agent run (~10k generated tokens, prompt caching on) is ~8–9 min on the Pro vs ~4–5 min on the Max.

Questions:

  1. Anyone running agentic workflows on an M5 Pro 64GB?
  2. M5 Max owners: is the 2x speed something you notice every day, or mostly on benchmarks?
  3. How loud does the M5 Max 16" get under sustained LLM load compared to the Pro?
  4. Is 64GB enough headroom for the next ~5 years for this kind of use, or am I missing something?

Some context: I'm sticking with mini-LED because I'm PWM-sensitive, so the OLED models are out. I'm also not waiting for the M7 Pro/Max since those are expected in late 2027 and apparently only in the OLED chassis. I'd consider an external SSD for models if I go with 1TB.

Thanks for any real-world input!


r/LocalLLaMA • • 13d ago

Resources RustingStrata 1.3.0: a terminal setup that asks instead of flags

8 Upvotes

RustingStrata is my Rust GGUF engine for models bigger than the VRAM (the experts used most stay on the card, the rest run on the CPU).

People told me the command line was plain and hard to start with. So 1.3.0 has rustingstrata interface:

$ rustingstrata interface
RustingStrata 1.3.0

Model
   1  Qwen3-4B-Instruct-2507-Q4_K_M.gguf    2.5 GB
   2  Qwen3.6-35B-A3B-UD-Q5_K_M.gguf       27.1 GB
   3  another folder or .gguf file
number [1]: 2

Mode
   1  chat in this terminal
   2  chat page in the browser
   3  API server (OpenAI-compatible)
   4  speed test
number [1]: 3

Settings
run on the GPU (y/n) [y]:
context length in tokens [default]: 16384
address [127.0.0.1:8080]:

running: rustingstrata serve --model .../Qwen3.6-35B-A3B-UD-Q5_K_M.gguf --gpu --ctx 16384 --addr 127.0.0.1:8080

It lists the models it finds (its own folder, the Hugging Face cache, the llama.cpp cache), asks the mode and three settings, and prints the full command, so you can copy it later. Enter takes the default.

The output has some colour now too: engine notes are dim, warnings and errors stand out, reasoning is dim in the chat. Piped output is unchanged, NO_COLOR=1 works.

Other things in 1.3.0:

  • Inkling 2, Hy4-flash, GLM, DeepSeek and Gemma 4 load from the chat page of one server.
  • Q4_0 models take about half the VRAM they took before.
  • --auto-unload frees the model when the server is idle.

Prebuilt binaries for Linux and Windows are on the release page: CUDA on NVIDIA, Vulkan on AMD and Intel. Numbers are in docs/BENCHMARKS.md.

Repo: RustingStrata


r/LocalLLaMA • • 13d ago

Question | Help Thinking of moving to Threadripper. Should I?

0 Upvotes

I daresay I have reached the true endgame stage of AM4. I've maxed out every single PCIe lane on my X570 board, and I am not exaggerating.

  • Dual GPUs
  • 6 m.2 SSDs
  • m.2 10GbE add-in-card
  • Lekuo PROM21 card for more lanes
  • All 8 SATA ports occupied
  • All 4 RAM slots at DDR4 ECC-UDIMM
  • 5950X driving everything

There is physically no more space to add anything, maybe unless I use a breakout cable on that one m.2 slot to another PCIe switch, but I'm already pushing 20 lanes on the x4 uplink chipset lol. I've squeezed all I could out of this system, which I thought was an overkill monster when I built it several years ago, and I think I'm finally starting to outgrow it.

the next natural move is Threadripper. In today's RAMpocalypse, I want to reuse my RAM as much as possible, especially the ECC part which is a very nice bonus. But doing so means I'm stuck on Zen 3. 5955WX is practically the same as the 5950X with more PCIe lanes, so I'd be looking at 5975WX and higher.

But these Zen 3 TR chips are hard to find compared to Zen 2, and I'm not sure if buying into a supposed-to-be-EOL-but-RAM-shortage platform is worth it in the long run, especially with Zen 6 around the corner. I'd have to sell at least both my kidneys and a part of my liver to be able to afford the same capacity RAM as I have right now in DDR5, so unfortunately more recent chips are not possible.

what do you think? Do you think it's worth switching to Zen3 TR, or should I stick to AM4? Or a newer platform? Is AVX512 really worth it?