Upload jobs/process/TrainFineTuneProcess.py with huggingface_hub
Browse files
jobs/process/TrainFineTuneProcess.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import OrderedDict
|
| 2 |
+
from jobs import TrainJob
|
| 3 |
+
from jobs.process import BaseTrainProcess
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class TrainFineTuneProcess(BaseTrainProcess):
|
| 7 |
+
def __init__(self,process_id: int, job: TrainJob, config: OrderedDict):
|
| 8 |
+
super().__init__(process_id, job, config)
|
| 9 |
+
|
| 10 |
+
def run(self):
|
| 11 |
+
# implement in child class
|
| 12 |
+
# be sure to call super().run() first
|
| 13 |
+
pass
|