MCPcopy Create free account

hub / github.com/DevSinghSachan/art / functions

Functions712 in github.com/DevSinghSachan/art

↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
megatron/tokenizer/bert_tokenization.py:283
↓ 1 callersFunction_train
Train the model.
tasks/dense_retriever/supervised_training/train_dense_retriever.py:254
↓ 1 callersFunction_train
Train the model.
tasks/dense_retriever/zero_shot_training/train.py:204
↓ 1 callersFunction_write_args_to_tensorboard
Write arguments to tensorboard.
megatron/initialize.py:126
↓ 1 callersFunctionaccuracy_func_provider
Provide function that calculates accuracies.
tasks/dense_retriever/supervised_training/train_dense_retriever.py:395
↓ 1 callersFunctionaccuracy_func_provider
(single_dataset_provider, datapath)
tasks/dense_retriever/zero_shot_training/train.py:111
↓ 1 callersMethodadd_additional_special_tokens
(self, tokens_list)
megatron/tokenizer/tokenizer.py:176
↓ 1 callersMethodadd_block_data
(self, row_id, block_embeds, allow_overwrite=False)
megatron/data/art_index.py:56
↓ 1 callersMethodadd_embed_data
Add the embedding of each block to the underlying FAISS index
megatron/data/art_index.py:164
↓ 1 callersMethodadd_embed_data
Add the embedding of each block to the underlying FAISS index
megatron/data/art_index.py:240
↓ 1 callersMethodallreduce_params
(reduce_after=True, no_scale=False, fp32_allreduce=False)
megatron/model/distributed.py:35
↓ 1 callersFunctionattn_mask_postprocess
(attn_mask)
megatron/model/t5_model.py:35
↓ 1 callersMethodbackward
(ctx, output_grads)
megatron/model/fused_softmax.py:64
↓ 1 callersMethodbackward
(self, loss, retain_graph=False)
megatron/fp16/loss_scaler.py:71
↓ 1 callersFunctionbackward_step
Backward step.
megatron/training.py:176
↓ 1 callersFunctionbert_extended_attention_mask
(attention_mask)
megatron/model/bert_model.py:35
↓ 1 callersFunctionbias_gelu
(bias, y)
megatron/model/fused_bias_gelu.py:32
↓ 1 callersFunctionbias_gelu_back
(g, bias, y)
megatron/model/fused_bias_gelu.py:40
↓ 1 callersFunctionbuild_evidence_index
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:378
↓ 1 callersFunctionbuild_sample
Convert to numpy and return a sample consumed by the batch producer.
megatron/data/orqa_wiki_dataset.py:101
↓ 1 callersFunctionbuild_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/dense_retriever/supervised_training/train_data_utils.py:94
↓ 1 callersFunctionbuild_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/dense_retriever/supervised_training/evaluation/data.py:139
↓ 1 callersFunctionbuild_sample
(query_uid, token_ids, token_types, num_tokens, prefixed_query_text, reference)
tasks/dense_retriever/zero_shot_training/train_data_utils.py:52
↓ 1 callersFunctionbuild_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed.
megatron/data/orqa_wiki_dataset.py:64
↓ 1 callersFunctionbuild_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed.
tasks/dense_retriever/supervised_training/evaluation/data.py:104
↓ 1 callersFunctionbuild_tokens_types_paddings_from_ids
(src_ids, max_seq_length, cls_id, sep_id, pad_id)
tasks/dense_retriever/zero_shot_training/train_data_utils.py:20
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
megatron/data/orqa_wiki_dataset.py:47
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/dense_retriever/supervised_training/train_data_utils.py:29
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/dense_retriever/supervised_training/evaluation/data.py:92
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/dense_retriever/zero_shot_training/train_data_utils.py:9
↓ 1 callersFunctioncalculate_matches
Evaluates answers presence in the set of documents. This function is supposed to be used with a large collection of documents and results. It
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:32
↓ 1 callersFunctioncall_evidence_index_builder
()
tasks/dense_retriever/zero_shot_training/train.py:195
↓ 1 callersFunctioncheck_checkpoint_args
Ensure fixed arguments for a model are the same for the input arguments and the one retreived frm checkpoint.
megatron/checkpointing.py:44
↓ 1 callersMethodclip_master_grads
Clips fp32 master gradients via ``torch.nn.utils.clip_grad_norm``. Args: max_norm (float or int): max norm of the gradie
megatron/fp16/fp16.py:332
↓ 1 callersFunctionconvert_module
Converts a module's immediate parameters and buffers to dtype.
megatron/fp16/fp16util.py:64
↓ 1 callersFunctionconvert_network
Converts a network's parameters and buffers to dtype.
megatron/fp16/fp16util.py:80
↓ 1 callersMethodconvert_tokens_to_ids
(self, tokens)
megatron/tokenizer/bert_tokenization.py:178
↓ 1 callersMethodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
megatron/tokenizer/bert_tokenization.py:185
↓ 1 callersFunctioncopy_to_model_parallel_region
(input_)
megatron/mpu/mappings.py:144
↓ 1 callersMethoddata_iterator
iterates through data and handles wrap around
megatron/data/samplers.py:132
↓ 1 callersFunctiondense_retriever
(dataset_cls)
tasks/dense_retriever/supervised_training/run.py:9
↓ 1 callersMethoddtype
(self)
megatron/data/indexed_dataset.py:427
↓ 1 callersMethodentities
Returns a list of named-entity-recognition tags of each token. Returns None if this annotation was not included.
tasks/dense_retriever/supervised_training/evaluation/tokenizers.py:80
↓ 1 callersFunctionevaluate
Evaluation.
megatron/training.py:335
↓ 1 callersMethodfaiss_wrapper
(self)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:56
↓ 1 callersFunctionfinish_beam
(outs, total_score, batchsize, eos_id)
megatron/model/search_strategy.py:103
↓ 1 callersFunctionfinish_mpu_init
()
megatron/initialize.py:25
↓ 1 callersMethodforward
(ctx, inputs, mask, scale)
megatron/model/fused_softmax.py:54
↓ 1 callersFunctionfp16_to_fp32
Convert fp16 `val` to fp32
megatron/fp16/fp16.py:56
↓ 1 callersFunctionfp32_to_fp16
Convert fp32 `val` to fp16
megatron/fp16/fp16.py:44
↓ 1 callersFunctiongather_from_model_parallel_region
(input_)
megatron/mpu/mappings.py:156
↓ 1 callersFunctiongather_split_1d_tensor
Opposite of above function, gather values from model parallel ranks.
megatron/mpu/random.py:113
↓ 1 callersFunctiongelu_impl
OpenAI's gelu implementation.
megatron/model/utils.py:52
↓ 1 callersMethodgenerate_query_vectors
(self, eval_dataset)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:76
↓ 1 callersFunctionget_args
()
tools/inverted_title_index.py:66
↓ 1 callersFunctionget_args
()
tools/create_evidence_indexed_dataset_t0.py:50
↓ 1 callersFunctionget_args
()
tools/save_art_retriever.py:39
↓ 1 callersFunctionget_args
()
tools/create_evidence_indexed_dataset.py:63
↓ 1 callersFunctionget_args
()
tools/clean_checkpoints.py:32
↓ 1 callersFunctionget_bias_dropout_add
(training)
megatron/model/transformer.py:404
↓ 1 callersFunctionget_data_parallel_rank
Return my rank for the data parallel group.
megatron/mpu/initialize.py:211
↓ 1 callersMethodget_evidence_dataset
(self)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:52
↓ 1 callersMethodget_evidence_embedding
(self, path)
megatron/model/art_model.py:321
↓ 1 callersFunctionget_group_world_size_rank
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:23
↓ 1 callersFunctionget_learning_rate_scheduler
Build the learning rate scheduler.
megatron/training.py:113
↓ 1 callersMethodget_lr
Learning rate decay functions from: https://openreview.net/pdf?id=BJYwwY9ll pg. 4
megatron/learning_rates.py:51
↓ 1 callersMethodget_neighbour_paragraphs
(self, doc_id)
tools/inverted_title_index.py:21
↓ 1 callersFunctionget_one_epoch_dataloader
(dataset, batch_size=None)
megatron/indexer.py:59
↓ 1 callersFunctionget_one_epoch_qa_dataloader
Data loader. Note that batch-size is the local (per GPU) batch-size. NOTE: This dataloader is not distributed !!!
tasks/dense_retriever/supervised_training/evaluation/data.py:60
↓ 1 callersFunctionget_open_retrieval_batch
(data_iterator)
megatron/data/pretokenized_evidence.py:18
↓ 1 callersFunctionget_open_retrieval_wiki_dataset
()
megatron/data/orqa_wiki_dataset.py:23
↓ 1 callersFunctionget_optimizer
Set up the optimizer.
megatron/training.py:73
↓ 1 callersFunctionget_params_for_weight_decay_optimization
Divide params into with-weight-decay and without-weight-decay groups. Layernorms and baises will have no weight decay but the rest will.
megatron/model/utils.py:64
↓ 1 callersFunctionget_pretokenized_evidence_dataset
()
megatron/data/pretokenized_evidence.py:7
↓ 1 callersFunctionget_qa_dataset
(qa_file, split)
tasks/dense_retriever/supervised_training/evaluation/data.py:13
↓ 1 callersFunctionget_rank
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:470
↓ 1 callersFunctionget_retrieval_score
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:384
↓ 1 callersFunctionget_retrieval_score
(mips_index=None, iteration_num=-1)
tasks/dense_retriever/zero_shot_training/train.py:165
↓ 1 callersFunctionget_t0_model
Return T0 model.
megatron/global_vars.py:57
↓ 1 callersMethodget_tokentype_embedding
(self)
megatron/model/language_model.py:360
↓ 1 callersMethodget_topk
(self, query_tensor)
megatron/model/art_model.py:345
↓ 1 callersFunctionget_wikipedia_evidence
Return T0 model.
megatron/global_vars.py:62
↓ 1 callersFunctionhas_answer
Check if a document contains an answer string. If `match_type` is string, token matching is done between the text and answer. If `match_type`
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:101
↓ 1 callersMethodhas_overflow
(self, params)
megatron/fp16/loss_scaler.py:49
↓ 1 callersMethodhas_overflow_serial
(self, params)
megatron/fp16/loss_scaler.py:120
↓ 1 callersFunctioninfer_dataset_impl
(path)
megatron/data/indexed_dataset.py:35
↓ 1 callersFunctioninit_distributed
Initialize torch.distributed and mpu.
megatron/initialize.py:57
↓ 1 callersMethodinit_state_dict_from_dualencoder
Initialize the state from pre-trained DPR model and pre-trained T5 mode on iteration zero of pretraining
megatron/model/art_model.py:203
↓ 1 callersMethodis_in_use
Whether the current buffer hold on to any memory.
megatron/memory.py:79
↓ 1 callersMethodload_attributes
(self, custom_load_path=None, key_list=None)
megatron/indexer.py:99
↓ 1 callersFunctionload_dataset
(args)
tools/get_beir_data.py:6
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
megatron/tokenizer/bert_tokenization.py:121
↓ 1 callersFunctionlower
(text)
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:158
↓ 1 callersFunctionlower
(text)
tasks/dense_retriever/zero_shot_training/eval_utils.py:37
↓ 1 callersFunctionmain
()
create_doc_index.py:9
↓ 1 callersFunctionmain
()
evaluate_open_retrieval.py:7
↓ 1 callersFunctionmain
()
tools/create_evidence_indexed_dataset_t0.py:81
↓ 1 callersFunctionmain
()
tools/create_doc_index.py:9
↓ 1 callersFunctionmain
tools/evaluate_orqa.py:7
↓ 1 callersFunctionmain
(args)
tools/save_art_retriever.py:10
← previousnext →201–300 of 712, ranked by callers