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

Conversation

marcoyang1998
Copy link
Collaborator

Fix for #1553.

@marcoyang1998
Copy link
Collaborator Author

To finetune a causal zipformer with adapter, just specify --causal 1 when using finetune.py.

The trained model can be exported using the following command (you can adjust the chunk size and left context when exporting the model):

./zipformer_adapter/export.py \
    --exp-dir ./zipformer_adapter/exp_causal1_giga_finetune1_adapters1_adapter_dim16 \
    --epoch 4 \
    --avg 1 \
    --use-averaged-model 1 \
    --chunk-size 16 \
    --left-context-frames 128 \
    --causal 1 \
    --tokens icefall-asr-librispeech-streaming-zipformer-2023-05-17/data/lang_bpe_500/tokens.txt \
    --use-adapters 1 \
    --adapter-dim 16 \
    --jit 1

@marcoyang1998 marcoyang1998 merged commit bddc3fc into k2-fsa:master Mar 21, 2024
142 of 143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant