2023-12-08 14:45:04 +00:00
|
|
|
---
|
|
|
|
name: 'Tests extras backends'
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-tests-extra-${{ github.head_ref || github.ref }}-${{ github.repository }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2023-12-11 07:20:34 +00:00
|
|
|
tests-transformers:
|
2023-12-08 14:45:04 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-11 07:20:34 +00:00
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
|
|
|
|
- name: Test transformers
|
2023-12-08 14:45:04 +00:00
|
|
|
run: |
|
2023-12-11 07:20:34 +00:00
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/transformers
|
|
|
|
make -C backend/python/transformers test
|
|
|
|
|
2023-12-11 18:26:02 +00:00
|
|
|
tests-sentencetransformers:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
|
|
|
|
- name: Test sentencetransformers
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/sentencetransformers
|
|
|
|
make -C backend/python/sentencetransformers test
|
2023-12-11 07:20:34 +00:00
|
|
|
|
|
|
|
tests-diffusers:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-08 14:45:04 +00:00
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
|
2023-12-11 07:20:34 +00:00
|
|
|
- name: Test diffusers
|
2023-12-08 14:45:04 +00:00
|
|
|
run: |
|
2023-12-11 07:20:34 +00:00
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/diffusers
|
|
|
|
make -C backend/python/diffusers test
|
|
|
|
|
|
|
|
|
2023-12-11 18:26:02 +00:00
|
|
|
tests-transformers-musicgen:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
|
|
|
|
- name: Test transformers-musicgen
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/transformers-musicgen
|
|
|
|
make -C backend/python/transformers-musicgen test
|
|
|
|
|
|
|
|
|
2023-12-11 23:39:26 +00:00
|
|
|
|
2023-12-21 07:35:15 +00:00
|
|
|
tests-petals:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
|
|
|
|
- name: Test petals
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/petals
|
|
|
|
make -C backend/python/petals test
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-08 19:12:51 +00:00
|
|
|
# tests-bark:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - name: Release space from worker
|
|
|
|
# run: |
|
|
|
|
# echo "Listing top largest packages"
|
|
|
|
# pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr)
|
|
|
|
# head -n 30 <<< "${pkgs}"
|
|
|
|
# echo
|
|
|
|
# df -h
|
|
|
|
# echo
|
|
|
|
# sudo apt-get remove -y '^llvm-.*|^libllvm.*' || true
|
|
|
|
# sudo apt-get remove --auto-remove android-sdk-platform-tools || true
|
|
|
|
# sudo apt-get purge --auto-remove android-sdk-platform-tools || true
|
|
|
|
# sudo rm -rf /usr/local/lib/android
|
|
|
|
# sudo apt-get remove -y '^dotnet-.*|^aspnetcore-.*' || true
|
|
|
|
# sudo rm -rf /usr/share/dotnet
|
|
|
|
# sudo apt-get remove -y '^mono-.*' || true
|
|
|
|
# sudo apt-get remove -y '^ghc-.*' || true
|
|
|
|
# sudo apt-get remove -y '.*jdk.*|.*jre.*' || true
|
|
|
|
# sudo apt-get remove -y 'php.*' || true
|
|
|
|
# sudo apt-get remove -y hhvm powershell firefox monodoc-manual msbuild || true
|
|
|
|
# sudo apt-get remove -y '^google-.*' || true
|
|
|
|
# sudo apt-get remove -y azure-cli || true
|
|
|
|
# sudo apt-get remove -y '^mongo.*-.*|^postgresql-.*|^mysql-.*|^mssql-.*' || true
|
|
|
|
# sudo apt-get remove -y '^gfortran-.*' || true
|
|
|
|
# sudo apt-get remove -y microsoft-edge-stable || true
|
|
|
|
# sudo apt-get remove -y firefox || true
|
|
|
|
# sudo apt-get remove -y powershell || true
|
|
|
|
# sudo apt-get remove -y r-base-core || true
|
|
|
|
# sudo apt-get autoremove -y
|
|
|
|
# sudo apt-get clean
|
|
|
|
# echo
|
|
|
|
# echo "Listing top largest packages"
|
|
|
|
# pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr)
|
|
|
|
# head -n 30 <<< "${pkgs}"
|
|
|
|
# echo
|
|
|
|
# sudo rm -rfv build || true
|
|
|
|
# sudo rm -rf /usr/share/dotnet || true
|
|
|
|
# sudo rm -rf /opt/ghc || true
|
|
|
|
# sudo rm -rf "/usr/local/share/boost" || true
|
|
|
|
# sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
|
|
|
|
# df -h
|
|
|
|
# - name: Clone
|
|
|
|
# uses: actions/checkout@v4
|
|
|
|
# with:
|
|
|
|
# submodules: true
|
|
|
|
# - name: Dependencies
|
|
|
|
# run: |
|
|
|
|
# sudo apt-get update
|
|
|
|
# sudo apt-get install build-essential ffmpeg
|
|
|
|
# curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
# sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
# gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
# sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
# sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
# sudo apt-get update && \
|
|
|
|
# sudo apt-get install -y conda
|
|
|
|
# sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
# sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
2023-12-11 23:39:26 +00:00
|
|
|
|
2024-02-08 19:12:51 +00:00
|
|
|
# sudo rm -rfv /usr/bin/conda || true
|
2023-12-11 23:39:26 +00:00
|
|
|
|
2024-02-08 19:12:51 +00:00
|
|
|
# - name: Test bark
|
|
|
|
# run: |
|
|
|
|
# export PATH=$PATH:/opt/conda/bin
|
|
|
|
# make -C backend/python/bark
|
|
|
|
# make -C backend/python/bark test
|
2023-12-11 23:39:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Below tests needs GPU. Commented out for now
|
|
|
|
# TODO: Re-enable as soon as we have GPU nodes
|
|
|
|
# tests-vllm:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - name: Clone
|
|
|
|
# uses: actions/checkout@v4
|
|
|
|
# with:
|
|
|
|
# submodules: true
|
|
|
|
# - name: Dependencies
|
|
|
|
# run: |
|
|
|
|
# sudo apt-get update
|
|
|
|
# sudo apt-get install build-essential ffmpeg
|
|
|
|
# curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
# sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
# gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
# sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
# sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
# sudo apt-get update && \
|
|
|
|
# sudo apt-get install -y conda
|
|
|
|
# sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
# sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
# sudo rm -rfv /usr/bin/conda || true
|
|
|
|
# - name: Test vllm
|
|
|
|
# run: |
|
|
|
|
# export PATH=$PATH:/opt/conda/bin
|
|
|
|
# make -C backend/python/vllm
|
|
|
|
# make -C backend/python/vllm test
|
2023-12-23 19:31:34 +00:00
|
|
|
tests-vallex:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
- name: Test vall-e-x
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/vall-e-x
|
|
|
|
make -C backend/python/vall-e-x test
|
2023-12-24 18:38:54 +00:00
|
|
|
|
|
|
|
tests-coqui:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential ffmpeg
|
|
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg && \
|
|
|
|
sudo install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg && \
|
|
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo /bin/bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list' && \
|
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install -y conda
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch espeak espeak-ng
|
|
|
|
sudo rm -rfv /usr/bin/conda || true
|
|
|
|
|
|
|
|
- name: Test coqui
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
make -C backend/python/coqui
|
2024-02-06 19:49:28 +00:00
|
|
|
make -C backend/python/coqui test
|