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

Add a helper function get_executor for retrieving executors from NEMORUN_HOME #105

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

Conversation

hemildesai
Copy link
Collaborator

Similar to workspace.py, but specifically for executors.

Example executors.py

import nemo_run as run

EXECUTOR_MAP = {
    "local": run.LocalExecutor()
}

Usage:

run.get_executor("local")

@marcromeyn
Copy link
Collaborator

What's the advantage over workspace.py? Could we combine the 2 somehow?

@hemildesai
Copy link
Collaborator Author

hemildesai commented Nov 14, 2024

What's the advantage over workspace.py? Could we combine the 2 somehow?

This is specifically for executors. It can be used with/without CLI as per the user requirements. Maybe we can separate workspace.py into factories.py and executors.py to make it consistent across CLI/non-CLI.

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

Successfully merging this pull request may close these issues.

2 participants