MCPcopy Create free account

hub / github.com/DevSinghSachan/art / functions

Functions712 in github.com/DevSinghSachan/art

↓ 2 callersFunction_normalize_answer
(s)
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:147
↓ 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 callersMethodadd
Track the rng state.
megatron/mpu/random.py:160
↓ 2 callersMethodadd_item
(self, tensor)
megatron/data/indexed_dataset.py:284
↓ 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_data_loader
Data loader. Note that batch-size is the local (per GPU) batch-size.
tasks/dense_retriever/zero_shot_training/train.py:129
↓ 2 callersFunctionbuild_token_types_from_context_list
(ctx_list, tokenizer, max_seq_length)
tasks/dense_retriever/supervised_training/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/art_index.py:12
↓ 2 callersMethodend_document
(self)
megatron/data/indexed_dataset.py:291
↓ 2 callersFunctionensure_divisibility
Ensure that numerator is divisible by the denominator.
megatron/mpu/utils.py:20
↓ 2 callersMethodfinalize
(self, index_file)
megatron/data/indexed_dataset.py:314
↓ 2 callersMethodfork
Fork the cuda rng state, perform operations, and exit with the original state.
megatron/mpu/random.py:178
↓ 2 callersFunctionget_checkpoint_version
()
megatron/checkpointing.py:40
↓ 2 callersFunctionget_cuda_bare_metal_version
(cuda_dir)
megatron/fused_kernels/__init__.py:28
↓ 2 callersMethodget_evidence_embedding
(self)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:48
↓ 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:198
↓ 2 callersMethodinit_state_dict_from_bert
Initialize the state from pre-trained BERT model
megatron/model/art_model.py:197
↓ 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 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/dense_retriever/zero_shot_training/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/dense_retriever/supervised_training/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/art_model.py:41
↓ 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/art_index.py:182
↓ 2 callersMethodset_epoch
(self, epoch)
megatron/data/samplers.py:74
↓ 2 callersFunctionsetup_model_and_optimizer
Setup model and optimizer.
megatron/training.py:139
↓ 2 callersMethodstate
(self)
megatron/data/art_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:30
↓ 2 callersFunctiontrain_step
Single training step.
megatron/training.py:213
↓ 2 callersFunctiontraining_log
Log training information such as losses, timing, ....
megatron/training.py:244
↓ 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 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, call_load_attributes_func=True, custom_load_path=None, key_list=None)
megatron/indexer.py:83
↓ 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:29
↓ 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/dense_retriever/supervised_training/evaluation/data.py:159
↓ 1 callersFunction_add_art_args
(parser)
megatron/arguments.py:474
↓ 1 callersFunction_add_checkpointing_args
(parser)
megatron/arguments.py:299
↓ 1 callersFunction_add_data_args
(parser)
megatron/arguments.py:389
↓ 1 callersFunction_add_distributed_args
(parser)
megatron/arguments.py:352
↓ 1 callersFunction_add_initialization_args
(parser)
megatron/arguments.py:254
↓ 1 callersFunction_add_learning_rate_args
(parser)
megatron/arguments.py:266
↓ 1 callersFunction_add_mixed_precision_args
(parser)
megatron/arguments.py:323
↓ 1 callersFunction_add_network_size_args
(parser)
megatron/arguments.py:152
↓ 1 callersFunction_add_regularization_args
(parser)
megatron/arguments.py:198
↓ 1 callersFunction_add_training_args
(parser)
megatron/arguments.py:213
↓ 1 callersFunction_add_validation_args
(parser)
megatron/arguments.py:376
↓ 1 callersFunction_build_infinite_size_dataloader
Build a looped dataloader with infinite size.
tasks/dense_retriever/supervised_training/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_t0_model
Initialize T0 model.
megatron/global_vars.py:132
↓ 1 callersFunction_build_t0_tokenizer
Initialize T0 tokenizer.
megatron/global_vars.py:124
↓ 1 callersFunction_build_train_dataloader
Train dataloader.
tasks/dense_retriever/zero_shot_training/train.py:149
↓ 1 callersFunction_build_train_valid_dataloaders
Traing and validation dataloaders.
tasks/dense_retriever/supervised_training/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_initialize_distributed
Initialize torch.distributed and mpu.
megatron/initialize.py:95
↓ 1 callersFunction_initialize_mem_buffs
Initialize manually allocated static memory.
megatron/initialize.py:135
↓ 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 callersFunction_load_wikipedia_evidence
Load the DPR wikipedia evidence file
megatron/global_vars.py:116
↓ 1 callersMethod_model_grads_to_master_grads
(self)
megatron/fp16/fp16.py:318
↓ 1 callersFunction_parse_args
Parse entire arguments.
megatron/global_vars.py:97
↓ 1 callersFunction_print_args
Print arguments.
megatron/arguments.py:135
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
megatron/tokenizer/bert_tokenization.py:263
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
megatron/tokenizer/bert_tokenization.py:252
↓ 1 callersFunction_set_random_seed
Set random seed for reproducibility.
megatron/initialize.py:114
↓ 1 callersFunction_set_tensorboard_writer
Set tensorboard writer.
megatron/global_vars.py:153
↓ 1 callersFunction_set_timers
Initialize timers.
megatron/global_vars.py:172
↓ 1 callersMethod_step_with_closure
(self, closure)
megatron/fp16/fp16.py:476
← previousnext →101–200 of 712, ranked by callers