Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

845 B
Raw Blame
#!/usr/bin/env bash
# Prime the dense-GEMM tune cache before the first server start.
#
# Same environment as the servers (venv + ROCm SDK + strix_halo env), then run
# prime_dense_tune.py with every argument passed through.
#
#   bash tools/strix_halo/prime_dense_tune.sh --model <pack dir> --dry-run
#   bash tools/strix_halo/prime_dense_tune.sh --model <pack dir>
#
# EXL3_DENSE_GEMM_TUNE_FILE decides which file is written (default
# ~/.cache/exllamav3/dense_gemm_tune.txt, the same one the server reads).
set -eo pipefail

PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
cd "$PROJECT_ROOT"

# shellcheck disable=SC1091
source "$PROJECT_ROOT/.venv/bin/activate"
export EXL3_ROCM_SDK="$(rocm-sdk path --root)"
# shellcheck disable=SC1091
source tools/strix_halo/env.sh

exec python tools/strix_halo/prime_dense_tune.py "$@"