MCPcopy Create free account

hub / github.com/AIS-SNU/Smart-Infinity / functions

Functions4,989 in github.com/AIS-SNU/Smart-Infinity

↓ 3 callersFunction_get_expert_parallel_group
Get the expert parallel group the caller rank belongs to.
deepspeed/utils/groups.py:280
↓ 3 callersMethod_get_optimizer_state
(self, sd, state_key)
deepspeed/checkpoint/zero_checkpoint.py:118
↓ 3 callersMethod_get_used_buffers
(self)
deepspeed/runtime/swap_tensor/utils.py:176
↓ 3 callersMethod_has_inf_or_nan
(x, j=None)
deepspeed/runtime/zero/stage_1_and_2.py:1852
↓ 3 callersFunction_initialize_affine_weight_cpu
Initialize affine weight for model parallel. Build the master weight on all processes and scatter the relevant chunk.
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:102
↓ 3 callersFunction_initialize_affine_weight_cpu
Initialize affine weight for model parallel. Build the master weight on all processes and scatter the relevant chunk.
DeepSpeedExample/megatron/mpu/layers.py:68
↓ 3 callersFunction_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:89
↓ 3 callersFunction_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
DeepSpeedExample/megatron/mpu/layers.py:52
↓ 3 callersMethod_make_key
(self, i, j)
deepspeed/checkpoint/reshape_meg_2d.py:52
↓ 3 callersFunction_one_hot_to_float
(x, num_classes)
deepspeed/moe/sharded_moe.py:175
↓ 3 callersMethod_optimizer_states_and_gradient_swap_in
(self, sub_group_id, timer_names=set(), use_fpga = False)
deepspeed/runtime/zero/stage3.py:1713
↓ 3 callersMethod_optimizer_states_and_gradient_swap_out
(self, sub_group_id, timer_names=set(), use_fpga = False)
deepspeed/runtime/zero/stage3.py:1768
↓ 3 callersMethod_printline
(self, info, job, name, f)
setup/nvme_speed_test.py:153
↓ 3 callersFunction_quantize_module
(model, policies)
deepspeed/module_inject/module_quantize.py:63
↓ 3 callersFunction_reduce
All-reduce the input tensor across model parallel group.
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:14
↓ 3 callersFunction_reduce
All-reduce the the input tensor across model parallel group.
DeepSpeedExample/megatron/mpu/mappings.py:22
↓ 3 callersFunction_reduce_scatter_along_first_dim
Reduce-scatter the input tensor across model parallel group.
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:108
↓ 3 callersMethod_release_tensor
(self, tensor_id)
deepspeed/runtime/zero/contiguous_memory_allocator.py:147
↓ 3 callersFunction_replace_module
(module, policy)
deepspeed/module_inject/replace_module.py:267
↓ 3 callersMethod_scale_loss_by_gas
(self, prescaled_loss)
deepspeed/runtime/engine.py:1662
↓ 3 callersFunction_split
Split the tensor along its last dimension and keep the corresponding slice.
DeepSpeedExample/megatron/mpu/mappings.py:35
↓ 3 callersFunction_split_along_first_dim
Split the tensor along its first dimension and keep the corresponding slice.
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:46
↓ 3 callersFunction_split_along_last_dim
Split the tensor along its last dimension and keep the corresponding slice.
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:27
↓ 3 callersMethod_take_model_step
(self, lr_kwargs, block_eigenvalue={})
deepspeed/runtime/engine.py:1958
↓ 3 callersMethod_update_param_state_info
(self, swap_info, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:637
↓ 3 callersFunctionall_gather_dp_groups
(partitioned_param_groups, dp_process_group, start_alignment_factor, allgather_bucket_size)
deepspeed/runtime/utils.py:923
↓ 3 callersFunctionallocate_mem_buff
Allocate a memory buffer.
DeepSpeedExample/megatron/memory.py:24
↓ 3 callersMethodallocate_tensor
(self, swap_path, numel, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:55
↓ 3 callersFunctionassert_no_cuda_mismatch
(name="")
deepspeed/ops/op_builder/builder.py:77
↓ 3 callersFunctionatoi
(text)
deepspeed/utils/zero_to_fp32.py:48
↓ 3 callersMethodattention_o_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:233
↓ 3 callersMethodautotuning_metric_path
(self)
deepspeed/runtime/engine.py:609
↓ 3 callersMethodautotuning_profile_model_info
(self)
deepspeed/runtime/engine.py:624
↓ 3 callersMethodbackward
:attr:`backward` performs the following conceptual steps: 1. fp32_loss = loss.float() (see first Note below) 2. scaled_loss
DeepSpeedExample/megatron/fp16/fp16.py:515
↓ 3 callersMethodbackward
Disabled for pipeline parallel training. See ``train_batch()``.
deepspeed/runtime/pipe/engine.py:1185
↓ 3 callersFunctionbackward_step_helper
Helper method to run backward step with model split into chunks (run set_virtual_pipeline_model_parallel_rank() before calling backwar
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:561
↓ 3 callersFunctionbias_dropout_add
(x, bias, residual, prob, training)
DeepSpeedExample/megatron/model/transformer.py:421
↓ 3 callersMethodbuild
Build the stored specification.
deepspeed/runtime/pipe/module.py:68
↓ 3 callersFunctionbuild_dataset
(index, name)
DeepSpeedExample/megatron/data/gpt2_dataset.py:54
↓ 3 callersFunctionbuild_dataset
(index, name)
DeepSpeedExample/megatron/data/dataset_utils.py:400
↓ 3 callersFunctioncan_send_recv
()
deepspeed/runtime/pipe/p2p.py:23
↓ 3 callersFunctioncheck_deepspeed_config
(config)
deepspeed/compression/compress.py:20
↓ 3 callersMethodcheckpoint_event_epilogue
(self)
deepspeed/runtime/zero/stage3.py:2478
↓ 3 callersMethodcheckpoint_event_prologue
(self)
deepspeed/runtime/zero/stage3.py:2475
↓ 3 callersMethodclear
Clear the embedding data structures to save memory. The metadata ends up getting used, and is also much smaller in dimensionality so i
DeepSpeedExample/megatron/data/realm_index.py:41
↓ 3 callersFunctioncompile_helper
Compile helper function ar runtime. Make sure this is invoked on a single process.
DeepSpeedExample/megatron/data/dataset_utils.py:34
↓ 3 callersMethodcompute_capability_args
Returns nvcc compute capability compile flags. 1. `TORCH_CUDA_ARCH_LIST` takes priority over `cross_compile_archs`. 2. If ne
deepspeed/ops/op_builder/builder.py:519
↓ 3 callersMethodconfigure
(self, comms_config)
deepspeed/utils/comms_logging.py:72
↓ 3 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
DeepSpeedExample/megatron/tokenizer/bert_tokenization.py:78
↓ 3 callersMethodcxx_args
Returns optional list of compiler flags to forward to the build
deepspeed/ops/op_builder/builder.py:217
↓ 3 callersFunctiondebug_module2name
(module)
deepspeed/utils/debug.py:23
↓ 3 callersMethoddefault_stream
(self, device_index=None)
deepspeed/accelerator/cpu_accelerator.py:95
↓ 3 callersFunctiondetach
(tensor)
DeepSpeedExample/megatron/data/realm_index.py:13
↓ 3 callersFunctiondimension_problem
deepspeed/ops/csrc/spatial/csrc/pt_binding.cpp:12
↓ 3 callersFunctiondisable_grad_sync
Disable asynchronous grad reductions
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:405
↓ 3 callersMethodelapsed
Calculate the elapsed time.
DeepSpeedExample/megatron/global_vars.py:183
↓ 3 callersMethodencode
(self, text)
DeepSpeedExample/megatron/tokenizer/gpt2_tokenization.py:280
↓ 3 callersFunctionevaluate_and_print_results
Helper function to evaluate and dump results on screen.
DeepSpeedExample/megatron/training.py:614
↓ 3 callersFunctionextract_tensors
Separate objects in list/tuple into tensors and non-tensors and create a mapping to enable re-aggregation. The order of tensors and non-tenso
deepspeed/runtime/activation_checkpointing/checkpointing.py:296
↓ 3 callersFunctionfind_replace_str
(value, replace_dict)
deepspeed/autotuning/utils.py:41
↓ 3 callersFunctionflatten
(d, parent_key='', sep='_')
deepspeed/autotuning/tuner/utils.py:55
↓ 3 callersMethodflops_profiler_profile_step
(self)
deepspeed/runtime/engine.py:577
↓ 3 callersMethodforward
x: the activation that we need to quantize num_bits: the number of bits we need to quantize the activation to *args: some ext
deepspeed/compression/basic_layer.py:40
↓ 3 callersFunctionforward_step_helper
Helper method to run forward step with model split into chunks (run set_virtual_pipeline_model_parallel_rank() before calling forward_
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:518
↓ 3 callersFunctionget_attn_mask_stride
infer stride of attention mask memory layout based on the model type.
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:41
↓ 3 callersMethodget_best_space_record
(self, space_name)
deepspeed/autotuning/autotuner.py:713
↓ 3 callersFunctionget_bfloat16_enabled
(param_dict)
deepspeed/runtime/config.py:159
↓ 3 callersFunctionget_ccl_datatype
deepspeed/ops/csrc/cpu/comm/ccl.cpp:96
↓ 3 callersMethodget_data_parallel_partitions
(self, tensor, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:1400
↓ 3 callersMethodget_difficulty
(self, global_steps)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:143
↓ 3 callersMethodget_gas_from_user_config
(self)
deepspeed/autotuning/autotuner.py:981
↓ 3 callersMethodget_global_rank
(self, group, group_rank)
deepspeed/comm/torch.py:236
↓ 3 callersFunctionget_list
(val)
deepspeed/autotuning/utils.py:74
↓ 3 callersMethodget_locks
(size, dev)
deepspeed/ops/sparse_attention/matmul.py:259
↓ 3 callersFunctionget_ltor_masks_and_position_ids
Build masks and position id for left to right model.
DeepSpeedExample/megatron/utils.py:129
↓ 3 callersFunctionget_model_config
(model)
DeepSpeedExample/megatron/core/utils.py:51
↓ 3 callersMethodget_model_num_params
(self)
deepspeed/autotuning/autotuner.py:659
↓ 3 callersFunctionget_module_duration
(module)
deepspeed/profiling/flops_profiler/profiler.py:1107
↓ 3 callersFunctionget_module_macs
(module)
deepspeed/profiling/flops_profiler/profiler.py:1099
↓ 3 callersFunctionget_mpu_ranks
Initialize model data parallel groups. Arguments: tp_size: number of GPUs used to parallelize model tensor. pp_size: number
deepspeed/checkpoint/reshape_meg_2d.py:107
↓ 3 callersFunctionget_numactl_cmd
(bind_core_list, num_local_procs, local_rank)
deepspeed/utils/numa.py:101
↓ 3 callersFunctionget_only_unique_item
(items)
deepspeed/runtime/utils.py:821
↓ 3 callersMethodget_pipe_parallel_group
The group of ranks within the same pipeline.
deepspeed/runtime/pipe/topology.py:418
↓ 3 callersFunctionget_sized_buffer
(buffer, num_elems)
deepspeed/runtime/swap_tensor/utils.py:228
↓ 3 callersMethodget_src_dp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:41
↓ 3 callersMethodget_state
(self)
deepspeed/runtime/progressive_layer_drop.py:28
↓ 3 callersMethodget_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:74
↓ 3 callersMethodget_tensor
(self, tensor_shape, dtype, name)
DeepSpeedExample/megatron/core/utils.py:65
↓ 3 callersFunctionget_tensorboard_writer
Return tensorboard writer. It can be None so no need to check if it is initialized.
DeepSpeedExample/megatron/global_vars.py:46
↓ 3 callersFunctionget_token_stream
(model, context_tokens)
DeepSpeedExample/megatron/text_generation_utils.py:290
↓ 3 callersFunctionget_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:248
↓ 3 callersMethodget_total_flops
Returns the total flops of the model. Args: as_string (bool, optional): whether to output the flops as string. Defaults to False.
deepspeed/profiling/flops_profiler/profiler.py:193
↓ 3 callersMethodhas_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:35
↓ 3 callersFunctionhas_moe_layers
(m)
deepspeed/moe/utils.py:11
↓ 3 callersMethodhas_reduce_scatter_tensor
(self)
deepspeed/comm/torch.py:81
↓ 3 callersFunctioninput
(msg)
deepspeed/runtime/zero/stage3.py:44
↓ 3 callersMethodload
(module, state_dict, prefix)
deepspeed/inference/engine.py:341
↓ 3 callersFunctionload_model_with_checkpoint
(r_module, sd, mp_replace,
deepspeed/module_inject/load_checkpoint.py:21
↓ 3 callersFunctionload_module_recursive
(module, prefix='', level=0)
deepspeed/module_inject/load_checkpoint.py:205
↓ 3 callersMethodload_state_dict
Customized load.
DeepSpeedExample/megatron/model/language_model.py:221
← previousnext →501–600 of 4,989, ranked by callers