MCPcopy Create free account

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

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

Methodset_none_gradients_to_zero
(self, i, partition_id)
deepspeed/runtime/zero/stage3.py:1393
Methodset_none_gradients_to_zero
(self, i, partition_id)
deepspeed/runtime/zero/stage_1_and_2.py:1315
Methodset_norm_for_param_grad
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1083
Methodset_norm_for_param_grad_in_gpu
(self, param)
deepspeed/runtime/zero/stage3.py:1210
Functionset_num_layers
(nlayers)
deepspeed/runtime/activation_checkpointing/checkpointing.py:727
Methodset_pipeline
(cls, field_value, values)
deepspeed/runtime/zero/offload_config.py:92
Functionset_pipeline_model_parallel_rank
Set pipeline model parallel rank.
DeepSpeedExample/megatron/core/parallel_state.py:493
Functionset_pipeline_model_parallel_split_rank
Set pipeline model parallel split rank.
DeepSpeedExample/megatron/core/parallel_state.py:499
Functionset_pipeline_model_parallel_world_size
Set the pipeline model parallel size
DeepSpeedExample/megatron/core/parallel_state.py:421
Methodset_q_k_v
Necessary to implement for `HybridSplitQKVContainer`
deepspeed/module_inject/containers/opt.py:47
Methodset_q_k_v
Necessary to implement for `HybridSplitQKVContainer`
deepspeed/module_inject/containers/llama.py:53
Methodset_q_k_v
Necessary to implement for `HybridSplitQKVContainer`
deepspeed/module_inject/containers/gptj.py:45
Functionset_random_seed
Set the random seed for common PRNGs used during training: random, numpy, and torch. Args: seed (int): the seed to use
deepspeed/runtime/utils.py:65
Methodset_rng_state
(self, new_state, device_index=None)
deepspeed/accelerator/npu_accelerator.py:52
Methodset_rng_state
(self, new_state, device_index=None)
deepspeed/accelerator/cuda_accelerator.py:56
Methodset_rng_state
(self, new_state, device_index=None)
deepspeed/accelerator/abstract_accelerator.py:55
Functionset_sequence_data_parallel_rank
Set sequence parallel rank.
DeepSpeedExample/megatron/core/parallel_state.py:487
Functionset_sequence_data_parallel_world_size
Set the sequence parallel size
DeepSpeedExample/megatron/core/parallel_state.py:416
Functionset_sequence_parallel_rank
Set sequence parallel rank.
DeepSpeedExample/megatron/core/parallel_state.py:481
Functionset_sequence_parallel_world_size
Set the sequence parallel size
DeepSpeedExample/megatron/core/parallel_state.py:411
Functionset_tensor_model_parallel_rank
Set tensor model parallel rank.
DeepSpeedExample/megatron/core/parallel_state.py:470
Functionset_tensor_model_parallel_world_size
Set the tensor model parallel size
DeepSpeedExample/megatron/core/parallel_state.py:406
Methodset_train_batch_size
Adjust the global batch size by increasing or decreasing the number of micro-batches (i.e., gradient accumulation steps). The size of each mic
deepspeed/runtime/engine.py:411
Methodset_train_batch_size
Adjust the global batch size by increasing or decreasing the number of micro-batches (i.e., gradient accumulation steps). The size of each mic
deepspeed/runtime/pipe/engine.py:445
Functionset_val_by_key
(d: dict, k, vv)
deepspeed/autotuning/utils.py:142
Functionset_virtual_pipeline_model_parallel_rank
Set the virtual pipeline-parallel rank.
DeepSpeedExample/megatron/core/parallel_state.py:632
Functionset_virtual_pipeline_model_parallel_world_size
Set the pipeline model parallel size
DeepSpeedExample/megatron/core/parallel_state.py:426
Methodshow_2d_mapping
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:85
Methodshow_pp_transformer_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:101
Methodshow_tp_embedding_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:95
Methodshow_tp_final_norm_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:98
Methodshow_transformer_file_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:104
Functionshutdown_init_context
This function is used to initialize deepspeed engine inside the context of Init. We need to remove the wrappers but keep the list of contexts
deepspeed/runtime/zero/partition_parameters.py:515
Functionsigkill_handler
(signum, frame)
deepspeed/launcher/runner.py:558
Functionsimd_add
deepspeed/ops/csrc/includes/simd.h:110
Functionsimd_div
deepspeed/ops/csrc/includes/simd.h:134
Functionsimd_fma
deepspeed/ops/csrc/includes/simd.h:80
Functionsimd_load
deepspeed/ops/csrc/includes/simd.h:73
Functionsimd_mul
deepspeed/ops/csrc/includes/simd.h:122
Functionsimd_sqrt
deepspeed/ops/csrc/includes/simd.h:104
Functionsimd_store
deepspeed/ops/csrc/includes/simd.h:66
Functionsingle_dataset_provider
(datapath)
DeepSpeedExample/tasks/glue/finetune.py:52
Methodsize
(self, index)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:549
Methodsizes
(self)
DeepSpeedExample/megatron/data/indexed_dataset.py:431
Methodsizes
(self)
DeepSpeedExample/megatron/data/indexed_dataset.py:515
Methodsizes
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:465
Methodsoftmax_context_fallback
(self, query_key_value, attn_mask, rotary_dim, rotate_half, roteate_every_two, heads,
deepspeed/ops/transformer/inference/op_binding/softmax_context.py:26
Methodsoftmax_fallback
(self, attn_scores, attn_mask, alibi, triangular, recompute, local_attention, window_size,
deepspeed/ops/transformer/inference/op_binding/softmax.py:28
Methodsources
(self)
deepspeed/ops/op_builder/sparse_attn.py:24
Methodsources
(self)
deepspeed/ops/op_builder/random_ltd.py:26
Methodsources
(self)
deepspeed/ops/op_builder/utils.py:19
Methodsources
(self)
deepspeed/ops/op_builder/async_io.py:22
Methodsources
(self)
deepspeed/ops/op_builder/quantizer.py:20
Methodsources
(self)
deepspeed/ops/op_builder/fused_lamb.py:21
Methodsources
(self)
deepspeed/ops/op_builder/spatial_inference.py:38
Methodsources
(self)
deepspeed/ops/op_builder/transformer.py:26
Methodsources
(self)
deepspeed/ops/op_builder/transformer_inference.py:53
Methodsources
(self)
deepspeed/ops/op_builder/fused_adam.py:21
Methodsources
(self)
deepspeed/ops/op_builder/cpu_adam.py:20
Methodsources
(self)
deepspeed/ops/op_builder/cpu_adagrad.py:20
Methodsources
(self)
deepspeed/ops/op_builder/cpu/no_impl.py:23
Functionsplit_params_into_different_moe_groups_for_optimizer
Split parameters into different MoE groups for optimizer Args: param_groups (Tuple[Dict]): The list of parameter groups to sp
deepspeed/moe/utils.py:65
Functionsplit_params_into_shared_and_expert_params
( params: List[torch.nn.Parameter])
deepspeed/moe/utils.py:29
Methodsplit_state_dict
(self, mp_world_size, mp_rank, quan
deepspeed/runtime/state_dict_factory.py:350
Methodstage
Stage index used to configure this schedule.
deepspeed/runtime/pipe/schedule.py:87
Methodstart_profiling_comms
(self)
deepspeed/utils/comms_logging.py:84
Methodstart_profiling_op
(self, op_name_list)
deepspeed/utils/comms_logging.py:91
Methodstart_time_hook
(module, input)
deepspeed/profiling/flops_profiler/profiler.py:107
Methodstate_dict
(self)
DeepSpeedExample/megatron/learning_rates.py:107
Methodstate_dict
(self, destination=None, prefix='', keep_vars=False)
DeepSpeedExample/megatron/model/distributed.py:78
Methodstate_dict
Returns a dict containing the current state of this :class:`FP16_Optimizer` instance. This dict contains attributes of :class:`FP16_O
DeepSpeedExample/megatron/fp16/fp16.py:356
Methodstate_dict
(self)
deepspeed/runtime/bf16_optimizer.py:343
Methodstate_dict
(self)
deepspeed/runtime/lr_schedules.py:354
Methodstate_dict
(self)
deepspeed/runtime/lr_schedules.py:692
Methodstate_dict
Returns a dict containing the current state of this :class:`FP16_Optimizer` instance. This dict contains attributes of :class:`FP16_O
deepspeed/runtime/zero/stage_1_and_2.py:1974
Methodstate_dict
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:305
Methodstate_dict
Returns a dict containing the current state of this :class:`FP16_Optimizer` instance. This dict contains attributes of :class:`FP16_O
deepspeed/runtime/fp16/unfused_optimizer.py:331
Methodstate_dict_for_save_checkpoint
(self, prefix='', keep_vars=False)
DeepSpeedExample/megatron/core/models/gpt/gpt_model.py:197
Methodstate_dict_for_save_checkpoint
For easy load.
DeepSpeedExample/megatron/core/models/gpt/gpt_embedding.py:80
Methodstate_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
DeepSpeedExample/megatron/core/transformer/module.py:31
Methodstate_dict_for_save_checkpoint
(self, prefix='', keep_vars=False)
DeepSpeedExample/megatron/core/transformer/module.py:114
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
DeepSpeedExample/megatron/model/classification.py:73
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
DeepSpeedExample/megatron/model/realm_model.py:184
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
DeepSpeedExample/megatron/model/distributed.py:87
Methodstate_dict_for_save_checkpoint
For easy load.
DeepSpeedExample/megatron/model/language_model.py:342
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
DeepSpeedExample/megatron/model/gpt2_model.py:111
Methodstate_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
DeepSpeedExample/megatron/model/module.py:46
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
DeepSpeedExample/megatron/model/module.py:185
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
DeepSpeedExample/megatron/model/bert_model.py:174
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
DeepSpeedExample/megatron/model/multiple_choice.py:85
Methodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
DeepSpeedExample/megatron/fp16/fp16.py:79
Methodstep
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/adagrad/cpu_adagrad.py:37
Methodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
deepspeed/ops/lamb/fused_lamb.py:69
Methodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
deepspeed/ops/adam/fused_adam.py:107
Methodstep
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/adam/cpu_adam.py:120
Methodstep
(self, lr_kwargs=None)
deepspeed/runtime/hybrid_engine.py:434
Methodstep
(self, batch_iteration=None)
deepspeed/runtime/lr_schedules.py:347
Methodstep
Updates the optimizer with the learning rate for the last batch index. `self.last_batch_iteration` is treated as the last batch index.
deepspeed/runtime/lr_schedules.py:600
Methodstep
(self, last_batch_iteration=None)
deepspeed/runtime/lr_schedules.py:684
Methodstep
Disabled for pipeline parallel training. See ``train_batch()``.
deepspeed/runtime/pipe/engine.py:1189
← previousnext →4,701–4,800 of 4,989, ranked by callers