MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / get_effective_batch

Function get_effective_batch

bing_bert/deepspeed_train.py:71–75  ·  view source on GitHub ↗
(args, total)

Source from the content-addressed store, hash-verified

69 return (epoch, last_global_step, last_global_data_samples)
70
71def get_effective_batch(args, total):
72 if args.local_rank != -1:
73 return total//dist.get_world_size()//args.train_micro_batch_size_per_gpu//args.gradient_accumulation_steps//args.refresh_bucket_size
74 else:
75 return total//args.train_micro_batch_size_per_gpu//args.gradient_accumulation_steps//args.refresh_bucket_size
76
77
78def get_dataloader(args, dataset: Dataset, eval_set=False):

Callers 1

get_train_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected