Skip to content

Change num egs for combination in chain training script #4932

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

curly1
Copy link

@curly1 curly1 commented Aug 29, 2024

Allowing increasingly smaller minibatch sizes when combining models helps to avoid a crash when there isn't enough data to form one minibatch.

@@ -593,7 +593,7 @@ def train(args, run_opts):
chain_lib.combine_models(
dir=args.dir, num_iters=num_iters,
models_to_combine=models_to_combine,
num_chunk_per_minibatch_str=args.num_chunk_per_minibatch,
num_chunk_per_minibatch_str="1:64",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the right fix IMO would be to change this from the calling script by setting the option. This change causes it to ignore the option, and I'm concerned it would affect existing scripts where the option is used.

Copy link

stale bot commented Apr 26, 2025

This issue has been automatically marked as stale by a bot solely because it has not had recent activity. Please add any comment (simply 'ping' is enough) to prevent the issue from being closed for 60 more days if you believe it should be kept open.

@stale stale bot added the stale Stale bot on the loose label Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale bot on the loose
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants