MCPcopy Index your code
hub / github.com/THUDM/GLM / apply

Method apply

configure_data.py:103–107  ·  view source on GitHub ↗
(self, args, tokenizer)

Source from the content-addressed store, hash-verified

101 self.defaults = defaults
102
103 def apply(self, args, tokenizer):
104 if torch.distributed.get_rank() == 0:
105 print('configuring data')
106 self.apply_defaults(args)
107 return make_loaders(args, tokenizer)
108
109 def set_defaults(self, **kwargs):
110 for k, v in kwargs.items():

Callers 15

get_train_val_test_dataFunction · 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
checkpointFunction · 0.80

Calls 2

apply_defaultsMethod · 0.95
make_loadersFunction · 0.85

Tested by

no test coverage detected