MCPcopy Create free account

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

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

↓ 1 callersFunction_add_distributed_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:663
↓ 1 callersFunction_add_gpt_fugaku_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:970
↓ 1 callersFunction_add_initialization_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:531
↓ 1 callersFunction_add_learning_rate_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:546
↓ 1 callersFunction_add_logging_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:356
↓ 1 callersFunction_add_memoryopt_args
Memory optimization arguments.
megatron/arguments.py:902
↓ 1 callersFunction_add_mixed_precision_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:625
↓ 1 callersFunction_add_network_size_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:305
↓ 1 callersFunction_add_regularization_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:393
↓ 1 callersFunction_add_training_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:419
↓ 1 callersFunction_add_validation_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:710
↓ 1 callersFunction_add_vit_args
(parser: argparse.ArgumentParser)
megatron/arguments.py:870
↓ 1 callersFunction_add_zero_args
Text generate arguments.
megatron/arguments.py:885
↓ 1 callersMethod_all_gather
(self, param_list, async_op=False, hierarchy=None)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1000
↓ 1 callersMethod_allgather_param
(self, param, async_op=False, hierarchy=0)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1177
↓ 1 callersMethod_allgather_params
(self, param_list, hierarchy=0)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1305
↓ 1 callersMethod_allgather_params_coalesced
blocking call avoid explicit memory copy in _allgather_params
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1236
↓ 1 callersFunction_build_doc_idx
Build an array with length = number-of-epochs * number-of-dcuments. Each index is mapped to a corresponding document.
megatron/data/gpt_dataset.py:410
↓ 1 callersMethod_build_global_state
(self)
tools/convert_checkpoint/deepspeed_checkpoint.py:68
↓ 1 callersFunction_build_index_mappings
Build doc-idx, sample-idx, and shuffle-idx. doc-idx: is an array (ordered) of documents to be used in training. sample-idx: is the start docum
megatron/data/gpt_dataset.py:232
↓ 1 callersFunction_build_infinite_size_dataloader
Build a looped dataloader with infinite size.
tasks/vision/finetune_utils.py:91
↓ 1 callersFunction_build_key_size_numel_dictionaries
Build the size on rank 0 and broadcast.
megatron/mpu/data.py:37
↓ 1 callersFunction_build_lambada_dataset
Build lambada dataset.
tasks/zeroshot_gpt/datasets.py:129
↓ 1 callersFunction_build_num_microbatches_calculator
(args: argparse.Namespace)
megatron/global_vars.py:128
↓ 1 callersMethod_build_pp_transformer_map
(self)
tools/convert_checkpoint/deepspeed_checkpoint.py:116
↓ 1 callersFunction_build_shuffle_idx
Build the range [0, size) and shuffle.
megatron/data/gpt_dataset.py:475
↓ 1 callersFunction_build_train_valid_dataloaders
Traing and validation dataloaders.
tasks/vision/finetune_utils.py:102
↓ 1 callersMethod_build_transformer_file_map
(self)
tools/convert_checkpoint/deepspeed_checkpoint.py:129
↓ 1 callersFunction_build_wikitext103_dataset
()
tasks/zeroshot_gpt/datasets.py:142
↓ 1 callersFunction_check_arg_is_not_none
(args, arg)
megatron/arguments.py:301
↓ 1 callersFunction_check_data_types
Check that all the keys have the same target data type.
megatron/mpu/data.py:30
↓ 1 callersMethod_checkpointed_forward
Forward method with activation checkpointing.
megatron/model/transformer.py:778
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
megatron/tokenizer/bert_tokenization.py:289
↓ 1 callersFunction_convert_ds_transformer_state
(sd_list)
tools/convert_checkpoint/deepspeed_to_megatron.py:33
↓ 1 callersMethod_copy_main_params_to_model_params
(self)
megatron/optimizer/optimizer.py:370
↓ 1 callersMethod_copy_model_grads_to_main_grads
(self)
megatron/optimizer/optimizer.py:315
↓ 1 callersMethod_copy_model_params_to_main_params
(self)
megatron/optimizer/optimizer.py:377
↓ 1 callersFunction_create_build_dir
(buildpath)
megatron/fused_kernels/__init__.py:125
↓ 1 callersFunction_create_checkpoint_paths
(base_folder, iteration, tp_degree, pp_degree)
tools/convert_checkpoint/deepspeed_to_megatron.py:42
↓ 1 callersFunction_create_latest_file
(base_folder, iteration)
tools/convert_checkpoint/deepspeed_to_megatron.py:128
↓ 1 callersFunction_create_megatron_dict
()
tools/convert_checkpoint/deepspeed_to_megatron.py:55
↓ 1 callersFunction_disable_class
(cls)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:445
↓ 1 callersFunction_get_cuda_bare_metal_version
(cuda_dir)
megatron/fused_kernels/__init__.py:113
↓ 1 callersMethod_get_files
(self, dir)
tools/convert_checkpoint/deepspeed_checkpoint.py:166
↓ 1 callersMethod_get_layer_keys
(self)
tools/convert_checkpoint/deepspeed_checkpoint.py:173
↓ 1 callersFunction_get_params_for_weight_decay_optimization
Divide params into with-weight-decay and without-weight-decay groups. Layernorms and baises will have no weight decay but the rest will.
megatron/optimizer/__init__.py:33
↓ 1 callersMethod_get_pointers
Return a numpy array of byte offsets given a list of sizes. Multiplies values in the sizes array by dtype size (bytes),
megatron/data/indexed_dataset.py:392
↓ 1 callersFunction_init_autoresume
Set autoresume start time.
megatron/initialize.py:244
↓ 1 callersFunction_init_external_params
(module)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:70
↓ 1 callersFunction_initialize_distributed
Initialize torch.distributed and mpu.
megatron/initialize.py:192
↓ 1 callersFunction_initialize_mem_buffs
Initialize manually allocated static memory.
megatron/initialize.py:281
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
megatron/tokenizer/bert_tokenization.py:267
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
megatron/tokenizer/bert_tokenization.py:377
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
megatron/tokenizer/bert_tokenization.py:389
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
megatron/tokenizer/bert_tokenization.py:365
↓ 1 callersMethod_make_param_hook
Create the all-reduce hook for backprop.
megatron/model/distributed.py:168
↓ 1 callersFunction_num_epochs
Based on number of samples and sequence lenght, calculate how many epochs will be needed.
megatron/data/gpt_dataset.py:395
↓ 1 callersFunction_num_tokens
Total number of tokens in the dataset.
megatron/data/gpt_dataset.py:390
↓ 1 callersFunction_parse_args
Parse entire arguments.
megatron/global_vars.py:114
↓ 1 callersMethod_partition
(self, param_list, force=False, has_been_updated=False)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1030
↓ 1 callersMethod_partition_gradient
(self, param, partition_buffer=None, accumulate=False)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1447
↓ 1 callersMethod_partition_gradients
(self, param_list, partition_buffers=None, accumulate=False)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1438
↓ 1 callersMethod_partition_numel
(self, param)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:981
↓ 1 callersMethod_partition_param
(self, param, buffer=None, has_been_updated=False)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1043
↓ 1 callersMethod_post_init_method
(self, module)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:421
↓ 1 callersFunction_print_args
Print arguments.
megatron/arguments.py:286
↓ 1 callersMethod_reduce_scatter_gradient
(self, param)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1398
↓ 1 callersMethod_reduce_scatter_gradients
(self, param_list)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1367
↓ 1 callersFunction_renest_sd
(sd)
tools/convert_checkpoint/deepspeed_to_megatron.py:73
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
megatron/tokenizer/bert_tokenization.py:234
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
megatron/tokenizer/bert_tokenization.py:223
↓ 1 callersMethod_sanity_check
(self)
tools/convert_checkpoint/deepspeed_checkpoint.py:145
↓ 1 callersFunction_save_checkpoint
(file_path, chkpt_sd)
tools/convert_checkpoint/deepspeed_to_megatron.py:67
↓ 1 callersFunction_set_adlr_autoresume
Initialize ADLR autoresume.
megatron/global_vars.py:216
↓ 1 callersMethod_set_dtype
(self, ds_config, dtype)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:424
↓ 1 callersFunction_set_random_seed
Set random seed for reproducability.
megatron/initialize.py:253
↓ 1 callersFunction_set_tensorboard_writer
Set tensorboard writer.
megatron/global_vars.py:151
↓ 1 callersFunction_set_timers
Initialize timers.
megatron/global_vars.py:234
↓ 1 callersFunction_set_wandb_writer
Set wandb writer.
megatron/global_vars.py:177
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
megatron/tokenizer/bert_tokenization.py:254
↓ 1 callersFunction_train
Train the model.
tasks/vision/finetune_utils.py:124
↓ 1 callersMethod_unscale_main_grads_and_check_for_nan
(self)
megatron/optimizer/optimizer.py:332
↓ 1 callersMethod_validate_remote_device
(self, remote_device, ds_config)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:720
↓ 1 callersFunction_vocab_size_with_padding
Pad vocab size so it is divisible by model parallel size and still having GPU friendly size.
megatron/tokenizer/tokenizer.py:60
↓ 1 callersFunctionaccuracy_func_provider
Provide function that calculates accuracies.
tasks/vision/eval_utils.py:28
↓ 1 callersMethodadd_additional_special_tokens
(self, tokens_list)
megatron/tokenizer/tokenizer.py:175
↓ 1 callersMethodadd_block_data
Add data for set of blocks :param row_id: 1D array of unique int ids for the blocks :param block_embeds: 2D array of embeddin
megatron/data/realm_index.py:61
↓ 1 callersMethodadd_embed_data
Add the embedding of each block to the underlying FAISS index
megatron/data/realm_index.py:186
↓ 1 callersMethodadd_item
(self, tensor)
megatron/data/indexed_dataset.py:289
↓ 1 callersMethodallreduce_gradients
Reduce gradients across data parallel ranks.
megatron/model/distributed.py:188
↓ 1 callersMethodas_array
(self)
megatron/data/realm_dataset_utils.py:88
↓ 1 callersMethodas_tuple
(self)
megatron/data/realm_dataset_utils.py:91
↓ 1 callersFunctionattn_mask_postprocess
(attn_mask)
megatron/model/t5_model.py:38
↓ 1 callersMethodbackward
(ctx, output_grads)
megatron/model/fused_softmax.py:73
↓ 1 callersFunctionbias_gelu
(bias, y)
megatron/model/fused_bias_gelu.py:37
↓ 1 callersFunctionbias_gelu_back
(g, bias, y)
megatron/model/fused_bias_gelu.py:45
↓ 1 callersMethodbpe
(self, token)
megatron/tokenizer/gpt2_tokenization.py:195
↓ 1 callersMethodbuild_and_save_index
Goes through one epoch of the dataloader and adds all data to this instance's BlockData. The copy of BlockData is saved as a
megatron/indexer.py:77
↓ 1 callersFunctionbuild_dataset
Helper function to select and build dataset.
tasks/zeroshot_gpt/datasets.py:30
↓ 1 callersFunctionbuild_num_microbatches_calculator
( args: argparse.Namespace, )
megatron/microbatches.py:26
← previousnext →301–400 of 1,158, ranked by callers