-
Notifications
You must be signed in to change notification settings - Fork 129
feat: list all registered schedulers (#1009) #1050
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
base: main
Are you sure you want to change the base?
Conversation
could you provide more context to what you want to achieve with this? |
All the details are in the linked #1009, @kiukchung. Please let me know if more details are needed there. |
Hi @clumsy thanks for the pointer. Could you describe your use-case in wanting the list of supported schedulers offered to your users to be dynamic? Usually torchx users want to control the schedulers they configure for their users. |
Sure, @kiukchung Take NeMo for example, NVidia ships it with all dependencies, including Unfortunately nemo-run unconditionally registers custom schedulers: https://github.com/NVIDIA/NeMo-Run/blob/main/pyproject.toml#L43-L48 Thus we cannot use It makes sense to have a feature to restrict the available schedulers, but does it have to be the default one? |
@clumsy ah that's an interesting edge-case. What you basically want is for One thing to note about We could do something like: If you're open to it, you can add support for prefixes in torchx/torchx/util/entrypoints.py Line 54 in 9120355
and make a change in There's some interesting cases regarding name conflicts and ordering (e.g. if nemo registers a scheduler with the same name as the one somewhere else what do you do?) |
A simple merge for the list of all registered schedulers.
Test plan:
[x] all existing tests should pass