Skip to content

lxask 1.5.1

Choose a tag to compare

@arxhr007 arxhr007 released this 22 Nov 22:19
· 72 commits to main since this release
95c2d84

Raspberry Pi and other small boards

  • All four cores for the reply. lxask wrote each reply with half the CPUs, which is one thread per core on a PC with hyperthreads but two of the four cores on a Raspberry Pi. It now counts cores from Linux's topology files and uses every CPU when there are no hyperthreads. On four separate cores of a PC, four threads wrote replies 1.4 times as fast as two. Reading the prompt, the larger part of an answer, already used every core, so a whole answer gains less. Machines with hyperthreads are unchanged, and so are x86 virtual machines, whose CPUs may be the host's hyperthreads (16 threads on 8 cores wrote replies 4.6 times slower).
  • A 32-bit system stops the installer before the download. The 32-bit Raspberry Pi OS runs a 64-bit kernel on a Pi 4 or 5, so uname -m says aarch64. install.sh used to download 1.1 GB there and then fail with "glibc 2.28 or newer needed". It now checks getconf LONG_BIT first and asks for a 64-bit system.
  • So does too little memory. Under 1.3 GB (a Raspberry Pi 3, a Zero 2 W, any 1 GB board, or a container with a lower limit), the model does not fit. install.sh now says so before downloading. --skip-memory-check installs anyway.
  • Which boards work, the 64-bit system, keeping lxask loaded, cooling and the measured speeds: docs/install.md.
  • LXASK_TIMING=1 prints the thread count with the start-up times.

The speed of lxask-aarch64-dotprod on a real board is still not measured. If you run lxask on a Pi, a report on GitHub with LXASK_TIMING=1 lxask --serve output would help.

Same model

The model, both adapters, the encoder and docs.sqlite are byte-identical to 1.5.0's. 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

  • An upgrade from 1.5.0 on Ubuntu 24.04, and an install on Debian 12 arm64 (emulated), which picks lxask-aarch64-dotprod and answers.
  • The installer stops, before downloading, on 32-bit ARM, on a 32-bit system whose kernel says aarch64, and in a container limited to 1 GB. --skip-memory-check installs in that container.
  • The thread count: 8 on an 8-core PC with hyperthreads, 2 on four of its CPUs (as before), 4 on four CPUs whose topology shows no hyperthreads.
  • 50 requests from the regression, multi-part, forbidden-program and everyday sets: the same answers as 1.5.0, and the same with 2 and 4 threads.

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 (Raspberry Pi 5), and lxask-aarch64 for other ARM64 (Raspberry Pi 4). install.sh installs everything, or installs from a directory with --from.