MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / apply

Method apply

Megatron-LM/configure_data.py:30–34  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

28 self.defaults = defaults
29
30 def apply(self, args):
31 if torch.distributed.get_rank() == 0:
32 print('configuring data')
33 self.apply_defaults(args)
34 return make_loaders(args)
35
36 def set_defaults(self, **kwargs):
37 for k, v in kwargs.items():

Callers 15

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 2

apply_defaultsMethod · 0.95
make_loadersFunction · 0.85

Tested by

no test coverage detected