This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Build TakZero's TEI engine with CUDA support and install it to ~/tak_engines/takzero. | |
| # Builds from the takzero checkout next to this script, cloning it there if missing. | |
| # Needs Linux x86_64 with an NVIDIA driver, git, cargo, a C++ compiler and uv. | |
| # If running on older NVIDIA hardware, YMMV, but it might be worth a try to build with | |
| # `UV_TORCH_BACKEND=cu126 ./build-takzero.sh` in order to use an older CUDA version. | |
| # To update: git -C takzero pull && ./build-takzero.sh | |
| set -euo pipefail | |
| src="$(dirname "$(realpath "$0")")/takzero" |