micm_nlp.models.xpe.enums¶
XPE enums.
Classes¶
How the Cross-Prompt Encoder reparameterizes its virtual tokens. |
Module Contents¶
- class micm_nlp.models.xpe.enums.CrossPromptEncoderReparameterizationType¶
Bases:
micm_nlp.enums.StrEnumHow the Cross-Prompt Encoder reparameterizes its virtual tokens.
MLP,LSTMandATTNeach map a small trainable tensor to the prompt embeddings through a head of that kind.NONEskips reparameterization entirely, which is what plain soft prompt tuning uses – the embeddings are the parameters.Initialize self. See help(type(self)) for accurate signature.
- ATTN = 'ATTN'¶
- LSTM = 'LSTM'¶
- MLP = 'MLP'¶
- NONE = 'NONE'¶