Repository navigation
Prebuilt for Linux x86_64, built on a Colab TPU runtime (Ubuntu 24.04): llama-server and its libraries from llama.cpp 7182ef71e (portable CPU code, GGML_NATIVE=OFF) with one patch, scripts/llama.cpp-kv-full.patch, and libggml-tpu.so with the PJRT executor only. Every binary finds its libraries next to itself.
New in v0.2.0: no compile during a chat. With LLAMA_KV_FULL=1 llama.cpp's KV window stays at the whole context instead of growing in 256-cell steps; with -ub 1 prompts run one token per step. Together every request uses one graph shape, compiled once at server start. Colab v5e-1, 2026-11-22, eight chat turns, -c 8192: 0.2 to 9.6 s per turn and 104 to 108 tok/s decode, against 6.4 to 73.5 s per turn without them (same binary).
tar xzf ggml-tpu-98107ca-llama.cpp-7182ef71e-linux-x86_64.tar.gz
cd ggml-tpu-98107ca-llama.cpp-7182ef71e-linux-x86_64
LLAMA_KV_FULL=1 GGML_BACKEND_PATH=$PWD/libggml-tpu.so GGML_TPU_LIBTPU=/path/to/libtpu.so \
./llama-server -m model.gguf -dev TPU0 -ngl 99 -fa off -ub 1 -c 8192 --jinjalibtpu.so is not included: it comes with pip install libtpu (or jax[tpu]).
SHA-256: 76c9a4248c6e7ec933915c68e1f4a0e3bdeb5bd43cbb37a8820fdd34801489fb