Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DevSinghSachan/emdr2
/ functions
Functions
707 in github.com/DevSinghSachan/emdr2
⨍
Functions
707
◇
Types & classes
85
Function
l2_grad_clipper
Efficient L2 norm gradient clipping.
megatron/mpu/grads.py:35
Method
lemmas
Returns a list of the lemmatized text of each token. Returns None if this annotation was not included.
tasks/openqa/dense_retriever/evaluation/tokenizers.py:72
Function
load_scaled_masked_softmax_fusion_kernel
()
megatron/fused_kernels/__init__.py:65
Function
load_scaled_upper_triang_masked_softmax_fusion_kernel
()
megatron/fused_kernels/__init__.py:40
Method
load_state_dict
(self, sd)
megatron/learning_rates.py:107
Method
load_state_dict
Customized load.
megatron/model/t5_model.py:170
Method
load_state_dict
(self, state_dict, strict=True)
megatron/model/distributed.py:92
Method
load_state_dict
Customized load.
megatron/model/language_model.py:389
Method
load_state_dict
Load the state dicts of each of the models
megatron/model/emdr2_model.py:228
Method
load_state_dict
(self, state_dict, strict=True)
megatron/model/dualencoder_model.py:191
Method
load_state_dict
Customized load.
megatron/model/bert_model.py:192
Method
load_state_dict
Loads a state_dict created by an earlier call to state_dict(). If ``fp16_optimizer_instance`` was constructed from some ``init_optimi
megatron/fp16/fp16.py:377
Method
loss_scale
(self)
megatron/fp16/loss_scaler.py:60
Method
loss_scale
(self)
megatron/fp16/loss_scaler.py:188
Function
main
()
tasks/openqa/dense_retriever/run.py:54
Function
make_builder
(out_file, impl, vocab_size=None)
megatron/data/indexed_dataset.py:51
Function
make_data_loader
Buld dataloader given an input dataset.
megatron/utils.py:101
Function
make_dataset
(path, impl, skip_warmup=False)
megatron/data/indexed_dataset.py:58
Function
make_history_mask
(block)
megatron/data/mask_creation_utils.py:29
Method
mask
(self)
megatron/tokenizer/tokenizer.py:130
Method
mask
(self)
megatron/tokenizer/tokenizer.py:228
Method
merge_file_
(self, another_file)
megatron/data/indexed_dataset.py:294
Method
merge_file_
(self, another_file)
megatron/data/indexed_dataset.py:554
Function
metrics_func
(model, epoch)
tasks/openqa/e2eqa/train_e2eqa.py:339
Function
metrics_func
(model, epoch)
tasks/openqa/dense_retriever/train_dense_retriever.py:413
Function
model_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no torch.cuda.manual_seed
megatron/mpu/random.py:207
Function
model_parallel_is_initialized
Check if model and data parallel groups are initialized.
megatron/mpu/initialize.py:145
Function
model_provider
Build the model.
tasks/openqa/e2eqa/run.py:32
Function
model_provider
()
tasks/openqa/dense_retriever/run.py:27
Function
network_to_half
Convert model to half precision in a batchnorm-safe way. Retained for legacy purposes. It is recommended to use FP16Model.
megatron/fp16/fp16util.py:55
Method
ngrams
Returns a list of all ngrams from length 1 to n. Args: n: upper limit of ngram length uncased: lower cases text
tasks/openqa/dense_retriever/evaluation/tokenizers.py:88
Method
normalize_completed
(self, completed_hyps, src_length=None)
megatron/model/search_strategy.py:30
Method
num_samples
(self)
megatron/data/samplers.py:55
Method
num_tokens
(self, index)
megatron/data/indexed_dataset.py:194
Method
numel_in_use
Return number of elements in use.
megatron/memory.py:84
Method
offsets
Returns a list of [start, end) character offsets of each token.
tasks/openqa/dense_retriever/evaluation/tokenizers.py:60
Function
openai_gelu
(x)
megatron/model/utils.py:56
Method
operator()
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:37
Method
operator()
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:44
Method
operator()
megatron/fused_kernels/scaled_masked_softmax.h:37
Method
operator()
megatron/fused_kernels/scaled_masked_softmax.h:44
Method
pad
(self)
megatron/tokenizer/tokenizer.py:120
Method
pad
(self)
megatron/tokenizer/tokenizer.py:224
Method
pos
Returns a list of part-of-speech tags of each token. Returns None if this annotation was not included.
tasks/openqa/dense_retriever/evaluation/tokenizers.py:64
Method
prefetch
(self, indices)
megatron/data/indexed_dataset.py:222
Function
prep_param_lists
Creates a list of FP32 master parameters for a given model, as in `Training Neural Networks with Mixed Precision: Real Examples`_. Args
megatron/fp16/fp16util.py:109
Method
print_average_usage
Print memory usage average over time. We would like this value to be as high as possible.
megatron/memory.py:118
Function
print_params_min_max_norm
Print min, max, and norm of all parameters.
megatron/utils.py:64
Function
printable_text
Returns text encoded in a way suitable for print or `tf.logging`.
megatron/tokenizer/bert_tokenization.py:98
Method
process_samples_from_single_path
Implement abstract method.
tasks/openqa/dense_retriever/train_data_utils.py:237
Function
rebuild_tokenizer
(args)
megatron/global_vars.py:112
Function
regex_match_score
(prediction, ground_truth)
tasks/openqa/e2eqa/eval_utils.py:47
Function
remove_stale_checkpoints
(iteration)
megatron/checkpointing.py:347
Method
reset
Reset the buffer start index to the beginning of the buffer.
megatron/memory.py:74
Function
reset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
megatron/mpu/random.py:65
Method
reset_index
Delete existing index and create anew
megatron/data/emdr2_index.py:143
Method
reset_index
Delete existing index and create anew
megatron/data/emdr2_index.py:220
Method
resize_tokentype_embeddings
megatron/model/t5_model.py:178
Method
scale_gradient
(self, module, grad_in, grad_out)
megatron/fp16/loss_scaler.py:63
Method
scale_gradient
(self, module, grad_in, grad_out)
megatron/fp16/loss_scaler.py:191
Function
scaled_masked_softmax_warp_backward
megatron/fused_kernels/scaled_masked_softmax.h:182
Function
scaled_masked_softmax_warp_forward
megatron/fused_kernels/scaled_masked_softmax.h:78
Function
scaled_upper_triang_masked_softmax_warp_backward
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:171
Function
scaled_upper_triang_masked_softmax_warp_forward
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:78
Method
search_mips_index
Get the top-k blocks by the index distance metric. if False: return [num_queries x k] array of distances, and another for indices
megatron/data/emdr2_index.py:268
Method
sep
(self)
megatron/tokenizer/tokenizer.py:115
Method
sep
(self)
megatron/tokenizer/tokenizer.py:220
Method
set_doc_idx
(self, doc_idx_)
megatron/data/indexed_dataset.py:525
Method
sizes
(self)
megatron/data/indexed_dataset.py:431
Method
sizes
(self)
megatron/data/indexed_dataset.py:515
Method
state_dict
(self)
megatron/learning_rates.py:82
Method
state_dict
Returns a dict containing the current state of this :class:`FP16_Optimizer` instance. This dict contains attributes of :class:`FP16_O
megatron/fp16/fp16.py:356
Method
state_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/model/t5_model.py:156
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/model/distributed.py:87
Method
state_dict_for_save_checkpoint
For easy load.
megatron/model/language_model.py:367
Method
state_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/model/emdr2_model.py:217
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/model/dualencoder_model.py:183
Method
state_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/model/bert_model.py:175
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/fp16/fp16.py:79
Method
supports_prefetch
(self)
megatron/data/indexed_dataset.py:207
Method
supports_prefetch
(self)
megatron/data/indexed_dataset.py:219
Method
supports_prefetch
(self)
megatron/data/indexed_dataset.py:529
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:80
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:96
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:112
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:128
Function
t5_attention_mask_func
(attention_scores, attention_mask)
megatron/model/t5_model.py:28
Function
to_python_float
(t)
megatron/fp16/fp16util.py:202
Function
to_python_float
(t)
megatron/fp16/loss_scaler.py:26
Method
tokenize
(self, text)
megatron/tokenizer/tokenizer.py:193
Method
tokenize
(self, text)
megatron/tokenizer/bert_tokenization.py:170
Method
tokenize
Tokenizes a piece of text.
megatron/tokenizer/bert_tokenization.py:228
Method
tokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
megatron/tokenizer/bert_tokenization.py:340
Method
tokenize
(self, text)
tasks/openqa/dense_retriever/evaluation/tokenizers.py:171
Method
tokenize
(self, text)
tasks/openqa/dense_retriever/evaluation/tokenizers.py:212
Method
update_index
Delete existing index and create a new
megatron/data/emdr2_index.py:232
Method
update_scale
(self, overflow)
megatron/fp16/loss_scaler.py:161
Function
validate_case_matches_checkpoint
Checks whether the casing config is consistent with the checkpoint name.
megatron/tokenizer/bert_tokenization.py:28
Function
validation_loss
(model, dataloader)
tasks/openqa/e2eqa/train_e2eqa.py:295
Method
vocab
Dictionary from vocab text token to id token.
megatron/tokenizer/tokenizer.py:91
← previous
next →
601–700 of 707, ranked by callers