-
Notifications
You must be signed in to change notification settings - Fork 467
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
Accelerate scaler #2677
Accelerate scaler #2677
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@htahir1 not putting you to reviewers, but you might have what to add to this story. |
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 an accelerate integration or is this just part of our huggingface integration? I'm pretty sure you'll get accelerate already with the packages we have defined there?
return False | ||
|
||
|
||
def _is_valid_optional_arg(arg_type: Any) -> bool: |
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.
def _is_valid_optional_arg(arg_type: Any) -> bool: | |
def _is_valid_optional_arg(arg_type: Any) -> bool: | |
"""Check if the given argument type is a valid Optional type. | |
A valid Optional type is defined as a Union with two arguments, where: | |
- The first argument is either an allowed type or a valid collection type. | |
- The second argument is the NoneType. | |
Args: | |
arg_type: The type to check. | |
Returns: | |
True if the argument type is a valid Optional type, False otherwise. | |
""" |
Wow what a great idea. I havnt look to deep but what is the difference between this and step operators? |
Thx, IMO, going forward one can define a step which, for example, takes some slicing parameters and inside the step, some intense data processing is happening and instead of running it with step operator k8s or other, I say scale it using step operator k8s or other. |
The only reservation I have is that there are simply too many concepts in ZenML and this is a new one that I haven't really understood yet |
That's very valid, based on the feedback we saw. Do you feel that saying |
Closed in favor of #2746 |
Describe changes
This PR introduces the concept of Scalers, which can be passed into the steps' definitions to allow step run on some parallelization engine. Scalers included here:
accelerate run...
without any effort for rewriting the step (except the fact, that it should properly handle accelerate by itself, like save in the main process, etc.)Now I would like to gather some early feedback from you.
Examples
To be done still in this PR:
How this works in the wild: zenml-io/zenml-projects#102
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes