Skip to content

(6/n - non-xlformers conda-on-mast mvp)(torchx/runner) Create //torchx/runner:lib_core with no plugin bundling #1084

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kiukchung
Copy link
Contributor

Summary:
See details in torchx-lite doc.

Creates a pure core library target for torchx.runner called //torchx/runner:lib_core.

Similar to D77394064 which creates //torchx/schedulers:lib_core

NOTE: I added a autodeps_redirect to //torchx/runner:lib from :lib_core. I've noticed that autodeps honors this in some cases but not in others (read IMPORTANT note below if you are finding that autodeps is removing :lib in favor of :lib_core)

IMPORTANT: If you wind up here because autodeps is removing //torchx/runner:lib in favor of //torchx/runner:lib_core, you have two options (see below). OPTION 2 is preferred since you'll only pull in what you need (not the entire universe of plugins).

OPTION 1. Add # manual tag to the existing //torchx/runner:lib

... 
  deps = [
   "//torchx/runner:lib_core", # <-- autodeps will still add this (which is OK)
    "//torchx/runner:lib", # manual
    ...
  ]
...

OPTION 2:
Accept the swap to //torchx/runner:lib_core and add any plugins that you need with # manual

... 
  deps = [
   "//torchx/runner:lib_core",
    "//torchx/schedulers/fb:mast_scheduler", # manual (mast scheduler plugin)
    ...
  ]
...

Reviewed By: highker

Differential Revision: D77400710

…x/runner:lib_core with no plugin bundling

Summary:
See details in [torchx-lite](https://docs.google.com/document/d/1Y_DzoRMAKhqbzE2LQDb7k3H5R-4PnkYdA9R4YLLFLk4/edit?tab=t.0#heading=h.unqedx38434n) doc.

Creates a pure core library target for `torchx.runner` called `//torchx/runner:lib_core`.

Similar to D77394064 which creates `//torchx/schedulers:lib_core`

NOTE: I added a `autodeps_redirect` to `//torchx/runner:lib` from `:lib_core`. I've noticed that autodeps honors this in some cases but not in others (read IMPORTANT note below if you are finding that autodeps is removing `:lib` in favor of `:lib_core`)

IMPORTANT: If you wind up here because autodeps is removing `//torchx/runner:lib` in favor of `//torchx/runner:lib_core`, you have two options (see below). OPTION 2 is preferred since you'll only pull in what you need (not the entire universe of plugins).
 
OPTION 1. Add `# manual` tag to the existing `//torchx/runner:lib` 
```
... 
  deps = [
   "//torchx/runner:lib_core", # <-- autodeps will still add this (which is OK)
    "//torchx/runner:lib", # manual
    ...
  ]
...
```

OPTION 2:
Accept the swap to `//torchx/runner:lib_core` and add any  plugins that you need with `# manual`

```
... 
  deps = [
   "//torchx/runner:lib_core",
    "//torchx/schedulers/fb:mast_scheduler", # manual (mast scheduler plugin)
    ...
  ]
...
```

Reviewed By: highker

Differential Revision: D77400710
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 27, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77400710

Copy link
Member

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

**get_scheduler_factories(),
**(
get_scheduler_factories(
group="torchx.schedulers.orchestrator", skip_defaults=True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a regression? or this isn't used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants