Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run a bash script instead of a Python script in clearml-agent? #205

Open
konstantinator opened this issue May 22, 2024 · 1 comment

Comments

@konstantinator
Copy link

I've noticed that with clearml, I can only run Python scripts, which is not very convenient for me. I would like to run Python scripts through bash using accelerate (for training on multiple GPUs). Currently, I have to launch the bash script through Python code, like this:

import os
os.system('./hello.sh')

The sh script (hello.sh) itself looks something like this:

CUDA_VISIBLE_DEVICES=0,1 \
accelerate launch --config_file config.yaml hello.py --arg_1 2 --arg_2 file.csv

This solution seems like a workaround. Is there a more proper approach?

@jkhenning
Copy link
Member

Hi @konstantinator , thanks for the input!
This is currently the way to do that.
We'll add an option to run bash scripts in future versions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants