From e6b4de83972122527ebc7d1c8cdcf8764fd4a733 Mon Sep 17 00:00:00 2001 From: InNoobWeTrust Date: Thu, 22 Feb 2024 23:07:54 +0700 Subject: [PATCH] build(ci/nitro-node): add mising glibc dependency on Ubuntu runners --- .github/workflows/build-nitro-node.yml | 10 +++------- nitro-node/Makefile | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-nitro-node.yml b/.github/workflows/build-nitro-node.yml index 7ebdb6fde..8a4c003d2 100644 --- a/.github/workflows/build-nitro-node.yml +++ b/.github/workflows/build-nitro-node.yml @@ -14,7 +14,7 @@ on: workflow_dispatch: env: - LLM_MODEL_URL: https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF/resolve/main/tinyllama-1.1b-chat-v0.3.Q2_K.gguf + LLM_MODEL_URL: https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf WHISPER_MODEL_URL: https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny-q5_1.bin jobs: @@ -23,13 +23,9 @@ jobs: strategy: matrix: os: - - ubuntu-18-04-cuda-12-0 - - ubuntu-18-04-cuda-11-7 - - macos-silicon + - ubuntu-latest - macos-latest - windows-latest - - windows-cuda-12-0 - - windows-cuda-11-7 steps: - name: Clone @@ -54,7 +50,7 @@ jobs: id: download-model-file name: Download model file with: - url: ${{ env.LLM_MODEL_URL }} + url: "The model we are using is [tinyllama-1.1b](${{ env.LLM_MODEL_URL }})!" target: nitro-node/test/test_assets/ auto-match: true retry-times: 3 diff --git a/nitro-node/Makefile b/nitro-node/Makefile index 6f67435ee..e3e19e283 100644 --- a/nitro-node/Makefile +++ b/nitro-node/Makefile @@ -5,33 +5,33 @@ all: publish -# Installs yarn dependencies +# Installs npm dependencies #install: build-core install: ifeq ($(OS),Windows_NT) - yarn config set network-timeout 300000 + npm config set timeout 300000 endif - yarn install + npm install # Build build: install - yarn run build + npm run build # Download Nitro download-nitro: install - yarn run downloadnitro + npm run downloadnitro test-ci: install - yarn test + npm test # Note, this make target is just for testing on *NIX systems test: install @test -e test/test_assets/*.gguf && echo "test/test_assets/*.gguf is already downloaded" || (mkdir -p test/test_assets && cd test/test_assets/ && curl -JLO "https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf") - yarn test + npm test # Builds and pack pack: build - yarn run build:publish + npm run build:publish # Test that installation will also download nitro binaries test-e2e-installation: pack @@ -43,9 +43,9 @@ endif clean: ifeq ($(OS),Windows_NT) - powershell -Command "Remove-Item -Recurse -Force -Path *.tgz, .yarn, yarn.lock, package-lock.json, bin, dist" - powershell -Command "Get-ChildItem -Path . -Include node_modules -Recurse -Directory | Remove-Item -Recurse -Force" + powershell -Command "Get-ChildItem -Path . -Include *.tgz, package-lock.json -Recurse | Remove-Item -Recurse -Force" + powershell -Command "Get-ChildItem -Path . -Include node_modules, bin, dist -Recurse -Directory | Remove-Item -Recurse -Force" else - rm -rf *.tgz .yarn yarn.lock package-lock.json bin dist + rm -rf *.tgz package-lock.json bin dist find . -name "node_modules" -type d -prune -exec rm -rf '{}' + endif