Skip to content
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

Using torchx as a SDK #945

Open
juinquok opened this issue Aug 17, 2024 · 1 comment
Open

Using torchx as a SDK #945

juinquok opened this issue Aug 17, 2024 · 1 comment

Comments

@juinquok
Copy link

❓ Questions and Help

Please note that this issue tracker is not a help form and this issue will be closed.

Before submitting, please ensure you have gone through our
documentation.

Question

The examples on the documentation refer to using torchx via the cli implementation. I was wondering if there was any way that torchx can be used in a sdk format. For instance:

class MyCustomComponent

class MyScheduler

runner = torchx.runner()
runner.with_scheduler(MyScheduler())
runner.run_component(MyCustomComponent())

If its possible, is there any documentation or a sample project that provides an example of how this can be used, in particular using a custom scheduler and component?

Thank You!

@tonykao8080
Copy link
Contributor

Please refer to https://pytorch.org/torchx/latest/runner.html#torchx-runner for example of calling Torchx runner in python code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants