Syntax

onepanel jobs create [OPTIONS] '<command>'

Command

Command is any bash  compatible command.  Note that you can use && , ||  or ; to executed multiple commands. 

Options

--project  [required]
Project UID to run this job in

-m, --machine-type
 [required]
Machine type UID. Run onepanel machine-types list  for a list of UIDs.  

-e, --environment  [required]
Environment UID. Run onepanel environments list  for a list of UIDs.

-s, --storage  [required]
Volume type UID. Run onepanel volume-types list  for a list of UIDs.  

-c, --code-repository
Repository and branch to pull code from. If this is omitted, the code in current working directory is used to run the job.
Format: url=<git-repo-url>[,branch=<branch>]
Example: url=https://github.com/tensorflow/examples.git,branch=master 

-d, --data
Datasets to mount.
Format: source=<account>/<dataset>[,version=<version>,destination=<mount-directory>]  where version  and destination  are optional
Example: source=onepanel/mnist,version=3,destination=mnist
Tip: You can mount multiple datasets by repeating the -d  option.

--account
Account UID of the account containing the project and job. This only needed if the project is in a different account than yours.

--help
Display help information for this command.

Examples

Create a job with code from current working directory

onepanel jobs create 'python pytorch-model.py' \
  -m gpu-8-52-1t4 \
  -e jupyter-py3-pytorch1.1.0 \
  -s ssd-50gb \
  --project my-project

Create a job with code from a git repository

onepanel jobs create 'python pytorch-model.py' \
  -c url=https://github.com/tensorflow/examples.git \
  -m gpu-8-52-1t4 \
  -e jupyter-py3-pytorch1.1.0 \
  -s ssd-50gb \
  --project my-project

Create a job and mount datasets

onepanel jobs create 'python pytorch-model.py' \
  -d source=onepanel/mit-cbcl-streetscenes, version=1,destination=streetscenes \
  -d source=onepanel/rgb-d-7scenes,version=1,destination=7scenes \
  -m gpu-8-52-1t4 \
  -e jupyter-py3-pytorch1.1.0 \
  -s ssd-50gb \
  --project my-project
Did this answer your question?