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
Method
lemmas
Returns a list of the lemmatized text of each token. Returns None if this annotation was not included.
tasks/dense_retriever/supervised_training/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/art_model.py:193
Method
load_state_dict
(self, state_dict, strict=True)
megatron/model/dualencoder_model.py:193
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
Function
load_t5_checkpoint
Load T5 models from saved checkpoints
megatron/checkpointing.py:313
Method
loss_scale
(self)
megatron/fp16/loss_scaler.py:60
Method
loss_scale
(self)
megatron/fp16/loss_scaler.py:188
Function
main
()
tasks/dense_retriever/supervised_training/run.py:54
Function
make_attention_mask_3d
Returns a 3-dimensional (3-D) attention mask :param source_block: 1-D array :param target_block: 1-D array
megatron/data/mask_creation_utils.py:17
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:54
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
Function
make_history_mask_3d
(block)
megatron/data/mask_creation_utils.py:37
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
metric_max_over_ground_truths
(metric_fn, prediction, ground_truths)
tasks/dense_retriever/zero_shot_training/eval_utils.py:56
Function
metrics_func
(model, epoch)
tasks/dense_retriever/supervised_training/train_dense_retriever.py:413
Function
metrics_func
(model, epoch)
tasks/dense_retriever/zero_shot_training/train.py:123
Function
mips_is_initialized
Check if mips group is initialized.
megatron/mpu/initialize.py:135
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:128
Function
model_provider
()
tasks/dense_retriever/supervised_training/run.py:27
Function
model_provider
Build the model.
tasks/dense_retriever/zero_shot_training/run.py:23
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/dense_retriever/supervised_training/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/dense_retriever/supervised_training/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:224
Method
pos
Returns a list of part-of-speech tags of each token. Returns None if this annotation was not included.
tasks/dense_retriever/supervised_training/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:34
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/dense_retriever/supervised_training/train_data_utils.py:237
Function
query_single_context_t5_format
(query_ids, title_ids, context_ids, max_seq_length, sep_id, pad_id)
megatron/model/art_model.py:266
Function
rebuild_tokenizer
(args)
megatron/global_vars.py:147
Function
regex_match_score
(prediction, ground_truth)
tasks/dense_retriever/zero_shot_training/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/art_index.py:143
Method
reset_index
Delete existing index and create anew
megatron/data/art_index.py:219
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/art_index.py:267
Method
sep
(self)
megatron/tokenizer/tokenizer.py:115
Method
sep
(self)
megatron/tokenizer/tokenizer.py:220
Function
set_data_parallel_group
(group)
megatron/mpu/initialize.py:163
Method
set_doc_idx
(self, doc_idx_)
megatron/data/indexed_dataset.py:525
Function
set_model_parallel_group
(group)
megatron/mpu/initialize.py:149
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/art_model.py:185
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
megatron/model/dualencoder_model.py:185
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/dense_retriever/supervised_training/evaluation/tokenizers.py:171
← previous
next →
601–700 of 712, ranked by callers