MCPcopy Create free account

hub / github.com/THUDM/P-tuning / functions

Functions222 in github.com/THUDM/P-tuning

Functionlowercase_first
Lowercase the first letter of a string
PT-Fewshot/pet/utils.py:215
Methodmask
Return the underlying LM's mask token
PT-Fewshot/data_utils/task_pvps.py:75
Methodmask_id
Return the underlying LM's mask id
PT-Fewshot/data_utils/task_pvps.py:80
Methodmax_num_verbalizers
Return the maximum number of verbalizers across all labels
PT-Fewshot/data_utils/task_pvps.py:85
Methodmegatron_out
()
LAMA/p_tuning/modeling.py:178
Methodmlm_eval_step
Perform a MLM evaluation step.
PT-Fewshot/pet/wrapper.py:619
Methodmlm_train_step
Perform a MLM training step.
PT-Fewshot/pet/wrapper.py:608
Methodpretty_print
(self, tokenizer)
PT-Fewshot/pet/utils.py:168
Functionremove_final_punc
Remove the last character from a string if it is some form of punctuation
PT-Fewshot/pet/utils.py:210
Methodsave
Save this list to a file.
PT-Fewshot/pet/utils.py:43
Methodsave_examples
Save a set of input examples to a file
PT-Fewshot/pet/utils.py:106
Functionsoftmax
Custom softmax implementation
PT-Fewshot/pet/utils.py:246
Methodtrain_step
(self, batch, **kwargs)
PT-Fewshot/pet/task_helpers.py:99
Methodtrain_step
(self, batch, **kwargs)
PT-Fewshot/pet/task_helpers.py:219
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:300
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:337
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:393
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:441
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:482
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:517
Methodverbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:578
Methodverbalize
(self, label)
PT-Fewshot/data_utils/custom_task_pvp.py:66
← previous201–222 of 222, ranked by callers