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

Method __new__

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

Source from the content-addressed store, hash-verified

57 _quant_config = self.quant_config
58
59 def __new__(self, *args, **kwargs):
60 self._lora_config.delay_lora_init = True
61 kwargs['lora_config'] = self._lora_config
62 kwargs['quantization_config'] = self._quant_config
63 kwargs['linear_cls'] = self._orig_nn_linear
64 return OptimizedLinear(*args, **kwargs)
65
66 def _model_init(model):
67 if self.lora_config != None:

Callers

nothing calls this directly

Calls 1

OptimizedLinearClass · 0.85

Tested by

no test coverage detected