Api
BERTMLMLossWithReductionNoForward
Bases: BERTMLMLossWithReduction
Source code in bionemo/geneformer/api.py
38 39 40 41 42 43 44 45 46 47 |
|
__init__(validation_step=False, val_drop_last=True, send_train_output=False, send_val_output=False)
Same as BERTMLMLossWithReduction but set send_val_output=False by default since we do not use perplexity.
Source code in bionemo/geneformer/api.py
39 40 41 42 43 44 45 46 47 |
|
FineTuneSeqLenBioBertConfig
dataclass
Bases: BioBertConfig[MegatronBioBertFineTuneSeqLengthModel, SequenceLengthRMSEPlusBERTMLMLossWithReduction]
, IOMixinWithGettersSetters
BioBert fine-tuning sequence length model configuration.
Source code in bionemo/geneformer/model/finetune_token_regressor.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
|
get_loss_reduction_class()
Loss function type.
Source code in bionemo/geneformer/model/finetune_token_regressor.py
220 221 222 |
|
GeneformerConfig
dataclass
Bases: BioBertConfig[GeneformerModel, MegatronLossType]
, IOMixinWithGettersSetters
A geneformer config.
The geneformer config overrides the parent config, and adds a leaf-level iomixin, please do not inherit from this directly, as your parameters will likely be reset to this method's parameters silently.
Source code in bionemo/geneformer/api.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|