MCPcopy Create free account

hub / github.com/THUDM/GLM / functions

Functions1,117 in github.com/THUDM/GLM

Methodavailable_patterns
()
tasks/superglue/pvp.py:1124
Methodavailable_patterns
()
tasks/superglue/pvp.py:1154
Methodavailable_patterns
()
tasks/superglue/pvp.py:1195
Methodavailable_patterns
()
tasks/superglue/pvp.py:1220
Methodavailable_patterns
()
tasks/superglue/pvp.py:1244
Methodavailable_patterns
()
tasks/superglue/pvp.py:1294
Methodavailable_patterns
()
tasks/superglue/pvp.py:1339
Methodbackward
(self, loss, retain_graph=False)
fp16/loss_scaler.py:181
Methodbackward
(ctx, grad_output)
mpu/cross_entropy.py:84
Methodbackward
(ctx, grad_output)
mpu/mappings.py:87
Methodbackward
(ctx, grad_output)
mpu/mappings.py:99
Methodbackward
(ctx, grad_output)
mpu/mappings.py:111
Methodbackward
(ctx, grad_output)
mpu/mappings.py:123
Functionbackwards_debug_hook
(grad)
fp16/fp16util.py:102
Functionbert_extended_attention_mask
(attention_mask)
model/modeling_bert.py:59
Functionblanklm_detokenize
(string, is_target=False)
tasks/seq2seq/dataset.py:54
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
mpu/data.py:76
Methodbuild_dec_mask_matrix
(seq_length, sep, memory_length=0)
model/downstream.py:76
Methodbuild_mask_matrix
(seq_length, sep, memory_length=0)
mpu/transformer.py:757
Functioncb
()
mpu/random.py:96
Methodcheck_detach
(_hidden_states)
mpu/transformer.py:795
Functionclassify_evaluate
Evaluation.
tasks/language_model/finetune.py:119
Methodclean_text
Remove new lines and multiple spaces and adjust end of sentence dot.
tasks/superglue/dataset.py:711
Functionclip_grad_norm
Clips gradient norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to ha
mpu/grads.py:28
Functioncnndm_detokenize
(string, is_target=False)
tasks/seq2seq/dataset.py:34
Methodcommand_token_vocab
dictionary mapping command tokens to ids for tokenizer
data_utils/tokenization.py:311
Methodcommand_tokens
list (or iterable) of all command tokens for tokenizer
data_utils/tokenization.py:306
Methodconstruct_blocks
(self, samples)
blocklm_utils.py:312
Methodcontains_sentence_end
(self, tok)
data_utils/datasets.py:829
Methodconvert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
data_utils/tokenization_gpt2.py:258
Methodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
data_utils/wordpiece.py:130
Methodconvert_to_type
(tensor)
model/modeling_bert.py:627
Methodconvert_tokens_to_ids
(self, tokens)
data_utils/sp_tokenizer.py:120
Methodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
data_utils/wordpiece.py:117
Methodcreate_examples
(self, split)
tasks/seq2seq/dataset.py:66
Methodcreate_examples
(self, split)
tasks/seq2seq/dataset.py:154
Methodcreate_examples
(self, split)
tasks/seq2seq/dataset.py:195
Methodcreate_examples
(self, split)
tasks/seq2seq/dataset.py:367
Methodcustom
(start, end)
model/modeling_bert.py:545
Methodcustom
(start, end)
mpu/transformer.py:805
Methodcustom_forward
(*inputs)
model/modeling_bert.py:546
Methodcustom_forward
(*inputs)
mpu/transformer.py:806
Functiondebug_finetune_data
(local_vars, batch_id, tokenizer)
utils.py:471
Methoddecode
tokens=[x1,x2,...]
data_utils/sp_tokenizer.py:109
Methoddecode
(self, tokens)
data_utils/tokenization_gpt2.py:272
Functiondefault_output_func
(predictions, examples, output_file)
tasks/superglue/dataset.py:49
Functiondestroy_model_parallel
Set the groups to none.
mpu/initialize.py:130
Methodencode
Encode an input example using this pattern-verbalizer pair. :param example: the input example to encode :param priming: whet
tasks/superglue/pvp.py:477
Methodencode
Encode an input example using this pattern-verbalizer pair. :param example: the input example to encode :param priming: whet
tasks/superglue/pvp.py:579
Methodencode
(self, example: InputExample, tokenizer, seq_length, args)
tasks/superglue/dataset.py:550
Methodencode
(self, example: InputExample, tokenizer, seq_length, args)
tasks/superglue/dataset.py:770
Methodencode
text="...."
data_utils/sp_tokenizer.py:103
Methodencode_input
(raw_parts)
tasks/superglue/pvp.py:185
Methodencode_input
(raw_parts)
tasks/superglue/pvp.py:603
Methodevaluate
Calculate correct over total answers and return prediction if the `output_predictions` is true.
tasks/seq2seq/evaluate.py:267
Methodevaluate
(self, model, dataloader, example_dict, args)
tasks/seq2seq/evaluate.py:411
Functionexact_match_score
(prediction, ground_truth)
tasks/superglue/evaluate.py:49
Methodexists
(model_path)
data_utils/tokenization.py:561
Methodexists
(model_path)
data_utils/tokenization.py:699
Functionf1_macro_metric
(predictions, labels, examples)
tasks/eval_utils.py:47
Functionf1_metric
(predictions, labels, examples)
tasks/eval_utils.py:43
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``EnvironmentError`` if `filename` or its stored metadata do not
data_utils/file_utils.py:58
Methodfinalize
( self, input_ids: torch.LongTensor, next_scores: torch.FloatTensor,
generation_utils.py:130
Functionfloat_conversion
(val)
fp16/fp16.py:56
Methodforward
(self, x)
model/modeling_bert.py:280
Methodforward
(self, input_ids, token_type_ids=None)
model/modeling_bert.py:309
Methodforward
(self, hidden_states, attention_mask)
model/modeling_bert.py:372
Methodforward
(self, hidden_states, input_tensor)
model/modeling_bert.py:424
Methodforward
(self, input_tensor, attention_mask)
model/modeling_bert.py:450
Methodforward
(self, hidden_states)
model/modeling_bert.py:471
Methodforward
(self, hidden_states, input_tensor)
model/modeling_bert.py:499
Methodforward
(self, hidden_states, attention_mask)
model/modeling_bert.py:519
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False)
model/modeling_bert.py:542
Methodforward
(self, hidden_states)
model/modeling_bert.py:581
Methodforward
(self, hidden_states)
model/modeling_bert.py:599
Methodforward
(self, hidden_states)
model/modeling_bert.py:636
Methodforward
(self, sequence_output)
model/modeling_bert.py:657
Methodforward
(self, pooled_output)
model/modeling_bert.py:667
Methodforward
(self, sequence_output, pooled_output)
model/modeling_bert.py:678
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True, ch
model/modeling_bert.py:904
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, next_senten
model/modeling_bert.py:1001
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, checkpoint_
model/modeling_bert.py:1068
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, next_sentence_label=None, checkpoi
model/modeling_bert.py:1132
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, checkpoint_activations=False)
model/modeling_bert.py:1200
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, checkpoint_activations=False)
model/modeling_bert.py:1266
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, checkpoint_activations=False)
model/modeling_bert.py:1347
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None, end_positions=None,
model/modeling_bert.py:1426
Methodforward
(self)
model/prompt.py:44
Methodforward
(self, *inputs, **kwargs)
model/distributed.py:91
Methodforward
(self, input_ids, position_ids, attention_mask, target_ids=None, logit_mask=None, prompt_pos=None)
model/downstream.py:26
Methodforward
(self, input_ids, position_ids, attention_mask, dec_input_ids, dec_position_ids, dec_attention
model/downstream.py:63
Methodforward
(self, input_ids, position_ids, attention_mask, target_ids=None, logit_mask=None, prompt_pos=None)
model/downstream.py:131
Methodforward
(self, input_ids, position_ids, attention_mask)
model/downstream.py:159
Methodforward
(self, input_ids, position_ids, attention_mask, *mems, return_memory=False, detach_memory=True,
model/modeling_glm.py:107
Methodforward
(self, source_ids, target_ids, source_position_ids, target_position_ids, source_mask, target_mask)
model/modeling_glm.py:192
Methodforward
(self, *inputs, **kwargs)
fp16/fp16.py:72
Methodforward
(self, input)
fp16/fp16util.py:35
Methodforward
(self, *inputs)
fp16/fp16util.py:97
Methodforward
(self, input_)
mpu/layers.py:111
Methodforward
(self, input_)
mpu/layers.py:169
← previousnext →701–800 of 1,117, ranked by callers