Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DevSinghSachan/art
/ functions
Functions
712 in github.com/DevSinghSachan/art
⨍
Functions
712
◇
Types & classes
88
↓ 1 callers
Method
_tokenize_chinese_chars
Adds whitespace around any CJK character.
megatron/tokenizer/bert_tokenization.py:283
↓ 1 callers
Function
_train
Train the model.
tasks/dense_retriever/supervised_training/train_dense_retriever.py:254
↓ 1 callers
Function
_train
Train the model.
tasks/dense_retriever/zero_shot_training/train.py:204
↓ 1 callers
Function
_write_args_to_tensorboard
Write arguments to tensorboard.
megatron/initialize.py:126
↓ 1 callers
Function
accuracy_func_provider
Provide function that calculates accuracies.
tasks/dense_retriever/supervised_training/train_dense_retriever.py:395
↓ 1 callers
Function
accuracy_func_provider
(single_dataset_provider, datapath)
tasks/dense_retriever/zero_shot_training/train.py:111
↓ 1 callers
Method
add_additional_special_tokens
(self, tokens_list)
megatron/tokenizer/tokenizer.py:176
↓ 1 callers
Method
add_block_data
(self, row_id, block_embeds, allow_overwrite=False)
megatron/data/art_index.py:56
↓ 1 callers
Method
add_embed_data
Add the embedding of each block to the underlying FAISS index
megatron/data/art_index.py:164
↓ 1 callers
Method
add_embed_data
Add the embedding of each block to the underlying FAISS index
megatron/data/art_index.py:240
↓ 1 callers
Method
allreduce_params
(reduce_after=True, no_scale=False, fp32_allreduce=False)
megatron/model/distributed.py:35
↓ 1 callers
Function
attn_mask_postprocess
(attn_mask)
megatron/model/t5_model.py:35
↓ 1 callers
Method
backward
(ctx, output_grads)
megatron/model/fused_softmax.py:64
↓ 1 callers
Method
backward
(self, loss, retain_graph=False)
megatron/fp16/loss_scaler.py:71
↓ 1 callers
Function
backward_step
Backward step.
megatron/training.py:176
↓ 1 callers
Function
bert_extended_attention_mask
(attention_mask)
megatron/model/bert_model.py:35
↓ 1 callers
Function
bias_gelu
(bias, y)
megatron/model/fused_bias_gelu.py:32
↓ 1 callers
Function
bias_gelu_back
(g, bias, y)
megatron/model/fused_bias_gelu.py:40
↓ 1 callers
Function
build_evidence_index
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:378
↓ 1 callers
Function
build_sample
Convert to numpy and return a sample consumed by the batch producer.
megatron/data/orqa_wiki_dataset.py:101
↓ 1 callers
Function
build_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/dense_retriever/supervised_training/train_data_utils.py:94
↓ 1 callers
Function
build_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/dense_retriever/supervised_training/evaluation/data.py:139
↓ 1 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
calculate_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 callers
Function
call_evidence_index_builder
()
tasks/dense_retriever/zero_shot_training/train.py:195
↓ 1 callers
Function
check_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 callers
Method
clip_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 callers
Function
convert_module
Converts a module's immediate parameters and buffers to dtype.
megatron/fp16/fp16util.py:64
↓ 1 callers
Function
convert_network
Converts a network's parameters and buffers to dtype.
megatron/fp16/fp16util.py:80
↓ 1 callers
Method
convert_tokens_to_ids
(self, tokens)
megatron/tokenizer/bert_tokenization.py:178
↓ 1 callers
Method
convert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
megatron/tokenizer/bert_tokenization.py:185
↓ 1 callers
Function
copy_to_model_parallel_region
(input_)
megatron/mpu/mappings.py:144
↓ 1 callers
Method
data_iterator
iterates through data and handles wrap around
megatron/data/samplers.py:132
↓ 1 callers
Function
dense_retriever
(dataset_cls)
tasks/dense_retriever/supervised_training/run.py:9
↓ 1 callers
Method
dtype
(self)
megatron/data/indexed_dataset.py:427
↓ 1 callers
Method
entities
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 callers
Function
evaluate
Evaluation.
megatron/training.py:335
↓ 1 callers
Method
faiss_wrapper
(self)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:56
↓ 1 callers
Function
finish_beam
(outs, total_score, batchsize, eos_id)
megatron/model/search_strategy.py:103
↓ 1 callers
Function
finish_mpu_init
()
megatron/initialize.py:25
↓ 1 callers
Method
forward
(ctx, inputs, mask, scale)
megatron/model/fused_softmax.py:54
↓ 1 callers
Function
fp16_to_fp32
Convert fp16 `val` to fp32
megatron/fp16/fp16.py:56
↓ 1 callers
Function
fp32_to_fp16
Convert fp32 `val` to fp16
megatron/fp16/fp16.py:44
↓ 1 callers
Function
gather_from_model_parallel_region
(input_)
megatron/mpu/mappings.py:156
↓ 1 callers
Function
gather_split_1d_tensor
Opposite of above function, gather values from model parallel ranks.
megatron/mpu/random.py:113
↓ 1 callers
Function
gelu_impl
OpenAI's gelu implementation.
megatron/model/utils.py:52
↓ 1 callers
Method
generate_query_vectors
(self, eval_dataset)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:76
↓ 1 callers
Function
get_args
()
tools/inverted_title_index.py:66
↓ 1 callers
Function
get_args
()
tools/create_evidence_indexed_dataset_t0.py:50
↓ 1 callers
Function
get_args
()
tools/save_art_retriever.py:39
↓ 1 callers
Function
get_args
()
tools/create_evidence_indexed_dataset.py:63
↓ 1 callers
Function
get_args
()
tools/clean_checkpoints.py:32
↓ 1 callers
Function
get_bias_dropout_add
(training)
megatron/model/transformer.py:404
↓ 1 callers
Function
get_data_parallel_rank
Return my rank for the data parallel group.
megatron/mpu/initialize.py:211
↓ 1 callers
Method
get_evidence_dataset
(self)
tasks/dense_retriever/supervised_training/evaluation/evaluate.py:52
↓ 1 callers
Method
get_evidence_embedding
(self, path)
megatron/model/art_model.py:321
↓ 1 callers
Function
get_group_world_size_rank
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:23
↓ 1 callers
Function
get_learning_rate_scheduler
Build the learning rate scheduler.
megatron/training.py:113
↓ 1 callers
Method
get_lr
Learning rate decay functions from: https://openreview.net/pdf?id=BJYwwY9ll pg. 4
megatron/learning_rates.py:51
↓ 1 callers
Method
get_neighbour_paragraphs
(self, doc_id)
tools/inverted_title_index.py:21
↓ 1 callers
Function
get_one_epoch_dataloader
(dataset, batch_size=None)
megatron/indexer.py:59
↓ 1 callers
Function
get_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 callers
Function
get_open_retrieval_batch
(data_iterator)
megatron/data/pretokenized_evidence.py:18
↓ 1 callers
Function
get_open_retrieval_wiki_dataset
()
megatron/data/orqa_wiki_dataset.py:23
↓ 1 callers
Function
get_optimizer
Set up the optimizer.
megatron/training.py:73
↓ 1 callers
Function
get_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 callers
Function
get_pretokenized_evidence_dataset
()
megatron/data/pretokenized_evidence.py:7
↓ 1 callers
Function
get_qa_dataset
(qa_file, split)
tasks/dense_retriever/supervised_training/evaluation/data.py:13
↓ 1 callers
Function
get_rank
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:470
↓ 1 callers
Function
get_retrieval_score
()
tasks/dense_retriever/supervised_training/train_dense_retriever.py:384
↓ 1 callers
Function
get_retrieval_score
(mips_index=None, iteration_num=-1)
tasks/dense_retriever/zero_shot_training/train.py:165
↓ 1 callers
Function
get_t0_model
Return T0 model.
megatron/global_vars.py:57
↓ 1 callers
Method
get_tokentype_embedding
(self)
megatron/model/language_model.py:360
↓ 1 callers
Method
get_topk
(self, query_tensor)
megatron/model/art_model.py:345
↓ 1 callers
Function
get_wikipedia_evidence
Return T0 model.
megatron/global_vars.py:62
↓ 1 callers
Function
has_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 callers
Method
has_overflow
(self, params)
megatron/fp16/loss_scaler.py:49
↓ 1 callers
Method
has_overflow_serial
(self, params)
megatron/fp16/loss_scaler.py:120
↓ 1 callers
Function
infer_dataset_impl
(path)
megatron/data/indexed_dataset.py:35
↓ 1 callers
Function
init_distributed
Initialize torch.distributed and mpu.
megatron/initialize.py:57
↓ 1 callers
Method
init_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 callers
Method
is_in_use
Whether the current buffer hold on to any memory.
megatron/memory.py:79
↓ 1 callers
Method
load_attributes
(self, custom_load_path=None, key_list=None)
megatron/indexer.py:99
↓ 1 callers
Function
load_dataset
(args)
tools/get_beir_data.py:6
↓ 1 callers
Function
load_vocab
Loads a vocabulary file into a dictionary.
megatron/tokenizer/bert_tokenization.py:121
↓ 1 callers
Function
lower
(text)
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:158
↓ 1 callers
Function
lower
(text)
tasks/dense_retriever/zero_shot_training/eval_utils.py:37
↓ 1 callers
Function
main
()
create_doc_index.py:9
↓ 1 callers
Function
main
()
evaluate_open_retrieval.py:7
↓ 1 callers
Function
main
()
tools/create_evidence_indexed_dataset_t0.py:81
↓ 1 callers
Function
main
()
tools/create_doc_index.py:9
↓ 1 callers
Function
main
tools/evaluate_orqa.py:7
↓ 1 callers
Function
main
(args)
tools/save_art_retriever.py:10
← previous
next →
201–300 of 712, ranked by callers