Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/P-tuning
/ functions
Functions
222 in github.com/THUDM/P-tuning
⨍
Functions
222
◇
Types & classes
43
Function
lowercase_first
Lowercase the first letter of a string
PT-Fewshot/pet/utils.py:215
Method
mask
Return the underlying LM's mask token
PT-Fewshot/data_utils/task_pvps.py:75
Method
mask_id
Return the underlying LM's mask id
PT-Fewshot/data_utils/task_pvps.py:80
Method
max_num_verbalizers
Return the maximum number of verbalizers across all labels
PT-Fewshot/data_utils/task_pvps.py:85
Method
megatron_out
()
LAMA/p_tuning/modeling.py:178
Method
mlm_eval_step
Perform a MLM evaluation step.
PT-Fewshot/pet/wrapper.py:619
Method
mlm_train_step
Perform a MLM training step.
PT-Fewshot/pet/wrapper.py:608
Method
pretty_print
(self, tokenizer)
PT-Fewshot/pet/utils.py:168
Function
remove_final_punc
Remove the last character from a string if it is some form of punctuation
PT-Fewshot/pet/utils.py:210
Method
save
Save this list to a file.
PT-Fewshot/pet/utils.py:43
Method
save_examples
Save a set of input examples to a file
PT-Fewshot/pet/utils.py:106
Function
softmax
Custom softmax implementation
PT-Fewshot/pet/utils.py:246
Method
train_step
(self, batch, **kwargs)
PT-Fewshot/pet/task_helpers.py:99
Method
train_step
(self, batch, **kwargs)
PT-Fewshot/pet/task_helpers.py:219
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:300
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:337
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:393
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:441
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:482
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:517
Method
verbalize
(self, label)
PT-Fewshot/data_utils/task_pvps.py:578
Method
verbalize
(self, label)
PT-Fewshot/data_utils/custom_task_pvp.py:66
← previous
201–222 of 222, ranked by callers