MCPcopy Create free account

hub / github.com/THUDM/GLM / functions

Functions1,117 in github.com/THUDM/GLM

Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:365
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:704
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:893
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:925
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:990
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1003
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1039
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1078
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1108
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1130
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1168
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1339
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1364
Methodget_test_examples
(self, data_dir)
tasks/superglue/dataset.py:1405
Methodget_text_len
(self, idx)
data_utils/corpora.py:47
Methodget_text_len
(self, idx)
data_utils/corpora.py:77
Methodget_text_len
(self, idx)
data_utils/datasets.py:87
Methodget_token_count
(contents)
data_utils/corpora.py:165
Methodget_tokenized_input
(self, item, key)
tasks/superglue/dataset.py:84
Methodget_train_examples
Get a collection of `InputExample`s for the train set.
tasks/superglue/dataset.py:243
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:297
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:362
Methodget_train_examples
(self, data_dir, cloze_eval=True)
tasks/superglue/dataset.py:415
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:698
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:919
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:1162
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:1281
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:1333
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:1358
Methodget_train_examples
(self, data_dir)
tasks/superglue/dataset.py:1399
Functionget_two_batch
(data, args)
pretrain_glm.py:112
Methodget_unlabeled_examples
(self, data_dir)
tasks/superglue/dataset.py:312
Methodget_unlabeled_examples
(self, data_dir)
tasks/superglue/dataset.py:896
Methodget_unlabeled_examples
(self, data_dir)
tasks/superglue/dataset.py:1006
Methodget_unlabeled_examples
(self, data_dir)
tasks/superglue/dataset.py:1042
Methodget_unlabeled_examples
(self, data_dir)
tasks/superglue/dataset.py:1081
Methodget_unlabeled_examples
(self, data_dir)
tasks/superglue/dataset.py:1133
Functiongigaword_detokenize
(string, is_target=False)
tasks/seq2seq/dataset.py:15
Functionhalf_conversion
(val)
fp16/fp16.py:42
Methodhas_overflow
(self, params)
fp16/loss_scaler.py:114
Functioninit_
(tensor)
model/modeling_bert.py:43
Functioninit_
(tensor)
model/modeling_glm.py:34
Functioninit_
(tensor)
mpu/transformer.py:587
Methodinit_bert_weights
Initialize the weights.
model/modeling_bert.py:704
Functioninitialize_model_parallel
Initialize model data parallel groups. Arguments: model_parallel_size: number of GPUs used to parallelize model. Let's say we h
mpu/initialize.py:30
Methodinsert
(self, idx, other)
data_utils/tokenization.py:99
Methodinspect_master_grad_data
When running with :class:`FP16_Optimizer`, ``.grad`` attributes of a model's fp16 leaves should not be regarded as truthful,
fp16/fp16.py:581
Methodis_done
(self)
generation_utils.py:204
Methodis_multi_token
(self)
tasks/superglue/pvp.py:77
Methodis_multi_token
(self)
tasks/superglue/pvp.py:424
Methodis_multi_token
(self)
tasks/superglue/pvp.py:535
Methodis_multi_token
(self)
tasks/superglue/pvp.py:648
Methodis_multi_token
(self)
tasks/superglue/pvp.py:669
Methodis_multi_token
(self)
tasks/superglue/pvp.py:1269
Methodis_multi_token
(self)
tasks/superglue/pvp.py:1343
Methodis_within_directory
(directory, target)
model/modeling_bert.py:773
Functionlambada_detokenizer
(string)
tasks/language_model/detokenizer.py:49
Methodlens
(self)
data_utils/datasets.py:114
Methodload_examples
Load a set of input examples from a file
tasks/data_utils.py:81
Methodload_state_dict
(self, sd)
learning_rates.py:77
Methodload_state_dict
(self, state_dict, strict=True)
model/distributed.py:34
Methodload_state_dict
(self, state_dict, strict=True)
model/downstream.py:125
Methodload_state_dict
Loads a state_dict created by an earlier call to state_dict(). If ``fp16_optimizer_instance`` was constructed from some ``init_optim
fp16/fp16.py:369
Functionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model
model/modeling_bert.py:90
Methodloss_scale
(self)
fp16/loss_scaler.py:53
Methodloss_scale
(self)
fp16/loss_scaler.py:175
Functionlru_cache
()
data_utils/tokenization_gpt2.py:31
Functionmain
()
test/test_block.py:18
Functionmain
(args)
tasks/superglue/finetune.py:83
Functionmain
Main program.
tasks/language_model/finetune.py:228
Functionmake_dataset
function to create datasets+tokenizers for common options
data_utils/__init__.py:164
Methodmask
Return the underlying LM's mask token
tasks/superglue/pvp.py:85
Methodmask
Return the underlying LM's mask token
tasks/superglue/pvp.py:432
Methodmask_id
Return the underlying LM's mask id
tasks/superglue/pvp.py:90
Methodmask_id
Return the underlying LM's mask id
tasks/superglue/pvp.py:438
Methodmax_num_verbalizers
Return the maximum number of verbalizers across all labels
tasks/superglue/pvp.py:95
Functionmetrics_func
(model, epoch, output_predictions=False, summary_writer=None)
tasks/eval_utils.py:77
Functionmetrics_func
(model, epoch, output_predictions=False, summary_writer=None)
tasks/language_model/finetune.py:220
Functionmetrics_func_provider
Privde metrics callback function.
tasks/superglue/finetune.py:64
Functionmetrics_func_provider
Provide metrics callback function.
tasks/seq2seq/finetune.py:75
Functionmetrics_func_provider
Privde metrics callback function.
tasks/language_model/finetune.py:202
Functionmix_forward_step
(batch_and_dataloader, model, args, times, mems)
finetune_glm.py:65
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no torch.cuda.manual_seed
mpu/random.py:198
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
mpu/initialize.py:81
Functionmove_weights
Loads weights from `oai` to `our` via in place copy. `oai` is a huggingface gpt2model, while `our` is one of our models. dst2src=True loa
utils.py:453
Functionmultichoice_evaluate
Calculate correct over total answers and return prediction if the `output_predictions` is true.
tasks/eval_utils.py:120
Functionmultirc_em
Compute the exact match (EM) for a sequence of predictions and actual labels
tasks/superglue/evaluate.py:104
Functionmy_collate
(batch)
tasks/data_utils.py:310
Methodnamed_parameters
(self, prefix: str = '', recurse: bool = True)
model/distributed.py:27
Methodnamed_parameters
(self, prefix: str = '', recurse: bool = True)
model/downstream.py:128
Functionnetwork_to_half
Convert model to half precision in a batchnorm-safe way. Retained for legacy purposes. It is recommended to use FP16Model.
fp16/fp16util.py:52
Methodnum_samples
(self)
data_utils/samplers.py:56
Methodout_stream
()
data_utils/datasets.py:463
Methodoutput_prediction
(self, predictions, examples, output_file)
tasks/superglue/dataset.py:231
Methodoutput_prediction
(self, predictions, examples, output_file)
tasks/superglue/dataset.py:666
Methodoutput_prediction
(self, predictions, examples, output_file)
tasks/superglue/dataset.py:763
Methodoutput_prediction
(self, predictions, examples, output_file)
tasks/superglue/dataset.py:928
Methodoutput_prediction
(self, predictions, examples, output_file)
tasks/superglue/dataset.py:1311
Methodpad_seq
(self, seq, pad_id=None)
data_utils/datasets.py:691
Methodpad_to
(text, max_len, pad_id)
tasks/seq2seq/dataset.py:603
← previousnext →901–1,000 of 1,117, ranked by callers