install.sh
AArch64 (ARM64) architecture stringReferences curl flags and HTTP URL
SHA-25636301ffaad82da8c41e668e84659beb04e84735d571d170bc3efae3b3c7d06e3
Evidence
1#!/usr/bin/env bash
2#
3# install.sh -- Install all dependencies for llm-d-benchmark
4#
5# Can be run two ways:
6#
7# 1. From inside the repo:
8# ./install.sh
9#
10# 2. Via curl (auto-clones the repo into ./llm-d-benchmark):
11# curl -sSL https://raw.githubusercontent.com/llm-d/llm-d-benchmark/main/install.sh | bash
12#
13# To clone a specific branch:
14# curl -sSL ... | LLMDBENCH_BRANCH=my-branch bash
15#
16# Installs the llmdbenchmark CLI, planner, and validates
17# that required system tools are available.
18#
19# Usage:
20# ./install.sh # interactive -- prompts for uv choice
21# ./install.sh --uv # use uv for venv c …
25:29… # also works when sourced
26#
27set -euo pipefail
28
29REPO_URL="https://github.com/llm-d/llm-d-benchmark.git"
30REPO_DIR="llm-d-benchmark"
31DEFAULT_BRANCH="main"
32export _APT_GET_UPDATE_RUN=0
33
34# --------------------------------------------- …
57:42… iables used throughout:
58# ARCH_UNAME -- raw uname -m value (x86_64 | aarch64 | armv7l | ...)
59# ARCH_GO -- Go-style name (amd64 | arm64 | arm | ...)
60# ARCH_DEB -- Debian/apt name (amd64 | arm64 | armhf | ...)
61# ---------------------------------------------------------------------------
62ARCH_UNAME="$(uname -m)"
63case "$ARCH_UNAME" in
64 x86_64) ARCH_GO="amd64"; ARCH_DEB="amd64" ;;
65 aarch64|arm64) ARCH_GO="arm64"; ARCH_DEB="arm64" ;;
66 armv7l|armhf) ARCH_GO="arm"; ARCH_DEB="armhf" ;;
67 ppc64le) ARCH_GO="ppc64le"; ARCH_DEB="ppc64el" ;;
68 s390x) ARCH_GO="s390x"; ARCH_DEB="s390x" ;;
69 *)
70 echo "WARNING: Unrecognised architecture '${ARC …
108:8… echo " Found existing clone at ./${REPO_DIR}"
109 cd "${REPO_DIR}"
110 else
111 if ! command -v git &>/dev/null; then
112 echo " ERROR: git is required but not installed."
113 exit 1
114 fi
115
116 local branch="${LLMDBENCH_BRANCH:-${DEFAULT_BRANCH}}"
117 echo " Cloning ${REPO_URL} (branch: ${branch})..."
118 git clone --branch "${branch}" "${REPO_URL}" "${REPO_DIR}"
119 cd "${REPO_DIR}"
120 echo " Cloned to $(pwd)"
121 fi
122
123 echo ""
124 exec bash install.sh "$@"
125 fi
126}
⋯4 lines
132:74… ----
133if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
134 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
135else
136 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
137fi
138
139# ---------------------------------------------------- …