-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiffuse.yaml
More file actions
366 lines (358 loc) · 9.67 KB
/
diffuse.yaml
File metadata and controls
366 lines (358 loc) · 9.67 KB
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# diffuse.yaml -- the contract between WaterFlow and Diffuse.
#
# Apply with: diffuse apply
# Run with: diffuse run trigger --profile waterflow-train-gvp
#
# Idempotent -- safe to apply repeatedly.
version: 1
type: waterflow
name: WaterFlow
description: >
Protein water structure prediction via flow matching.
Predicts water molecule positions around proteins using
continuous normalizing flows with GVP, ESM, or SLAE encoders.
profiles:
- slug: waterflow-train-gvp
name: WaterFlow Train (GVP)
container:
image: diffuseproject/waterflow
tag: latest
gpus:
min: 1
entrypoint: null
input_schema:
inputs:
- key: encoder_type
type: enum
required: true
allowed_values: [gvp]
default: gvp
- key: epochs
type: number
default: 200
- key: batch_size
type: number
default: 4
- key: lr
type: number
default: 0.001
- key: scheduler
type: text
default: cosine
- key: warmup_steps
type: number
default: 500
- key: save_dir
type: text
default: /data/checkpoints
- key: num_workers
type: number
default: 4
- key: use_self_cond
type: boolean
default: true
- key: run_name
type: text
- key: train_list
type: text
default: /data/splits/train_list_0.95.txt
- key: val_list
type: text
default: /data/splits/valid_list_0.05.txt
run_config_defaults:
shared_memory_size: "16Gi"
runtime_class: nvidia
image_pull_policy: IfNotPresent
env:
WANDB_MODE: disabled
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
volumes:
- name: waterflow-data
hostPath: /data/waterflow
mountPath: /data
- name: pdb-data
hostPath: /mnt/diffuse-public/pdb_redo_data
mountPath: /data/pdb
readOnly: true
args_template:
base_command: [train]
flag_args:
encoder_type: --encoder_type
epochs: --epochs
batch_size: --batch_size
lr: --lr
train_list: --train_list
val_list: --val_list
scheduler: --scheduler
warmup_steps: --warmup_steps
save_dir: --save_dir
run_name: --run_name
num_workers: --num_workers
boolean_args:
use_self_cond: --use_self_cond
static_args: [--base_pdb_dir, /data/pdb]
- slug: waterflow-train-esm
name: WaterFlow Train (ESM)
container:
image: diffuseproject/waterflow
tag: latest
gpus:
min: 1
entrypoint: null
input_schema:
inputs:
- key: encoder_type
type: enum
required: true
allowed_values: [esm]
default: esm
- key: epochs
type: number
default: 200
- key: batch_size
type: number
default: 4
- key: lr
type: number
default: 0.001
- key: scheduler
type: text
default: cosine
- key: warmup_steps
type: number
default: 500
- key: save_dir
type: text
default: /data/checkpoints
- key: num_workers
type: number
default: 4
- key: use_self_cond
type: boolean
default: true
- key: run_name
type: text
- key: train_list
type: text
default: /data/splits/train_list_0.95.txt
- key: val_list
type: text
default: /data/splits/valid_list_0.05.txt
run_config_defaults:
shared_memory_size: "16Gi"
runtime_class: nvidia
image_pull_policy: IfNotPresent
env:
WANDB_MODE: disabled
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
volumes:
- name: waterflow-data
hostPath: /data/waterflow
mountPath: /data
- name: pdb-data
hostPath: /mnt/diffuse-public/pdb_redo_data
mountPath: /data/pdb
readOnly: true
args_template:
base_command: [train]
flag_args:
encoder_type: --encoder_type
epochs: --epochs
batch_size: --batch_size
lr: --lr
train_list: --train_list
val_list: --val_list
scheduler: --scheduler
warmup_steps: --warmup_steps
save_dir: --save_dir
run_name: --run_name
num_workers: --num_workers
boolean_args:
use_self_cond: --use_self_cond
static_args: [--base_pdb_dir, /data/pdb]
- slug: waterflow-train-slae
name: WaterFlow Train (SLAE)
container:
image: diffuseproject/waterflow
tag: latest
gpus:
min: 1
entrypoint: null
input_schema:
inputs:
- key: encoder_type
type: enum
required: true
allowed_values: [slae]
default: slae
- key: epochs
type: number
default: 200
- key: batch_size
type: number
default: 4
- key: lr
type: number
default: 0.001
- key: scheduler
type: text
default: cosine
- key: warmup_steps
type: number
default: 500
- key: save_dir
type: text
default: /data/checkpoints
- key: num_workers
type: number
default: 4
- key: use_self_cond
type: boolean
default: true
- key: run_name
type: text
- key: train_list
type: text
default: /data/splits/train_list_0.95.txt
- key: val_list
type: text
default: /data/splits/valid_list_0.05.txt
run_config_defaults:
shared_memory_size: "16Gi"
runtime_class: nvidia
image_pull_policy: IfNotPresent
env:
WANDB_MODE: disabled
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
volumes:
- name: waterflow-data
hostPath: /data/waterflow
mountPath: /data
- name: pdb-data
hostPath: /mnt/diffuse-public/pdb_redo_data
mountPath: /data/pdb
readOnly: true
args_template:
base_command: [train]
flag_args:
encoder_type: --encoder_type
epochs: --epochs
batch_size: --batch_size
lr: --lr
train_list: --train_list
val_list: --val_list
scheduler: --scheduler
warmup_steps: --warmup_steps
save_dir: --save_dir
run_name: --run_name
num_workers: --num_workers
boolean_args:
use_self_cond: --use_self_cond
static_args: [--base_pdb_dir, /data/pdb]
- slug: waterflow-inference
name: WaterFlow Inference
container:
image: diffuseproject/waterflow
tag: latest
gpus:
min: 1
entrypoint: null
input_schema:
inputs:
- key: run_dir
type: text
required: true
- key: num_steps
type: number
default: 100
- key: pdb_list
type: text
default: /data/splits/valid_list_0.05.txt
- key: method
type: text
default: rk4
- key: use_sc
type: boolean
default: true
run_config_defaults:
shared_memory_size: "16Gi"
runtime_class: nvidia
image_pull_policy: IfNotPresent
env:
WANDB_MODE: disabled
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
volumes:
- name: waterflow-data
hostPath: /data/waterflow
mountPath: /data
- name: pdb-data
hostPath: /mnt/diffuse-public/pdb_redo_data
mountPath: /data/pdb
readOnly: true
args_template:
base_command: [inference]
flag_args:
run_dir: --run_dir
pdb_list: --pdb_list
method: --method
num_steps: --num_steps
boolean_args:
use_sc: --use_sc
static_args: [--output_dir, /data/outputs, --base_pdb_dir, /data/pdb]
- slug: waterflow-generate-esm
name: WaterFlow Generate ESM Embeddings
container:
image: diffuseproject/waterflow
tag: latest
gpus:
min: 1
entrypoint: null
input_schema:
inputs:
- key: split_file
type: text
default: /data/splits/train_list_0.95.txt
run_config_defaults:
shared_memory_size: "16Gi"
runtime_class: nvidia
image_pull_policy: IfNotPresent
env:
WANDB_MODE: disabled
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
volumes:
- name: waterflow-data
hostPath: /data/waterflow
mountPath: /data
- name: pdb-data
hostPath: /mnt/diffuse-public/pdb_redo_data
mountPath: /data/pdb
readOnly: true
args_template:
base_command: [generate-esm]
flag_args:
split_file: --split_file
boolean_args: {}
static_args: [--cache_dir, /data/cache, --base_pdb_dir, /data/pdb]
fields:
- key: waterflow_encoder_type
type: enum
display_name: Encoder Type
allowed_values: [gvp, esm, slae]
required: true
- key: waterflow_epochs
type: number
display_name: Epochs
default: 200
- key: waterflow_batch_size
type: number
display_name: Batch Size
default: 4
- key: waterflow_learning_rate
type: number
display_name: Learning Rate
default: 0.001