csukuangfj commited on
Commit
8a7306b
1 Parent(s): 308f8f4

first commit

Browse files
exp/32/decoder-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b618d383af304cfae281dbf0a53e8bf442c2f0502256cd5694bd6567ebdd834
3
+ size 3486740
exp/32/decoder-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89be509a83175261695bdef5fd1c7b9ab1129a663d1284e7ba9f8507b21e0906
3
+ size 13877276
exp/32/encoder-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db6f51551762e40e549166fe041ea3e45464370b595e9ad23f06478ec3794fbb
3
+ size 42980793
exp/32/encoder-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21b820759ba8a2792838748cdc5a14690fe2010bcb6b370f62e71c87ffeefd84
3
+ size 88476270
exp/32/export-for-onnx.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES=""
4
+ set -ex
5
+
6
+ dir=./k2fsa-zipformer-bilingual-zh-en-t
7
+ if [ ! -f $dir/exp/epoch-99.pt ]; then
8
+ pushd $dir/exp
9
+ ln -s pretrained.pt epoch-99.pt
10
+ popd
11
+ fi
12
+
13
+ ./pruned_transducer_stateless7_streaming/export-onnx-zh.py \
14
+ --tokens $dir/data/lang_char_bpe/tokens.txt \
15
+ --use-averaged-model 0 \
16
+ --epoch 99 \
17
+ --avg 1 \
18
+ --exp-dir $dir/exp/ \
19
+ --decode-chunk-len 32 \
20
+ \
21
+ --num-encoder-layers 2,2,2,2,2 \
22
+ --feedforward-dims 768,768,768,768,768 \
23
+ --nhead 4,4,4,4,4 \
24
+ --encoder-dims 256,256,256,256,256 \
25
+ --attention-dims 192,192,192,192,192 \
26
+ --encoder-unmasked-dims 192,192,192,192,192 \
27
+ \
28
+ --zipformer-downsampling-factors "1,2,4,8,2" \
29
+ --cnn-module-kernels "31,31,31,31,31" \
30
+ --decoder-dim 512 \
31
+ --joiner-dim 512
exp/32/joiner-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdda356d6f9b8c2d7cee9ee0e26075fa537490f7fd06520be408d287073667b9
3
+ size 3228485
exp/32/joiner-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcbcf0cc1b449bc32b7777084ab5a65d1199b822e2aae149d3a43adc9f4b5775
3
+ size 12833675
exp/64/decoder-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b618d383af304cfae281dbf0a53e8bf442c2f0502256cd5694bd6567ebdd834
3
+ size 3486740
exp/64/decoder-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89be509a83175261695bdef5fd1c7b9ab1129a663d1284e7ba9f8507b21e0906
3
+ size 13877276
exp/64/encoder-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41a54ec051fd7110c96fa9933d406d1bc630da15ebc6f9e8bbda5da757597c83
3
+ size 42980804
exp/64/encoder-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3311a37b79690afa63f4fbdfe2a5f068bd293db0b8aff1112772400e51b0330c
3
+ size 88476275
exp/64/export-for-onnx.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES=""
4
+ set -ex
5
+
6
+ dir=./k2fsa-zipformer-bilingual-zh-en-t
7
+ if [ ! -f $dir/exp/epoch-99.pt ]; then
8
+ pushd $dir/exp
9
+ ln -s pretrained.pt epoch-99.pt
10
+ popd
11
+ fi
12
+
13
+ ./pruned_transducer_stateless7_streaming/export-onnx-zh.py \
14
+ --tokens $dir/data/lang_char_bpe/tokens.txt \
15
+ --use-averaged-model 0 \
16
+ --epoch 99 \
17
+ --avg 1 \
18
+ --exp-dir $dir/exp/ \
19
+ --decode-chunk-len 64 \
20
+ \
21
+ --num-encoder-layers 2,2,2,2,2 \
22
+ --feedforward-dims 768,768,768,768,768 \
23
+ --nhead 4,4,4,4,4 \
24
+ --encoder-dims 256,256,256,256,256 \
25
+ --attention-dims 192,192,192,192,192 \
26
+ --encoder-unmasked-dims 192,192,192,192,192 \
27
+ \
28
+ --zipformer-downsampling-factors "1,2,4,8,2" \
29
+ --cnn-module-kernels "31,31,31,31,31" \
30
+ --decoder-dim 512 \
31
+ --joiner-dim 512
exp/64/joiner-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdda356d6f9b8c2d7cee9ee0e26075fa537490f7fd06520be408d287073667b9
3
+ size 3228485
exp/64/joiner-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcbcf0cc1b449bc32b7777084ab5a65d1199b822e2aae149d3a43adc9f4b5775
3
+ size 12833675
exp/96/decoder-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b618d383af304cfae281dbf0a53e8bf442c2f0502256cd5694bd6567ebdd834
3
+ size 3486740
exp/96/decoder-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89be509a83175261695bdef5fd1c7b9ab1129a663d1284e7ba9f8507b21e0906
3
+ size 13877276
exp/96/encoder-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:909090f5df6874ea7be9aa76b57d5bb5b40d2ae1f7342cf7c3f6f0e14d0f8535
3
+ size 42980805
exp/96/encoder-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d53e858189c32678fd97dc40bf3a2dcf4acf462fd6530c265afecb6496156aef
3
+ size 88476276
exp/96/export-for-onnx.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES=""
4
+ set -ex
5
+
6
+ dir=./k2fsa-zipformer-bilingual-zh-en-t
7
+ if [ ! -f $dir/exp/epoch-99.pt ]; then
8
+ pushd $dir/exp
9
+ ln -s pretrained.pt epoch-99.pt
10
+ popd
11
+ fi
12
+
13
+ ./pruned_transducer_stateless7_streaming/export-onnx-zh.py \
14
+ --tokens $dir/data/lang_char_bpe/tokens.txt \
15
+ --use-averaged-model 0 \
16
+ --epoch 99 \
17
+ --avg 1 \
18
+ --exp-dir $dir/exp/ \
19
+ --decode-chunk-len 96 \
20
+ \
21
+ --num-encoder-layers 2,2,2,2,2 \
22
+ --feedforward-dims 768,768,768,768,768 \
23
+ --nhead 4,4,4,4,4 \
24
+ --encoder-dims 256,256,256,256,256 \
25
+ --attention-dims 192,192,192,192,192 \
26
+ --encoder-unmasked-dims 192,192,192,192,192 \
27
+ \
28
+ --zipformer-downsampling-factors "1,2,4,8,2" \
29
+ --cnn-module-kernels "31,31,31,31,31" \
30
+ --decoder-dim 512 \
31
+ --joiner-dim 512
exp/96/joiner-epoch-99-avg-1.int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdda356d6f9b8c2d7cee9ee0e26075fa537490f7fd06520be408d287073667b9
3
+ size 3228485
exp/96/joiner-epoch-99-avg-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcbcf0cc1b449bc32b7777084ab5a65d1199b822e2aae149d3a43adc9f4b5775
3
+ size 12833675