MCPcopy Create free account

hub / github.com/THUDM/GLM / functions

Functions1,117 in github.com/THUDM/GLM

Methodpad_to
(text, max_len, pad_id)
tasks/seq2seq/dataset.py:714
Functionpartition_activations_in_checkpoint
(partition_activation)
mpu/random.py:380
Functionprep_param_lists
Creates a list of FP32 master parameters for a given model, as in `Training Neural Networks with Mixed Precision: Real Examples`_. Args
fp16/fp16util.py:105
Methodprint_info
(self, info)
data_utils/corpora.py:425
Functionprint_masked_text
(batch_id)
pretrain_glm.py:226
Functionprint_masked_text
(batch_id)
tasks/language_model/finetune.py:60
Functionprint_params_min_max_norm
Print min, max, and norm of all parameters.
utils.py:93
Methodprocess
( self, input_ids: torch.LongTensor, next_scores: torch.FloatTensor,
generation_utils.py:119
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:183
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:263
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:296
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:325
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:345
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:355
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:371
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:386
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:408
Methodprocess_line
(self, data, tokenizer, tokenize)
data_utils/corpora.py:473
Methodprocess_line
(self, item, tokenizer, tokenize)
data_utils/corpora.py:497
Functionptb_detokenizer
(string)
tasks/language_model/detokenizer.py:4
Functionqa_evaluate
(predictions, labels, examples: List[InputExample], metric)
tasks/superglue/evaluate.py:63
Methodread_input_to_queue
()
data_utils/corpora.py:129
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
data_utils/file_utils.py:235
Functionrindex
(lst, val, start=None)
blocklm_utils.py:12
Functionrouge_metric
(predictions, labels, examples, metric="rouge-1", duplicate_rate=0.7, dataset='cnn_dm')
tasks/seq2seq/evaluate.py:156
Functions3_request
Wrapper function for s3 requests in order to create more helpful error messages.
data_utils/file_utils.py:127
Methodsafe_extract
(tar, path=".", members=None, *, numeric_owner=False)
model/modeling_bert.py:782
Methodsave_examples
Save a set of input examples to a file
tasks/data_utils.py:87
Functionsave_on_exit
(args_, model_, optimizer_, lr_scheduler_)
pretrain_glm.py:644
Methodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
data_utils/tokenization_gpt2.py:277
Functionsave_zero_checkpoint
(args, iteration, optimizer)
utils.py:215
Methodscale_gradient
(self, module, grad_in, grad_out)
fp16/loss_scaler.py:56
Methodscale_gradient
(self, module, grad_in, grad_out)
fp16/loss_scaler.py:178
Functionsee_memory_usage
(message, force=False)
train_utils.py:310
Functionsee_memory_usage
(message, force=False)
mpu/random.py:35
Functionseq2seq_forward_step
Forward step.
tasks/seq2seq/finetune.py:32
Functionsingle_dataset_provider
(split)
tasks/superglue/finetune.py:67
Methodspell_length
(self)
tasks/superglue/pvp.py:81
Methodspell_length
(self)
tasks/superglue/pvp.py:428
Methodspell_length
(self)
tasks/superglue/pvp.py:539
Methodspell_length
(self)
tasks/superglue/pvp.py:717
Methodspell_length
(self)
tasks/superglue/pvp.py:793
Methodspell_length
(self)
tasks/superglue/pvp.py:832
Methodspell_length
(self)
tasks/superglue/pvp.py:879
Methodspell_length
(self)
tasks/superglue/pvp.py:1298
Methodsplit_on_token
(tok_extended: CommandToken, text)
data_utils/tokenization.py:333
Methodsplit_on_token
(tok_extended: CommandToken, text)
data_utils/tokenization.py:1025
Methodsplit_on_tokens
(tok_list, text)
data_utils/tokenization.py:364
Methodsplit_on_tokens
(tok_list, text)
data_utils/tokenization.py:1056
Functionsquad_evaluate
(predictions, labels, examples, metric)
tasks/superglue/evaluate.py:75
Methodstate_dict
(self)
learning_rates.py:66
Methodstate_dict
(self, destination=None, prefix='', keep_vars=False)
model/distributed.py:30
Methodstate_dict
(self, destination=None, prefix='', keep_vars=False)
model/downstream.py:120
Methodstate_dict
Returns a dict containing the current state of this :class:`FP16_Optimizer` instance. This dict contains attributes of :class:`FP16_O
fp16/fp16.py:348
Methodsub_finder
(mylist, pattern)
tasks/seq2seq/dataset.py:473
Functionswish
(x)
model/modeling_bert.py:159
Methodtext_token_vocab
dictionary mapping text tokens to ids for text tokenizer
data_utils/tokenization.py:321
Methodtext_tokens
list (or iterable) of text tokens for text tokenizer
data_utils/tokenization.py:316
Functionto_python_float
(t)
fp16/fp16util.py:191
Functionto_python_float
(t)
fp16/loss_scaler.py:20
Methodtoken_type_vocab
dictionary mapping token types to ids for tokenizer
data_utils/tokenization.py:301
Methodtoken_types
list (or iterable) of all token types for tokenizer
data_utils/tokenization.py:296
Methodtokenize
(self, text)
data_utils/sp_tokenizer.py:117
Methodtokenize
(self, text)
data_utils/wordpiece.py:107
Methodtokenize
Tokenizes a piece of text.
data_utils/wordpiece.py:190
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
data_utils/wordpiece.py:301
Methodtokenize_worker
(self, input, output, info, tokenizer, tokenize)
data_utils/corpora.py:100
Methodtokenize_worker
(self, input, output, info, tokenizer, tokenize)
data_utils/corpora.py:190
Methodtokenize_worker
(self, input, output, info, tokenizer, tokenize)
data_utils/corpora.py:233
Methodtokenize_worker
(self, input, output, info, tokenizer, tokenize)
data_utils/corpora.py:436
Methodtokenizer
(self)
data_utils/datasets.py:406
Methodtokens
list (or iterable) of all tokens for tokenizer
data_utils/tokenization.py:286
Methodtokens
list (or iterable) of text tokens for text tokenizer
data_utils/tokenization.py:497
Methodtokens
(self)
data_utils/tokenization.py:568
Methodtokens
(self)
data_utils/tokenization.py:691
Functiontrain_valid_datasets_provider
Provide train and validation datasets.
tasks/superglue/finetune.py:52
Methodupdate_scale
(self, overflow)
fp16/loss_scaler.py:148
Methoduppercase_first
Lowercase the first character
tasks/superglue/pvp.py:119
Methodvariable_num_choices
(self)
tasks/superglue/dataset.py:239
Methodvariable_num_choices
(self)
tasks/superglue/dataset.py:412
Methodvariable_num_choices
(self)
tasks/superglue/dataset.py:692
Methodvariable_num_choices
(self)
tasks/superglue/dataset.py:757
Methodverbalize
(self, label)
tasks/superglue/pvp.py:474
Methodverbalize
(self, label)
tasks/superglue/pvp.py:642
Methodverbalize
(self, label)
tasks/superglue/pvp.py:663
Methodverbalize
(self, label)
tasks/superglue/pvp.py:702
Methodverbalize
(self, label)
tasks/superglue/pvp.py:744
Methodverbalize
(self, label)
tasks/superglue/pvp.py:771
Methodverbalize
(self, label)
tasks/superglue/pvp.py:814
Methodverbalize
(self, label)
tasks/superglue/pvp.py:858
Methodverbalize
(self, label)
tasks/superglue/pvp.py:901
Methodverbalize
(self, label)
tasks/superglue/pvp.py:939
Methodverbalize
(self, label)
tasks/superglue/pvp.py:981
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1010
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1044
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1070
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1099
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1112
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1137
Methodverbalize
(self, label)
tasks/superglue/pvp.py:1164
← previousnext →1,001–1,100 of 1,117, ranked by callers