We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43d9e54 commit 647fcbdCopy full SHA for 647fcbd
src/slam_llm/utils/deepspeed_utils.py
@@ -107,7 +107,7 @@ def decorated_main(cfg_passthrough: Optional[DictConfig] = None) -> Any:
107
108
return main_decorator
109
110
-def slam_join(group_join):
+def deepspeed_join(group_join):
111
"""
112
Copy from wenet:https://github.com/wenet-e2e/wenet/blob/main/wenet/utils/executor.py#L64
113
@@ -204,6 +204,8 @@ def train(
204
else:
205
pbar = tqdm(colour="blue", desc=f"Training Epoch: {epoch+1}", dynamic_ncols=True)
206
for step, batch in enumerate(train_dataloader):
207
+ if train_config.batching_strategy == "dynamic" and deepspeed_join(group_join):
208
+ break
209
for key in batch.keys():
210
batch[key] = (
211
batch[key].to(local_rank).half()
0 commit comments