Sagemaker training instance

0

I have a doubt with choosing instance for training job in sagemaker. Is ml.m5.2xlarge with count as 2 and ml.m5.4xlarge are same ?

I would like to know if there is any best practice guide to choose the instance for training in sagemaker.

Thank you 🙂

2 réponses
0

Hello,

The question is quite broad since there will be multiple factors to consider.

Here is the pricing range provided. You can calculate the same and find out if using 2ml.m5.2xlarge with count as 2 OR ml.m5.4xlarge would be better for your use-case.

Pricing- https://aws.amazon.com/sagemaker/pricing/

You can refer to the training best practice #6 and find out what is the specification and which instance would you choose from Compute/Memory Optimized image or the Standard one.

Here is a 3rd party link provided that would could be helpful, however it is not verified by AWS and is based on the research that I found on the internet based on what to consider while choosing a training instance.

Link- https://datachef.co/blog/how-to-choose-the-best-training-instance-on-sagemaker/

profile pictureAWS
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans
  • Thank you for your responce.

    I tried optimization while performing a training job I used ml.m5.12xlarge which clearly underused the machine capacity. (Log : https://drive.google.com/file/d/1dhV8PQdLELho8o2dVWOhyatmBWNOLE8l/view?usp=sharing) When I used ml.c5.4xlarge this instance failed with the following error.

    Error : numpy.core._exceptions.MemoryError: Unable to allocate 5.19 GiB for an array with shape (83, 8398169) and data type float64

    So for this particular job, how would you choose the instance?

    Crunching ~6 GB data with data shape (83, 8398169) in CSV I'm not time bound No GPU is required as I'm performing SKLearn RFRegression

0

Hello, to help on the experimentation, you can create a pipeline and run multiple training jobs simultaneously with different instance configurations https://github.com/aws/amazon-sagemaker-examples/tree/main/sagemaker-pipeline-multi-model. Hope this helps!

AWS
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions