-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI for non-streaming zipformer about ksponspeech (#1667)
- Loading branch information
1 parent
031f892
commit b594a38
Showing
2 changed files
with
118 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,13 +57,19 @@ jobs: | |
.github/scripts/ksponspeech/ASR/run.sh | ||
- name: Show model files | ||
- name: Show model files (2024-06-24) | ||
shell: bash | ||
run: | | ||
src=/tmp/model1 | ||
src=/tmp/model-2024-06-24 | ||
ls -lh $src | ||
- name: Upload model to huggingface | ||
- name: Show model files (2024-06-16) | ||
shell: bash | ||
run: | | ||
src=/tmp/model-2024-06-16 | ||
ls -lh $src | ||
- name: Upload model to huggingface (2024-06-24) | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
uses: nick-fields/retry@v3 | ||
|
@@ -72,7 +78,41 @@ jobs: | |
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
src=/tmp/model1 | ||
src=/tmp/model-2024-06-24 | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf hf | ||
export GIT_LFS_SKIP_SMUDGE=1 | ||
export GIT_CLONE_PROTECTION_ACTIVE=false | ||
git clone https://huggingface.co/k2-fsa/sherpa-onnx-zipformer-korean-2024-06-24 hf | ||
cd hf | ||
git fetch | ||
git pull | ||
git merge -m "merge remote" --ff origin main | ||
cp -av $src/* ./ | ||
ls -lh | ||
git lfs track "bpe.model" | ||
git lfs track "*.onnx" | ||
git add . | ||
git status | ||
git commit -m "update models" | ||
git status | ||
git push https://csukuangfj:[email protected]/k2-fsa/sherpa-onnx-zipformer-korean-2024-06-24 main || true | ||
rm -rf hf | ||
- name: Upload model to huggingface (2024-06-16) | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
src=/tmp/model-2024-06-16 | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
|
@@ -98,15 +138,24 @@ jobs: | |
git push https://csukuangfj:[email protected]/k2-fsa/sherpa-onnx-streaming-zipformer-korean-2024-06-16 main || true | ||
rm -rf hf | ||
- name: Prepare for release | ||
- name: Prepare for release (2024-06-16) | ||
shell: bash | ||
run: | | ||
src=/tmp/model1 | ||
src=/tmp/model-2024-06-16 | ||
d=sherpa-onnx-streaming-zipformer-korean-2024-06-16 | ||
mv $src ./$d | ||
tar cjvf ${d}.tar.bz2 $d | ||
ls -lh | ||
- name: Prepare for release (2024-06-24) | ||
shell: bash | ||
run: | | ||
src=/tmp/model-2024-06-24 | ||
d=sherpa-onnx-zipformer-korean-2024-06-24 | ||
mv $src ./$d | ||
tar cjvf ${d}.tar.bz2 $d | ||
ls -lh | ||
- name: Release exported onnx models | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
|