mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-05 15:14:18 +00:00
Merge branch 'ci-train-2' into ci-train
This commit is contained in:
commit
7c07f0c9b9
4
.github/scripts/docker/Dockerfile
vendored
4
.github/scripts/docker/Dockerfile
vendored
@ -1,4 +1,5 @@
|
|||||||
ARG PYTHON_VERSION=3.8
|
ARG PYTHON_VERSION=3.8
|
||||||
|
FROM python:${PYTHON_VERSION}
|
||||||
|
|
||||||
ARG TORCHAUDIO_VERSION="0.13.0"
|
ARG TORCHAUDIO_VERSION="0.13.0"
|
||||||
ARG TORCH_VERSION="1.13.0"
|
ARG TORCH_VERSION="1.13.0"
|
||||||
@ -8,10 +9,9 @@ ARG KALDIFEAT_VERSION="1.25.3.dev20231221"
|
|||||||
ARG _K2_VERSION="${K2_VERSION}+cpu.torch${TORCH_VERSION}"
|
ARG _K2_VERSION="${K2_VERSION}+cpu.torch${TORCH_VERSION}"
|
||||||
ARG _KALDIFEAT_VERSION="${KALDIFEAT_VERSION}+cpu.torch${TORCH_VERSION}"
|
ARG _KALDIFEAT_VERSION="${KALDIFEAT_VERSION}+cpu.torch${TORCH_VERSION}"
|
||||||
|
|
||||||
FROM python:${PYTHON_VERSION}
|
|
||||||
|
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install -qq -y \
|
apt-get install -qq -y \
|
||||||
|
ffmpeg \
|
||||||
git \
|
git \
|
||||||
git-lfs \
|
git-lfs \
|
||||||
less \
|
less \
|
||||||
|
3
.github/scripts/docker/run.sh
vendored
3
.github/scripts/docker/run.sh
vendored
@ -3,6 +3,9 @@ set -ex
|
|||||||
|
|
||||||
cd /icefall
|
cd /icefall
|
||||||
export PYTHONPATH=/icefall:$PYTHONPATH
|
export PYTHONPATH=/icefall:$PYTHONPATH
|
||||||
|
python3 -c "import torch; print(torch.__file__)"
|
||||||
|
python3 -c "import torchaudio; print(torchaudio.__version__)"
|
||||||
|
python3 -c "import icefall; print(icefall.__file__)"
|
||||||
|
|
||||||
cd egs/librispeech/ASR
|
cd egs/librispeech/ASR
|
||||||
|
|
||||||
|
18
.github/workflows/build-cpu-docker.yml
vendored
18
.github/workflows/build-cpu-docker.yml
vendored
@ -8,7 +8,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-cpu-docker:
|
build-cpu-docker:
|
||||||
name: py${{ matrix.python-version }} torch${{ matrix.torch-version }}
|
name: py${{ matrix.python-version }} torch${{ matrix.torch-version }} v${{ matrix.version }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -18,6 +18,7 @@ jobs:
|
|||||||
torch-version: ["1.13.0", "2.0.0", "2.0.1", "2.1.0", "2.1.1", "2.1.2"]
|
torch-version: ["1.13.0", "2.0.0", "2.0.1", "2.1.0", "2.1.1", "2.1.2"]
|
||||||
k2-version: ["1.24.4.dev20231220"]
|
k2-version: ["1.24.4.dev20231220"]
|
||||||
kaldifeat-version: ["1.25.3.dev20231221"]
|
kaldifeat-version: ["1.25.3.dev20231221"]
|
||||||
|
version: ["1.0"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# refer to https://github.com/actions/checkout
|
# refer to https://github.com/actions/checkout
|
||||||
@ -44,17 +45,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd .github/scripts/docker
|
cd .github/scripts/docker
|
||||||
torch_version=${{ matrix.torch-version }}
|
torch_version=${{ matrix.torch-version }}
|
||||||
if [[ $torch_version == "1.13.0" ]]; then
|
if [[ $torch_version == 1.13.0 ]]; then
|
||||||
torchaudio_version=0.13.0
|
torchaudio_version=0.13.0
|
||||||
elif [[ $torch_version == "2.0.0" ]]; then
|
elif [[ $torch_version == 2.0.0 ]]; then
|
||||||
torchaudio_version=2.0.1
|
torchaudio_version=2.0.1
|
||||||
elif [[ $torch_version == "2.0.1" ]]; then
|
elif [[ $torch_version == 2.0.1 ]]; then
|
||||||
torchaudio_version=2.0.2"
|
torchaudio_version=2.0.2
|
||||||
else
|
else
|
||||||
torchaudio_version=$torch_version
|
torchaudio_version=$torch_version
|
||||||
fi
|
fi
|
||||||
|
echo "torch_version: $torch_version"
|
||||||
|
echo "torchaudio_version: $torchaudio_version"
|
||||||
|
|
||||||
tag=ghcr.io/k2-fsa/icefall:cpu-py${{ matrix.python-version }}-torch${{ matrix.torch-version }}
|
version=${{ matrix.version }}
|
||||||
|
|
||||||
|
tag=ghcr.io/k2-fsa/icefall:cpu-py${{ matrix.python-version }}-torch${{ matrix.torch-version }}-v$version
|
||||||
|
echo "tag: $tag"
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
-t $tag \
|
-t $tag \
|
||||||
|
8
.github/workflows/train-librispeech.yml
vendored
8
.github/workflows/train-librispeech.yml
vendored
@ -16,13 +16,17 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
train-librispeech:
|
train-librispeech:
|
||||||
name: ${{ matrix.python-version }}
|
name: py${{ matrix.python-version }} torch${{ matrix.torch-version }} v${{ matrix.version }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
python-version: ["3.8", "3.9", "3.10"]
|
python-version: ["3.8", "3.9", "3.10"]
|
||||||
|
torch-version: ["1.13.0", "2.0.0", "2.0.1", "2.1.0", "2.1.1", "2.1.2"]
|
||||||
|
k2-version: ["1.24.4.dev20231220"]
|
||||||
|
kaldifeat-version: ["1.25.3.dev20231221"]
|
||||||
|
version: ["1.0"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# refer to https://github.com/actions/checkout
|
# refer to https://github.com/actions/checkout
|
||||||
@ -42,7 +46,7 @@ jobs:
|
|||||||
- name: Run the build process with Docker
|
- name: Run the build process with Docker
|
||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/k2-fsa/icefall:cpu-py${{ matrix.python-version }}
|
image: ghcr.io/k2-fsa/icefall:cpu-py${{ matrix.python-version }}-torch${{ matrix.torch-version }}-v${{ matrix.version }}
|
||||||
options: |
|
options: |
|
||||||
--volume ${{ github.workspace }}/:/icefall
|
--volume ${{ github.workspace }}/:/icefall
|
||||||
shell: bash
|
shell: bash
|
||||||
|
1
egs/gigaspeech/ASR/zipformer/my_profile.py
Symbolic link
1
egs/gigaspeech/ASR/zipformer/my_profile.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../librispeech/ASR/zipformer/my_profile.py
|
@ -1 +0,0 @@
|
|||||||
../../../librispeech/ASR/zipformer/profile.py
|
|
@ -17,7 +17,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Usage: ./pruned_transducer_stateless/profile.py
|
Usage: ./pruned_transducer_stateless/my_profile.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
@ -17,7 +17,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Usage: ./pruned_transducer_stateless4/profile.py
|
Usage: ./pruned_transducer_stateless4/my_profile.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
@ -17,7 +17,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Usage: ./pruned_transducer_stateless7/profile.py
|
Usage: ./pruned_transducer_stateless7/my_profile.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
@ -17,7 +17,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Usage: ./zipformer/profile.py
|
Usage: ./zipformer/my_profile.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
1
egs/tedlium3/ASR/zipformer/my_profile.py
Symbolic link
1
egs/tedlium3/ASR/zipformer/my_profile.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../librispeech/ASR/zipformer/my_profile.py
|
@ -1 +0,0 @@
|
|||||||
../../../librispeech/ASR/zipformer/profile.py
|
|
Loading…
x
Reference in New Issue
Block a user