Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across multiple language bindings, WebAssembly, examples, and CI workflows. - Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs - Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js - Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models Model doc is available at https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
This commit is contained in:
27
.github/workflows/upload-models.yaml
vendored
27
.github/workflows/upload-models.yaml
vendored
@@ -19,12 +19,36 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
python-version: ["3.8"]
|
||||
python-version: ["3.10"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Zipformer CTC (non-streaming)
|
||||
shell: bash
|
||||
run: |
|
||||
git lfs install
|
||||
names=(
|
||||
sherpa-onnx-zipformer-ctc-zh-int8-2025-07-03
|
||||
sherpa-onnx-zipformer-ctc-zh-2025-07-03
|
||||
sherpa-onnx-zipformer-ctc-zh-fp16-2025-07-03
|
||||
)
|
||||
for name in ${names[@]}; do
|
||||
git clone https://huggingface.co/csukuangfj/$name
|
||||
pushd $name
|
||||
git lfs pull
|
||||
rm -rf .git
|
||||
rm -rfv .gitattributes
|
||||
ls -lh
|
||||
popd
|
||||
|
||||
tar cjfv $name.tar.bz2 $name
|
||||
rm -rf $name
|
||||
ls -lh *.tar.bz2
|
||||
done
|
||||
|
||||
- name: Vietnamese (zipformer)
|
||||
if: false
|
||||
shell: bash
|
||||
run: |
|
||||
rm -rf models
|
||||
@@ -76,6 +100,7 @@ jobs:
|
||||
mv models/* .
|
||||
|
||||
- name: Publish to huggingface (Vietnamese zipformer)
|
||||
if: false
|
||||
env:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
uses: nick-fields/retry@v3
|
||||
|
||||
Reference in New Issue
Block a user