MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethodsequential_execution
(self, function, message, group=None)
deepspeed/runtime/zero/stage_1_and_2.py:2437
↓ 1 callersMethodsetGradBuffer
csrc/includes/deepcompile.h:296
↓ 1 callersFunctionset_accelerator
(accel_obj)
accelerator/real_accelerator.py:267
↓ 1 callersFunctionset_accelerator_visible
()
tests/unit/common.py:81
↓ 1 callersMethodset_attn_params_wo_copy
Narrower sub-method for finer grained overriding.
deepspeed/module_inject/containers/features/hybrid_engine.py:196
↓ 1 callersFunctionset_backend
()
deepspeed/comm/comm.py:209
↓ 1 callersMethodset_buffers
(self, compute_buffer, swap_buffer)
deepspeed/runtime/swap_tensor/optimizer_utils.py:39
↓ 1 callersFunctionset_context_parallel_group
Split each sequence over the ranks of ``group`` (``None`` turns the split off). See the module docstring.
deepspeed/models/glm_moe_dsa/attention.py:51
↓ 1 callersMethodset_custom_get_difficulty
(self, schedule_function)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:106
↓ 1 callersMethodset_data_post_process_func
(self, post_process_func)
deepspeed/runtime/engine.py:1434
↓ 1 callersMethodset_deepspeed_parallelism
Bind EP group handle to this module.
deepspeed/module_inject/auto_ep_layer.py:963
↓ 1 callersMethodset_deepspeed_parallelism
(self, use_data_before_expert_parallel_: bool = False)
deepspeed/moe/layer.py:86
↓ 1 callersMethodset_fp32_grad_for_param
(self, value, param)
deepspeed/runtime/zero/stage3.py:3511
↓ 1 callersFunctionset_fused_qkv_shard_state
Tell the model how wide this rank's query block is, for layouts that record it. QWen reads ``attn.split_size`` to unpack query, key and value out
deepspeed/module_inject/fusedqkv_utils.py:152
↓ 1 callersMethodset_grad_positions
(self)
deepspeed/runtime/zero/stage3.py:2179
↓ 1 callersMethodset_grad_scale
Multiplies every gradient as it is loaded, before weight decay and the moment updates: the same float multiply as scaling the gradients in place first
csrc/includes/cpu_adam.h:108
↓ 1 callersMethodset_keep_module_on_host
Set the static variable keep_module_on_host. Args: value (bool): The new value for keep_module_on_host.
deepspeed/module_inject/layers.py:448
↓ 1 callersFunctionset_lm_head
(module)
deepspeed/module_inject/replace_module.py:335
↓ 1 callersMethodset_local_grad_for_param
(self, value, param)
deepspeed/runtime/zero/stage3.py:3585
↓ 1 callersMethodset_mlp
(self, _h4h_w, _h4h_b, _4hh_w, _4hh_b)
deepspeed/module_inject/containers/base.py:198
↓ 1 callersMethodset_mlp
(self, config_moe_type)
deepspeed/module_inject/containers/base_moe.py:66
↓ 1 callersMethodset_mlp_gate
In `set_mlp_gate`, it is necessary to populate the following variables (where appropriate) for the given model: self.inte
deepspeed/module_inject/containers/features/gated_mlp.py:23
↓ 1 callersMethodset_mlp_params_wo_copy
Narrower sub-method for finer grained overriding.
deepspeed/module_inject/containers/features/hybrid_engine.py:205
↓ 1 callersMethodset_moe
(self, moe=False)
deepspeed/module_inject/containers/base.py:165
↓ 1 callersMethodset_needs_backward
(self, frame_id: int, needs_backward: bool)
deepspeed/compile/backend.py:58
↓ 1 callersMethodset_optim_state_fragment
(self, flat_hp_partition, optim_fragment)
deepspeed/utils/tensor_fragment.py:42
↓ 1 callersMethodset_parameters
Set the model parameters for the embedding, transformer, and unembedding containers.
deepspeed/inference/v2/model_implementations/inference_model_base.py:116
↓ 1 callersMethodset_params_copy
While set, the updated float32 parameters are also written in bfloat16 to params_copy: element j of the parameter tensor that starts at param_base goe
csrc/includes/cpu_adam.h:113
↓ 1 callersMethodset_params_wo_copy
Rather than copying into, set the parameters directly. This is necessary to provide an inexpensive (low-memory-overhead) view onto th
deepspeed/module_inject/containers/features/hybrid_engine.py:184
↓ 1 callersMethodset_persistent
(self, ds_id)
tests/unit/v1/compile/test_selective_gather.py:36
↓ 1 callersMethodset_post_size
(self, size)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:37
↓ 1 callersMethodset_pre_size
(self, size)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:34
↓ 1 callersMethodset_q_k_v
In `set_q_k_v`, it is necessary to populate the following variables (where appropriate) for the given model: self.qw: q w
deepspeed/module_inject/containers/features/split_qkv.py:19
↓ 1 callersMethodset_quantization_config
(self, quantizer)
deepspeed/module_inject/containers/base.py:172
↓ 1 callersFunctionset_seed
(seed)
tests/unit/ops/accelerators/test_accelerator_forward.py:159
↓ 1 callersFunctionset_seed
(seed)
tests/unit/ops/accelerators/test_accelerator_backward.py:209
↓ 1 callersMethodset_state_manager
Sets the state manager attribute. This is called by the inference engine after the model is fully initialized.
deepspeed/inference/v2/model_implementations/inference_model_base.py:126
↓ 1 callersFunctionset_time_and_tensor_size
(graph_id, graph: Graph, mem, bwd, profiling_results, mem_complete=True)
deepspeed/compile/backend.py:138
↓ 1 callersFunctionset_val_by_key
(d: dict, k, vv)
deepspeed/autotuning/utils.py:144
↓ 1 callersMethodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/hpu_accelerator.py:317
↓ 1 callersFunctionset_z3_leaf_module
(model: torch.nn.Module, flag: bool)
deepspeed/utils/z3_leaf_module.py:48
↓ 1 callersMethodsetup_log_dir
(self, base=os.path.join(os.path.expanduser("~"), "csv_monitor"))
deepspeed/monitor/csv_monitor.py:22
↓ 1 callersMethodsetup_zero_stage3_hooks
(self)
deepspeed/runtime/zero/parameter_offload.py:309
↓ 1 callersFunctionshard_unembed_param
Utility method for sharding an unembed parameter. We shard unembeddings on the vocab dimension with the expectation of an all-gather to produ
deepspeed/inference/v2/model_implementations/sharding/unembed.py:12
↓ 1 callersMethodshard_weights
(self, conv)
deepspeed/module_inject/layers.py:1886
↓ 1 callersFunctionsharded_unembed_dim
Utility method for determining the sharded vocab size of a sharded unembed parameter. Args: vocab_size (int): The size of the vocabu
deepspeed/inference/v2/model_implementations/sharding/unembed.py:31
↓ 1 callersFunctionshared_create
csrc/cpu/comm/shm.cpp:69
↓ 1 callersMethodshouldFlush
csrc/includes/deepcompile.h:169
↓ 1 callersFunctionshould_assert_with_msg
(expected_message)
tests/unit/v1/autotp/test_autotp_training.py:824
↓ 1 callersMethodshutdown
Release any backend resources. Default no-op.
deepspeed/runtime/rollout/base.py:110
↓ 1 callersFunctionsigkill_handler
(signum, frame)
deepspeed/launcher/launch.py:251
↓ 1 callersFunctionskip_level_0_prefix
(model, state_dict)
deepspeed/module_inject/replace_module.py:659
↓ 1 callersFunctionskip_on_device
()
tests/unit/v1/autotp/test_autotp_inference.py:16
↓ 1 callersFunctionslice_data
csrc/cpu/comm/shm.cpp:438
↓ 1 callersFunctionslice_el_start
csrc/cpu/comm/shm.cpp:445
↓ 1 callersFunctionslice_size
csrc/cpu/comm/shm.cpp:432
↓ 1 callersMethodsoftmax_context_fp16
(query_key_value, attn_mask, rotary_dim,
op_builder/npu/inference.py:319
↓ 1 callersMethodsoftmax_fallback
(attn_scores, attn_mask, alibi, triangular, recompute, local_attention, window_size, async_op,
deepspeed/ops/transformer/inference/op_binding/softmax.py:29
↓ 1 callersFunctionsort_zero_files
(files, prefix)
deepspeed/checkpoint/reshape_utils.py:42
↓ 1 callersFunctionsource_extent
(item, operation)
deepspeed/checkpoint/affine_transfer_executor.py:280
↓ 1 callersMethodsources
(self)
op_builder/mps/cpu_adam.py:26
↓ 1 callersMethodsources
(self)
op_builder/klxpu/utils.py:17
↓ 1 callersMethodsources
(self)
op_builder/sdaa/cpu_adam.py:45
↓ 1 callersMethodsources
(self)
op_builder/hpu/cpu_adam.py:20
↓ 1 callersMethodsources
(self)
op_builder/supa/cpu_lion.py:17
↓ 1 callersMethodsources
(self)
op_builder/mlu/cpu_adam.py:20
↓ 1 callersMethodsparse_all_gather
(self, value, dp_group)
deepspeed/runtime/engine.py:4141
↓ 1 callersMethodsparse_allreduce
(self, sparse, dp_group, dp_world_size=None)
deepspeed/runtime/engine.py:4114
↓ 1 callersMethodsparse_allreduce_bucket
(self, bucket, dp_group, dp_world_size=None)
deepspeed/runtime/engine.py:4108
↓ 1 callersFunctionsparse_mla_fwd
( heads, dim, tail_dim, topk, kv_group=1, sm_scale=None, is_causal=True, block
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_fwd.py:28
↓ 1 callersMethodsparse_size
(self)
deepspeed/runtime/sparse_tensor.py:39
↓ 1 callersFunctionsplit_cpu_worker_cores
Reserve main CPUs and keep worker masks within the rank's CPU and NUMA boundaries.
deepspeed/runtime/reflow/reflow_utils.py:215
↓ 1 callersMethodsplit_query_key_value
Up to now we found 3 Q/K/V parameter formats in different Megatron checkpoint versions: 1. version 0, there is no version informatio
deepspeed/runtime/state_dict_factory.py:256
↓ 1 callersMethodsplit_state_dict
(self, mp_world_size, mp_rank, quantize, quantize_bits, groups, mlp_extra_grouping)
deepspeed/runtime/state_dict_factory.py:180
↓ 1 callersFunctionsplit_tensor_along_last_dim
Split a tensor along its last dimension. Adapted from Megatron-LM. Arguments: tensor: input tensor. partitions: list of partition
deepspeed/runtime/zero/tiling.py:11
↓ 1 callersMethodstage
Stage one backward's rows, and return the weight gradients of any flush this backward runs. Args: rows: ``(x, h, grad_out, *proje
deepspeed/moe/ep_experts.py:563
↓ 1 callersMethodstage_owner
(self, layer_idx)
deepspeed/runtime/pipe/module.py:533
↓ 1 callersMethodstartBackward
csrc/includes/deepcompile.h:493
↓ 1 callersMethodstartForward
csrc/includes/deepcompile.h:489
↓ 1 callersMethodstate_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/stage3.py:3862
↓ 1 callersMethodstate_dict
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:91
↓ 1 callersMethodstate_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/fused_optimizer.py:461
↓ 1 callersMethodstatus
(self)
deepspeed/autotuning/scheduler.py:152
↓ 1 callersMethodstep
(self, last_batch_iteration=None)
deepspeed/runtime/lr_schedules.py:770
↓ 1 callersMethodstep
r"""Execute the weight update step after forward and backward propagation on effective_train_batch. In managed gradient accumulation
deepspeed/runtime/engine.py:3727
↓ 1 callersMethodstep
Not supporting closure.
deepspeed/runtime/superoffload/superoffload_stage3.py:202
↓ 1 callersMethodstep
(self, epoch=None)
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:279
↓ 1 callersFunctionstep_amp
(enabled, baseline_model, baseline_optimizer, target_engine, dtype, enable_autocast_outside, base
tests/unit/v1/zero/test_zero_autocast.py:41
↓ 1 callersMethodstep_fused_adam
Not supporting closure.
deepspeed/runtime/fp16/fused_optimizer.py:163
↓ 1 callersMethodstep_fused_lamb
Not supporting closure.
deepspeed/runtime/fp16/unfused_optimizer.py:135
↓ 1 callersMethodsteps
Yield a list of :class:`PipeInstruction` for each step in the schedule. .. note:: Schedules must implement ``steps()`` to define
deepspeed/runtime/pipe/schedule.py:58
↓ 1 callersMethodstop_profiling_comms
(self)
deepspeed/utils/comms_logging.py:93
↓ 1 callersFunctionstore_with_byte_offset
Stores a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:389
↓ 1 callersFunctionsubtract
Return the disjoint parts of a box outside another box.
deepspeed/checkpoint/affine_geometry.py:186
↓ 1 callersFunctionsuite
()
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:165
↓ 1 callersFunctionsuite
()
tests/model/Megatron_GPT2/run_perf_baseline.py:119
↓ 1 callersFunctionsuite
()
tests/model/Megatron_GPT2/run_func_test.py:565
↓ 1 callersFunctionsuite
()
tests/model/Megatron_GPT2/run_perf_test.py:123
↓ 1 callersMethodsuper_offload
(self)
deepspeed/runtime/engine.py:1659
↓ 1 callersMethodsupported
(model)
deepspeed/module_inject/auto_tp.py:320
← previousnext →6,001–6,100 of 15,468, ranked by callers