MCPcopy Create free account

hub / github.com/DevSinghSachan/art / functions

Functions712 in github.com/DevSinghSachan/art

Functioncheck_answer
Search through all the top docs to see if they have any of the answers.
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:78
Functioncheckpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
megatron/mpu/random.py:316
Methodclean_up_tokenization
Clean up a list of simple English tokenization artifacts like spaces before punctuations and abreviated forms.
megatron/tokenizer/bert_tokenization.py:188
Functionclip_grad_norm
Clips gradient norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to ha
megatron/mpu/grads.py:74
Methodcls
(self)
megatron/tokenizer/tokenizer.py:110
Methodcls
(self)
megatron/tokenizer/tokenizer.py:216
Functionconvert_ids_to_tokens
(inv_vocab, ids)
megatron/tokenizer/bert_tokenization.py:148
Functionconvert_tokens_to_ids
(vocab, tokens)
megatron/tokenizer/bert_tokenization.py:144
Functioncreate_doc_idx
(sizes)
megatron/data/indexed_dataset.py:119
Methodcustom
(start, end)
megatron/model/transformer.py:624
Methodcustom_forward
(*inputs)
megatron/model/transformer.py:625
Functiondataset_exists
(path, impl)
megatron/data/indexed_dataset.py:75
Methoddecode_token_ids
(self, token_ids)
megatron/tokenizer/tokenizer.py:201
Functiondestroy_model_parallel
Set the groups to none.
megatron/mpu/initialize.py:216
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:105
Functiondispatch_scaled_masked_softmax_backward
megatron/fused_kernels/scaled_masked_softmax.h:366
Functiondispatch_scaled_masked_softmax_forward
megatron/fused_kernels/scaled_masked_softmax.h:275
Functiondispatch_scaled_upper_triang_masked_softmax_backward
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:352
Functiondispatch_scaled_upper_triang_masked_softmax_forward
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:263
Functiondistributed_metrics_func_provider
(datapath)
tasks/dense_retriever/supervised_training/run.py:45
Functiondistributed_metrics_func_provider
(datapath)
tasks/dense_retriever/zero_shot_training/run.py:42
Methoddoc_idx
(self)
megatron/data/indexed_dataset.py:435
Methoddoc_idx
(self)
megatron/data/indexed_dataset.py:519
Methodencode
(self, csv_line)
tools/create_evidence_indexed_dataset_t0.py:31
Methodend_document
(self)
megatron/data/indexed_dataset.py:551
Methodentity_groups
Group consecutive entity tokens with the same NER tag.
tasks/dense_retriever/supervised_training/evaluation/tokenizers.py:116
Methodeod
(self)
megatron/tokenizer/tokenizer.py:125
Methodeos_token
End of sentence token id
megatron/tokenizer/tokenizer.py:237
Methodeos_token_id
Id of the end of sentence token in the vocabulary.
megatron/tokenizer/tokenizer.py:252
Functionerf_gelu
(x)
megatron/model/utils.py:61
Functionevaluate_and_print_results
Helper function to evaluate and dump results on screen.
megatron/training.py:366
Functionexact_match_score
(prediction, ground_truth)
tasks/dense_retriever/supervised_training/evaluation/qa_validation.py:143
Functionexact_match_score
(prediction, ground_truth)
tasks/dense_retriever/zero_shot_training/eval_utils.py:43
Methodexists
(path)
megatron/data/indexed_dataset.py:533
Methodfinalize
(self, index_file)
megatron/data/indexed_dataset.py:566
Functionfloat_conversion
(val)
megatron/fp16/fp16.py:58
Methodforward
(ctx, inputs, scale)
megatron/model/fused_softmax.py:26
Methodforward
(self, input, mask)
megatron/model/fused_softmax.py:99
Methodforward
(self, hidden_states, word_embeddings_weight)
megatron/model/t5_model.py:76
Methodforward
(self, encoder_input_ids, decoder_input_ids, encoder_attn_mask, decoder_attn_mask, encoder_dec
megatron/model/t5_model.py:112
Methodforward
(self, *inputs, **kwargs)
megatron/model/distributed.py:74
Methodforward
(self, hidden_states, sequence_index=0)
megatron/model/language_model.py:89
Methodforward
(self, input_ids, position_ids, tokentype_ids=None)
megatron/model/language_model.py:169
Methodforward
(self, enc_input_ids, enc_position_ids, enc_attention_mask, dec_input_ids=None, dec_position_i
megatron/model/language_model.py:312
Methodforward
(self, query_uid, query_ids_bert, query_types, query_mask_bert, prefixed_query_ids_t0, prefixe
megatron/model/art_model.py:65
Methodforward
Run a forward pass for each of the models and return the respective embeddings.
megatron/model/dualencoder_model.py:58
Methodforward
(self, input_ids, attention_mask, tokentype_ids=None)
megatron/model/dualencoder_model.py:168
Methodforward
(ctx, input, bias)
megatron/model/fused_bias_gelu.py:50
Methodforward
(self, hidden_states)
megatron/model/transformer.py:94
Methodforward
(self, hidden_states, attention_mask, layer_past=None, get_key_value=False, encoder_output=Non
megatron/model/transformer.py:212
Methodforward
(self, hidden_states, attention_mask, encoder_output=None, enc_dec_attn_mask=None, sim_scores=
megatron/model/transformer.py:474
Methodforward
(self, hidden_states, attention_mask, layer_past=None, get_key_value=False, encoder_output=Non
megatron/model/transformer.py:648
Methodforward
(self, hidden_states, word_embeddings_weight)
megatron/model/bert_model.py:93
Methodforward
(self, input_ids, attention_mask, tokentype_ids=None, lm_labels=None)
megatron/model/bert_model.py:136
Methodforward
(self, *inputs, **kwargs)
megatron/fp16/fp16.py:73
Methodforward
(self, input)
megatron/fp16/fp16util.py:38
Methodforward
(self, *inputs)
megatron/fp16/fp16util.py:100
Methodforward
(self, input_)
megatron/mpu/layers.py:147
Methodforward
(self, input_)
megatron/mpu/layers.py:249
Methodforward
(self, input_)
megatron/mpu/layers.py:346
Methodforward
(ctx, vocab_parallel_logits, target)
megatron/mpu/cross_entropy.py:28
Methodforward
(ctx, run_function, *args)
megatron/mpu/random.py:253
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:84
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:100
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:116
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:132
Functionfwd
megatron/fused_kernels/scaled_upper_triang_masked_softmax.cpp:34
Functionfwd
megatron/fused_kernels/scaled_masked_softmax.cpp:35
Methodgenerate_output
(self, model, query_uid, query_ids_bert, query_types, query_mask_bert, query_ids_t5, query_ids_t5_len)
megatron/model/search_strategy.py:133
Methodgenerate_output
(self, model, query_uid, query_ids_bert, query_types, query_mask_bert, query_ids_t5, query_ids_t5_len)
megatron/model/search_strategy.py:189
Functionget_available_dataset_impl
()
megatron/data/indexed_dataset.py:31
Methodget_data
Return the data currently in use.
megatron/memory.py:110
Functionget_data_parallel_world_size
Return world size for the data parallel group.
megatron/mpu/initialize.py:206
Methodget_doc_idx
(self)
megatron/data/indexed_dataset.py:522
Functionget_exit_interval
()
megatron/mpu/initialize.py:295
Functionget_gloo_comm_group
()
megatron/mpu/initialize.py:265
Functionget_index_group
()
megatron/mpu/initialize.py:277
Functionget_ltor_masks_and_position_ids
Build masks and position id for left to right model.
megatron/utils.py:80
Functionget_mem_buff
Get the memory buffer.
megatron/memory.py:32
Functionget_new_chkpt_ready
()
megatron/mpu/initialize.py:289
Functionget_new_index_ready
()
megatron/mpu/initialize.py:283
Methodget_next_buffer
(self)
megatron/memory.py:140
Functionget_open_retrieval_batch
(data_iterator)
megatron/data/orqa_wiki_dataset.py:34
Functionget_tasks_args
Provide extra arguments required for tasks.
tasks/run.py:11
Functionget_train_group
()
megatron/mpu/initialize.py:271
Functionhalf_conversion
(val)
megatron/fp16/fp16.py:46
Methodhas_overflow
(self, params)
megatron/fp16/loss_scaler.py:127
Functioninit_
(tensor)
megatron/model/utils.py:27
Functioninit_checkpointed_activations_memory_buffer
Initializ the memory buffer for the checkpointed activations.
megatron/mpu/random.py:44
Functioninit_emdr2_groups
(max_training_rank, world_size)
megatron/mpu/initialize.py:238
Methodinit_state_dict_from_bert
Initialize the state from a pretrained BERT model on iteration zero of ICT pretraining
megatron/model/dualencoder_model.py:112
Functioninitialize_mips_group
()
megatron/mpu/initialize.py:87
Functioninitialize_model_parallel
Initialize model data parallel groups. Arguments: model_parallel_size: number of GPUs used to parallelize model. Let's say we h
megatron/mpu/initialize.py:36
Methodinitializer
(self)
tools/create_evidence_indexed_dataset_t0.py:26
Methodinitializer
(self)
tools/create_evidence_indexed_dataset.py:37
Methodinspect_master_grad_data
When running with :class:`FP16_Optimizer`, ``.grad`` attributes of a model's fp16 leaves should not be regarded as truthful,
megatron/fp16/fp16.py:591
Methodinv_vocab
Dictionary from vocab id token to text token.
megatron/tokenizer/tokenizer.py:97
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:190
Functionis_unitialized
Useful for code segments that may be accessed with or without mpu initialization
megatron/mpu/initialize.py:31
Functionl2_grad_clipper
Efficient L2 norm gradient clipping.
megatron/mpu/grads.py:35
← previousnext →501–600 of 712, ranked by callers