Recipes
ESM2Recipes
Bases: BaseModel
Pre-baked recipes for ESM2.
THIS PYDANTIC MODEL IS NOT MEANT FOR SERIALIZATION. Only used to facilitate argparse. Each recipe should take args
as the only argument. We use partials so we can provide this information at runtime. Add new recipes to this model.
Source code in bionemo/esm2/run/recipes.py
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 |
|
default_adam_optimizer_with_cosine_annealing_recipe(max_steps=None)
Default optimizer scheduler config for ESM2.
Source code in bionemo/esm2/run/recipes.py
291 292 293 |
|
esm2_3b_experiment_config(result_dir)
Experiment config for ESM2 650m.
Source code in bionemo/esm2/run/recipes.py
244 245 246 247 248 249 250 251 252 |
|
esm2_3b_model_config(initial_ckpt_path=None)
Model config for ESM2 3b.
Source code in bionemo/esm2/run/recipes.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
|
esm2_3b_parallel_config()
Parallel config for ESM2 3b.
Source code in bionemo/esm2/run/recipes.py
200 201 202 203 204 205 206 207 208 209 210 |
|
esm2_3b_recipe(args)
Recipe for ESM2 3b.
Source code in bionemo/esm2/run/recipes.py
255 256 257 258 259 260 261 262 263 264 265 |
|
esm2_3b_wandb_config()
Wandb config for ESM2 3b.
Source code in bionemo/esm2/run/recipes.py
230 231 232 233 234 235 236 237 238 239 240 241 |
|
esm2_650m_experiment_config(result_dir)
Experiment config for ESM2 650m.
Source code in bionemo/esm2/run/recipes.py
176 177 178 179 180 181 182 183 184 |
|
esm2_650m_model_config(initial_ckpt_path=None)
Model config for ESM2 650m.
Source code in bionemo/esm2/run/recipes.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
esm2_650m_recipe(args)
Recipe for ESM2 650m.
Source code in bionemo/esm2/run/recipes.py
187 188 189 190 191 192 193 194 195 196 197 |
|
esm2_650m_wandb_config()
Wandb config for ESM2 650m.
Source code in bionemo/esm2/run/recipes.py
162 163 164 165 166 167 168 169 170 171 172 173 |
|
esm2_8m_experiment_config(result_dir)
Experiment config for ESM2 8m.
Source code in bionemo/esm2/run/recipes.py
105 106 107 108 109 110 111 112 |
|
esm2_8m_model_config(initial_ckpt_path=None)
Model config for ESM2 8m.
Source code in bionemo/esm2/run/recipes.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
esm2_8m_recipe(args)
Recipe for ESM2 8m.
Source code in bionemo/esm2/run/recipes.py
132 133 134 135 136 137 138 139 140 141 142 |
|
esm2_8m_wandb_config()
Wandb config for ESM2 8m.
Source code in bionemo/esm2/run/recipes.py
90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
esm2_base_data_config(args)
Base data config for ESM2.
Source code in bionemo/esm2/run/recipes.py
75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
esm2_base_optimizer_scheduler_config(max_steps=None)
Base optimizer scheduler config for ESM2.
Source code in bionemo/esm2/run/recipes.py
50 51 52 53 54 55 56 57 58 59 60 |
|
esm2_base_parallel_config()
Base parallel config for ESM2.
Source code in bionemo/esm2/run/recipes.py
63 64 65 66 67 68 69 70 71 72 |
|
esm2_base_training_config(max_steps=500000)
Base training config for ESM2.
Source code in bionemo/esm2/run/recipes.py
39 40 41 42 43 44 45 46 47 |
|
esm2_tiny_model_config(seq_length=2048, precision='bf16-mixed', nemo1_init_path=None, initial_ckpt_path=None, biobert_spec_option=BiobertSpecOption.esm2_bert_layer_with_transformer_engine_spec, variable_seq_lengths=False)
Model config for ESM2 tiny, used for testing.
Source code in bionemo/esm2/run/recipes.py
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 |
|
esm2_tiny_test_recipe(args)
Test recipe for ESM2 tiny, used for testing.
Source code in bionemo/esm2/run/recipes.py
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 367 368 369 370 371 372 373 374 375 376 377 |
|
experiment_config_recipe(result_dir='./results')
Experiment config for ESM2.
Source code in bionemo/esm2/run/recipes.py
296 297 298 299 300 301 302 303 304 305 306 307 |
|
simple_parallel_recipe(tensor_model_parallel_size=1, pipeline_model_parallel_size=1, num_devices=1, accumulate_grad_batches=1)
Simple parallel recipe for ESM2.
Source code in bionemo/esm2/run/recipes.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
|
tiny_train_config_recipe()
Tiny training config for ESM2.
Source code in bionemo/esm2/run/recipes.py
286 287 288 |
|