You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(bugfix)(torchx/runner) properly remove TORCHX_ prefix from env var before setting scheduler_params
Summary:
kwargs to `create_scheduler()` scheduler factory method can be specified via the env var `TORCHX_{ARGUMENT_NAME}=arg_value`.
For example: `TORCHX_TIER=prod` would call the factory method as `create_scheduler(session_name, tier="prod")`.
Python's `str.strip("torchx_")` doesn't remove the prefix `torchx_` but rather strips any characters `t`, `o`, `r`, `c`, `h`, `x`, `_` from the front and back of the string.
Change to using `str.removeprefix("torchx_")` which does what we intended it to.
Reviewed By: ethanbwaite
Differential Revision: D79473894
0 commit comments