MCPcopy Create free account

hub / github.com/THUDM/P-tuning / types & classes

Types & classes43 in github.com/THUDM/P-tuning

↓ 10 callersClassInputExample
A raw input example consisting of one or two segments of text and a label
PT-Fewshot/pet/utils.py:65
↓ 3 callersClassLAMADataset
LAMA/data_utils/dataset.py:15
↓ 2 callersClassContinuousPrompt
PT-Fewshot/pet/wrapper.py:82
↓ 1 callersClassDictDataset
A dataset of tensors that uses a dictionary for key-value mappings
PT-Fewshot/pet/utils.py:174
↓ 1 callersClassEvalConfig
Configuration for evaluating a model.
PT-Fewshot/pet/config.py:72
↓ 1 callersClassInputFeatures
A set of numeric features obtained from an :class:`InputExample`
PT-Fewshot/pet/utils.py:112
↓ 1 callersClassLimitedExampleList
PT-Fewshot/data_utils/task_processors.py:47
↓ 1 callersClassLogitsList
A list of logits obtained from a finetuned PET model
PT-Fewshot/pet/utils.py:28
↓ 1 callersClassPTuneForLAMA
LAMA/p_tuning/modeling.py:15
↓ 1 callersClassPromptEncoder
LAMA/p_tuning/prompt_encoder.py:5
↓ 1 callersClassTrainConfig
Configuration for training a model.
PT-Fewshot/pet/config.py:26
↓ 1 callersClassTrainer
LAMA/cli.py:79
↓ 1 callersClassTransformerDecoderWrapper
LAMA/megatron_11b/models.py:64
↓ 1 callersClassTransformerModelWrapper
A wrapper around a Transformer-based language model.
PT-Fewshot/pet/wrapper.py:138
↓ 1 callersClassWrapperConfig
A configuration for a :class:`TransformerModelWrapper`.
PT-Fewshot/pet/config.py:95
ClassBoolQPVP
PT-Fewshot/data_utils/task_pvps.py:445
ClassBoolQProcessor
Processor for the BoolQ data set.
PT-Fewshot/data_utils/task_processors.py:298
ClassCbPVP
PT-Fewshot/data_utils/task_pvps.py:304
ClassCbProcessor
Processor for the CB data set.
PT-Fewshot/data_utils/task_processors.py:171
ClassCopaPVP
PT-Fewshot/data_utils/task_pvps.py:341
ClassCopaProcessor
Processor for the COPA data set.
PT-Fewshot/data_utils/task_processors.py:337
ClassCopaTaskHelper
A custom task helper for the COPA dataset.
PT-Fewshot/pet/task_helpers.py:96
ClassDataProcessor
Abstract class that provides methods for loading train/dev32/dev/test/unlabeled examples for a given task.
PT-Fewshot/data_utils/task_processors.py:91
ClassMLMPreprocessor
Preprocessor for models pretrained using a masked language modeling objective (e.g., BERT).
PT-Fewshot/pet/preprocessor.py:44
ClassMultiRcPVP
PT-Fewshot/data_utils/task_pvps.py:486
ClassMultiRcProcessor
Processor for the MultiRC data set.
PT-Fewshot/data_utils/task_processors.py:393
ClassMultiRcTaskHelper
A custom task helper for the MultiRC dataset.
PT-Fewshot/pet/task_helpers.py:86
ClassMyTaskDataProcessor
Example for a data processor.
PT-Fewshot/data_utils/custom_task_processor.py:27
ClassMyTaskPVP
Example for a pattern-verbalizer pair (PVP).
PT-Fewshot/data_utils/custom_task_pvp.py:26
ClassPLMInputFeatures
A set of numeric input features for a model pretrained with a permuted language modeling objective.
PT-Fewshot/pet/utils.py:160
ClassPVP
This class contains functions to apply patterns and verbalizers as required by PET. Each task requires its own custom implementation of a PVP
PT-Fewshot/data_utils/task_pvps.py:34
ClassPetConfig
Abstract class for a PET configuration that can be saved to and loaded from a json file.
PT-Fewshot/pet/config.py:6
ClassPreprocessor
A preprocessor that transforms an :class:`InputExample` into a :class:`InputFeatures` object so that it can be processed by the model being u
PT-Fewshot/pet/preprocessor.py:18
ClassRecordProcessor
Processor for the ReCoRD data set.
PT-Fewshot/data_utils/task_processors.py:450
ClassRtePVP
PT-Fewshot/data_utils/task_pvps.py:268
ClassRteProcessor
Processor for the RTE data set.
PT-Fewshot/data_utils/task_processors.py:126
ClassTaskHelper
A helper class that provides custom training and evaluation methods for tasks that do not fit in PETs default schema, for example because the
PT-Fewshot/pet/task_helpers.py:27
ClassTransformerLanguageModelWrapper
LAMA/megatron_11b/models.py:8
ClassWicPVP
PT-Fewshot/data_utils/task_pvps.py:521
ClassWicProcessor
Processor for the WiC data set.
PT-Fewshot/data_utils/task_processors.py:178
ClassWscPVP
PT-Fewshot/data_utils/task_pvps.py:397
ClassWscProcessor
Processor for the WSC data set.
PT-Fewshot/data_utils/task_processors.py:218
ClassWscTaskHelper
A custom task helper for the Wsc dataset.
PT-Fewshot/pet/task_helpers.py:185