MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / __init__

Method __init__

trainer/base_trainer.py:324–326  ·  view source on GitHub ↗
(self, model, optimizer=None)

Source from the content-addressed store, hash-verified

322 """
323
324 def __init__(self, model, optimizer=None):
325 self.model = model
326 self.optimizer = optimizer
327
328 def state_dict(self):
329 # this line automatically manages FSDP FQN's, as well as sets the default state dict type to FSDP.SHARDED_STATE_DICT

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected