classy.pl_modules.hf.classification
Classes
HFQAPLModule
Simple Mixin to model the prediction behavior of a classy.pl_modules.base.ClassyPLModule.
__init__
def __init__(
transformer_model: str,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
transformer_model: str,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
HFSentencePairPLModule
Simple Mixin to model the prediction behavior of a classy.pl_modules.base.ClassyPLModule.
__init__
def __init__(
transformer_model: str,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
transformer_model: str,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
HFSequenceCommonPLModule
Simple Mixin to model the prediction behavior of a classy.pl_modules.base.ClassyPLModule.
Subclasses (2)
__init__
def __init__(
transformer_model: str,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
transformer_model: str,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
HFSequencePLModule
Simple Mixin to model the prediction behavior of a classy.pl_modules.base.ClassyPLModule.
__init__
def __init__(
transformer_model: str,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
transformer_model: str,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
HFTokensPLModule
Simple Mixin to model the prediction behavior of a classy.pl_modules.base.ClassyPLModule.
__init__
def __init__(
transformer_model: str,
use_last_n_layers: int,
fine_tune: bool,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)
transformer_model: str,
use_last_n_layers: int,
fine_tune: bool,
vocabulary: Vocabulary,
optim_conf: omegaconf.dictconfig.DictConfig,
additional_special_tokens: Optional[List[str]] = None,
)