MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functionoffload_parameter_fwd
(gm: GraphModule, graph_id: int, graph_order: List[Tuple[int, bool]], profiling_results,
deepspeed/compile/passes/offload_parameters.py:51
Functionoffload_parameter_meta
csrc/compile/z3.cpp:683
Methodoffload_ratio_check
(self)
deepspeed/runtime/zero/config.py:415
Methodoffload_states
(self, include: Container[OffloadStateTypeEnum] = None, device:
deepspeed/runtime/zero/stage3.py:4310
Methodoffload_states
Offload optimizer states from GPU to the specified device (typically CPU). Args: include (Container[OffloadStateTypeEnum
deepspeed/runtime/zero/stage_1_and_2.py:3983
Methodoffload_states
(self, include: Container[OffloadStateTypeEnum] = None, device:
deepspeed/runtime/reflow/reflow_stage3.py:1993
Functionoffload_tensor
csrc/compile/z3.cpp:640
Functionomp_get_max_threads
Builds without OpenMP (e.g. Apple clang without libomp) run the kernels on one thread. */
csrc/includes/reflow_cpu_lion.h:24
Functionomp_get_num_procs
csrc/includes/reflow_cpu_lion.h:25
Functionomp_set_num_threads
csrc/includes/reflow_cpu_lion.h:26
Methodon_accelerator
(self, tensor)
accelerator/supa_accelerator.py:226
Methodon_accelerator
(self, tensor)
accelerator/sdaa_accelerator.py:254
Methodon_accelerator
(self, tensor)
accelerator/cpu_accelerator.py:458
Methodon_accelerator
(self, tensor)
accelerator/mlu_accelerator.py:226
Methodon_accelerator
(self, tensor)
accelerator/npu_accelerator.py:295
Methodon_accelerator
(self, tensor)
accelerator/xpu_accelerator.py:472
Methodon_accelerator
(self, tensor)
accelerator/cuda_accelerator.py:337
Methodon_accelerator
(self, tensor)
accelerator/mps_accelerator.py:247
Methodon_accelerator
(self, tensor)
accelerator/abstract_accelerator.py:386
Functionon_device
Wraps a method to ensure the returned tensor is on the current device.
deepspeed/inference/v2/allocator.py:31
Methodon_moe_layer_replaced
(replacement)
deepspeed/runtime/engine.py:926
Methodone_copy
(engine)
tests/unit/v1/zero/test_offload_states.py:545
Methodop_builder_dir
(self)
accelerator/cpu_accelerator.py:449
Methodop_builder_dir
(self)
accelerator/mps_accelerator.py:254
Methodop_builder_dir
(self)
accelerator/abstract_accelerator.py:390
Functionoperator()
Perform a threadblock-scoped matrix multiply-accumulate
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_pipelined.h:247
Functionoperator()
Perform a threadblock-scoped matrix multiply-accumulate
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:513
Functionoperator()
Perform a threadblock-scoped matrix multiply-accumulate
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_multistage.h:446
Methodoperator()
csrc/xpu/adam/multi_tensor_adam.dp.cpp:33
Methodoperator()
Because __global__ function can't really use any reference types, we can sure that args are all good behaviors
csrc/xpu/adam/multi_tensor_apply.dp.hpp:92
Methodoperator()
csrc/deepspeed4science/evoformer_attn/transform/bias_broadcast.h:113
Methodoperator()
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_rescale_output.h:155
Methodoperator()
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:228
Methodoperator()
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_thread_apply_logsumexp.h:66
Methodoperator()
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_thread_apply_logsumexp.h:81
Methodoperator()
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_thread_apply_logsumexp.h:141
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:596
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1314
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1516
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1723
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1930
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:322
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:573
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:785
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:1002
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:1248
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:1456
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:1677
Methodoperator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:1883
Methodoptimizer
(self)
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:230
Functionout_of_memory
(x)
tests/unit/v1/compile/test_graph_profile.py:279
Methodouter_block
(inputs)
tests/unit/module_inject/test_auto_ep_comm.py:1461
Methodoutput
Return the padded, pre-allocated output Tensor.
deepspeed/inference/v2/modules/implementations/linear/blas_fp_linear.py:99
Methodoutput
Return the padded, pre-allocated output Tensor.
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:201
Methodoutput
(self)
deepspeed/inference/v2/modules/implementations/unembed/ragged_unembed.py:80
Methodoutput
(self)
deepspeed/inference/v2/modules/implementations/embedding/ragged_embedding.py:59
Methodoutput
(self)
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:160
Methodoutput
Pre-allocated output Tensor. This currently needs to be exposed for gather operations on the output. TODO(cmikeh2): This is
deepspeed/inference/v2/modules/interfaces/embedding_base.py:48
Methodoutput
Return the padded, pre-allocated output Tensor.
deepspeed/inference/v2/modules/interfaces/linear_base.py:60
Methodoverlap_comm_valid
(self)
deepspeed/runtime/zero/config.py:403
Methodoverlap_config
(managed)
tests/unit/v1/zero/test_zero_user_backward.py:2336
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/zero/stage3.py:3191
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/zero/stage_1_and_2.py:3046
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/fp16/fused_optimizer.py:214
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/fp16/unfused_optimizer.py:191
Functionoverride_params
(args, params)
deepspeed/runtime/lr_schedules.py:215
Functionpack
(tensor)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:289
Methodpack_hook
(tensor)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:57
Functionpad_tensors
specs = [ (input_ids, 1, pad_token_id), # Example: Pad the right side with <pad> (attention_mask, 1, 0), # Exam
deepspeed/compile/util.py:465
Methodpad_transform_fallback
(query, key, value, heads, do_flash_attn)
deepspeed/ops/transformer/inference/op_binding/pad_transform.py:22
Methodpad_transform_fp16
(query, key, value, heads, add_padding)
op_builder/supa/inference.py:295
Functionpadd_add_transform
csrc/transformer/inference/csrc/pt_binding.cpp:1266
Functionparam_getter
(self)
deepspeed/inference/v2/model_implementations/parameter_base.py:26
Methodparam_groups
Forward the wrapped optimizer's parameters.
deepspeed/runtime/bf16_optimizer.py:705
Methodparam_names
(self)
deepspeed/compile/graph_param.py:71
Functionparam_setter
(self, value)
deepspeed/inference/v2/model_implementations/parameter_base.py:38
Methodparameters
(self)
deepspeed/inference/v2/checkpoint/in_memory_engine.py:36
Functionparamlist_setter
(self, value)
deepspeed/inference/v2/model_implementations/parameter_base.py:51
Methodparams
(self)
deepspeed/compile/graph_param.py:75
Methodparams_copy_for
csrc/includes/cpu_adam.h:122
Functionparse_arguments
()
deepspeed/runtime/lr_schedules.py:125
Methodparse_user_args
(self)
deepspeed/launcher/multinode_runner.py:73
Functionpartition_activations_in_checkpoint
(partition_activation)
deepspeed/runtime/activation_checkpointing/checkpointing.py:1078
Methodpartition_after
(f)
deepspeed/runtime/zero/partition_parameters.py:528
Methodpartition_after_empty_init
(f)
deepspeed/runtime/zero/partition_parameters.py:485
Methodpartition_gradients
(param_list=None, partition_buffers=None, hierarchy=0, accumulate=False)
deepspeed/runtime/zero/partition_parameters.py:1632
Methodpartition_grads
(self, params_to_release: List[Parameter], grad_partitions: List[Tensor])
deepspeed/runtime/superoffload/superoffload_stage3.py:142
Methodpartition_grads
(self, params_to_release: List[Parameter], grad_partitions: List[Tensor])
deepspeed/runtime/reflow/reflow_stage3.py:674
Methodpartition_param_if_necessary
(v)
deepspeed/compile/profilers/graph_profile.py:355
Functionpartition_recompute_ds_params
(joint_module: GraphModule, _joint_inputs, *, num_fwd_outputs, **kwargs)
deepspeed/compile/partitioner.py:101
Functionpartitioned_block
deepspeed/inference/v2/kernels/includes/reduction_utils.h:659
Functionpartitioned_block
csrc/includes/reduction_utils.h:740
Methodpartitions
(self)
deepspeed/runtime/pipe/module.py:530
Functionpass_canonicalize
(gm: GraphModule, real_inputs)
deepspeed/compile/passes/sp_compile.py:580
Functionpass_canonicalize
(gm: GraphModule, real_inputs, **kwargs)
deepspeed/compile/passes/tp_compile.py:232
Functionpass_insert_tp_collectives
Insert the tensor-parallel collectives around the matmuls of the injected AutoTP layers. Only f and g are inserted here. The output gather of a g
deepspeed/compile/passes/tp_compile.py:196
Functionpass_propagate_shapes
(gm: torch.fx.GraphModule, real_inputs)
deepspeed/compile/passes/sp_compile.py:586
Functionpass_shard_input_ids
(gm: GraphModule, example_inputs)
deepspeed/compile/passes/sp_compile.py:132
Functionpass_shard_label_ids
Make every cross entropy on the labels return the loss of the full sequence. The labels stay whole, so any shift the model applies to them s
deepspeed/compile/passes/sp_compile.py:351
Functionpass_shard_position_ids
(gm: GraphModule, example_inputs)
deepspeed/compile/passes/sp_compile.py:444
← previousnext →10,801–10,900 of 15,468, ranked by callers