lablup / backend.ai

Backend.AI is a streamlined, container-based computing cluster platform that hosts popular computing/ML frameworks and diverse programming languages, with pluggable heterogeneous accelerator support including CUDA GPU, ROCm GPU, TPU, IPU and other NPUs.
https://www.backend.ai
GNU Lesser General Public License v3.0
519 stars 153 forks source link

Refactor `run` command to be a combination of `start` and `exec` commands #422

Open fregataa opened 2 years ago

fregataa commented 2 years ago

Is your feature request related to a problem? Please describe. client-py has 2 short-cut commands run and start, which can create new session. Since run command is a legacy, it has arbitrary or outdated option names such as mode or type - they both has a same choice named batch.-

Describe the solution you'd like implement execute command and change run command into a combination of start and execute.

Additional context run command was implemented to execute python codes. The code can be sent through API by string format or through uploading a file.

achimnol commented 2 years ago

This should be rather a refactoring of the run command and a follow-up of #283.

achimnol commented 2 years ago

Let's rename the existing run command to run-legacy, and write the new run() using start and exec combinations from a clean slate.