skip to Main Content

I am currently running code on amazon sagemaker jupyter notebook (not jupyterLab, just a plain jupyter notebook) on the ‘ml.t3.2xlarge’ instance. There is one line of code shown below, where I am simply deploying an LLM on my data frame. But because the data frame is huge, the line of code runs very slowly on ‘ml.t3.2xlarge’. I want to ensure that this line of code is run on ‘ml.p3.2xlarge’ and the result is stored back in S3.

df_new['predicted_values'] = df_original.progress_apply(lambda x: LLM_pretrained_model.predict( x['comment_body'] )

How can I run this one cell in another instance?

2

Answers


  1. Chosen as BEST ANSWER

    I figured that the solution is to create a processing job - but that is a whole another thing by itself :(


Please signup or login to give your own answer.
Back To Top
Search