Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIS-SNU/Smart-Infinity
/ functions
Functions
4,989 in github.com/AIS-SNU/Smart-Infinity
⨍
Functions
4,989
◇
Types & classes
624
↓ 3 callers
Function
_get_expert_parallel_group
Get the expert parallel group the caller rank belongs to.
deepspeed/utils/groups.py:280
↓ 3 callers
Method
_get_optimizer_state
(self, sd, state_key)
deepspeed/checkpoint/zero_checkpoint.py:118
↓ 3 callers
Method
_get_used_buffers
(self)
deepspeed/runtime/swap_tensor/utils.py:176
↓ 3 callers
Method
_has_inf_or_nan
(x, j=None)
deepspeed/runtime/zero/stage_1_and_2.py:1852
↓ 3 callers
Function
_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 callers
Function
_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 callers
Function
_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:89
↓ 3 callers
Function
_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
DeepSpeedExample/megatron/mpu/layers.py:52
↓ 3 callers
Method
_make_key
(self, i, j)
deepspeed/checkpoint/reshape_meg_2d.py:52
↓ 3 callers
Function
_one_hot_to_float
(x, num_classes)
deepspeed/moe/sharded_moe.py:175
↓ 3 callers
Method
_optimizer_states_and_gradient_swap_in
(self, sub_group_id, timer_names=set(), use_fpga = False)
deepspeed/runtime/zero/stage3.py:1713
↓ 3 callers
Method
_optimizer_states_and_gradient_swap_out
(self, sub_group_id, timer_names=set(), use_fpga = False)
deepspeed/runtime/zero/stage3.py:1768
↓ 3 callers
Method
_printline
(self, info, job, name, f)
setup/nvme_speed_test.py:153
↓ 3 callers
Function
_quantize_module
(model, policies)
deepspeed/module_inject/module_quantize.py:63
↓ 3 callers
Function
_reduce
All-reduce the input tensor across model parallel group.
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:14
↓ 3 callers
Function
_reduce
All-reduce the the input tensor across model parallel group.
DeepSpeedExample/megatron/mpu/mappings.py:22
↓ 3 callers
Function
_reduce_scatter_along_first_dim
Reduce-scatter the input tensor across model parallel group.
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:108
↓ 3 callers
Method
_release_tensor
(self, tensor_id)
deepspeed/runtime/zero/contiguous_memory_allocator.py:147
↓ 3 callers
Function
_replace_module
(module, policy)
deepspeed/module_inject/replace_module.py:267
↓ 3 callers
Method
_scale_loss_by_gas
(self, prescaled_loss)
deepspeed/runtime/engine.py:1662
↓ 3 callers
Function
_split
Split the tensor along its last dimension and keep the corresponding slice.
DeepSpeedExample/megatron/mpu/mappings.py:35
↓ 3 callers
Function
_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 callers
Function
_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 callers
Method
_take_model_step
(self, lr_kwargs, block_eigenvalue={})
deepspeed/runtime/engine.py:1958
↓ 3 callers
Method
_update_param_state_info
(self, swap_info, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:637
↓ 3 callers
Function
all_gather_dp_groups
(partitioned_param_groups, dp_process_group, start_alignment_factor, allgather_bucket_size)
deepspeed/runtime/utils.py:923
↓ 3 callers
Function
allocate_mem_buff
Allocate a memory buffer.
DeepSpeedExample/megatron/memory.py:24
↓ 3 callers
Method
allocate_tensor
(self, swap_path, numel, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:55
↓ 3 callers
Function
assert_no_cuda_mismatch
(name="")
deepspeed/ops/op_builder/builder.py:77
↓ 3 callers
Function
atoi
(text)
deepspeed/utils/zero_to_fp32.py:48
↓ 3 callers
Method
attention_o_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:233
↓ 3 callers
Method
autotuning_metric_path
(self)
deepspeed/runtime/engine.py:609
↓ 3 callers
Method
autotuning_profile_model_info
(self)
deepspeed/runtime/engine.py:624
↓ 3 callers
Method
backward
: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 callers
Method
backward
Disabled for pipeline parallel training. See ``train_batch()``.
deepspeed/runtime/pipe/engine.py:1185
↓ 3 callers
Function
backward_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 callers
Function
bias_dropout_add
(x, bias, residual, prob, training)
DeepSpeedExample/megatron/model/transformer.py:421
↓ 3 callers
Method
build
Build the stored specification.
deepspeed/runtime/pipe/module.py:68
↓ 3 callers
Function
build_dataset
(index, name)
DeepSpeedExample/megatron/data/gpt2_dataset.py:54
↓ 3 callers
Function
build_dataset
(index, name)
DeepSpeedExample/megatron/data/dataset_utils.py:400
↓ 3 callers
Function
can_send_recv
()
deepspeed/runtime/pipe/p2p.py:23
↓ 3 callers
Function
check_deepspeed_config
(config)
deepspeed/compression/compress.py:20
↓ 3 callers
Method
checkpoint_event_epilogue
(self)
deepspeed/runtime/zero/stage3.py:2478
↓ 3 callers
Method
checkpoint_event_prologue
(self)
deepspeed/runtime/zero/stage3.py:2475
↓ 3 callers
Method
clear
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 callers
Function
compile_helper
Compile helper function ar runtime. Make sure this is invoked on a single process.
DeepSpeedExample/megatron/data/dataset_utils.py:34
↓ 3 callers
Method
compute_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 callers
Method
configure
(self, comms_config)
deepspeed/utils/comms_logging.py:72
↓ 3 callers
Function
convert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
DeepSpeedExample/megatron/tokenizer/bert_tokenization.py:78
↓ 3 callers
Method
cxx_args
Returns optional list of compiler flags to forward to the build
deepspeed/ops/op_builder/builder.py:217
↓ 3 callers
Function
debug_module2name
(module)
deepspeed/utils/debug.py:23
↓ 3 callers
Method
default_stream
(self, device_index=None)
deepspeed/accelerator/cpu_accelerator.py:95
↓ 3 callers
Function
detach
(tensor)
DeepSpeedExample/megatron/data/realm_index.py:13
↓ 3 callers
Function
dimension_problem
deepspeed/ops/csrc/spatial/csrc/pt_binding.cpp:12
↓ 3 callers
Function
disable_grad_sync
Disable asynchronous grad reductions
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:405
↓ 3 callers
Method
elapsed
Calculate the elapsed time.
DeepSpeedExample/megatron/global_vars.py:183
↓ 3 callers
Method
encode
(self, text)
DeepSpeedExample/megatron/tokenizer/gpt2_tokenization.py:280
↓ 3 callers
Function
evaluate_and_print_results
Helper function to evaluate and dump results on screen.
DeepSpeedExample/megatron/training.py:614
↓ 3 callers
Function
extract_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 callers
Function
find_replace_str
(value, replace_dict)
deepspeed/autotuning/utils.py:41
↓ 3 callers
Function
flatten
(d, parent_key='', sep='_')
deepspeed/autotuning/tuner/utils.py:55
↓ 3 callers
Method
flops_profiler_profile_step
(self)
deepspeed/runtime/engine.py:577
↓ 3 callers
Method
forward
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 callers
Function
forward_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 callers
Function
get_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 callers
Method
get_best_space_record
(self, space_name)
deepspeed/autotuning/autotuner.py:713
↓ 3 callers
Function
get_bfloat16_enabled
(param_dict)
deepspeed/runtime/config.py:159
↓ 3 callers
Function
get_ccl_datatype
deepspeed/ops/csrc/cpu/comm/ccl.cpp:96
↓ 3 callers
Method
get_data_parallel_partitions
(self, tensor, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:1400
↓ 3 callers
Method
get_difficulty
(self, global_steps)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:143
↓ 3 callers
Method
get_gas_from_user_config
(self)
deepspeed/autotuning/autotuner.py:981
↓ 3 callers
Method
get_global_rank
(self, group, group_rank)
deepspeed/comm/torch.py:236
↓ 3 callers
Function
get_list
(val)
deepspeed/autotuning/utils.py:74
↓ 3 callers
Method
get_locks
(size, dev)
deepspeed/ops/sparse_attention/matmul.py:259
↓ 3 callers
Function
get_ltor_masks_and_position_ids
Build masks and position id for left to right model.
DeepSpeedExample/megatron/utils.py:129
↓ 3 callers
Function
get_model_config
(model)
DeepSpeedExample/megatron/core/utils.py:51
↓ 3 callers
Method
get_model_num_params
(self)
deepspeed/autotuning/autotuner.py:659
↓ 3 callers
Function
get_module_duration
(module)
deepspeed/profiling/flops_profiler/profiler.py:1107
↓ 3 callers
Function
get_module_macs
(module)
deepspeed/profiling/flops_profiler/profiler.py:1099
↓ 3 callers
Function
get_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 callers
Function
get_numactl_cmd
(bind_core_list, num_local_procs, local_rank)
deepspeed/utils/numa.py:101
↓ 3 callers
Function
get_only_unique_item
(items)
deepspeed/runtime/utils.py:821
↓ 3 callers
Method
get_pipe_parallel_group
The group of ranks within the same pipeline.
deepspeed/runtime/pipe/topology.py:418
↓ 3 callers
Function
get_sized_buffer
(buffer, num_elems)
deepspeed/runtime/swap_tensor/utils.py:228
↓ 3 callers
Method
get_src_dp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:41
↓ 3 callers
Method
get_state
(self)
deepspeed/runtime/progressive_layer_drop.py:28
↓ 3 callers
Method
get_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:74
↓ 3 callers
Method
get_tensor
(self, tensor_shape, dtype, name)
DeepSpeedExample/megatron/core/utils.py:65
↓ 3 callers
Function
get_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 callers
Function
get_token_stream
(model, context_tokens)
DeepSpeedExample/megatron/text_generation_utils.py:290
↓ 3 callers
Function
get_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:248
↓ 3 callers
Method
get_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 callers
Method
has_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:35
↓ 3 callers
Function
has_moe_layers
(m)
deepspeed/moe/utils.py:11
↓ 3 callers
Method
has_reduce_scatter_tensor
(self)
deepspeed/comm/torch.py:81
↓ 3 callers
Function
input
(msg)
deepspeed/runtime/zero/stage3.py:44
↓ 3 callers
Method
load
(module, state_dict, prefix)
deepspeed/inference/engine.py:341
↓ 3 callers
Function
load_model_with_checkpoint
(r_module, sd, mp_replace,
deepspeed/module_inject/load_checkpoint.py:21
↓ 3 callers
Function
load_module_recursive
(module, prefix='', level=0)
deepspeed/module_inject/load_checkpoint.py:205
↓ 3 callers
Method
load_state_dict
Customized load.
DeepSpeedExample/megatron/model/language_model.py:221
← previous
next →
501–600 of 4,989, ranked by callers