MCPcopy Create free account

hub / github.com/DevSinghSachan/emdr2 / functions

Functions707 in github.com/DevSinghSachan/emdr2

↓ 1 callersFunctioninitialize_and_run_async_megatron
(allow_no_cuda=False)
tasks/openqa/e2eqa/async_indexer.py:26
↓ 1 callersFunctioninitialize_mips_group
()
megatron/mpu/initialize.py:104
↓ 1 callersMethodis_in_use
Whether the current buffer hold on to any memory.
megatron/memory.py:79
↓ 1 callersFunctionload_t5_checkpoint
Load T5 models from saved checkpoints
megatron/checkpointing.py:313
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
megatron/tokenizer/bert_tokenization.py:121
↓ 1 callersFunctionlower
(text)
tasks/openqa/e2eqa/eval_utils.py:37
↓ 1 callersFunctionlower
(text)
tasks/openqa/dense_retriever/evaluation/qa_validation.py:155
↓ 1 callersFunctionmain
()
create_doc_index.py:9
↓ 1 callersFunctionmain
()
evaluate_open_retrieval.py:7
↓ 1 callersFunctionmain
()
tools/create_doc_index.py:9
↓ 1 callersFunctionmain
tools/evaluate_orqa.py:7
↓ 1 callersFunctionmain
(args)
tools/save_emdr2_models.py:10
↓ 1 callersFunctionmain
()
tools/create_evidence_indexed_dataset.py:91
↓ 1 callersFunctionmain
(args)
tools/clean_checkpoints.py:10
↓ 1 callersFunctionmain
()
tasks/openqa/e2eqa/run.py:63
↓ 1 callersFunctionmerge_shards_and_save
Combine all the shards made using self.save_shard()
tasks/openqa/dense_retriever/evaluation/evaluate.py:236
↓ 1 callersMethodmerge_shards_and_save
Combine all the shards made using self.save_shard()
megatron/data/emdr2_index.py:72
↓ 1 callersFunctionmetric_max_over_ground_truths
(metric_fn, prediction, ground_truths)
tasks/openqa/e2eqa/eval_utils.py:56
↓ 1 callersFunctionmips_is_initialized
Check if mips group is initialized.
megatron/mpu/initialize.py:152
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy model gradients to master gradients. Args: model_params: List of model parameters created by :func:`prep_param_lists`.
megatron/fp16/fp16util.py:155
↓ 1 callersMethodnormalize_partial
(self, score_so_far, score_to_add, new_len)
megatron/model/search_strategy.py:35
↓ 1 callersFunctionnormalize_question
(question)
tasks/openqa/dense_retriever/train_data_utils.py:220
↓ 1 callersFunctionopen_retrieval_generative_qa
(dataset_cls)
tasks/openqa/e2eqa/run.py:9
↓ 1 callersFunctionparse_args
Parse all arguments.
megatron/arguments.py:24
↓ 1 callersFunctionpostprocess
(query_uid, query_ids_t5, query_ids_t5_len, topk_evidence_data)
megatron/model/emdr2_model.py:250
↓ 1 callersMethodprecomputed_index_wrapper
(self)
megatron/model/emdr2_model.py:414
↓ 1 callersFunctionprepare_context_ids
(maxlen)
megatron/model/emdr2_model.py:309
↓ 1 callersFunctionprocess_qa_batch
(batch)
tasks/openqa/dense_retriever/evaluation/data.py:25
↓ 1 callersMethodprocess_samples_from_single_path
(filename)
megatron/data/orqa_wiki_dataset.py:178
↓ 1 callersMethodprocess_samples_from_single_path
(filename)
tasks/openqa/e2eqa/train_data_utils.py:153
↓ 1 callersMethodprocess_samples_from_single_path
Abstract method that takes a filename and returns a list of dataset samples, each sample being a dict of {'text': string, 'text':
tasks/openqa/dense_retriever/train_data_utils.py:212
↓ 1 callersMethodprocess_samples_from_single_path
(filename)
tasks/openqa/dense_retriever/evaluation/data.py:191
↓ 1 callersMethodprocess_wikipedia
(filename)
tools/inverted_title_index.py:40
↓ 1 callersFunctionquery_extended_context_t5_format
(query_ids, title_ids, context_doc_list, main_doc_idx, max_seq_length, sep_id, pad_id)
megatron/model/emdr2_model.py:306
↓ 1 callersFunctionquery_single_context_t5_format
(query_ids, title_ids, context_ids, max_seq_length, sep_id, pad_id)
megatron/model/emdr2_model.py:362
↓ 1 callersMethodread_index
(self, path)
megatron/data/indexed_dataset.py:137
↓ 1 callersFunctionreader_em_score
(model, dataloader, topk_retrievals)
tasks/openqa/e2eqa/train_e2eqa.py:217
↓ 1 callersFunctionregex_match
Test if a regex pattern is contained within a text.
tasks/openqa/dense_retriever/evaluation/qa_validation.py:127
↓ 1 callersFunctionremove_articles
(text)
tasks/openqa/e2eqa/eval_utils.py:27
↓ 1 callersFunctionremove_articles
(text)
tasks/openqa/dense_retriever/evaluation/qa_validation.py:145
↓ 1 callersFunctionremove_punc
(text)
tasks/openqa/e2eqa/eval_utils.py:33
↓ 1 callersFunctionremove_punc
(text)
tasks/openqa/dense_retriever/evaluation/qa_validation.py:151
↓ 1 callersFunctionreport_memory
Simple GPU memory report.
megatron/utils.py:50
↓ 1 callersMethodreset
Reset timer.
megatron/global_vars.py:195
↓ 1 callersFunctionretrieval_loss
(model, dataloader)
tasks/openqa/dense_retriever/train_dense_retriever.py:429
↓ 1 callersMethodrun_async
(self)
tasks/openqa/e2eqa/async_indexer.py:116
↓ 1 callersFunctionsave_shard
Save the block data that was created this in this process
tasks/openqa/dense_retriever/evaluation/evaluate.py:224
↓ 1 callersMethodsave_shard
Save the block data that was created this in this process
megatron/data/emdr2_index.py:63
↓ 1 callersFunctionscatter_to_model_parallel_region
(input_)
megatron/mpu/mappings.py:152
↓ 1 callersMethodsend_index_ready_signal
(self)
tasks/openqa/e2eqa/async_indexer.py:131
↓ 1 callersFunctionset_checkpoint_version
(value)
megatron/checkpointing.py:34
↓ 1 callersFunctionset_model_parallel_group
(group)
megatron/mpu/initialize.py:166
↓ 1 callersFunctionset_model_parallel_rank
Set model parallel rank.
megatron/mpu/initialize.py:201
↓ 1 callersFunctionset_model_parallel_world_size
Set the model parallel size
megatron/mpu/initialize.py:187
↓ 1 callersMethodset_tokentype_embedding
(self, new_tokentype_embedding)
megatron/model/language_model.py:363
↓ 1 callersFunctionsetup_emdr2_groups_and_vars
()
tasks/openqa/e2eqa/async_indexer.py:69
↓ 1 callersMethodshutdown
(self)
tasks/openqa/dense_retriever/evaluation/tokenizers.py:146
↓ 1 callersFunctionsingle_dataset_provider
(datapath)
tasks/openqa/e2eqa/run.py:40
↓ 1 callersFunctionsingle_dataset_provider
(datapath)
tasks/openqa/dense_retriever/run.py:34
↓ 1 callersMethodslice
Return a view of the list of tokens from [i, j).
tasks/openqa/dense_retriever/evaluation/tokenizers.py:39
↓ 1 callersFunctionsplit_tensor_along_last_dim
Split a tensor along its last dimension. Arguments: tensor: input tensor. num_partitions: number of partitions to split the tensor
megatron/mpu/utils.py:33
↓ 1 callersFunctionsplit_tensor_into_1d_equal_chunks
Break a tensor into equal 1D chunks.
megatron/mpu/random.py:104
↓ 1 callersMethodstate_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
megatron/module.py:27
↓ 1 callersMethodstate_dict_for_save_checkpoint
Save dict with state dicts of each of the models.
megatron/model/dualencoder_model.py:84
↓ 1 callersFunctiont5_extended_attention_mask
(attention_mask_list)
megatron/model/t5_model.py:33
↓ 1 callersFunctiontopk_accuracy
(k)
tasks/openqa/dense_retriever/train_dense_retriever.py:466
↓ 1 callersMethodtrack_and_report_progress
(self, batch_size)
megatron/indexer_emdr2.py:71
↓ 1 callersFunctiontrain
(train_valid_datasets_provider, model_provider, forward_step=_cross_entropy_forward_step,
tasks/openqa/e2eqa/train_e2eqa.py:556
↓ 1 callersFunctiontrain
(train_valid_datasets_provider, model_provider, forward_step=_cross_entropy_forward_step, end_of_epo
tasks/openqa/dense_retriever/train_dense_retriever.py:316
↓ 1 callersFunctiontrain_valid_datasets_provider
Build train and validation dataset.
tasks/openqa/e2eqa/run.py:11
↓ 1 callersFunctiontrain_valid_datasets_provider
()
tasks/openqa/dense_retriever/run.py:11
↓ 1 callersMethoduntokenize
Returns the original text (with whitespace reinserted).
tasks/openqa/dense_retriever/evaluation/tokenizers.py:45
↓ 1 callersFunctionupdate_beam_state
(outs, total_score, topk, topk_score, eos_id, alpha, tokens_enc, z_block, types)
megatron/model/search_strategy.py:42
↓ 1 callersMethodupdate_evidence_embedding
Reload index with new data loaded from disk. Should be performed after each indexer job completes.
megatron/model/emdr2_model.py:426
↓ 1 callersMethodupdate_index
Delete existing index and create a new
megatron/data/emdr2_index.py:155
↓ 1 callersMethodupdate_scale
(self, overflow)
megatron/fp16/loss_scaler.py:56
↓ 1 callersFunctionvarsize_gather_nograd
gather tensors of different sizes along the first dimension
tasks/openqa/dense_retriever/evaluation/evaluate.py:199
↓ 1 callersMethodvocab_range_from_global_vocab_size
(global_vocab_size, rank, world_size)
megatron/mpu/utils.py:67
↓ 1 callersMethodvocab_range_from_per_partition_vocab_size
(per_partition_vocab_size, rank, world_size)
megatron/mpu/utils.py:60
↓ 1 callersMethodvocab_size
(self)
megatron/tokenizer/tokenizer.py:86
↓ 1 callersFunctionwhite_space_fix
(text)
tasks/openqa/e2eqa/eval_utils.py:30
↓ 1 callersFunctionwhite_space_fix
(text)
tasks/openqa/dense_retriever/evaluation/qa_validation.py:148
↓ 1 callersMethodwriter
(cls, path, dtype)
megatron/data/indexed_dataset.py:340
↓ 1 callersMethodzero_grad
Zero fp32 and fp16 parameter grads.
megatron/fp16/fp16.py:268
FunctionPYBIND11_MODULE
megatron/fused_kernels/scaled_upper_triang_masked_softmax.cpp:62
FunctionPYBIND11_MODULE
megatron/fused_kernels/scaled_masked_softmax.cpp:67
Method__call__
(self, name)
megatron/global_vars.py:223
Method__del__
(self)
megatron/data/indexed_dataset.py:162
Method__del__
(self)
megatron/data/indexed_dataset.py:422
Method__del__
(self)
megatron/data/indexed_dataset.py:472
Method__del__
(self)
tasks/openqa/dense_retriever/evaluation/tokenizers.py:149
Method__enter__
(self)
megatron/data/indexed_dataset.py:342
Method__exit__
(self, exc_type, exc_val, exc_tb)
megatron/data/indexed_dataset.py:380
Method__getitem__
(self, idx)
megatron/data/orqa_wiki_dataset.py:165
Method__getitem__
(self, idx)
megatron/data/indexed_dataset.py:167
Method__getitem__
(self, idx)
megatron/data/indexed_dataset.py:247
Method__getitem__
(self, i)
megatron/data/indexed_dataset.py:439
Method__getitem__
(self, idx)
megatron/data/indexed_dataset.py:481
Method__getitem__
(self, idx)
tasks/openqa/e2eqa/train_data_utils.py:128
Method__getitem__
(self, idx)
tasks/openqa/dense_retriever/train_data_utils.py:168
← previousnext →301–400 of 707, ranked by callers