Create
This command saves a new template for future use.
$ template create [TEMPLATE_NAME] --cpu [CPU] --memory [MEMORY_GB] [--gpu [GPU_FRAC]] [--gt] [--verbose]
You can see help on the create command by running template create --help
|
- TEMPLATE_NAME
-
Name for the template, string, required.
- CPU
-
Number of CPU cores, int, required. also
-c - MEMEORY_GB
-
Amount of memory, string of the form <amount>G where <amount> is int, required. also
-m - GPU_FRAC
-
Fractions of GPU memory, float bigger than zero, if no GPU is needed can be omitted or explictly set to 0, optional. also
-g - --gt
-
Use this flag to save the template for your group instead of for your user, optional.
- --verbose
-
For debugging purposes.
Examples
Create regular template
$ template create dev --cpu 1 --memory 1G --gpu 0.2 (1)
Saved command
| 1 | Saves a user template named "dev" with 1 CPU core, 1GB of memory and 20% of a GPU. |
Create group template
$ template create train -c 2 -m 2G -g 0.6 --gt (1)
Saved command
| 1 | Saves a group template named "train" with 2 CPU cores, 2GB of memory and 60% of a GPU. |
Create template without GPU
$ template create mytemp -c 4 -m 4G (1)
Saved command
| 1 | Saves a user template named "mytemp" with 4 CPU cores, 4GB of memory and no GPU. |