Unverified Commit e2b6e73f authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

[Flax tests] Disable scheduled GPU tests (#15503)

parent f5d98da2
...@@ -98,50 +98,50 @@ jobs: ...@@ -98,50 +98,50 @@ jobs:
name: run_all_tests_torch_gpu_test_reports name: run_all_tests_torch_gpu_test_reports
path: reports path: reports
run_all_tests_flax_gpu: # run_all_tests_flax_gpu:
runs-on: [self-hosted, docker-gpu-test, single-gpu] # runs-on: [self-hosted, docker-gpu-test, single-gpu]
container: # container:
image: tensorflow/tensorflow:2.4.1-gpu # image: tensorflow/tensorflow:2.4.1-gpu
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ # options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
steps: # steps:
- name: Launcher docker # - name: Launcher docker
uses: actions/checkout@v2 # uses: actions/checkout@v2
#
- name: NVIDIA-SMI # - name: NVIDIA-SMI
continue-on-error: true # continue-on-error: true
run: | # run: |
nvidia-smi # nvidia-smi
#
- name: Install dependencies # - name: Install dependencies
run: | # run: |
pip install --upgrade pip # pip install --upgrade pip
pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html # pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
pip install .[flax,integrations,sklearn,testing,sentencepiece,flax-speech,vision] # pip install .[flax,integrations,sklearn,testing,sentencepiece,flax-speech,vision]
pip install https://github.com/kpu/kenlm/archive/master.zip # pip install https://github.com/kpu/kenlm/archive/master.zip
#
- name: Are GPUs recognized by our DL frameworks # - name: Are GPUs recognized by our DL frameworks
run: | # run: |
python -c "from jax.lib import xla_bridge; print('GPU available:', xla_bridge.get_backend().platform)" # python -c "from jax.lib import xla_bridge; print('GPU available:', xla_bridge.get_backend().platform)"
python -c "import jax; print('Number of GPUs available:', len(jax.local_devices()))" # python -c "import jax; print('Number of GPUs available:', len(jax.local_devices()))"
#
- name: Run all tests on GPU # - name: Run all tests on GPU
run: | # run: |
python -m pytest -n 1 -v --dist=loadfile --make-reports=tests_flax_gpu tests # python -m pytest -n 1 -v --dist=loadfile --make-reports=tests_flax_gpu tests
#
- name: Failure short reports # - name: Failure short reports
if: ${{ always() }} # if: ${{ always() }}
run: cat reports/tests_flax_gpu_failures_short.txt # run: cat reports/tests_flax_gpu_failures_short.txt
#
- name: Test durations # - name: Test durations
if: ${{ always() }} # if: ${{ always() }}
run: cat reports/tests_flax_gpu_durations.txt # run: cat reports/tests_flax_gpu_durations.txt
#
- name: Test suite reports artifacts # - name: Test suite reports artifacts
if: ${{ always() }} # if: ${{ always() }}
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: run_all_tests_flax_gpu_test_reports # name: run_all_tests_flax_gpu_test_reports
path: reports # path: reports
run_all_tests_tf_gpu: run_all_tests_tf_gpu:
runs-on: [self-hosted, docker-gpu, single-gpu] runs-on: [self-hosted, docker-gpu, single-gpu]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment