Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adapter in streaming_forward #1560

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading