Skip to content

Commit

Permalink
Should be working now
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Oct 26, 2023
1 parent e74a875 commit 4ca598f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 57 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/run_merge_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,67 +30,67 @@ jobs:
pip install pytest-reportlog tabulate
- name: Run CLI tests (use make cli)
working-directory: accelerate
run: |
source activate accelerate
cd accelerate
echo "Hello world!"
make test_cli
# - name: Run test on GPUs
# if: always()
# run: |
# source activate accelerate
# cd accelerate
# make test
# - name: Run examples on GPUs
# if: always()
# run: |
# source activate accelerate
# cd accelerate
# pip uninstall comet_ml -y
# make test_examples
- name: Run test on GPUs
if: always()
working-directory: accelerate
run: |
source activate accelerate
make test
- name: Run examples on GPUs
if: always()
working-directory: accelerate
run: |
source activate accelerate
pip uninstall comet_ml -y
make test_examples
# - name: Generate Report
# if: always()
# run: |
# pip install tabulate
# cd accelerate
# python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
- name: Generate Report
if: always()
working-directory: accelerate
run: |
pip install tabulate
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
# run_all_tests_multi_gpu:
# runs-on: [self-hosted, docker-gpu, multi-gpu]
# container:
# image: huggingface/accelerate-gpu:latest
# options: --gpus all --shm-size "16gb"
# defaults:
# run:
# working-directory: accelerate/
# shell: bash
# steps:
# - name: Install accelerate
# run:
# source activate accelerate;
# git clone -b ${{ github.sha }} https://github.com/huggingface/accelerate
# cd accelerate
# pip install -e .[testing, test_trackers] -U;
# pip install pytest-reportlog tabulate
run_all_tests_multi_gpu:
runs-on: [self-hosted, docker-gpu, multi-gpu]
container:
image: huggingface/accelerate-gpu:latest
options: --gpus all --shm-size "16gb"
defaults:
run:
shell: bash
steps:
- name: Install accelerate
run:
source activate accelerate;
git clone https://github.com/huggingface/accelerate
cd accelerate
git checkout ${{ github.sha }};
pip install -e .[testing,test_trackers] -U;
pip install pytest-reportlog tabulate

# - name: Run test on GPUs
# run: |
# source activate accelerate
# cd accelerate
# make test
- name: Run test on GPUs
working-directory: accelerate
run: |
source activate accelerate
make test
# - name: Run examples on GPUs
# if: always()
# run: |
# source activate accelerate
# cd accelerate
# pip uninstall comet_ml -y
# make test_examples
- name: Run examples on GPUs
working-directory: accelerate
if: always()
run: |
source activate accelerate
pip uninstall comet_ml -y
make test_examples
# - name: Generate Report
# if: always()
# run: |
# source activate accelerate
# cd accelerate
# python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
- name: Generate Report
working-directory: accelerate
if: always()
run: |
source activate accelerate
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
3 changes: 2 additions & 1 deletion .github/workflows/self_hosted_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ jobs:
- name: Install accelerate
run:
source activate accelerate;
git clone -b ${{ github.sha }} https://github.com/huggingface/accelerate
git clone https://github.com/huggingface/accelerate
cd accelerate
git checkout ${{ github.sha }};
pip install -e .[testing];
cd ..

Expand Down

0 comments on commit 4ca598f

Please sign in to comment.