Hello @vng510,
you can still use the sagemaker classes in your lambda functions.



 vng510:


HuggingFaceModel()
HuggingFaceModel.transformer()
HuggingFaceModel.transfomer.transform()



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 create the Batch Job but doesn’t wait for anything.
https://sagemaker.readthedocs.io/en/stable/api/inference/transformer.html#sagemaker.transformer.Transformer.transform 1