primeqa.util.transformers_utils.hypers_base.HypersBase#
- class primeqa.util.transformers_utils.hypers_base.HypersBase#
Bases:
object
This should be the base hyperparameters class, others should extend this.
Methods
fill_from_args
from_dict
'' -> 0, 1 '1of2' -> 0, 2 '2of2' -> 1, 2 :param kofn: :return:
when searching for full_train_batch_size in hyperparameter tuning we need to update the gradient accumulation steps to stay within GPU memory constraints :return:
set_seed
to_dict
- kofn(kofn: str)#
‘’ -> 0, 1 ‘1of2’ -> 0, 2 ‘2of2’ -> 1, 2 :param kofn: :return:
- set_gradient_accumulation_steps()#
when searching for full_train_batch_size in hyperparameter tuning we need to update the gradient accumulation steps to stay within GPU memory constraints :return: