happy-wolf-7852
05/08/2024, 2:48 PM…
self.next(self.train_and_score_model, foreach='fold_number_list')
…
@step
def train_and_score_model(self):
…
@step
def join(self, inputs):
print("Rejoining from the folds.")
self.next(self.end)
I only realised that AWS batch works sequentially using a queue as far as I know. Curious, how can I run train_and_score_model in parallel for all folds in fold_number_list? Can I not utilise the several vCPUs as well in AWS batch as stated in the resources not available locally?
python Bla.py --with batch:cpu=16,memory=30720,queue=amazing_queue --environment=conda runvictorious-lawyer-58417
05/08/2024, 3:20 PMvictorious-lawyer-58417
05/08/2024, 3:21 PMhappy-wolf-7852
05/08/2024, 3:23 PMvictorious-lawyer-58417
05/08/2024, 3:29 PMhappy-wolf-7852
05/08/2024, 3:33 PM--max-workers 11
and I have 10 fold that ensure most likely parallelism?victorious-lawyer-58417
05/08/2024, 3:39 PMhappy-wolf-7852
05/08/2024, 3:40 PMhappy-wolf-7852
05/08/2024, 4:08 PMvictorious-lawyer-58417
05/08/2024, 4:21 PMpython bla.py --with batch:cpu=2,memory=3840,queue=xxx --environment=conda run --max-workers=11 --max-num-splits=11happy-wolf-7852
05/08/2024, 4:24 PM