Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

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.

Close
?
How do I limit the number of tokens generated from the CLI?
You can add --max-tokens to litespark-inference generate. For example, use --max-tokens 64 to limit the response to 64 new tokens.
Which embedding data type should I start with, and how do I set it?
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.
How do I verify that Litespark-Inference is using the Arm-optimized torchless runtime?
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.
How do I compare Litespark-Inference with a PyTorch baseline?
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.
How do I measure energy per token on Apple silicon?
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.

Share

Tell others about this Learning Path.