I want to run Horovod for distributed training on top of Airflow. What are steps needed…
- User
I want to run Horovod for distributed training on top of Airflow. What are steps needed to achieve so? We are running workload on Kubernetes on GCP, workload binary is built with bazel.
Assistant
I’m afraid I don’t have much experience with Horovod, but here are a few steps you might take:
-
Install Horovod.
-
Create a new airflow task for the horovod job. You will need to provide a python file that will be run as the task, and specify the python file in the task.
-
Set up your horovod job in the task python file. To do this, you’ll need to import horovod and create a HorovodRunner object, which you can then use to launch your job. You can find more information about horovod in the horovod documentation.
-
Run the horovod job on your Kubernetes cluster. You will need to create a Kubernetes job for the horovod job, and specify the horovod job in the job.
-
After the horovod job has completed, you can check the output of the horovod job to see if it was successful. The output of the horovod job will be a file with a .log extension. You can
-
- User
continue (include the last unfinished line)
Assistant
After the horovod job has completed, you can check the output of the horovod job to see if it was successful. The output of the horovod job will be a file with a .log extension. You can find more information about horovod in the horovod documentation.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.