|
QDpy
|
Run soft-prompt QD with a frozen local causal decoder. More...
Go to the source code of this file.
Classes | |
| class | soft_prompt_local_model.FrozenDecoder |
| Decode from actual input embeddings with a private generation RNG. More... | |
Functions | |
| soft_prompt_local_model.tiny_decoder (seed) | |
| soft_prompt_local_model.evaluate_completion (text) | |
| soft_prompt_local_model.main () | |
Run soft-prompt QD with a frozen local causal decoder.
Definition in file soft_prompt_local_model.py.
| soft_prompt_local_model.evaluate_completion | ( | text | ) |
Score travel vocabulary and measure length and lexical diversity.
Definition at line 77 of file soft_prompt_local_model.py.
| soft_prompt_local_model.main | ( | ) |
Compare frozen-model variation modes with equal generation calls.
Definition at line 87 of file soft_prompt_local_model.py.
| soft_prompt_local_model.tiny_decoder | ( | seed | ) |
Build a small randomly initialized GPT-2 with a local vocabulary.
Definition at line 55 of file soft_prompt_local_model.py.