MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functionallgather_param
csrc/compile/z3.cpp:542
Functionallgather_param_meta
csrc/compile/z3.cpp:608
Functionallocate_fast_host_buffer
Similar to doing an empty_like to replicate a Tensor on the host, but will attempt to optimize for faster host -> accelerator copies. Since this is on
deepspeed/inference/v2/ragged/csrc/ragged_ops.cpp:24
Methodallocate_tensor
(self, size)
deepspeed/runtime/zero/contiguous_memory_allocator.py:51
Methodallocate_tensor
(self, numel, swap_path, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:108
Functionallocate_view_like
deepspeed/inference/v2/ragged/csrc/ragged_ops.cpp:49
Functionallocate_view_on
deepspeed/inference/v2/ragged/csrc/ragged_ops.cpp:40
Functionallocate_workspace
csrc/transformer/inference/csrc/pt_binding.cpp:107
Methodallocate_workspace_bf16
(hidden_dim, heads, sequence_length, num_layers, batch_size, mp_size, bigscience_bloom,
op_builder/supa/inference.py:43
Methodallocate_workspace_bf16_fallback
(self, hidden_dim, num_heads, prompt_length, batch_size, num_layers, mp_size,
deepspeed/ops/transformer/inference/op_binding/workspace.py:210
Methodallocate_workspace_fp16_fallback
(self, hidden_dim, num_heads, prompt_length, batch_size, num_layers, mp_size,
deepspeed/ops/transformer/inference/op_binding/workspace.py:216
Methodallocate_workspace_fp32
(hidden_dim, heads, sequence_length, num_layers, batch_size, mp_size, bigscience_bloom,
op_builder/supa/inference.py:50
Methodallocate_workspace_fp32_fallback
(self, hidden_dim, num_heads, prompt_length, batch_size, num_layers, mp_size,
deepspeed/ops/transformer/inference/op_binding/workspace.py:204
Methodallreduce_tied_weight_gradients
All reduce the gradients of the tied weights between tied stages
deepspeed/runtime/pipe/module.py:456
Functionample_budget
(monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:150
Methodannotation_attrs
(self)
deepspeed/inference/v2/model_implementations/layer_container_base.py:253
Methodapply
(self, module, enable_cuda_graph=True)
deepspeed/module_inject/containers/unet.py:31
Methodapply
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:197
Methodapply
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:206
Methodapply
cast scale_frag to correct type then apply elementwise to fragment
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:290
Methodapply
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:306
Methodapply
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_rescale_output.h:230
Methodapply
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:84
MethodapplyPreDivision
csrc/includes/deepcompile.h:591
Methodapply_output_operator_
Helper to invoke the output functor over each vector of output
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:501
Methodapply_output_operator_source_not_needed_
Helper to invoke the output functor over each vector of output
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:531
Functionapply_rotary_pos_emb
csrc/transformer/inference/csrc/pt_binding.cpp:1856
Methodapply_tensor_parallelism
(self, mp_replace)
deepspeed/module_inject/containers/base_moe.py:92
Methodapply_tensor_parallelism
Add support for reversed dim in tensor parallelism. If necessary, override the called methods to handle partitioned weights (i.e. if
deepspeed/module_inject/containers/features/hybrid_engine.py:81
Methodapply_tensor_parallelism
(self, mp_replace, **kwargs)
deepspeed/module_inject/containers/features/meta_tensor.py:29
Methodapply_weight_quantization
(self)
deepspeed/module_inject/containers/base.py:210
Methodapply_with_gather
many models make use of child modules like Linear or Embedding which perform their own weight initialization in their __init__ methods,
deepspeed/runtime/zero/partition_parameters.py:418
Methodare_all_related_partitions_reduced
(params_id)
deepspeed/runtime/zero/stage3.py:2248
Methodare_all_related_partitions_reduced
(params_id)
deepspeed/runtime/zero/stage_1_and_2.py:2376
Functionarm_capture
(module, args, kwargs)
deepspeed/sequence/linear_cross_entropy.py:425
Methodassert_nothing_retained
()
tests/unit/runtime/pipe/test_pipe.py:346
Functionassert_supported
Reject unsupported configurations before collectives begin.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:230
Methodassign_to_param
(self, tensor, param, numel, shape)
deepspeed/runtime/zero/contiguous_memory_allocator.py:83
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/embedding_base.py:84
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/pre_norm_base.py:72
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/attention_base.py:96
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/post_norm_base.py:68
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/linear_base.py:71
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/moe_base.py:90
Methodassociated_class
()
deepspeed/inference/v2/modules/interfaces/unembed_base.py:60
Methodasync_inplace_copy_grad_to_fp32_buffer_from_gpu
(self, param)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:678
Functionasync_split_layer
(monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1794
Methodatomic_store
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:24
Methodatomic_store
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:52
Methodattention
Returns attention qkv and dense parameters weight: (3*hidden, hidden) and (hidden, hidden) bias: (3*hidden) and (hidden)
deepspeed/module_inject/policy.py:79
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/distil_bert.py:53
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/gptneo.py:123
Methodattention
(self, client_module)
deepspeed/module_inject/containers/unet.py:35
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/clip.py:47
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/opt.py:133
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/gpt2.py:44
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/bert.py:57
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/bloom.py:126
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/llama.py:193
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/megatron_gpt.py:70
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/gptneox.py:125
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/internlm.py:152
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/gptj.py:110
Methodattention
(self, enable_training=False)
deepspeed/module_inject/containers/llama2.py:133
Functionattention_bwd
csrc/deepspeed4science/evoformer_attn/attention.cpp:40
Methodattention_kernel
csrc/deepspeed4science/evoformer_attn/kernel_forward.h:512
Methodattention_kernel
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1058
Functionattention_kernel_backward_batched_impl
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1956
Functionattention_kernel_batched_impl
csrc/deepspeed4science/evoformer_attn/kernel_forward.h:977
Functionattention_unfused
csrc/transformer/inference/csrc/pt_binding.cpp:177
Methodattr_1
(self)
tests/unit/inference/v2/model_implementations/parameters/test_parameter_list.py:90
Methodattr_2
(self)
tests/unit/inference/v2/model_implementations/parameters/test_parameter_list.py:94
Methodautoep_expert_writer
()
deepspeed/runtime/engine.py:5174
Functionautoep_topology_baseline_ws4_ep2
(request)
tests/unit/v1/moe/test_autoep_checkpoint.py:893
Methodautotuning_metric
(self)
deepspeed/runtime/engine.py:1543
Methodaux_attrs
Dictionary of auxiliary attributes.
deepspeed/inference/v2/inference_parameter.py:85
Methodavailable_memory
(self)
tests/unit/v1/compile/test_selective_gather.py:24
Methodavailable_memory
(self, device_index=None)
accelerator/supa_accelerator.py:155
Methodavailable_memory
(self, device_index=None)
accelerator/sdaa_accelerator.py:176
Methodavailable_memory
(self, device_index=None)
accelerator/cpu_accelerator.py:339
Methodavailable_memory
(self, device_index=None)
accelerator/mlu_accelerator.py:146
Methodavailable_memory
(self, device_index=None)
accelerator/npu_accelerator.py:180
Methodavailable_memory
(self, device_index=None)
accelerator/xpu_accelerator.py:309
Methodavailable_memory
(self, device_index=None)
accelerator/cuda_accelerator.py:196
Methodavailable_memory
(self, device_index=None)
accelerator/mps_accelerator.py:160
Methodavailable_memory
(self, device_index=None)
accelerator/abstract_accelerator.py:165
Methodaverage_tensor
(self, tensor: torch.Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:446
Functionbackend
(_gm, _inputs)
tests/unit/compile/test_zero3_grad_dtype.py:129
Functionbackend
(gm, example_inputs)
tests/unit/compile/test_tp_compile.py:806
Methodbackend_exists
(self)
tests/unit/launcher/test_user_args.py:17
Methodbackend_exists
Return whether the corresponding backend exists
deepspeed/launcher/multinode_runner.py:30
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:70
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:139
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:200
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:272
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:450
Functionbackend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/init_tp.py:58
Functionbackend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/backend.py:323
Functionbackend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/init_sp.py:19
Methodbackward
(ctx, grad_output)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:50
← previousnext →7,901–8,000 of 14,579, ranked by callers