Spot instances with Sagemaker batch transform?

Is it possible to use spot instances for batch transform? Don’t see in either of these places

https://sagemaker.readthedocs.io/en/stable/frameworks/huggingface/sagemaker.huggingface.html
ht tp s://sagemaker.readthedocs.io/en/stable/api/inference/transformer.html

Trying to pass “use_spot_instances=True” to either the HuggingFaceModel, HuggingFaceModel.transformer or HuggingFaceModel.transformer.transform() gives an error. I am using this notebook as an example.

THanks

not possible today. If you want to use Spot for inference, you can write inference code as a custom python script and run inference in the Training API / HuggingFace Estimator :slight_smile:

2 Likes