Skip to content
class

MultitaskPromptTuningInit

extendsStrEnum
MultitaskPromptTuningInit()

How a multitask prompt starts: from text, at random, or from a prompt trained on source tasks.

Used by 2

Attributes

5
attr

AVERAGE_SOURCE_TASKS

AVERAGE_SOURCE_TASKS

The shared prompt, and the mean of the source tasks' low-rank task factors.

attr

EXACT_SOURCE_TASK

EXACT_SOURCE_TASK

The shared prompt, and the task factors of the one source task prompt_tuning_init_task.

attr

ONLY_SOURCE_SHARED

ONLY_SOURCE_SHARED

The shared prompt alone; the task factors start at random.

attr

RANDOM

RANDOM

From the embedding table's random initialisation.

attr

TEXT

TEXT

From the embeddings of prompt_tuning_init_text's tokens, as prompt tuning does.