@@ -10,7 +10,15 @@ Model Loading
1010    For more details, please refer to
1111    `EngineBase  <https://github.com/rwth-i6/returnn/blob/master/returnn/engine/base.py >`_
1212    and also check
13-     :class: `CustomCheckpointLoader <returnn.tf.network.CustomCheckpointLoader> `.
13+     :class: `CustomCheckpointLoader <returnn.tf.network.CustomCheckpointLoader> `
14+     and the
15+     `"Different ways to import parameters"  <https://github.com/rwth-i6/returnn/wiki/Different-ways-to-import-parameters >`_
16+     page.
17+ 
18+ allow_random_model_init
19+     Initialize a model randomly.
20+     This can be useful if you want to use only ``preload_from_files `` to load
21+     multiple different models into one config for decoding without using ``load ``.
1422
1523import_model_train_epoch1
1624    If a path to a valid model is provided
@@ -42,6 +50,9 @@ preload_from_files
4250            "filename": ".../net-model/network.163",  # your checkpoint file, mandatory 
4351            "init_for_train": True,  # only load the checkpoint at the start of training epoch 1, default is False 
4452            "ignore_missing": True,  # if the checkpoint only partly covers your model, default is False 
53+             "ignore_params": ["some_parameter", ...],  # list of parameter names that should not be loaded 
54+             "ignore_params_prefixes": ["some_prefix_", ...],  # list of parameter prefixes that should not be loaded 
55+             "var_name_mapping": {"name_in_graph": "name_in_checkpoint", ...},  # map non-matching parameter names 
4556            "prefix": "submodel1_",  # only load parameters for layers starting with the given prefix 
4657          } 
4758        } 
0 commit comments