MCPcopy Create free account

hub / github.com/DevSinghSachan/emdr2 / functions

Functions707 in github.com/DevSinghSachan/emdr2

Functionl2_grad_clipper
Efficient L2 norm gradient clipping.
megatron/mpu/grads.py:35
Methodlemmas
Returns a list of the lemmatized text of each token. Returns None if this annotation was not included.
tasks/openqa/dense_retriever/evaluation/tokenizers.py:72
Functionload_scaled_masked_softmax_fusion_kernel
()
megatron/fused_kernels/__init__.py:65
Functionload_scaled_upper_triang_masked_softmax_fusion_kernel
()
megatron/fused_kernels/__init__.py:40
Methodload_state_dict
(self, sd)
megatron/learning_rates.py:107
Methodload_state_dict
Customized load.
megatron/model/t5_model.py:170
Methodload_state_dict
(self, state_dict, strict=True)
megatron/model/distributed.py:92
Methodload_state_dict
Customized load.
megatron/model/language_model.py:389
Methodload_state_dict
Load the state dicts of each of the models
megatron/model/emdr2_model.py:228
Methodload_state_dict
(self, state_dict, strict=True)
megatron/model/dualencoder_model.py:191
Methodload_state_dict
Customized load.
megatron/model/bert_model.py:192
Methodload_state_dict
Loads a state_dict created by an earlier call to state_dict(). If ``fp16_optimizer_instance`` was constructed from some ``init_optimi
megatron/fp16/fp16.py:377
Methodloss_scale
(self)
megatron/fp16/loss_scaler.py:60
Methodloss_scale
(self)
megatron/fp16/loss_scaler.py:188
Functionmain
()
tasks/openqa/dense_retriever/run.py:54
Functionmake_builder
(out_file, impl, vocab_size=None)
megatron/data/indexed_dataset.py:51
Functionmake_data_loader
Buld dataloader given an input dataset.
megatron/utils.py:101
Functionmake_dataset
(path, impl, skip_warmup=False)
megatron/data/indexed_dataset.py:58
Functionmake_history_mask
(block)
megatron/data/mask_creation_utils.py:29
Methodmask
(self)
megatron/tokenizer/tokenizer.py:130
Methodmask
(self)
megatron/tokenizer/tokenizer.py:228
Methodmerge_file_
(self, another_file)
megatron/data/indexed_dataset.py:294
Methodmerge_file_
(self, another_file)
megatron/data/indexed_dataset.py:554
Functionmetrics_func
(model, epoch)
tasks/openqa/e2eqa/train_e2eqa.py:339
Functionmetrics_func
(model, epoch)
tasks/openqa/dense_retriever/train_dense_retriever.py:413
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
megatron/mpu/random.py:207
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
megatron/mpu/initialize.py:145
Functionmodel_provider
Build the model.
tasks/openqa/e2eqa/run.py:32
Functionmodel_provider
()
tasks/openqa/dense_retriever/run.py:27
Functionnetwork_to_half
Convert model to half precision in a batchnorm-safe way. Retained for legacy purposes. It is recommended to use FP16Model.
megatron/fp16/fp16util.py:55
Methodngrams
Returns a list of all ngrams from length 1 to n. Args: n: upper limit of ngram length uncased: lower cases text
tasks/openqa/dense_retriever/evaluation/tokenizers.py:88
Methodnormalize_completed
(self, completed_hyps, src_length=None)
megatron/model/search_strategy.py:30
Methodnum_samples
(self)
megatron/data/samplers.py:55
Methodnum_tokens
(self, index)
megatron/data/indexed_dataset.py:194
Methodnumel_in_use
Return number of elements in use.
megatron/memory.py:84
Methodoffsets
Returns a list of [start, end) character offsets of each token.
tasks/openqa/dense_retriever/evaluation/tokenizers.py:60
Functionopenai_gelu
(x)
megatron/model/utils.py:56
Methodoperator()
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:37
Methodoperator()
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:44
Methodoperator()
megatron/fused_kernels/scaled_masked_softmax.h:37
Methodoperator()
megatron/fused_kernels/scaled_masked_softmax.h:44
Methodpad
(self)
megatron/tokenizer/tokenizer.py:120
Methodpad
(self)
megatron/tokenizer/tokenizer.py:224
Methodpos
Returns a list of part-of-speech tags of each token. Returns None if this annotation was not included.
tasks/openqa/dense_retriever/evaluation/tokenizers.py:64
Methodprefetch
(self, indices)
megatron/data/indexed_dataset.py:222
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
megatron/fp16/fp16util.py:109
Methodprint_average_usage
Print memory usage average over time. We would like this value to be as high as possible.
megatron/memory.py:118
Functionprint_params_min_max_norm
Print min, max, and norm of all parameters.
megatron/utils.py:64
Functionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
megatron/tokenizer/bert_tokenization.py:98
Methodprocess_samples_from_single_path
Implement abstract method.
tasks/openqa/dense_retriever/train_data_utils.py:237
Functionrebuild_tokenizer
(args)
megatron/global_vars.py:112
Functionregex_match_score
(prediction, ground_truth)
tasks/openqa/e2eqa/eval_utils.py:47
Functionremove_stale_checkpoints
(iteration)
megatron/checkpointing.py:347
Methodreset
Reset the buffer start index to the beginning of the buffer.
megatron/memory.py:74
Functionreset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
megatron/mpu/random.py:65
Methodreset_index
Delete existing index and create anew
megatron/data/emdr2_index.py:143
Methodreset_index
Delete existing index and create anew
megatron/data/emdr2_index.py:220
Methodresize_tokentype_embeddings
megatron/model/t5_model.py:178
Methodscale_gradient
(self, module, grad_in, grad_out)
megatron/fp16/loss_scaler.py:63
Methodscale_gradient
(self, module, grad_in, grad_out)
megatron/fp16/loss_scaler.py:191
Functionscaled_masked_softmax_warp_backward
megatron/fused_kernels/scaled_masked_softmax.h:182
Functionscaled_masked_softmax_warp_forward
megatron/fused_kernels/scaled_masked_softmax.h:78
Functionscaled_upper_triang_masked_softmax_warp_backward
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:171
Functionscaled_upper_triang_masked_softmax_warp_forward
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:78
Methodsearch_mips_index
Get the top-k blocks by the index distance metric. if False: return [num_queries x k] array of distances, and another for indices
megatron/data/emdr2_index.py:268
Methodsep
(self)
megatron/tokenizer/tokenizer.py:115
Methodsep
(self)
megatron/tokenizer/tokenizer.py:220
Methodset_doc_idx
(self, doc_idx_)
megatron/data/indexed_dataset.py:525
Methodsizes
(self)
megatron/data/indexed_dataset.py:431
Methodsizes
(self)
megatron/data/indexed_dataset.py:515
Methodstate_dict
(self)
megatron/learning_rates.py:82
Methodstate_dict
Returns a dict containing the current state of this :class:`FP16_Optimizer` instance. This dict contains attributes of :class:`FP16_O
megatron/fp16/fp16.py:356
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/model/t5_model.py:156
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/model/distributed.py:87
Methodstate_dict_for_save_checkpoint
For easy load.
megatron/model/language_model.py:367
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/model/emdr2_model.py:217
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/model/dualencoder_model.py:183
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/model/bert_model.py:175
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/fp16/fp16.py:79
Methodsupports_prefetch
(self)
megatron/data/indexed_dataset.py:207
Methodsupports_prefetch
(self)
megatron/data/indexed_dataset.py:219
Methodsupports_prefetch
(self)
megatron/data/indexed_dataset.py:529
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:80
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:96
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:112
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:128
Functiont5_attention_mask_func
(attention_scores, attention_mask)
megatron/model/t5_model.py:28
Functionto_python_float
(t)
megatron/fp16/fp16util.py:202
Functionto_python_float
(t)
megatron/fp16/loss_scaler.py:26
Methodtokenize
(self, text)
megatron/tokenizer/tokenizer.py:193
Methodtokenize
(self, text)
megatron/tokenizer/bert_tokenization.py:170
Methodtokenize
Tokenizes a piece of text.
megatron/tokenizer/bert_tokenization.py:228
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
megatron/tokenizer/bert_tokenization.py:340
Methodtokenize
(self, text)
tasks/openqa/dense_retriever/evaluation/tokenizers.py:171
Methodtokenize
(self, text)
tasks/openqa/dense_retriever/evaluation/tokenizers.py:212
Methodupdate_index
Delete existing index and create a new
megatron/data/emdr2_index.py:232
Methodupdate_scale
(self, overflow)
megatron/fp16/loss_scaler.py:161
Functionvalidate_case_matches_checkpoint
Checks whether the casing config is consistent with the checkpoint name.
megatron/tokenizer/bert_tokenization.py:28
Functionvalidation_loss
(model, dataloader)
tasks/openqa/e2eqa/train_e2eqa.py:295
Methodvocab
Dictionary from vocab text token to id token.
megatron/tokenizer/tokenizer.py:91
← previousnext →601–700 of 707, ranked by callers