mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Upload models to huggingface
This commit is contained in:
parent
2bfdd9ce8b
commit
46a976166d
14
.github/scripts/baker_zh/TTS/run-matcha.sh
vendored
14
.github/scripts/baker_zh/TTS/run-matcha.sh
vendored
@ -156,21 +156,7 @@ EOF
|
|||||||
tar cvjf $d.tar.bz2 $d
|
tar cvjf $d.tar.bz2 $d
|
||||||
mv $d.tar.bz2 /icefall
|
mv $d.tar.bz2 /icefall
|
||||||
|
|
||||||
log "Upload onnx models to huggingface"
|
|
||||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/$d hf
|
|
||||||
cp -av $d/* hf/
|
|
||||||
|
|
||||||
pushd hf
|
|
||||||
git add .
|
|
||||||
|
|
||||||
git config --global user.name "csukuangfj"
|
|
||||||
git config --global user.email "csukuangfj@gmail.com"
|
|
||||||
git config --global lfs.allowincompletepush true
|
|
||||||
|
|
||||||
git commit -m "upload model" && git push https://csukuangfj:${HF_TOKEN}@huggingface.co/cskuangfj/$d main || true
|
|
||||||
popd
|
|
||||||
|
|
||||||
rm -rf $d
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_data
|
prepare_data
|
||||||
|
22
.github/workflows/baker_zh.yml
vendored
22
.github/workflows/baker_zh.yml
vendored
@ -119,6 +119,28 @@ jobs:
|
|||||||
name: step-6
|
name: step-6
|
||||||
path: ./model-steps-6.onnx
|
path: ./model-steps-6.onnx
|
||||||
|
|
||||||
|
- name: Upload models to huggingface
|
||||||
|
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||||
|
run: |
|
||||||
|
d=matcha-icefall-zh-baker
|
||||||
|
|
||||||
|
log "Upload onnx models to huggingface"
|
||||||
|
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/$d hf
|
||||||
|
cp -av $d/* hf/
|
||||||
|
|
||||||
|
pushd hf
|
||||||
|
git add .
|
||||||
|
|
||||||
|
git config --global user.name "csukuangfj"
|
||||||
|
git config --global user.email "csukuangfj@gmail.com"
|
||||||
|
git config --global lfs.allowincompletepush true
|
||||||
|
|
||||||
|
git commit -m "upload model" && git push https://csukuangfj:${HF_TOKEN}@huggingface.co/cskuangfj/$d main || true
|
||||||
|
popd
|
||||||
|
|
||||||
- name: Release exported onnx models
|
- name: Release exported onnx models
|
||||||
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
|
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user