Skip to content

lxask 1.5.0

Choose a tag to compare

@arxhr007 arxhr007 released this 22 Nov 18:03
· 76 commits to main since this release
e58bbdb

A faster build for ARM64

A Raspberry Pi CM5 user measured 16.5 s per answer with the ARM release, and 7.0 s with lxask built for their CPU. The ARM release was built for plain ARMv8, without the dot-product instructions that reading the prompt depends on.

  • New: lxask-aarch64-dotprod, for ARMv8.2 with dot product and half-precision arithmetic: Raspberry Pi 5 and CM5, Graviton, Apple and most ARM servers. install.sh picks it when /proc/cpuinfo lists asimddp, and lxask-aarch64 otherwise (Raspberry Pi 4 and older).
  • Its speed on a real device is not measured yet. If you run lxask on ARM, a report on GitHub with the time per answer would help.

Thanks to the people on Reddit who tried lxask on a Pi and sent their numbers.

Where an answer's time goes

LXASK_TIMING=1 now prints, for each answer, how the time split between reading the prompt, writing the reply and retrieval (with a server, set it for lxask --serve). Retrieval itself takes about 0.1 s. Most of an answer is the model reading the notes retrieval found. See where the time goes.

Same model

The model, both adapters, the encoder and docs.sqlite are byte-identical to 1.4.0's, so the numbers in docs/accuracy.md stand. To upgrade without downloading the model again, run install.sh --from on a directory that holds the model files with this release's program and SHA256SUMS.

Checked with these files

  • A fresh install on Ubuntu 24.04, an upgrade from 1.4.0 on Fedora 41 without cmp, and an install on Debian 12 arm64 (emulated), which picks the new build and answers.
  • 34 requests from the regression, multi-part, forbidden-program and everyday sets: the same answers as 1.4.0.

The binaries need glibc 2.28 or newer. Pick lxask-x86_64-v3 for x86 PCs from about 2015 on, lxask-x86_64 for older ones, lxask-aarch64-dotprod for ARM64 with dot product, and lxask-aarch64 for other ARM64. install.sh installs everything, or installs from a directory with --from.