Source code for recwizard.modules.unicrs.configuration_unicrs_gen
from recwizard.configuration_utils import BaseConfig
[docs]class UnicrsGenConfig(BaseConfig):
[docs] def __init__(self,
pretrained_model: str = "",
kgprompt_config: dict = None,
num_tokens: int = 0,
pad_token_id: int = 0,
max_gen_len: int = 0,
**kwargs):
super().__init__(**kwargs)
self.pretrained_model = pretrained_model
self.kgprompt_config = kgprompt_config
self.num_tokens = num_tokens
self.pad_token_id = pad_token_id
self.max_gen_len = max_gen_len