-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lmn.json5
152 lines (149 loc) · 5.93 KB
/
.lmn.json5
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"project": {
"name": "awesome_project",
"exclude": ["*.mp4", ".git", ".venv", "wandb", "__pycache__"], // Exclude files from rsync
},
"machines": {
/* Activate conda environment and run a script */
"birch": {
// Host information
"host": "birch.ttic.edu",
"user": "takuma",
// Rsync target directory (on the remote host)
"root_dir": "/scratch/takuma/lmn",
// Mode: ["ssh", "docker", "slurm", "pbs", "slurm-sing", "pbs-sing"]
"mode": "ssh",
// A startup command to run
"startup": "conda activate my_env",
},
/* Use docker */
"elm": {
// Host information
"host": "elm.ttic.edu",
"user": "takuma",
// Rsync target directory (on the remote host)
"root_dir": "/scratch/takuma/lmn",
// Mode: ["ssh", "docker", "slurm", "pbs", "slurm-sing", "pbs-sing"]
"mode": "docker",
// Docker configurations
"docker": {
"image": "ripl/my_env:latest",
"network": "host",
// Mount configurations (host -> container)
"mount_from_host": {
"/ripl/data/lmn-example/project": "/project",
"/dev/shm": "/dev/shm",
},
},
},
/* Run a script in a conda environment with Slurm scheduler */
"tticslurm": {
// Host information
"host": "slurm.ttic.edu",
"user": "takuma",
// Rsync target directory (on the remote host)
"root_dir": "/share/data/ripl/lmn",
// Mode: ["ssh", "docker", "slurm", "pbs", "slurm-sing", "pbs-sing"]
"mode": "slurm",
// A startup command to run
"startup": "conda activate my_env",
// Slurm configuration
"slurm": {
"partition": "contrib-gpu",
"cpus_per_task": 1,
"time": "04:00:00",
"output": "slurm-%j.out.log",
"error": "slurm-%j.error.log",
"exclude": "gpu0,gpu18",
}
},
/* Use Slurm scheduler with Singularity*/
"tticslurm-sing": {
// Host information
"host": "slurm.ttic.edu",
"user": "takuma",
// Rsync target directory (on the remote host)
"root_dir": "/share/data/ripl/lmn",
// Mode: ["ssh", "docker", "slurm", "pbs", "slurm-sing", "pbs-sing"]
"mode": "slurm-sing",
// Singularity configurations
"singularity": {
"sif_file": "/share/data/ripl/lmn-example/singularity/my_env.sif", // Path on the remote host
"writable_tmpfs": true,
"startup": "ldconfig /.singularity.d/libs", // Command to run after starting up the container
"mount_from_host": {
"/share/data/ripl/lmn-example/project": "/project",
},
// tticslurm specific config
"env_from_host": ["CUDA_VISIBLE_DEVICES"],
},
// Slurm configuration
"slurm": {
"partition": "contrib-gpu",
"cpus_per_task": 1,
"time": "04:00:00",
"output": "slurm-%j.out.log",
"error": "slurm-%j.error.log",
"exclude": "gpu0,gpu18",
}
},
"polaris-pbs": {
// Host information
"host": "polaris.alcf.anl.gov",
"user": "tyoneda",
// Rsync target directory (on the remote host)
"root_dir": "/grand/projects/SuperBERT/takuma/lmn",
// Mode: ["ssh", "docker", "slurm", "pbs", "slurm-sing", "pbs-sing"]
"mode": "pbs",
// PBS configuration
"pbs": {
"account": "SuperBERT",
"queue": "debug",
"filesystems": "home:grand",
"select": 1,
"place": "free",
"walltime": "01:00:00",
},
// Startup command
"startup": [
"export http_proxy='http://proxy-01.pub.alcf.anl.gov:3128'",
"export https_proxy='http://proxy-01.pub.alcf.anl.gov:3128'",
"export ftp_proxy='http://proxy-01.pub.alcf.anl.gov:3128'",
],
},
"polaris-pbs-sing": {
// Host information
"host": "polaris.alcf.anl.gov",
"user": "tyoneda",
// Rsync target directory (on the remote host)
"root_dir": "/grand/projects/SuperBERT/takuma/lmn",
// Mode: ["ssh", "docker", "slurm", "pbs", "slurm-sing", "pbs-sing"]
"mode": "pbs-sing",
// Singularity configurations
"singularity": {
"sif_file": "/grand/projects/SuperBERT/takuma/lmn-example/singularity/my_env.sif", // Path on the remote host
"writable_tmpfs": true,
// "startup": "ldconfig /.singularity.d/libs", // Command to run after starting up the container
"mount_from_host": {
"/grand/projects/SuperBERT/takuma/lmn-example/project": "/project",
}
},
// PBS configuration
"pbs": {
"account": "SuperBERT",
"queue": "debug",
"filesystems": "home:grand",
"select": 1,
"place": "free",
"walltime": "01:00:00",
},
// Startup commands
"startup": [
"export http_proxy='http://proxy-01.pub.alcf.anl.gov:3128'",
"export https_proxy='http://proxy-01.pub.alcf.anl.gov:3128'",
"export ftp_proxy='http://proxy-01.pub.alcf.anl.gov:3128'",
"module load singularity",
]
}
}
}