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

Allow shell evaluation on model definition #2909

Open
kyujin-cho opened this issue Oct 14, 2024 · 1 comment
Open

Allow shell evaluation on model definition #2909

kyujin-cho opened this issue Oct 14, 2024 · 1 comment
Milestone

Comments

@kyujin-cho
Copy link
Member

Main idea

As for now, Backend.AI only supports passing command line arguments on model definition's "command" directive. We can think of expanding the feature by switching under-the-hood implementation at the kernel runner to treat whole arguments passed as a shell command.

Alternative ideas

No response

Anything else?

No response

@achimnol
Copy link
Member

achimnol commented Oct 14, 2024

If you want to join the string pieces when the startup command is given as a list to pass the join result to a shell, use shlex.join().

@achimnol achimnol added this to the 24.12 milestone Oct 15, 2024
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