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

Method from_pretrained

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

Source from the content-addressed store, hash-verified

71
72 # ensures non-lora params are frozen and lora weights are initialized
73 def from_pretrained(*args, **kwargs):
74 model = self._orig_causallm_pretrained(*args, **kwargs)
75 return _model_init(model)
76
77 def from_config(*args, **kwargs):
78 model = self._orig_causallm_config(*args, **kwargs)

Callers 15

test_pretrained_initMethod · 0.80
test_config_initMethod · 0.80
runMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_pretrained_initMethod · 0.64
test_config_initMethod · 0.64
runMethod · 0.64
testMethod · 0.64
testMethod · 0.64
testMethod · 0.64