Deployment Options
Each deployment consists of:
- name: A descriptive name for your deployment
- market: The Solana address of the GPU market where your deployment will run
- timeout: Maximum execution time in minutes (60 = 60 minutes)
- replicas: Number of instances to run simultaneously
- strategy: Deployment strategy (
SIMPLEfor one-time execution, see strategies for more info) - job_definition: The container job definition specifying what to run (see the Job Definition)
json
{
"name": "Pytorch Jupyter Notebook",
"market": "CA5pMpqkYFKtme7K31pNB1s62X2SdhEv1nN9RdxKCpuQ", // NVIDIA 3090
"replicas": 1,
"timeout": 60, // minutes
"strategy": "SIMPLE",
"job_definition": {...}
}1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Full Example
Below is a full example of deployment that will spin up a Pytorch Jupyter Notebook daily at midnight.
json
{
"name": "Pytorch Jupyter Notebook",
"market": "CA5pMpqkYFKtme7K31pNB1s62X2SdhEv1nN9RdxKCpuQ",
"replicas": 1,
"timeout": 60, // minutes
"strategy": "SCHEDULED",
"schedule": "0 0 * * *", // daily at midnight
"job_definition": {
"ops": [
{
"id": "Pytorch",
"args": {
"cmd": [
"jupyter",
"lab",
"--ip=0.0.0.0",
"--port=8888",
"--no-browser",
"--allow-root",
"--ServerApp.token=''",
"--ServerApp.password=''"
],
"gpu": true,
"image": "docker.io/nosana/pytorch-jupyter:2.0.0",
"expose": 8888
},
"type": "container/run"
}
],
"meta": {
"trigger": "dashboard",
"system_requirements": {
"required_vram": 4
}
},
"type": "container",
"version": "0.1"
}
}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
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