MCPcopy Create free account

hub / github.com/DevSinghSachan/emdr2 / functions

Functions707 in github.com/DevSinghSachan/emdr2

Methodbackward
(ctx, grad_output)
megatron/mpu/mappings.py:136
Functionbackwards_debug_hook
(grad)
megatron/fp16/fp16util.py:105
Functionbert_attention_mask_func
(attention_scores, attention_mask)
megatron/model/bert_model.py:31
Functionbias_dropout_add_fused_inference
(x, bias, residual, prob)
megatron/model/transformer.py:417
Functionbias_dropout_add_fused_train
(x, bias, residual, prob)
megatron/model/transformer.py:411
Methodbos_token
Beginning of sentence token id
megatron/tokenizer/tokenizer.py:232
Methodbos_token_id
Id of the beginning of sentence token in the vocabulary.
megatron/tokenizer/tokenizer.py:247
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
megatron/mpu/data.py:76
Methodbuild_layer
(layer_number)
megatron/model/transformer.py:589
Functionbwd
megatron/fused_kernels/scaled_upper_triang_masked_softmax.cpp:42
Functionbwd
megatron/fused_kernels/scaled_masked_softmax.cpp:47
Functioncb
()
megatron/mpu/random.py:82
Functioncheck_adlr_autoresume_termination
Check for autoresume signal and exit if it is received.
megatron/utils.py:84
Functioncheck_answer
Search through all the top docs to see if they have any of the answers.
tasks/openqa/dense_retriever/evaluation/qa_validation.py:75
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:233
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/openqa/e2eqa/run.py:53
Functiondistributed_metrics_func_provider
(datapath)
tasks/openqa/dense_retriever/run.py:45
Methoddoc_idx
(self)
megatron/data/indexed_dataset.py:435
Methoddoc_idx
(self)
megatron/data/indexed_dataset.py:519
Methodend_document
(self)
megatron/data/indexed_dataset.py:551
Methodentity_groups
Group consecutive entity tokens with the same NER tag.
tasks/openqa/dense_retriever/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:355
Functionexact_match_score
(prediction, ground_truth)
tasks/openqa/e2eqa/eval_utils.py:43
Functionexact_match_score
(prediction, ground_truth)
tasks/openqa/dense_retriever/evaluation/qa_validation.py:140
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, query_ids_t5, query_ids_t5_len
megatron/model/emdr2_model.py:87
Methodforward
Run a forward pass for each of the models and return the respective embeddings.
megatron/model/dualencoder_model.py:57
Methodforward
(self, input_ids, attention_mask, tokentype_ids=None)
megatron/model/dualencoder_model.py:166
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: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:223
Methodget_doc_idx
(self)
megatron/data/indexed_dataset.py:522
Functionget_exit_interval
()
megatron/mpu/initialize.py:312
Functionget_ltor_masks_and_position_ids
Build masks and position id for left to right model.
megatron/utils.py:127
Functionget_mem_buff
Get the memory buffer.
megatron/memory.py:32
Methodget_next_buffer
(self)
megatron/memory.py:140
Functionget_tasks_args
Provide extra arguments required for tasks.
tasks/run.py:12
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
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:53
Methodinitializer
(self)
tools/create_evidence_indexed_dataset.py:29
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:48
← previousnext →501–600 of 707, ranked by callers