Skip to content

Commit 831aff1

Browse files
authored
Upload fp16 onnx model files for FireRedASR (#2360)
1 parent 103e93d commit 831aff1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/upload-models.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,45 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27+
- name: git config
28+
shell: bash
29+
run: |
30+
git config --global user.email "csukuangfj@gmail.com"
31+
git config --global user.name "Fangjun Kuang"
32+
33+
- name: FireRed ASR fp16
34+
shell: bash
35+
env:
36+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
37+
run: |
38+
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16 hf
39+
40+
git lfs install
41+
git clone https://www.modelscope.cn/csukuangfj/sherpa-onnx-fire-red-asr-large-zh_en-fp16-2025-02-16.git ms
42+
43+
d=sherpa-onnx-fire-red-asr-large-zh_en-fp16-2025-02-16
44+
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$d
45+
mv -v hf/test_wavs $d
46+
mv -v hf/README.md $d
47+
mv -v hf/tokens.txt $d
48+
mv -v ms/*.onnx $d
49+
50+
pushd $d
51+
git lfs track "*.onnx"
52+
git lfs track "*.wav"
53+
git status
54+
git add .
55+
git commit -m "add models"
56+
ls -lh
57+
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$d main
58+
popd
59+
60+
rm -rf $d/.git
61+
rm -rf $d/.gitattributes
62+
tar cjvf $d.tar.bz2 $d
63+
2764
- name: Zipformer CTC (non-streaming)
65+
if: false
2866
shell: bash
2967
run: |
3068
git lfs install

0 commit comments

Comments
 (0)