Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
#!/usr/bin/env bash
# Prepare a runner so `pnpm install` builds its native addons locally instead
# of fetching prebuilt binaries from GitHub release assets.
#
# sharp 0.32 (pulled in by chromadb-default-embed) downloads libvips and its
# own prebuilt addon from GitHub releases unless a global libvips is present;
# then its install script refuses the download and runs `node-gyp rebuild`.
# The runner image has no node-gyp on PATH, so install it into the mise node
# tree, and point node-gyp at that tree's headers so it does not fetch them
# from nodejs.org either.
#
# onnxruntime-node (pulled in by @huggingface/transformers) downloads CUDA
# provider binaries from a GitHub release on every Linux x64 install; the
# runners have no GPU, so skip that download.
set -euo pipefail
NODE_GYP_VERSION=12.4.0
# Both package sources get retries, so a transient mirror or registry error
# does not fail the job this script exists to shield.
sudo apt-get -o Acquire::Retries=3 update -qq
sudo apt-get -o Acquire::Retries=3 install -y -qq --no-install-recommends libvips-dev
# Only node is needed here. On the cold bootstrap lane nothing is installed
# yet, and a bare `mise exec` would install every configured tool at once;
# tools/init.sh installs them one at a time, so do the same for node first.
mise install --jobs=1 node
mise exec --no-deps node -- npm install --global --no-fund --no-audit --fetch-retries 5 "node-gyp@${NODE_GYP_VERSION}"
node_dir="$(mise where node)"
if [ -n "${GITHUB_ENV:-}" ]; then
echo "npm_config_nodedir=${node_dir}" >> "$GITHUB_ENV"
echo "ONNXRUNTIME_NODE_INSTALL_CUDA=skip" >> "$GITHUB_ENV"
fi
mise exec --no-deps node -- node-gyp --version