Skip to content

Commit

Permalink
skipping batch counts hurts performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 29, 2024
1 parent d4b6cb0 commit 1b89c6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion egs/librispeech/SSL/hubert/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_adjusted_batch_count(params: AttributeDict) -> float:
* params.accum_grad
* (params.max_duration * params.world_size)
/ params.ref_duration
) + 100000
)


def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
Expand Down
2 changes: 1 addition & 1 deletion egs/librispeech/SSL/hubert/finetune_ce.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_adjusted_batch_count(params: AttributeDict) -> float:
* params.accum_grad
* (params.max_duration * params.world_size)
/ params.ref_duration
) + 100000
)


def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
Expand Down
2 changes: 1 addition & 1 deletion egs/librispeech/SSL/zipformer/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_adjusted_batch_count(params: AttributeDict) -> float:
* params.accum_grad
* (params.max_duration * params.world_size)
/ params.ref_duration
) + 100000
)


def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
Expand Down
2 changes: 1 addition & 1 deletion egs/librispeech/SSL/zipformer_ctc/finetune_ctc.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_adjusted_batch_count(params: AttributeDict) -> float:
* params.accum_grad
* (params.max_duration * params.world_size)
/ params.ref_duration
) + 100000
)


def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
Expand Down

0 comments on commit 1b89c6d

Please sign in to comment.