From a6da5616d5e3e3475c730fa67ec1ef4cff33a846 Mon Sep 17 00:00:00 2001 From: Tunji Ruwase Date: Thu, 2 Feb 2023 14:30:37 +0000 Subject: [PATCH 1/2] Common location to install libaio-dev --- .github/workflows/amd.yml | 1 - .github/workflows/nv-transformers-v100.yml | 1 - .github/workflows/setup-venv/action.yml | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/amd.yml b/.github/workflows/amd.yml index e4ccb861a300..7bc6799acd95 100644 --- a/.github/workflows/amd.yml +++ b/.github/workflows/amd.yml @@ -32,7 +32,6 @@ jobs: pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.1.1 python -c "import torch; print('torch:', torch.__version__, torch)" python -c "import torch; print('CUDA available:', torch.cuda.is_available())" - sudo apt-get install -y libaio-dev - name: Install transformers run: | diff --git a/.github/workflows/nv-transformers-v100.yml b/.github/workflows/nv-transformers-v100.yml index e55598740645..ec84f2234836 100644 --- a/.github/workflows/nv-transformers-v100.yml +++ b/.github/workflows/nv-transformers-v100.yml @@ -29,7 +29,6 @@ jobs: pip install torch==1.8.2+cu111 torchvision==0.9.2+cu111 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html python -c "import torch; print('torch:', torch.__version__, torch)" python -c "import torch; print('CUDA available:', torch.cuda.is_available())" - sudo apt-get install -y libaio-dev - name: Install deepspeed run: | diff --git a/.github/workflows/setup-venv/action.yml b/.github/workflows/setup-venv/action.yml index ea2eed7bbc7a..6718ba38e11d 100644 --- a/.github/workflows/setup-venv/action.yml +++ b/.github/workflows/setup-venv/action.yml @@ -6,12 +6,14 @@ runs: - id: update-env run: | sudo apt-get update && sudo apt-get -y upgrade + sudo apt-get install -y libaio-dev pip install --upgrade pip python -m pip install -U virtualenv shell: bash - id: create-venv run: | sudo apt-get update && sudo apt-get -y upgrade + sudo apt-get install -y libaio-dev pip install --upgrade pip python -m pip install -U virtualenv python -m venv unit-test-venv From 57e505bc1e5ac2ea67cb6e0767873771d6e46d20 Mon Sep 17 00:00:00 2001 From: Olatunji Ruwase Date: Fri, 3 Feb 2023 14:19:28 -0500 Subject: [PATCH 2/2] Update .github/workflows/setup-venv/action.yml Co-authored-by: Michael Wyatt --- .github/workflows/setup-venv/action.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/setup-venv/action.yml b/.github/workflows/setup-venv/action.yml index 6718ba38e11d..2e89fd395210 100644 --- a/.github/workflows/setup-venv/action.yml +++ b/.github/workflows/setup-venv/action.yml @@ -12,10 +12,6 @@ runs: shell: bash - id: create-venv run: | - sudo apt-get update && sudo apt-get -y upgrade - sudo apt-get install -y libaio-dev - pip install --upgrade pip - python -m pip install -U virtualenv python -m venv unit-test-venv source ./unit-test-venv/bin/activate pip install --upgrade pip