File size: 7,208 Bytes
76d9c4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
title: vessl experiment
version: EN
---

### Overview

Run `vessl experiment --help` to view the list of commands, `vessl experiment [COMMAND] -help` to view individual command instructions.

### Create an experiment

```
vessl experiment create [OPTIONS]
```

| Option                                | Description                                                                                                                                                |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-c`, `--cluster`                     | Cluster name (must be specified before other options)                                                                                                      |
| `-x`, `--command`                     | Start command to execute in experiment container                                                                                                           |
| `-r`, `--resource`                    | Resource type to run an experiment (for managed cluster only)                                                                                              |
| `--processor-type`                    | `CPU` or `GPU` (for custom cluster only)                                                                                                                   |
| `--cpu-limit`                         | Number of vCPUs (for custom cluster only)                                                                                                                  |
| `--memory-limit`                      | Memory limit in GiB (for custom cluster only)                                                                                                              |
| `--gpu-type`                          | <p>GPU type (for custom cluster only)</p><p>ex. <code>Tesla-K80</code></p>                                                                                 |
| `--gpu-limit`                         | Number of GPU cores (for custom cluster only)                                                                                                              |
| `--image-url`                         | Kernel docker image URL.                                                                                                                                   |
| `--upload-local-file` _(multiple)_    | <p>Upload local file. Format: [local_path] or [local_path]:[remote_path].</p><p>ex. <code>--upload-local-file my-project:/root/my-project</code></p> |
| `--upload-local-git-diff`             | Upload local git commit hash and diff (only works in project repositories)                                                                                 |
| `-i`, `--image-url`                   | <p>Kernel docker image URL</p><p>ex. <code>vessl/kernels:py36.full-cpu</code></p>                                                                          |
| `-m`, `--message`                     | Message                                                                                                                                                    |
| `--termination-protection`            | Enable termination protection                                                                                                                              |
| `-h`, `--hyperparameter` (_multiple_) | <p>Hyperparameters in the form of <code>[key]=[value]</code></p><p>ex.  <code>-h lr=0.01 -h epochs=100</code></p>                                          |
| `--dataset` (_multiple_)              | <p>Dataset mounts in the form of <code>[mount_path] [dataset_name]</code></p><p>ex. <code>--dataset /input mnist</code></p>                                |
| `--root-volume-size`                  | Root volume size (defaults to `20Gi`)                                                                                                                      |
| `--working-dir`                       | Working directory path (defaults to `/root/`)                                                                                                        |
| `--output-dir`                        | Output directory path (defaults to `/output`                                                                                                               |
| `--local-project`                     | Local project file URL                                                                                                                                     |
| `--worker-count`                      | Number of workers (for distributed experiment only)                                                                                                        |
| `--framework-type`                    | Specify `pytorch` or `tensorflow`(for distributed experiment only)                                                                                         |

### Download experiment output files

Each user can define experiment output files. You can save validation results, trained checkpoints, best performing models and other artifacts.

```
vessl experiment download-output [OPTIONS] NUMBER
```

| Argument | Description       |
|----------|-------------------|
| `NUMBER` | Experiment number |

| Option            | Description                                     |
| ----------------- | ----------------------------------------------- |
| `-p`, `--path`    | Local download path (defaults to`./output`)     |
| `--worker-number` | Worker number (for distributed experiment only) |

### List all experiments

```
vessl experiment list
```

### List experiment output files

Each user can define experiment output files. You can save validation results, trained checkpoints, best models, and other artifacts.

```
vessl experiment list-output [OPTIONS] NUMBER
```

| Argument | Description       |
| -------- |-------------------|
| `NUMBER`   | Experiment number |

| Option              | Description                                     |
| ------------------- | ----------------------------------------------- |
| `-r`, `--recursive` | List files recursively                          |
| `--worker-number`   | Worker number (for distributed experiment only) |



### View logs of the experiment container

```
vessl experiment logs [OPTIONS] NUMBER
```

| Argument | Description     |
| -------- | --------------- |
| `NUMBER`   | Experiment number |

| Option            | Description                                               |
| ----------------- | --------------------------------------------------------- |
| `--tail`          | Number of lines to display from the end (defaults to 200) |
| `--worker-number` | Worker number (for distributed experiment only)           |



### View information on the experiment

```
vessl experiment read NUMBER
```

| Argument | Description     |
| -------- | --------------- |
| `NUMBER`   | Experiment number |

### Terminate an experiment

```
vessl experiment terminate NUMBER
```

| Argument | Description     |
| -------- | --------------- |
| `NUMBER`   | Experiment number |