Fast local LLM inference on plain CPUs. No GPU, 8 GB of RAM. OpenAI-compatible server.
Python aiavx512cpu-inferenceedge-aiggufinference-enginellama-cppllmllm-inferencelocal-ailocal-llmno-gpuon-device-aiopenai-apiopenai-compatiblequantizationqwenself-hostedspeculative-decodingternary
#!/usr/bin/env bash
# Pack a portable build (./install.sh --portable) into a tarball that ./install.sh --bin-url can fetch.
# bash scripts/package.sh [out.tar.gz]
# The tarball runs on the distribution it was built on or a newer one (glibc, libgomp, OpenSSL), so build it on the
# oldest one you want to support. install.sh --bin-url checks that the engine starts before it downloads the model.
set -euo pipefail
PREFIX=${OPENSET_LLM_HOME:-$HOME/.openset-llm}
OUT=${1:-openset-llm-linux-$(uname -m).tar.gz}
ls "$PREFIX"/bin/libggml-cpu-*.so >/dev/null 2>&1 || { echo "not a portable build: run ./install.sh --portable" >&2; exit 1; }
# what the engine was built from, so ./install.sh --prebuilt can refuse an engine that does not match a checkout
bash "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/install.sh" --engine-id > "$PREFIX/bin/.engine-id"
tar -czf "$OUT" -C "$PREFIX" --transform 's#^bin#openset-llm#' bin
echo "$OUT ($(du -h "$OUT" | cut -f1))"