配方
ESM2Recipes
基类: BaseModel
ESM2 的预制配方。
此 PYDANTIC 模型不用于序列化。仅用于方便 argparse。每个配方应将 `args` 作为唯一参数。我们使用 partials 以便在运行时提供此信息。向此模型添加新配方。
源代码位于 `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)
ESM2 的默认优化器调度器配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
291 292 293 |
|
esm2_3b_experiment_config(result_dir)
ESM2 650m 的实验配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
244 245 246 247 248 249 250 251 252 |
|
esm2_3b_model_config(initial_ckpt_path=None)
ESM2 3b 的模型配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
|
esm2_3b_parallel_config()
ESM2 3b 的并行配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
200 201 202 203 204 205 206 207 208 209 210 |
|
esm2_3b_recipe(args)
ESM2 3b 的配方。
源代码位于 `bionemo/esm2/run/recipes.py` 中
255 256 257 258 259 260 261 262 263 264 265 |
|
esm2_3b_wandb_config()
ESM2 3b 的 Wandb 配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
230 231 232 233 234 235 236 237 238 239 240 241 |
|
esm2_650m_experiment_config(result_dir)
ESM2 650m 的实验配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
176 177 178 179 180 181 182 183 184 |
|
esm2_650m_model_config(initial_ckpt_path=None)
ESM2 650m 的模型配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
esm2_650m_recipe(args)
ESM2 650m 的配方。
源代码位于 `bionemo/esm2/run/recipes.py` 中
187 188 189 190 191 192 193 194 195 196 197 |
|
esm2_650m_wandb_config()
ESM2 650m 的 Wandb 配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
162 163 164 165 166 167 168 169 170 171 172 173 |
|
esm2_8m_experiment_config(result_dir)
ESM2 8m 的实验配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
105 106 107 108 109 110 111 112 |
|
esm2_8m_model_config(initial_ckpt_path=None)
ESM2 8m 的模型配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
esm2_8m_recipe(args)
ESM2 8m 的配方。
源代码位于 `bionemo/esm2/run/recipes.py` 中
132 133 134 135 136 137 138 139 140 141 142 |
|
esm2_8m_wandb_config()
ESM2 8m 的 Wandb 配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
esm2_base_data_config(args)
ESM2 的基础数据配置。
源代码位于 `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)
ESM2 的基础优化器调度器配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
50 51 52 53 54 55 56 57 58 59 60 |
|
esm2_base_parallel_config()
ESM2 的基础并行配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
63 64 65 66 67 68 69 70 71 72 |
|
esm2_base_training_config(max_steps=500000)
ESM2 的基础训练配置。
源代码位于 `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)
ESM2 tiny 的模型配置,用于测试。
源代码位于 `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)
ESM2 tiny 的测试配方,用于测试。
源代码位于 `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')
ESM2 的实验配置。
源代码位于 `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)
ESM2 的简单并行配方。
源代码位于 `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()
ESM2 的微型训练配置。
源代码位于 `bionemo/esm2/run/recipes.py` 中
286 287 288 |
|