mathewjacob1002 commented on code in PR #41770: URL: https://github.com/apache/spark/pull/41770#discussion_r1258816884
########## python/pyspark/ml/torch/deepspeed/deepspeed_distributor.py: ########## @@ -0,0 +1,144 @@ + +import json +import os +import sys +import tempfile +from typing import ( + Union, + Callable, + List, + Dict, + Optional, + Any, + Tuple, +) + +from pyspark.ml.torch.distributor import TorchDistributor + +class DeepspeedTorchDistributor(TorchDistributor): + + def __init__(self, num_gpus: int = 1, nnodes: int = 1, local_mode: bool = True, use_gpu: bool = True, deepspeed_config = None): Review Comment: done! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
