MCPcopy Index your code
hub / github.com/modelscope/modelscope / train

Method train

modelscope/trainers/base.py:72–79  ·  view source on GitHub ↗

Train (and evaluate) process Train process should be implemented for specific task or model, related parameters have been initialized in ``BaseTrainer.__init__`` and should be used in this function

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

70
71 @abstractmethod
72 def train(self, *args, **kwargs):
73 """ Train (and evaluate) process
74
75 Train process should be implemented for specific task or
76 model, related parameters have been initialized in
77 ``BaseTrainer.__init__`` and should be used in this function
78 """
79 pass
80
81 @abstractmethod
82 def evaluate(self, checkpoint_path: str, *args,

Calls

no outgoing calls