committed by
GitHub
parent
84ed5d4288
commit
01110cc22b
@@ -79,6 +79,31 @@ jobs:
|
||||
|
||||
tar cjvf ${d}.tar.bz2 $d
|
||||
|
||||
- name: Run CTC v2
|
||||
shell: bash
|
||||
run: |
|
||||
pushd scripts/nemo/GigaAM
|
||||
./run-ctc-v2.sh
|
||||
popd
|
||||
|
||||
d=sherpa-onnx-nemo-ctc-giga-am-v2-russian-2025-04-19
|
||||
mkdir $d
|
||||
mkdir $d/test_wavs
|
||||
rm scripts/nemo/GigaAM/v2_ctc.onnx
|
||||
mv -v scripts/nemo/GigaAM/*.int8.onnx $d/
|
||||
cp -v scripts/nemo/GigaAM/LICENCE $d/
|
||||
mv -v scripts/nemo/GigaAM/tokens.txt $d/
|
||||
mv -v scripts/nemo/GigaAM/*.wav $d/test_wavs/
|
||||
mv -v scripts/nemo/GigaAM/run-ctc.sh $d/
|
||||
mv -v scripts/nemo/GigaAM/*-ctc-v2.py $d/
|
||||
|
||||
ls -lh scripts/nemo/GigaAM/
|
||||
|
||||
ls -lh $d
|
||||
|
||||
tar cjvf ${d}.tar.bz2 $d
|
||||
|
||||
|
||||
- name: Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
@@ -114,3 +139,29 @@ jobs:
|
||||
git status
|
||||
git commit -m "add models"
|
||||
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$d main
|
||||
|
||||
- name: Publish v2 to huggingface (Transducer)
|
||||
env:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
max_attempts: 20
|
||||
timeout_seconds: 200
|
||||
shell: bash
|
||||
command: |
|
||||
git config --global user.email "csukuangfj@gmail.com"
|
||||
git config --global user.name "Fangjun Kuang"
|
||||
|
||||
d=sherpa-onnx-nemo-transducer-giga-am-v2-russian-2025-04-19/
|
||||
export GIT_LFS_SKIP_SMUDGE=1
|
||||
export GIT_CLONE_PROTECTION_ACTIVE=false
|
||||
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$d huggingface
|
||||
mv -v $d/* ./huggingface
|
||||
cd huggingface
|
||||
git lfs track "*.onnx"
|
||||
git lfs track "*.wav"
|
||||
git status
|
||||
git add .
|
||||
git status
|
||||
git commit -m "add models"
|
||||
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$d main
|
||||
|
||||
Reference in New Issue
Block a user