Step Operators
Executing individual steps in specialized environments.
Last updated
Was this helpful?
Executing individual steps in specialized environments.
Last updated
Was this helpful?
The step operator enables the execution of individual pipeline steps in specialized runtime environments that are optimized for certain workloads. These specialized environments can give your steps access to resources like GPUs or distributed processing frameworks like .
A step operator should be used if one or more steps of a pipeline require resources that are not available in the runtime environments provided by the . An example would be a step that trains a computer vision model and requires a GPU to run in a reasonable time, combined with a running on a Kubernetes cluster that does not contain any GPU nodes. In that case, it makes sense to include a step operator like , , or to execute the training step with a GPU.
Step operators to execute steps on one of the big cloud providers are provided by the following ZenML integrations:
azureml
azure
Uses AzureML to execute steps
kubernetes
kubernetes
Uses Kubernetes Pods to execute steps
modal
modal
Uses Modal to execute steps
sagemaker
aws
Uses SageMaker to execute steps
spark
spark
Uses Spark on Kubernetes to execute steps in a distributed manner
vertex
gcp
Uses Vertex AI to execute steps
custom
Extend the step operator abstraction and provide your own implementation
If you would like to see the available flavors of step operators, you can use the command:
You don't need to directly interact with any ZenML step operator in your code. As long as the step operator that you want to use is part of your active , you can simply specify it in the @step
decorator of your step.
If your steps require additional hardware resources, you can specify them on your steps as described .
Note that if you wish to use step operators to run steps on a GPU, you will need to follow to ensure that it works. It requires adding some extra settings customization and is essential to enable CUDA for the GPU to give its full acceleration.