Benchmark BitNet-2B inference on Arm with Litespark-Inference
Introduction
Understand Litespark-Inference and BitNet b1.58
Run BitNet-2B with Litespark-Inference
Benchmark Litespark-Inference on Arm
Next Steps
Benchmark BitNet-2B inference on Arm with Litespark-Inference
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You can add
--max-tokens to litespark-inference generate. For example, use --max-tokens 64 to limit the response to 64 new tokens.Start with BF16 as the reference by adding
--embed-dtype bf16. You can use INT8 or INT4 to reduce memory use, but validate output quality for your workload.Run
python -m litespark_inference.torchless info. On Arm, confirm that the kernel name contains neon and that OpenMP is True. The generation command also identifies the torchless runtime at startup.Add
--pytorch to litespark-benchmark. The command runs the torchless and PyTorch passes, then reports memory use, time to first token, prompt prefill throughput, and token-generation throughput for comparison.Refresh your
sudo credentials with sudo -v, then add --power to litespark-benchmark. If the results report available: false, your system doesn’t expose a supported energy counter.