|
QDpy
|
Decode from actual input embeddings with a private generation RNG. More...
Public Member Functions | |
| initial_embedding (self, virtual_tokens) | |
| __call__ (self, embedding, seed) | |
Decode from actual input embeddings with a private generation RNG.
Use an embedding prefix followed by a fixed text prompt.
Definition at line 20 of file soft_prompt_local_model.py.
| soft_prompt_local_model.FrozenDecoder.__call__ | ( | self, | |
| embedding, | |||
| seed ) |
Sample a fixed-budget continuation using the supplied virtual tokens.
Definition at line 36 of file soft_prompt_local_model.py.
| soft_prompt_local_model.FrozenDecoder.initial_embedding | ( | self, | |
| virtual_tokens ) |
Repeat the vocabulary's mean embedding for the initial soft prompt.
Definition at line 31 of file soft_prompt_local_model.py.