tanman24 (@t24_lab) header
tanman24 (@t24_lab) profile picture

Independent AI research lab by @tanman24. Optimizing local AI across different hardware. Exploring models, agents & open-source AI. Building in public.

Joined May 2025
Guys! A reminder that you can just do things! AI is a spaceship landed in your lawn. Bonsai 2 27B: 1.3 → 1.8 tok/s (+42%) Ditched OpenCL and built a custom GPU backend for llama.cpp on my S10, submitting jobs directly to the Mali-G76 through Panfrost DRM. No OpenCL no Vulkan
GPU accelerated LLM on my Galaxy S10! Custom Linux + Panfrost/Mesa. Built ternary GPU kernels, split matrix math across CPU+GPU, patched Mesa for G76 int8 dot-product instructions. First try was slower than CPU. Now 0.85 → 1.27 t/s (+49%). Next: squeezing MORE out of 27B!
1
47
Been regretting buying only one DGX Spark 3 months ago. Haven't seen anyone do this before, but I pooled the Spark with my GPU system over ethernet. GLM-5.3-Flash 320B Q4 at ~10 tok/s, by adding a custom expert cache in llama.cpp's RPC (strata inspired). PR or fork coming soon
9
Squeezing even more out of Bonsai 2 27B on my S10!! A trick I saw used on the original Qwen 3.8 27B: Pruning non latin vocabulary (248k → 142k), freeing 242 MB. Used that RAM to graft on a 239 MB MTP head and retrained it. 83% of guesses accepted. Up to 38% faster in tests.
1
1
44
GPU accelerated LLM on my Galaxy S10! Custom Linux + Panfrost/Mesa. Built ternary GPU kernels, split matrix math across CPU+GPU, patched Mesa for G76 int8 dot-product instructions. First try was slower than CPU. Now 0.85 → 1.27 t/s (+49%). Next: squeezing MORE out of 27B!
1
1
106
A few details: • Mesa wasn't emitting the G76's hardware int8 dot-product instruction. We patched the compiler. • Added Samsung's stock GPU clocks up to 702 MHz (mainline port stopped at 433). • Greedy output remains token-for-token identical to CPU-only.
1
45
postmarketOS on my S10 was just the start. Asked Claude politely, added pcie + wifi. Then crashes. Blamed wifi, then zram. Wrong. Samsung bootloader wrote to 39MB of RAM Linux thought free. Reserved it. Fixed Dont fear when the AI says its not possible! Next: GPU acceleration
39
Qwen3.8 27B shrunk from 54 to 5.95 GB. PrismML claims 98.2% benchmark retention. The math is public, but not the full recipe. I barely fit it on a Galaxy S10 with custom postmarketOS kernel. Some question its capabilities, but with 8GB RAM, it fits! Ill publish my adventure
Today, we’re announcing Ternary Bonsai 2 27B. Based on Qwen3.8 27B, Bonsai 2 27B is 9x smaller than its full-precision counterpart while retaining 98.2% of its aggregate benchmark performance. Two months after the first Bonsai 27B release, the biggest change is quality. The footprint remains 5.9 GB, but the gap to full precision has narrowed materially, with particularly strong gains in agentic coding, multimodal reasoning, and long-horizon tool use. Ternary Bonsai 2 27B is available today under Apache 2.0.
44
This is extremely interesting! I've always been wary of aggressive quantization because the effects are so unpredictable. Even if the trickle of new local models starts to slow down, there is still tons to learn on the existing ones and how best to use them
4-bit quantization did not worsen the AI agent's results, but it radically changed the way they solve problems! Researchers tested the Qwen2.5-Coder (7B, 14B, 32B) and Devstral 24B models in BF16, AWQ, and GPTQ versions on programming tasks. The results? No statistically significant drop in effectiveness was detected. But look at what happened to Qwen 7B after AWQ quantization: - First-attempt solutions: 17 -> 0 - Solutions requiring subsequent iterations: 10 -> 25 The model was still able to solve tasks, but instead of getting it right immediately, it had to correct its own code more often. This is particularly important for AI agents to which we entrust autonomous work. Two models may achieve a similar result in a benchmark while simultaneously performing a completely different number of operations, corrections, and tool calls. When testing quantized models, do you only check the final result, or also the path to achieving it? arxiv.org/abs/2611.02368
45
What LLM fits on my Galaxy S10? postmarketOS: 7.2 GB available RAM vs ~4.3 on Android. Initial llama.cpp results (gen tok/s): Qwen3.5 4B: 4.4 Gemma 4 E4B: 4.6 Ornith 9B: 2.3 Bonsai 2 27B (PTQ1_0): 0.41 27B is massive vs Claude's 4B suggestion for Android! Next: usable speeds.
62
How big an LLM can my Galaxy S10 run? Claude said Android, 4B. Linux can free up RAM, but not recommended due to poor hardware support. Naturally I went straight for Linux distro postmarketOS and forked the kernel. Custom wifi driver, mem fixes, and it's up. Next: what runs?
Introducing T24 Lab. An independent research project exploring how far we can push local AI. The first series of experiments involves dusting off a retired device pulled out of my drawer. Here's a sneak peak:
59
I am obsessed with turning monitoring tools into cozy scenes. To give Fable 5.2 a try, I asked for a specific vibe and this was the result 👇 This was not a one shot, it was actually quite ugly on the first go. I'll be sharing some results from my local models in the future!
70
Introducing T24 Lab. An independent research project exploring how far we can push local AI. The first series of experiments involves dusting off a retired device pulled out of my drawer. Here's a sneak peak:
1
137