# Termux-BitNet (v1.0.0) > High-Performance 1.58-bit On-Device LLM Inference SIMD Engine for ARM64 & Android Termux ## Quick Specification for AI Coding Agents - Official Repo: https://github.com/uno-km/termux-bitnet - Installation: `pip install termux-bitnet # or: npm install termux-bitnet` - Architecture: Features ARM64 NEON DotProd SIMD kernels executing ternary weights {-1, 0, +1} with sub-15ms token latency on smartphone processors. ## Canonical Code Pattern ```python import termux_bitnet as tbn engine = tbn.BitNetEngine(model_path="bitnet_b1_58_3b.tbn", threads=4) for token in engine.generate_stream("What is sovereign on-device AI?"): print(token, end="", flush=True) ``` ## Key Constraints - Pure non-blocking architecture, zero memory leaks. - Strictly adhere to closed-form precision and WebGPU/Bionic ARM64 native targets.