[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112705":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},112705,"smolmaxxing","hyperionaidev\u002Fsmolmaxxing","hyperionaidev","maxxing the ability to run different LLMs on the smallest devices possible",null,"C",1123,63,7,4,0,11,316,537,89,103.42,"MIT License",false,"main",true,[],"2026-11-19 19:19:50","2026-11-23 19:34:48","# 🤏 smolmaxxing\n\n\u003Cp align=\"center\">\u003Cimg src=\"assets\u002Fbanner.png\" alt=\"smolmaxxing: run the biggest model you can on the smallest hardware you own. 260K to 80B parameters.\" width=\"100%\">\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fhackergit.org\u002Fr\u002Fhyperionaidev\u002Fsmolmaxxing\">\u003Cimg src=\"https:\u002F\u002Fhackergit.org\u002Fbadge\u002Fhyperionaidev\u002Fsmolmaxxing.svg?style=rank\" alt=\"Hacker News rank via HackerGit\" width=\"250\" height=\"55\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fhyperionaidev\">\u003Cimg src=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fhuggingface\u002Fbadges\u002Fresolve\u002Fmain\u002Fmodel-on-hf-xl.svg\" alt=\"Models on Hugging Face\" width=\"190\" height=\"55\">\u003C\u002Fa>\u003C\u002Fp>\n\n**Run the biggest language model you can on the smallest hardware you own.**\n\nTV boxes, old phones and tablets, single-board computers and routers all have a CPU, some RAM and flash storage that sit idle most of the day. smolmaxxing finds the biggest model each of them can really run, then pushes it further with custom kernels, careful memory use and weights streamed from flash. Every number in this repo was measured on the device itself.\n\n## Three devices so far\n\n| | 📺 Xiaomi TV Box S (3rd Gen) | 📱 iPad Air (2013) | 📲 OnePlus Nord CE 2 (2022) |\n|---|---|---|---|\n| **Chip** | Amlogic S7D, 4× Cortex-A55 | Apple A7, 2 cores | MediaTek Dimensity 900, 2× Cortex-A78 + 6× A55 |\n| **RAM** | 1.9 GB (about 1 GB usable) | 1 GB (about 700 MB usable) | 7.4 GB (about 3 GB free) |\n| **OS** | Android 14, no root | iOS 12.5.7, jailbroken | Android 13, no root |\n| **Everyday model** | Qwen3.5-2B at **7.7 tok\u002Fs** | Bonsai-1.7B (1-bit) at **24-26 tok\u002Fs** | Qwen3.6-35B-A3B at **4.9-5.7 tok\u002Fs** |\n| **Biggest model** | Ling-mini-2.0, 16B, at **5.1 tok\u002Fs** | Ling-mini-2.0, 16B, at **2.6-4.5 tok\u002Fs** | Qwen3-Next-80B-A3B at **2.6-3.1 tok\u002Fs** |\n| **Full results** | [docs\u002Ftv-box.md](docs\u002Ftv-box.md) | [ipad-air\u002FREADME.md](ipad-air\u002FREADME.md) | [docs\u002Fphone.md](docs\u002Fphone.md) |\n\nThe TV box and the iPad run 8B and 16B mixture-of-experts models on about 1 GB of RAM, and the phone runs 35B and 80B ones with about 3 GB free. They all keep only part of each model in memory and read the rest from flash as it's needed.\n\nThe chart below compares the two 1 GB devices size class by size class; the phone plays in a bigger league, and its results are in [docs\u002Fphone.md](docs\u002Fphone.md).\n\n\u003Cp align=\"center\">\u003Cimg src=\"assets\u002Fdevices.svg\" width=\"760\" alt=\"Best generation speed per size class on the two 1 GB devices: 2B class TV 7.7 (Qwen3.5-2B) vs iPad 23.7 (Bonsai-1.7B, 1-bit); 4B 4.3 vs 9.4; 8B dense 5.2 vs 0.08; 8B MoE 7.2 vs 3.5; 16B MoE 5.1 vs 4.5 with the same cache bias\">\u003C\u002Fp>\n\nMore devices (single-board computers, routers, more phones) are coming. The techniques aren't tied to one box: the 1-bit kernel needs only basic NEON, and the flash streaming works on any Linux or Android device with more model than RAM.\n\n**Got a small device?** Run a model on it and [submit your numbers](CONTRIBUTING.md#submit-your-device): we'll add them to the results.\n\n\u003Cp align=\"center\">\u003Cimg src=\"screenshots\u002Fllmui_05_stream.png\" width=\"720\" alt=\"The live token-stream page served by llama-server on the TV box\">\u003C\u002Fp>\n\n## How it works\n\nAll of it is a patch on [llama.cpp](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp). The main ideas:\n\n- **Kernels built for the chip.** A 1-bit lookup-table kernel, repacked 2-bit and ternary formats for the Cortex-A55, and versions of them for the A7, which has no dot-product instructions.\n- **Less RAM per model.** Most of a small model's vocabulary is rarely used, so we drop those output rows. On the TV, a \"headless\" mode also stops the launcher and Google services while a model runs.\n- **Experts paged from flash.** A mixture-of-experts model only uses a few experts per token. We keep the popular ones in RAM, read the others from flash on demand and prefetch the next layer's. This is how 8B and 16B models run on 1 GB, and 35B and 80B models on a phone.\n- **Streaming for dense models** bigger than RAM, at the flash's full speed.\n\n[docs\u002Fhow-it-works.md](docs\u002Fhow-it-works.md) has every technique with its measured gain.\n\n## Try it\n\nThe quickest start is a ready-made model file from Hugging Face. The TV box and iPad files need the patched llama.cpp (stock llama.cpp can't load their pruned heads); the phone files load anywhere, but their speeds need the patch's expert pager.\n\n- **TV box or another ARMv8.2 Android device:** [docs\u002Ftv-box-setup.md](docs\u002Ftv-box-setup.md)\n- **Jailbroken iPad on iOS 12:** [ipad-air\u002FREADME.md](ipad-air\u002FREADME.md#run-it)\n- **Android phone with 8 GB of RAM:** [Qwen3.6-35B-A3B](https:\u002F\u002Fhuggingface.co\u002Fhyperionaidev\u002FQwen3.6-35B-A3B-phone-GGUF) (12.3 GB) and [Qwen3-Next-80B-A3B](https:\u002F\u002Fhuggingface.co\u002Fhyperionaidev\u002FQwen3-Next-80B-A3B-phone-GGUF) (27.6 GB, two files), set up as in [docs\u002Fphone.md](docs\u002Fphone.md#running-it).\n- **All model files and how to rebuild them:** [docs\u002Fmodels.md](docs\u002Fmodels.md)\n\n## Read more\n\n| Page | What's in it |\n|---|---|\n| [docs\u002Ftv-box.md](docs\u002Ftv-box.md) | device #1: every model run on the TV box, speed and quality |\n| [ipad-air\u002FREADME.md](ipad-air\u002FREADME.md) | device #2: the iPad Air results, setup and scripts |\n| [docs\u002Fphone.md](docs\u002Fphone.md) | device #3: the OnePlus phone, from 16B to an 80B model |\n| [docs\u002Fhow-it-works.md](docs\u002Fhow-it-works.md) | the kernels, memory tricks, expert pager and streaming engine |\n| [docs\u002Fmodels.md](docs\u002Fmodels.md) | downloads for all three devices, rebuild targets and checksums |\n| [docs\u002Flessons.md](docs\u002Flessons.md) | what we learned, including what didn't work |\n| [EXPERIMENT.md](EXPERIMENT.md) | the full lab notebook: 165 experiments, failures included |\n\n## What's in the repo\n\n| Path | What |\n|---|---|\n| `patches\u002F` | every change to llama.cpp for the TV box and the phone (the iPad's patch is in `ipad-air\u002Fpatches\u002F`) |\n| `tools\u002F` | model rebuilding, GGUF rewriting, benchmarks and kernel checks |\n| `tv-llm-ui\u002F` | the live token-stream chat page and its launcher |\n| `ipad-air\u002F` | device #2: iOS 12 build, `smolchat`, deploy and benchmark scripts |\n| `bench\u002F` | every chat benchmark (`results.jsonl`) and the raw logs |\n| `data\u002F` | vocabulary lists and evaluation texts |\n| `tiny-llm-web\u002F` | the first experiment: a 260K-parameter story model |\n| `zigcc\u002F` | zig wrappers for cross-compiling static aarch64 binaries |\n\n## Similar projects\n\nOther people running language models on hardware that was never meant for them:\n\n| Project | Hardware | What it runs |\n|---|---|---|\n| [On-chip LLM on a KV260](https:\u002F\u002Fwww.mikeayles.com\u002Fblog\u002Fon-chip-llm-kv260\u002F) | AMD Kria KV260 FPGA ($250) | a 3.16M-parameter INT4 transformer held entirely in on-chip memory, about 60K tok\u002Fs |\n| [ps2-llm](https:\u002F\u002Fgithub.com\u002Fxaskasdf\u002Fps2-llm) | PlayStation 2 (294 MHz MIPS, 32 MB RAM) | a 10M-parameter instruct model |\n| [iiama2.c](https:\u002F\u002Fgithub.com\u002Fbrysontang\u002Fiiama2.c) | Nintendo Wii (729 MHz PowerPC, 88 MB RAM) | llama2.c with stories15M, 61.9 tok\u002Fs on the GPU |\n| [esp32-ai](https:\u002F\u002Fgithub.com\u002FslvDev\u002Fesp32-ai) | ESP32-S3 microcontroller | a 28.9M-parameter model at about 9.9 tok\u002Fs |\n| [go-pherence](https:\u002F\u002Fgithub.com\u002Frcarmo\u002Fgo-pherence) | CPUs with AVX2, NEON or RVV, and NVIDIA GPUs | pure-Go inference for language, speech and vision models |\n| [Ryan Seddon on X](https:\u002F\u002Fx.com\u002Fryanseddon\u002Fstatus\u002F2088151404024344870) | Sega Dreamcast, via Windows CE | a language model running under the Dreamcast's Windows CE |\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=hyperionaidev%2Fsmolmaxxing&type=date&legend=top-left\">\n \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=hyperionaidev\u002Fsmolmaxxing&type=date&theme=dark&legend=top-left\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=hyperionaidev\u002Fsmolmaxxing&type=date&legend=top-left\" \u002F>\n   \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=hyperionaidev\u002Fsmolmaxxing&type=date&legend=top-left\" \u002F>\n \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n## License\n\n[MIT](LICENSE). The llama.cpp patches are derivatives of [llama.cpp](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp) (MIT). Model weights keep their own licenses, and the evaluation texts are Wikipedia excerpts (CC BY-SA 4.0).\n\n## Credits\n\nBuilt on [llama.cpp](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp) and [llama2.c](https:\u002F\u002Fgithub.com\u002Fkarpathy\u002Fllama2.c). Models from [Qwen](https:\u002F\u002Fhuggingface.co\u002FQwen), [unsloth](https:\u002F\u002Fhuggingface.co\u002Funsloth) (GGUFs and importance matrices), [PrismML](https:\u002F\u002Fhuggingface.co\u002Fprism-ml) (Bonsai), [inclusionAI](https:\u002F\u002Fhuggingface.co\u002FinclusionAI) (Ling-mini-2.0), [tablinum](https:\u002F\u002Fhuggingface.co\u002Ftablinum) (Moon-Beam), [bartowski](https:\u002F\u002Fhuggingface.co\u002Fbartowski) and [mradermacher](https:\u002F\u002Fhuggingface.co\u002Fmradermacher) (GGUFs), Google (Gemma) and [stories260K](https:\u002F\u002Fhuggingface.co\u002Fkarpathy\u002Ftinyllamas). The iPad is jailbroken with [Amethyst](https:\u002F\u002Fgithub.com\u002Fstaturnzz\u002Famethyst). The banner uses [Archivo](https:\u002F\u002Ffonts.google.com\u002Fspecimen\u002FArchivo) (SIL OFL) and is rendered by `tools\u002Fbanner\u002Frender.sh`. The 🤏 logo is the pinching-hand emoji from Google's [Noto Emoji](https:\u002F\u002Fgithub.com\u002Fgooglefonts\u002Fnoto-emoji) (Apache 2.0).\n","smolmaxxing 是一个面向极小硬件设备的轻量级大语言模型（LLM）推理优化框架，专注于在资源受限的终端设备（如旧手机、TV盒子、单板计算机等）上高效运行参数量达2B–80B的模型。项目采用C语言实现，核心包括定制化低精度计算核（如1-bit\u002F3-bit）、内存敏感的权重流式加载（从Flash按需读取）、以及针对ARM CPU的NEON指令优化；所有性能数据均实测于真实设备。适用于边缘AI、离线本地推理、老旧设备复用及嵌入式LLM研究等场景。",2,"2026-11-24 04:43:55","CREATED_QUERY"]