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 the batch_idx_train mismatch for model averaging #1757

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

zzasdf
Copy link
Contributor

@zzasdf zzasdf commented Sep 26, 2024

The batch_idx_train save in epoch-*.pt may be different from the batch_idx_train when the model_avg is update. This may cause instability in the decode results, especially when params.avg is small and the train step for an epoch is not very large

@yfyeung yfyeung changed the title fix the batch_idx_train mismatch in checkpoint.py Fix the batch_idx_train mismatch for model averaging Oct 9, 2024
@yfyeung
Copy link
Collaborator

yfyeung commented Oct 12, 2024

This is exactly a bug when performing model averaging. Could you help to review this PR? @csukuangfj

@yaozengwei
Copy link
Collaborator

Thanks a lot!

@yaozengwei yaozengwei merged commit 2653df5 into k2-fsa:master Oct 12, 2024
76 of 108 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.

3 participants