Add SageMakerTrainer for model paralellism (#10122)

* Refactor things out of main train

* Store signature

* Add SageMakerTrainer

* Init + Copyright

* Address review comments
This commit is contained in:
Sylvain Gugger
2021-02-11 18:44:18 -05:00
committed by GitHub
parent b54cb0bd82
commit 31245775e5
5 changed files with 349 additions and 50 deletions

View File

@@ -637,6 +637,13 @@ class TrainingArguments:
else:
return ParallelMode.NOT_PARALLEL
@property
def place_model_on_device(self):
"""
Can be subclassed and overridden for some specific integrations.
"""
return True
def to_dict(self):
"""
Serializes this instance while replace `Enum` by their values (for JSON serialization support).