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
fix(release): skip the onnxruntime-node CUDA download before every pnpm install (#1035)
Krisztian Gajdar4b8a540898e9
diff --git a/tools/ci/pnpm_native_deps.bash b/tools/ci/pnpm_native_deps.bashindex c4c7a6625..e123c71d8 100755--- a/tools/ci/pnpm_native_deps.bash+++ b/tools/ci/pnpm_native_deps.bash@@ -8,6 +8,10 @@# 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 pipefailNODE_GYP_VERSION=12.4.0@@ -24,5 +28,6 @@ mise exec --no-deps node -- npm install --global --no-fund --no-audit --fetch-renode_dir="$(mise where node)"if [ -n "${GITHUB_ENV:-}" ]; thenecho "npm_config_nodedir=${node_dir}" >> "$GITHUB_ENV"+ echo "ONNXRUNTIME_NODE_INSTALL_CUDA=skip" >> "$GITHUB_ENV"fimise exec --no-deps node -- node-gyp --versiondiff --git a/tools/ci/tests/test_required_ci.py b/tools/ci/tests/test_required_ci.pyindex 998fc894e..b70f6be97 100644--- a/tools/ci/tests/test_required_ci.py+++ b/tools/ci/tests/test_required_ci.py@@ -149,6 +149,7 @@ def test_pnpm_installs_prepare_local_native_builds():assert re.search(r"node-gyp@\$\{NODE_GYP_VERSION\}", script)assert re.search(r"^NODE_GYP_VERSION=[0-9.]+$", script, re.MULTILINE)assert "npm_config_nodedir" in script+ assert 'echo "ONNXRUNTIME_NODE_INSTALL_CUDA=skip" >> "$GITHUB_ENV"' in script# The cold bootstrap lane has no tool installed when this runs: node is# installed serially, like tools/init.sh does, and nothing else lazily.assert "mise install --jobs=1 node" in script