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

Method from_pretrained

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

Source from the content-addressed store, hash-verified

66
67 # ensures non-lora params are frozen and lora weights are initialized
68 def from_pretrained(*args, **kwargs):
69 model = self._orig_causallm_pretrained(*args, **kwargs)
70 return _model_init(model)
71
72 def from_config(*args, **kwargs):
73 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