diff --git a/.github/workflows/run-librispeech-2022-03-12.yml b/.github/workflows/run-librispeech-2022-03-12.yml index 0e4d6130c..03b69af40 100644 --- a/.github/workflows/run-librispeech-2022-03-12.yml +++ b/.github/workflows/run-librispeech-2022-03-12.yml @@ -55,14 +55,21 @@ jobs: - name: Install Python dependencies run: | - pip install -r ./requirements-ci.txt + grep -v '^#' ./requirements-ci.txt | xargs -n 1 -L 1 pip install + + - name: Cache pre-trained model + id: cache-pretrained-model + uses: actions/cache@v2 + with: + path: ~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 + key: run-librispeech-2022-03-12 - name: Download pre-trained model + if: steps.cache-pretrained-model.outputs.cache-hit != 'true' shell: bash run: | sudo apt-get -qq install git-lfs tree sox - cd egs/librispeech/ASR mkdir tmp cd tmp git lfs install @@ -76,7 +83,7 @@ jobs: shell: bash run: | export PYTHONPATH=$PWD:PYTHONPATH - dir=./tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 + dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 cd egs/librispeech/ASR ./pruned_transducer_stateless/pretrained.py \ --method greedy_search \ @@ -91,7 +98,7 @@ jobs: shell: bash run: | export PYTHONPATH=$PWD:PYTHONPATH - dir=./tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 + dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 cd egs/librispeech/ASR ./pruned_transducer_stateless/pretrained.py \ --method greedy_search \ @@ -106,7 +113,7 @@ jobs: shell: bash run: | export PYTHONPATH=$PWD:PYTHONPATH - dir=./tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 + dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 cd egs/librispeech/ASR ./pruned_transducer_stateless/pretrained.py \ --method greedy_search \ @@ -121,7 +128,7 @@ jobs: shell: bash run: | export PYTHONPATH=$PWD:$PYTHONPATH - dir=./tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 + dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 cd egs/librispeech/ASR ./pruned_transducer_stateless/pretrained.py \ --method beam_search \ @@ -136,7 +143,7 @@ jobs: shell: bash run: | export PYTHONPATH=$PWD:$PYTHONPATH - dir=./tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 + dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12 cd egs/librispeech/ASR ./pruned_transducer_stateless/pretrained.py \ --method modified_beam_search \ diff --git a/requirements-ci.txt b/requirements-ci.txt index 5443eb931..9e8057499 100644 --- a/requirements-ci.txt +++ b/requirements-ci.txt @@ -1,3 +1,4 @@ +# Usage: grep -v '^#' requirements-ci.txt | xargs -n 1 -L 1 pip install # dependencies for GitHub actions # # See https://github.com/actions/setup-python#caching-packages-dependencies @@ -7,12 +8,10 @@ numpy==1.19 pytest==7.1.0 graphviz==0.19.1 --f https://download.pytorch.org/whl/cpu/torch_stable.html -torch==1.10.0+cpu -torchaudio==0.10.0+cpu +-f https://download.pytorch.org/whl/cpu/torch_stable.html torch==1.10.0+cpu +-f https://download.pytorch.org/whl/cpu/torch_stable.html torchaudio==0.10.0+cpu --f https://k2-fsa.org/nightly/ -k2==1.9.dev20211101+cpu.torch1.10.0 +-f https://k2-fsa.org/nightly/ k2==1.9.dev20211101+cpu.torch1.10.0 lhotse==0.12.0 kaldifeat==1.12