MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / __init__

Method __init__

trl/trl/trainer/callbacks.py:98–104  ·  view source on GitHub ↗
(
        self,
        ref_model: Union[PreTrainedModel, torch.nn.Module],
        accelerator: Optional[Accelerator],
    )

Source from the content-addressed store, hash-verified

96 """
97
98 def __init__(
99 self,
100 ref_model: Union[PreTrainedModel, torch.nn.Module],
101 accelerator: Optional[Accelerator],
102 ):
103 self.accelerator = accelerator
104 self.ref_model = ref_model
105
106 @staticmethod
107 def _sync_target_model(model, target_model, alpha):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected