MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / from_config

Method from_config

deepspeed/linear/context_manager.py:72–74  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

70 return _model_init(model)
71
72 def from_config(*args, **kwargs):
73 model = self._orig_causallm_config(*args, **kwargs)
74 return _model_init(model)
75
76 torch.nn.Linear = OptLinearWrapper
77 if transformers != None:

Callers 7

test_config_initMethod · 0.80
testMethod · 0.80
testMethod · 0.80
build_modelFunction · 0.80

Calls

no outgoing calls

Tested by 6

test_config_initMethod · 0.64
testMethod · 0.64
testMethod · 0.64