MCPcopy Create free account
hub / github.com/LargeWorldModel/LWM / __init__

Method __init__

lwm/data.py:70–75  ·  view source on GitHub ↗
(self, config, tokenizer)

Source from the content-addressed store, hash-verified

68 return config
69
70 def __init__(self, config, tokenizer):
71 self.config = self.get_default_config(config)
72 assert self.config.fields != '' or self.config.fields_from_example != '', (
73 'Either fields or fields_from_example must be specified.'
74 )
75 self.tokenizer = tokenizer
76
77 def __call__(self, example, has_aux=False, add_bos_token=True, add_eos_token=True):
78 if has_aux:

Callers

nothing calls this directly

Calls 1

get_default_configMethod · 0.95

Tested by

no test coverage detected