MCPcopy Create free account

hub / github.com/DevSinghSachan/emdr2 / functions

Functions707 in github.com/DevSinghSachan/emdr2

↓ 2 callersMethod_get_layer
(self, layer_number)
megatron/model/transformer.py:618
↓ 2 callersMethod_get_layer_index
(self, layer_number)
megatron/model/transformer.py:611
↓ 2 callersFunction_initialize_mem_buffs
Initialize manually allocated static memory.
megatron/initialize.py:163
↓ 2 callersMethod_master_params_to_model_params
(self)
megatron/fp16/fp16.py:307
↓ 2 callersFunction_normalize_answer
(s)
tasks/openqa/dense_retriever/evaluation/qa_validation.py:144
↓ 2 callersFunction_set_random_seed
Set random seed for reproducability.
megatron/initialize.py:142
↓ 2 callersMethod_transpose_last_dim
[s, b, num_splits * hp] -->(view) [s, b, num_splits, hp] -->(tranpose) [s, b, hp, num_splits] -->(view) [s, b, num_splits *
megatron/model/transformer.py:192
↓ 2 callersMethod_update_scale
(self, has_overflow=False)
megatron/fp16/fp16.py:304
↓ 2 callersFunction_vocab_size_with_padding
Pad vocab size so it is divisible by model parallel size and still having GPU friendly size.
megatron/tokenizer/tokenizer.py:57
↓ 2 callersFunction_warmup_mmap_file
(path)
megatron/data/indexed_dataset.py:329
↓ 2 callersFunction_write_args_to_tensorboard
Write arguments to tensorboard.
megatron/initialize.py:154
↓ 2 callersMethodadd
Track the rng state.
megatron/mpu/random.py:160
↓ 2 callersFunctionallocate_mem_buff
Allocate a memory buffer.
megatron/memory.py:24
↓ 2 callersMethodbackward
:attr:`backward` performs the following conceptual steps: 1. fp32_loss = loss.float() (see first Note below) 2. scaled_loss
megatron/fp16/fp16.py:515
↓ 2 callersFunctionbert_position_ids
(token_ids)
megatron/model/bert_model.py:51
↓ 2 callersFunctionbuild_token_types_from_context_list
(ctx_list, tokenizer, max_seq_length)
tasks/openqa/dense_retriever/train_data_utils.py:11
↓ 2 callersMethodcheck_index
(self, i)
megatron/data/indexed_dataset.py:158
↓ 2 callersFunctioncode
(dtype)
megatron/data/indexed_dataset.py:104
↓ 2 callersFunctionconversion_helper
Apply conversion to val. Recursively apply conversion if `val` is a nested tuple/list structure.
megatron/fp16/fp16.py:34
↓ 2 callersMethodconvert_ids_to_tokens
(self, ids)
megatron/tokenizer/bert_tokenization.py:181
↓ 2 callersFunctiondetach
(tensor)
megatron/data/emdr2_index.py:12
↓ 2 callersFunctionensure_divisibility
Ensure that numerator is divisible by the denominator.
megatron/mpu/utils.py:20
↓ 2 callersMethodfork
Fork the cuda rng state, perform operations, and exit with the original state.
megatron/mpu/random.py:178
↓ 2 callersFunctionget_adlr_autoresume
ADLR autoresume object. It can be None so no need to check if it is initialized.
megatron/global_vars.py:59
↓ 2 callersFunctionget_checkpoint_version
()
megatron/checkpointing.py:40
↓ 2 callersFunctionget_cuda_bare_metal_version
(cuda_dir)
megatron/fused_kernels/__init__.py:28
↓ 2 callersFunctionget_model_parallel_src_rank
Calculate the global rank corresponding to a local rank zeor in the model parallel group.
megatron/mpu/initialize.py:215
↓ 2 callersMethodget_neighbour_paragraphs
(self, doc_id)
tools/inverted_title_index.py:22
↓ 2 callersFunctionget_new_chkpt_ready
()
megatron/mpu/initialize.py:306
↓ 2 callersFunctionget_new_index_ready
()
megatron/mpu/initialize.py:300
↓ 2 callersFunctionget_open_retrieval_wiki_dataset
()
megatron/data/orqa_wiki_dataset.py:31
↓ 2 callersFunctioninit_distributed
Initialize torch.distributed and mpu.
megatron/initialize.py:76
↓ 2 callersFunctionlog2_ceil
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:29
↓ 2 callersFunctionlog2_ceil
megatron/fused_kernels/scaled_masked_softmax.h:29
↓ 2 callersMethodlp
(self, len)
megatron/model/search_strategy.py:27
↓ 2 callersFunctionmake_history_mask_3d
(block)
megatron/data/mask_creation_utils.py:37
↓ 2 callersFunctionmaster_params_to_model_params
Copy master parameters to model parameters. Args: model_params: List of model parameters created by :func:`prep_param_lists`.
megatron/fp16/fp16util.py:183
↓ 2 callersFunctionnormalize_answer
Normalize answer.
tasks/openqa/e2eqa/eval_utils.py:23
↓ 2 callersFunctionparallel_lm_logits
LM logits using word embedding weights.
megatron/model/language_model.py:28
↓ 2 callersFunctionprocess_batch
Process batch and produce inputs for the model.
tasks/openqa/dense_retriever/train_dense_retriever.py:62
↓ 2 callersMethodread_data
(self, path)
megatron/data/indexed_dataset.py:155
↓ 2 callersFunctionreduce_from_model_parallel_region
(input_)
megatron/mpu/mappings.py:148
↓ 2 callersMethodreset
Set to the initial state (no tracker).
megatron/mpu/random.py:142
↓ 2 callersMethodretriever_embedder
(self, tokens, mask, types, embedder_type, disable_dropout=False)
megatron/model/emdr2_model.py:63
↓ 2 callersMethodsearch_mips_index
Get the top-k blocks by the index distance metric. :param reconstruct: if True: return a [num_queries x k x embed_dim] array of blocks
megatron/data/emdr2_index.py:182
↓ 2 callersFunctionset_data_parallel_group
(group)
megatron/mpu/initialize.py:180
↓ 2 callersMethodset_epoch
(self, epoch)
megatron/data/samplers.py:74
↓ 2 callersFunctionsetup_model_and_optimizer
Setup model and optimizer.
megatron/training.py:130
↓ 2 callersMethodstate
(self)
megatron/data/emdr2_index.py:33
↓ 2 callersMethodstep
Set lr for all parameters groups.
megatron/learning_rates.py:73
↓ 2 callersFunctiont5_position_ids
(token_ids)
megatron/model/t5_model.py:44
↓ 2 callersMethodtokenize
(self, *text)
tools/create_evidence_indexed_dataset.py:22
↓ 2 callersFunctiontrain_step
Single training step.
megatron/training.py:202
↓ 2 callersFunctiontraining_log
Log training information such as losses, timing, ....
megatron/training.py:233
↓ 2 callersMethodupdate_master_grads
Copy the ``.grad`` attribute from stored references to fp16 parameters to the ``.grad`` attribute of the fp32 master parameters that
megatron/fp16/fp16.py:577
↓ 2 callersFunctionvocab_size_with_padding
(orig_vocab_size, args)
megatron/tokenizer/tokenizer.py:73
↓ 2 callersFunctionwhere
https://discuss.pytorch.org/t/how-can-i-do-the-operation-the-same-as-np-where/1329/9 :param cond: :param x_1: :param x_2: :return
megatron/model/search_strategy.py:8
↓ 1 callersFunctionBN_convert_float
Utility function for network_to_half(). Retained for legacy purposes.
megatron/fp16/fp16util.py:42
↓ 1 callersFunctionWARP_SHFL_XOR_NATIVE
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:50
↓ 1 callersFunctionWARP_SHFL_XOR_NATIVE
megatron/fused_kernels/scaled_masked_softmax.h:50
↓ 1 callersFunction__best_fitting_dtype
(vocab_size=None)
megatron/data/indexed_dataset.py:24
↓ 1 callersMethod__init__
(self, num_tokentypes=2, parallel_output=True, vocab_size=None)
megatron/model/t5_model.py:87
↓ 1 callersMethod__init__
(self, num_tokentypes=1, parallel_output=True, only_query_m
megatron/model/dualencoder_model.py:28
↓ 1 callersMethod__init__
(self, num_tokentypes=2, add_binary_head=True, parallel_output=True, vocab_size=None)
megatron/model/bert_model.py:107
↓ 1 callersMethod__init__
(self, data_source, replacement=False, num_samples=None)
megatron/data/samplers.py:35
↓ 1 callersMethod__init__
(self)
megatron/fp16/fp16util.py:35
↓ 1 callersMethod__init__
(self, name)
megatron/tokenizer/tokenizer.py:80
↓ 1 callersMethod__init__
(self, task_name, dataset_name, datapath, tokenizer, max_seq_length)
tasks/openqa/dense_retriever/evaluation/data.py:162
↓ 1 callersFunction_add_autoresume_args
(parser)
megatron/arguments.py:497
↓ 1 callersFunction_add_checkpointing_args
(parser)
megatron/arguments.py:318
↓ 1 callersFunction_add_data_args
(parser)
megatron/arguments.py:412
↓ 1 callersFunction_add_distributed_args
(parser)
megatron/arguments.py:374
↓ 1 callersFunction_add_emdr2_args
(parser)
megatron/arguments.py:508
↓ 1 callersFunction_add_initialization_args
(parser)
megatron/arguments.py:272
↓ 1 callersFunction_add_learning_rate_args
(parser)
megatron/arguments.py:285
↓ 1 callersFunction_add_mixed_precision_args
(parser)
megatron/arguments.py:343
↓ 1 callersFunction_add_network_size_args
(parser)
megatron/arguments.py:168
↓ 1 callersFunction_add_regularization_args
(parser)
megatron/arguments.py:215
↓ 1 callersFunction_add_training_args
(parser)
megatron/arguments.py:230
↓ 1 callersFunction_add_validation_args
(parser)
megatron/arguments.py:398
↓ 1 callersFunction_build_infinite_size_dataloader
Build a looped dataloader with infinite size.
tasks/openqa/e2eqa/train_e2eqa.py:378
↓ 1 callersFunction_build_infinite_size_dataloader
Build a looped dataloader with infinite size.
tasks/openqa/dense_retriever/train_dense_retriever.py:219
↓ 1 callersFunction_build_key_size_numel_dictionaries
Build the size on rank 0 and broadcast.
megatron/mpu/data.py:33
↓ 1 callersFunction_build_t5_tokenizer
Initialize T5 tokenizer.
megatron/global_vars.py:103
↓ 1 callersFunction_build_train_valid_dataloaders
Traing and validation dataloaders.
tasks/openqa/e2eqa/train_e2eqa.py:389
↓ 1 callersFunction_build_train_valid_dataloaders
Traing and validation dataloaders.
tasks/openqa/dense_retriever/train_dense_retriever.py:230
↓ 1 callersFunction_check_data_types
Check that all the keys have the same target data type.
megatron/mpu/data.py:26
↓ 1 callersMethod_check_overflow
(self)
megatron/fp16/fp16.py:294
↓ 1 callersMethod_checkpointed_forward
Forward method with activation checkpointing.
megatron/model/transformer.py:621
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
megatron/tokenizer/bert_tokenization.py:318
↓ 1 callersMethod_downscale_master
(self)
megatron/fp16/fp16.py:322
↓ 1 callersMethod_get_pointers
(sizes)
megatron/data/indexed_dataset.py:352
↓ 1 callersMethod_has_inf_or_nan
(x)
megatron/fp16/loss_scaler.py:53
↓ 1 callersFunction_init_autoresume
Set autoresume start time.
megatron/initialize.py:133
↓ 1 callersFunction_initialize_distributed
Initialize torch.distributed and mpu.
megatron/initialize.py:114
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
megatron/tokenizer/bert_tokenization.py:296
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
megatron/tokenizer/bert_tokenization.py:406
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
megatron/tokenizer/bert_tokenization.py:418
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
megatron/tokenizer/bert_tokenization.py:394
↓ 1 callersMethod_model_grads_to_master_grads
(self)
megatron/fp16/fp16.py:318
← previousnext →101–200 of 707, ranked by callers