The Spectrum Dispatch News

technology

Developers Run Large Language Models on Old TVs and Tablets With Custom Optimizations

A GitHub project demonstrates techniques to run models up to 16 billion parameters on low-power devices like a 2013 iPad and budget Android TV boxes.

Developers Run Large Language Models on Old TVs and Tablets With Custom Optimizations

A developer project called smolmaxxing shows how to run increasingly large language models on constrained hardware by combining quantization, memory management, and custom kernels optimized for specific processors.

Developers Run Large Language Models on Old TVs and Tablets With Custom Optimizations

The work focuses on two test devices: a Xiaomi TV Box S with a 4-core ARM processor and 1.9 GB of RAM, and a first-generation iPad Air from 2013 with 1 GB of RAM. According to the project documentation, these devices successfully run models ranging from 260 thousand to 16 billion parameters.

On the Xiaomi TV box, a Qwen 3.5 0.8-billion parameter model achieves 16.8 tokens per second—2.2 times faster than baseline performance. A 2-billion parameter Qwen model runs at 7.7 tokens per second in real chat use. Larger models are supported through techniques like expert paging from flash storage: an 8-billion parameter mixture-of-experts model reaches 7.2 tokens per second, while a 16-billion parameter model achieves 5.1 tokens per second.

The iPad Air, despite its age and CPU-only constraints, runs a 1.7-billion parameter model at 24–26 tokens per second. Larger models are supported: 4-billion parameter at roughly 10 tokens per second, 8-billion at 3.5 tokens per second, and 16-billion at 2.6–4.5 tokens per second.

The optimizations target specific hardware bottlenecks. For computation, the project uses quantization schemes (Q2_K, ternary weights, 1-bit representations) paired with custom kernels. A 1-bit lookup-table kernel and fused operations improve throughput on the Cortex-A55 processor. Memory pressure is reduced through pruned vocabulary heads, lossless compression, and a “headless” mode that eliminates unnecessary layers. Flash storage constraints are addressed via weight streaming with direct I/O, expert paging that loads model components on demand, and prefetching strategies.

The project measures every claim directly on hardware, documenting 160 experiments in detail. Speed is measured through real chat requests and standardized benchmarks. Quality is assessed using English perplexity converted to bits per byte, allowing comparison across models with different tokenizers.

According to the documentation, the techniques are device-agnostic: the 1-bit kernel requires only base NEON instructions found on older ARM chips, while other optimizations apply to any ARM processor with dotproduct support or Linux/Android systems with insufficient RAM for model weights.

The project notes that model size alone does not determine performance; a 16-billion parameter model did not outperform a smaller 8-billion parameter alternative on the Xiaomi box when the latter had better architecture or quantization.

Key facts

  • A Xiaomi TV Box with 1.9 GB RAM runs a 16B parameter model at 5.1 tokens per second
  • A 2013 iPad Air with 1 GB RAM runs a 1.7B model at 24–26 tokens per second and a 16B model at 2.6–4.5 tok/s
  • Optimizations include custom kernels, 1-bit and ternary quantization, weight streaming from flash, and expert paging
  • The Qwen 3.5 2B model achieves a 77× speedup from initial baseline on the TV box through various optimizations
  • All measurements are performed on actual hardware and documented in 160 detailed experiments

Sources

← All posts