Solved by philschmid in post #3 
              
              
                Hello @vng510, 
you can still use the sagemaker classes in your lambda functions. 

HuggingFaceModel.transformer.transform() accepts a parameter called wait which defines wether the call should wait until the job completes. 
So when you add HuggingFaceModel.transformer.transform(wait=False) it will …