Skip to content

Commit

Permalink
Fix adapter in streaming_forward (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoyang1998 authored Mar 21, 2024
1 parent 387833f commit bddc3fc
Show file tree
Hide file tree
Showing 3 changed files with 536 additions and 2 deletions.
6 changes: 4 additions & 2 deletions egs/librispeech/ASR/zipformer_adapter/export-onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
2. Export the model to ONNX
./zipformer/export-onnx.py \
./zipformer_adapter/export-onnx.py \
--tokens $repo/data/lang_bpe_500/tokens.txt \
--use-averaged-model 0 \
--epoch 99 \
--avg 1 \
--use-adapters 1 \
--adapter-dim 32 \
--exp-dir $repo/exp \
--num-encoder-layers "2,2,3,4,3,2" \
--downsampling-factor "1,2,4,8,4,2" \
Expand Down Expand Up @@ -131,7 +133,7 @@ def get_parser():
parser.add_argument(
"--exp-dir",
type=str,
default="zipformer/exp",
default="zipformer_adapter/exp",
help="""It specifies the directory where all training related
files, e.g., checkpoints, log, etc, are saved
""",
Expand Down
Loading

0 comments on commit bddc3fc

Please sign in to comment.