MCPcopy Create free account

hub / github.com/Fugaku-LLM/DeepSpeedFugaku / functions

Functions1,158 in github.com/Fugaku-LLM/DeepSpeedFugaku

↓ 1 callersFunctionbuild_sample
Convert to numpy and return a sample consumed by the batch producer.
megatron/data/orqa_wiki_dataset.py:117
↓ 1 callersFunctionbuild_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/orqa/natural_questions/nq.py:154
↓ 1 callersFunctionbuild_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed.
megatron/data/orqa_wiki_dataset.py:80
↓ 1 callersFunctionbuild_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed. TODO: Design modular interface to reuse this function. This is getting
tasks/orqa/natural_questions/nq.py:114
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
megatron/data/orqa_wiki_dataset.py:63
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/data_utils.py:48
↓ 1 callersFunctionbuild_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/orqa/natural_questions/nq.py:102
↓ 1 callersFunctionbuild_train_valid_test_datasets
Build train, valid, and test datasets. Args: data_prefix (list[str] | str): paths to dataset (ex: ['dataset/ja_wiki_text', 'd
megatron/data/gpt_dataset.py:34
↓ 1 callersFunctionbuild_training_sample
Build training sample. Arguments: sample: A list of sentences in which each sentence is a list token ids. target_seq_length: Desi
megatron/data/t5_dataset.py:94
↓ 1 callersFunctionbuild_training_sample
Biuld training sample. Arguments: sample: A list of sentences in which each sentence is a list token ids. target_seq_length: Desi
megatron/data/bert_dataset.py:98
↓ 1 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
megatron/tokenizer/gpt2_tokenization.py:55
↓ 1 callersFunctioncalc_params_l2_norm
Calculate l2 norm of parameters
megatron/utils.py:57
↓ 1 callersFunctioncalc_threshold
(p, l)
tasks/ensemble_classifier.py:48
↓ 1 callersFunctioncalculate_correct_answers
Calculate correct over total answers
tasks/vision/eval_utils.py:67
↓ 1 callersFunctioncalculate_mos_loss
(args, stu_output, teacher_model, tokens, position_ids, attention_mask)
pretrain_gpt.py:265
↓ 1 callersFunctioncheck_checkpoint_args
Ensure fixed arguments for a model are the same for the input arguments and the one retrieved from checkpoint.
megatron/checkpointing.py:48
↓ 1 callersFunctioncheckpoint_throughput_calculator
(model, latency_second)
megatron/utils.py:271
↓ 1 callersFunctionclassification
()
tasks/vision/classification.py:26
↓ 1 callersFunctionclean_ngrams_below_threshold
(args, ngrams_below_threshold, dedup_file, \ dedup_key)
tools/openwebtext/filter_ngrams.py:342
↓ 1 callersFunctionclip_grad_norm_fp32
Clips gradient norm of an iterable of parameters whose gradients are in fp32. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm
megatron/optimizer/clip_grads.py:40
↓ 1 callersFunctioncollect_active_timers
(timers: Timers)
megatron/timer/timer.py:74
↓ 1 callersFunctioncommand_exists
(cmd)
pretrain_gpt.py:361
↓ 1 callersFunctioncompile_helper
Compile helper function ar runtime. Make sure this is invoked on a single process.
megatron/data/dataset_utils.py:77
↓ 1 callersFunctioncompute_n1_n2
megatron/fused_kernels/layer_norm_cuda.cpp:28
↓ 1 callersFunctioncompute_tasks_ngrams
(args, ngrams)
tools/openwebtext/filter_ngrams.py:273
↓ 1 callersFunctioncopy_to_tensor_model_parallel_region
(input_)
megatron/mpu/mappings.py:144
↓ 1 callersFunctioncount_zeros_fp32
(parameters)
megatron/optimizer/clip_grads.py:137
↓ 1 callersFunctioncreate_tokens_and_tokentypes
Merge segments A and B, add [CLS] and [SEP] and build tokentypes.
megatron/data/dataset_utils.py:142
↓ 1 callersFunctiondebug_rank0
(msg: str)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:59
↓ 1 callersFunctiondomain_is_in_blacklist
(url)
tools/openwebtext/blacklist_urls.py:138
↓ 1 callersFunctionds_inference
(model, args)
tools/generate_samples_gpt.py:154
↓ 1 callersFunctiondump_data
(datum, name_list=[])
tools/convert_checkpoint/inspect_checkpoint.py:7
↓ 1 callersMethodembed_block
Embed a batch of tokens using the block model
megatron/model/realm_model.py:81
↓ 1 callersMethodembed_query
Embed a batch of tokens using the query model
megatron/model/realm_model.py:72
↓ 1 callersMethodend_document
(self)
megatron/data/indexed_dataset.py:296
↓ 1 callersFunctionensemble_predictions
(args)
tasks/ensemble_classifier.py:120
↓ 1 callersFunctionensure_directory_exists
Build filename's path if it does not already exists.
megatron/checkpointing.py:81
↓ 1 callersFunctionevaluate
Evaluation.
megatron/training.py:1425
↓ 1 callersFunctionevaluate
Evaluation.
tasks/zeroshot_gpt/evaluate.py:128
↓ 1 callersFunctionevaluate_and_print_results
Evaluate and print results on screen.
tasks/zeroshot_gpt/evaluate.py:154
↓ 1 callersFunctionexscan_from_cumsum_
(arr)
megatron/data/indexed_dataset.py:343
↓ 1 callersFunctionextention_is_in_blacklist
(url)
tools/openwebtext/blacklist_urls.py:214
↓ 1 callersFunctionexternal_parameters
(self)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:74
↓ 1 callersMethodfaiss_wrapper
(self)
tasks/orqa/evaluate_utils.py:67
↓ 1 callersFunctionfilter_corpus
(filename, out_filename, print_interval=10000)
tools/openwebtext/cleanup_dataset.py:45
↓ 1 callersFunctionfind_pair_urls_parallel
(args, lshcache, url_doc)
tools/openwebtext/find_duplicates.py:132
↓ 1 callersFunctionfind_pair_urls_sequential
(args, lshcache, url_doc)
tools/openwebtext/find_duplicates.py:163
↓ 1 callersFunctionfinish_mpu_init
()
megatron/initialize.py:60
↓ 1 callersFunctionfloat16_to_fp32
Convert fp16/bf16 `val` to fp32
megatron/model/module.py:137
↓ 1 callersMethodforward
(ctx, inputs, mask, scale)
megatron/model/fused_softmax.py:61
↓ 1 callersMethodforward
(self, hidden_states, sequence_index=0)
megatron/model/language_model.py:99
↓ 1 callersFunctionforward_step
Forward step.
tasks/zeroshot_gpt/evaluate.py:85
↓ 1 callersFunctiongather_MNLI_results
(result_path)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:21
↓ 1 callersFunctiongather_QQP_results
(result_path)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:55
↓ 1 callersFunctiongather_finetune_results
(result_path)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:102
↓ 1 callersFunctiongather_from_tensor_model_parallel_region
(input_)
megatron/mpu/mappings.py:156
↓ 1 callersFunctiongather_split_1d_tensor
Opposite of above function, gather values from model parallel ranks.
megatron/mpu/random.py:121
↓ 1 callersFunctiongelu_impl
OpenAI's gelu implementation.
megatron/model/utils.py:65
↓ 1 callersFunctiongenerate_and_write_samples_unconditional
(model, latencies=[], single_token_latency=[], model_latencies=[])
megatron/text_generation_utils.py:372
↓ 1 callersMethodgenerate_query_vectors
(self, qa_data, split)
tasks/orqa/evaluate_utils.py:84
↓ 1 callersFunctiongenerate_samples_input_from_file
(model)
megatron/text_generation_utils.py:87
↓ 1 callersFunctiongenerate_samples_interactive
(model, print_frequency=24)
megatron/text_generation_utils.py:224
↓ 1 callersFunctiongenerate_samples_unconditional
(model, latencies=[], model_latencies=[], single_token_latency=[])
megatron/text_generation_utils.py:325
↓ 1 callersMethodget
(self)
megatron/microbatches.py:77
↓ 1 callersFunctionget_a_and_b_segments
Divide sample into a and b segments.
megatron/data/dataset_utils.py:90
↓ 1 callersFunctionget_args
()
tools/preprocess_data.py:98
↓ 1 callersFunctionget_batch
Build the batch.
pretrain_bert.py:53
↓ 1 callersFunctionget_batch
Build the batch.
pretrain_t5.py:44
↓ 1 callersFunctionget_batch
Generate a batch
pretrain_gpt.py:94
↓ 1 callersFunctionget_batch
Build the batch.
pretrain_vit.py:35
↓ 1 callersFunctionget_batch
Generate batch from context tokens.
megatron/text_generation_utils.py:36
↓ 1 callersFunctionget_bias_dropout_add
(training)
megatron/model/transformer.py:443
↓ 1 callersFunctionget_block_samples_mapping
Get samples mapping for a dataset over fixed size blocks. This function also requires a dataset of the titles for the source documents since their
megatron/data/realm_dataset_utils.py:110
↓ 1 callersFunctionget_current_global_batch_size
()
megatron/global_vars.py:58
↓ 1 callersMethodget_current_global_batch_size
(self)
megatron/microbatches.py:80
↓ 1 callersFunctionget_detokenizer
(path)
tasks/zeroshot_gpt/detokenizer.py:77
↓ 1 callersMethodget_doc_idx
(self)
megatron/data/indexed_dataset.py:571
↓ 1 callersMethodget_evidence_dataset
(self)
tasks/orqa/evaluate_utils.py:64
↓ 1 callersMethodget_evidence_embedding
(self)
tasks/orqa/evaluate_utils.py:60
↓ 1 callersFunctionget_ict_batch
(data_iterator)
megatron/data/biencoder_dataset_utils.py:49
↓ 1 callersFunctionget_indexed_dataset_
Build indexed dataset.
megatron/data/gpt_dataset.py:133
↓ 1 callersFunctionget_learning_rate_scheduler
Build the learning rate scheduler.
megatron/training.py:413
↓ 1 callersMethodget_loss_scale
The output should be a cuda tensor of size 1.
megatron/optimizer/optimizer.py:110
↓ 1 callersMethodget_lr
Learning rate decay functions from: https://openreview.net/pdf?id=BJYwwY9ll pg. 4
megatron/learning_rates.py:62
↓ 1 callersFunctionget_megatron_optimizer
(model)
megatron/optimizer/__init__.py:57
↓ 1 callersFunctionget_model_provider
Based on evaluation metric set the parallel-output flag and return the model provider.
tasks/zeroshot_gpt/evaluate.py:40
↓ 1 callersFunctionget_new_tensor_fn_for_dtype
(dtype: torch.dtype)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:204
↓ 1 callersFunctionget_ngrams_below_threshold
(args, ngrams, ngrams_below_threshold, \ dedup_file, dedup_key, ngrams_freq_sorted)
tools/openwebtext/filter_ngrams.py:299
↓ 1 callersFunctionget_nq_dataset
(qa_data, split)
tasks/orqa/natural_questions/nq.py:33
↓ 1 callersFunctionget_one_epoch_dataloader
Specifically one epoch to be used in an indexing job.
megatron/data/biencoder_dataset_utils.py:23
↓ 1 callersFunctionget_one_epoch_nq_dataloader
Data loader. Note that batch-size is the local (per GPU) batch-size. NOTE: This dataloader is not distributed !!!
tasks/orqa/natural_questions/nq.py:78
↓ 1 callersFunctionget_open_retrieval_batch
(data_iterator)
megatron/data/orqa_wiki_dataset.py:40
↓ 1 callersFunctionget_parallel_checkpoint_name
(path)
tools/merge_mp_partitions.py:134
↓ 1 callersFunctionget_pointers_with_total
Return a numpy array of type np.dtype giving the byte offsets. Multiplies values in the sizes array by elemsize (bytes), and then computes an
megatron/data/indexed_dataset.py:353
↓ 1 callersFunctionget_rank
()
megatron/arguments.py:27
↓ 1 callersFunctionget_threshold
(all_predictions, all_labels, one_threshold=False)
tasks/ensemble_classifier.py:36
↓ 1 callersMethodget_tokens
(self, text)
tasks/zeroshot_gpt/datasets.py:99
↓ 1 callersFunctiongit_ds_info
()
pretrain_gpt.py:366
↓ 1 callersFunctioninfer_dataset_impl
(path)
megatron/data/indexed_dataset.py:40
↓ 1 callersMethodinit_state_dict_from_bert
Initialize the state from a pretrained BERT model on iteration zero of ICT pretraining
megatron/model/realm_model.py:117
← previousnext →401–500 of 1,158, ranked by callers