-
Notifications
You must be signed in to change notification settings - Fork 532
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
[Core] Allow override env for all task in dag #3623
Conversation
Co-authored-by: Romil Bhardwaj <[email protected]>
…o override-env-for-all-task-in-dag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @Michaelvll!
Also I noticed a typo: Line 35 in ea5aa50
--gpus instead of --gpu . Can we also include that fix in this PR?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Michaelvll! Ran some manual tests to check envvar behavior, lgtm.
mode: COPY | ||
|
||
setup: | | ||
cd ~ | ||
pip install tqdm tiktoken requests datasets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is not needed for training stage, but only for the data processing stage : )
Co-authored-by: Romil Bhardwaj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this feature @Michaelvll ! It looks good to me ;) I'm wondering if we need to clarify this semantic changes in the documentation, but we could do it in another PR as well. Maybe left an TODO or file an issue for this if we decided to delay it?
…/skypilot-org/skypilot into override-env-for-all-task-in-dag
This is required by #3611, as we should be able to propagate the secrets / envs across all the tasks, allowing
sky jobs launch gpt2-pipeline.yaml --env BUCKET_NAME=my-bucket-name
Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh