MCPcopy Create free account

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

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

↓ 4 callersFunctionis_zero_param
(parameter)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:64
↓ 4 callersFunctionlist_files
(file_list, tag)
tools/convert_checkpoint/inspect_deepspeed_checkpoint.py:4
↓ 4 callersMethodload_state_dict
Customized load.
megatron/model/language_model.py:216
↓ 4 callersFunctionmean
(arr)
examples/data_efficiency/gpt/eval/ds_evalharness_gather_result.py:7
↓ 4 callersFunctionparallel_lm_logits
LM logits using word embedding weights.
megatron/model/language_model.py:33
↓ 4 callersMethodpartition
(param_list=None, hierarchy=0, has_been_updated=False)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:883
↓ 4 callersFunctionread_longs
(f, n)
megatron/data/indexed_dataset.py:87
↓ 4 callersMethodstate_dict_for_save_checkpoint
For easy load.
megatron/model/language_model.py:199
↓ 4 callersFunctionupdate_num_microbatches
(consumed_samples, consistency_check=True)
megatron/global_vars.py:62
↓ 4 callersFunctionwrite_longs
(f, a)
megatron/data/indexed_dataset.py:93
↓ 4 callersFunctionzero_wrapper_for_fp_tensor_constructor
(fn: Callable, target_fp_dtype: torch.dtype)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:190
↓ 3 callersMethod__init__
(self, init_method, output_layer_init_method, moe=False, enable_expert_tensor_parallelism=False)
megatron/model/transformer.py:69
↓ 3 callersMethod__init__
(self, name)
megatron/tokenizer/tokenizer.py:79
↓ 3 callersMethod_aligned_size
(self, param)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:974
↓ 3 callersFunction_cpp_extention_load_helper
(name, sources, extra_cuda_flags, extra_include_paths)
megatron/fused_kernels/__init__.py:48
↓ 3 callersFunction_ensure_var_is_initialized
Make sure the input variable is not None.
megatron/global_vars.py:241
↓ 3 callersFunction_gather
Gather tensors and concatinate along the last dimension.
megatron/mpu/mappings.py:54
↓ 3 callersFunction_initialize_affine_weight_cpu
Initialize affine weight for model parallel. Build the master weight on all processes and scatter the relevant chunk.
megatron/mpu/layers.py:101
↓ 3 callersFunction_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
megatron/mpu/layers.py:84
↓ 3 callersFunction_is_rank_0
Check whether it is rank 0. For AML, check if it is rank 0 of a node
megatron/initialize.py:289
↓ 3 callersFunction_reduce
All-reduce the the input tensor across model parallel group.
megatron/mpu/mappings.py:22
↓ 3 callersMethod_set_mips_index
Create a Faiss Flat index with inner product as the metric to search against
megatron/data/realm_index.py:130
↓ 3 callersFunction_split
Split the tensor along its last dimension and keep the corresponding slice.
megatron/mpu/mappings.py:35
↓ 3 callersFunction_zero_grad_group_helper
Zero out the gradient for a group of parameters. Note: copied from torch.optim.optimizer.
megatron/optimizer/optimizer.py:38
↓ 3 callersMethodadd_token
(self, token)
megatron/tokenizer/tokenizer.py:168
↓ 3 callersFunctionbias_dropout_add
(x, bias, residual, prob, training)
megatron/model/transformer.py:436
↓ 3 callersFunctionbiencoder_model_provider
Build the model.
megatron/model/biencoder_model.py:18
↓ 3 callersFunctionbuild_dataset
(index, name)
megatron/data/dataset_utils.py:518
↓ 3 callersFunctionbuild_dataset
(index, name)
megatron/data/gpt_dataset.py:115
↓ 3 callersFunctionbuild_pretraining_data_loader
Buld dataloader given an input dataset.
megatron/data/data_samplers.py:25
↓ 3 callersFunctioncheck_and_clean_text
(args, words, ngrams, text, start_position, \ text_buf_ngram_free, text_buf, local_ngram)
tools/openwebtext/filter_ngrams.py:64
↓ 3 callersMethodclear
Clear the embedding data structures to save memory. The metadata ends up getting used, and is also much smaller in dimensiona
megatron/data/realm_index.py:42
↓ 3 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
megatron/tokenizer/bert_tokenization.py:78
↓ 3 callersFunctioncyclic_iter
(iter)
megatron/training.py:1559
↓ 3 callersFunctiondetach
(tensor)
megatron/data/realm_index.py:13
↓ 3 callersMethoddtype
(self)
megatron/data/indexed_dataset.py:588
↓ 3 callersMethodfinalize
(self, index_file)
megatron/data/indexed_dataset.py:322
↓ 3 callersFunctionfp32_to_float16
Convert fp32 `val` to fp16/bf16
megatron/model/module.py:125
↓ 3 callersFunctiongather_numbers
(fname, match_keywords, index_keywords, index_offsets)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:4
↓ 3 callersFunctionget_data_parallel_rank
Return my rank for the data parallel group.
megatron/mpu/initialize.py:363
↓ 3 callersMethodget_iteration
(self)
tools/convert_checkpoint/deepspeed_checkpoint.py:73
↓ 3 callersFunctionget_model
(model_type)
tools/merge_mp_partitions.py:110
↓ 3 callersFunctionget_tensorboard_writer
Return tensorboard writer. It can be None so no need to check if it is initialized.
megatron/global_vars.py:72
↓ 3 callersMethodload_state_dict
(self, state_dict)
megatron/optimizer/optimizer.py:556
↓ 3 callersFunctionmake_attention_mask
Returns a 2-dimensional (2-D) attention mask :param source_block: 1-D array :param target_block: 1-D array
megatron/data/t5_dataset.py:233
↓ 3 callersFunctionparam_is_not_shared
(param)
megatron/model/module.py:32
↓ 3 callersFunctionparam_is_not_tensor_parallel_duplicate
(param)
megatron/mpu/layers.py:51
↓ 3 callersFunctionprint_latency
(latency_set, title="")
tools/generate_samples_gpt.py:79
↓ 3 callersFunctionprint_split_stats
(name, index)
megatron/data/dataset_utils.py:504
↓ 3 callersFunctionprint_split_stats
(name, index)
megatron/data/gpt_dataset.py:106
↓ 3 callersFunctionrebuild_tokenizer
(args)
megatron/global_vars.py:145
↓ 3 callersFunctionsample_stddev
(arr)
examples/data_efficiency/gpt/eval/ds_evalharness_gather_result.py:16
↓ 3 callersFunctionsave_checkpoint_and_time
(iteration, model, optimizer, lr_scheduler)
megatron/training.py:1247
↓ 3 callersFunctionset_tensor_model_parallel_attributes
(tensor, is_parallel, dim, stride)
megatron/mpu/layers.py:57
↓ 3 callersFunctionshow_state_summary
(tag, sd)
tools/convert_checkpoint/inspect_deepspeed_checkpoint.py:39
↓ 3 callersMethodstate_dict
(self)
megatron/optimizer/optimizer.py:552
↓ 3 callersFunctionupdate_train_iters
(args)
megatron/training.py:253
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
megatron/tokenizer/bert_tokenization.py:152
↓ 2 callersMethod__init__
(self, numel, dtype)
megatron/model/distributed.py:30
↓ 2 callersMethod__init__
(self, hidden_size, init_method)
megatron/model/language_model.py:95
↓ 2 callersMethod__init__
(self, path)
megatron/data/indexed_dataset.py:136
↓ 2 callersMethod__init__
(self, input_size, output_size, bias=True, input_is_parallel=False, init_met
megatron/mpu/layers.py:341
↓ 2 callersMethod__iter__
(self)
megatron/data/data_samplers.py:90
↓ 2 callersFunction_build_tokenizer
Initialize tokenizer.
megatron/global_vars.py:137
↓ 2 callersMethod_build_tp_other_layer_map
(self, layer_index:int)
tools/convert_checkpoint/deepspeed_checkpoint.py:109
↓ 2 callersFunction_build_train_valid_test_datasets
(data_prefix, data_impl, splits_string, train_valid_test_num_samples,
megatron/data/dataset_utils.py:473
↓ 2 callersFunction_build_train_valid_test_datasets
Build train, valid, and test datasets.
megatron/data/gpt_dataset.py:90
↓ 2 callersMethod_convert_to_deepspeed_param
(self, param)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:763
↓ 2 callersMethod_convert_to_zero_parameters
(self, param_list)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:713
↓ 2 callersFunction_create_rank_checkpoint
(ds_checkpoint, checkpoint_path, tp_index, pp_index, for_release=False)
tools/convert_checkpoint/deepspeed_to_megatron.py:81
↓ 2 callersFunction_dist_allgather_fn
(input_tensor: Tensor, output_tensor: Tensor, group=None)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:41
↓ 2 callersMethod_do_init
(self, path, skip_warmup)
megatron/data/indexed_dataset.py:499
↓ 2 callersMethod_ensure_availability_of_partitioned_params
(self, params)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:984
↓ 2 callersMethod_get_layer
(self, layer_number)
megatron/model/transformer.py:775
↓ 2 callersMethod_get_model_and_main_params_data_float16
(self)
megatron/optimizer/optimizer.py:359
↓ 2 callersMethod_merge_state_dicts
(self, sd_list)
tools/convert_checkpoint/deepspeed_checkpoint.py:188
↓ 2 callersFunction_multi_tensor_copy_this_to_that
Use multi-tensor-applier to copy values from one list to another. We don't have a blfoat16 implementation so for now if the overflow_buf is no
megatron/optimizer/optimizer.py:53
↓ 2 callersMethod_padding_size
(self, param)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:977
↓ 2 callersMethod_partition_data
(self, data_list, num_partitions)
tools/convert_checkpoint/deepspeed_checkpoint.py:181
↓ 2 callersFunction_warmup_mmap_file
(path)
megatron/data/indexed_dataset.py:337
↓ 2 callersFunctionallocate_mem_buff
Allocate a memory buffer.
megatron/memory.py:24
↓ 2 callersFunctionapply_threshold
(preds, t)
tasks/ensemble_classifier.py:60
↓ 2 callersFunctionbackward_step_helper
Helper method to run backward step with model split into chunks (run set_virtual_pipeline_model_parallel_rank() before calling backwar
megatron/schedules.py:275
↓ 2 callersFunctionbuild_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/data_utils.py:33
↓ 2 callersFunctionbuild_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed.
tasks/data_utils.py:62
↓ 2 callersFunctionbuild_train_valid_datasets
(data_path, crop_size=224, color_jitter=True)
megatron/data/vit_dataset.py:21
↓ 2 callersFunctionbuild_train_valid_test_data_iterators
XXX
megatron/training.py:1565
↓ 2 callersFunctioncheck
(group, world_size, rank)
megatron/mpu/tests/test_initialize.py:36
↓ 2 callersFunctioncheck_adlr_autoresume_termination
Check for autoresume signal and exit if it is received.
megatron/utils.py:158
↓ 2 callersFunctioncheck_args
megatron/fused_kernels/layer_norm_cuda.cpp:45
↓ 2 callersMethodcheck_index
(self, i)
megatron/data/indexed_dataset.py:163
↓ 2 callersMethodclip_grad_norm
(self, clip_grad)
megatron/optimizer/optimizer.py:94
↓ 2 callersFunctioncode
(dtype)
megatron/data/indexed_dataset.py:109
↓ 2 callersFunctioncompute_ngram_freq_sorted
(args, ngrams)
tools/openwebtext/filter_ngrams.py:285
↓ 2 callersFunctionconcat_partitions
(partitions_)
tools/merge_mp_partitions.py:66
↓ 2 callersFunctionconversion_helper
Apply conversion to val. Recursively apply conversion if `val` #is a nested tuple/list structure.
megatron/model/module.py:114
↓ 2 callersMethodconvert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
megatron/tokenizer/gpt2_tokenization.py:269
↓ 2 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
megatron/tokenizer/gpt2_tokenization.py:247
↓ 2 callersMethodcount_zeros
(self)
megatron/optimizer/optimizer.py:99
↓ 2 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective. Note: Tokens here are vocab ids and not text tokens.
megatron/data/dataset_utils.py:182
← previousnext →101–200 of 1,158, ranked by callers