MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

Functionall_gather_object
(object_list, obj, group=None, prof=False, log_name='all_gather_object', debug=get_caller_func())
deepspeed/comm/comm.py:263
Functionall_gather_sequence
Concatenate the local sequence shards of `input` along `dim` across the SP group.
deepspeed/compile/custom_ops/all_to_all.py:149
Functionall_gather_sequence_fake
(input: torch.Tensor, dim: int)
deepspeed/compile/custom_ops/all_to_all.py:162
Functionall_parameters
(self)
deepspeed/runtime/zero/partition_parameters.py:144
Functionall_reduce
(tensor, op=None, group=None)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:162
Functionall_reduce
(tensor, op=ReduceOp.SUM, group=None, async_op=False,
deepspeed/comm/comm.py:689
Functionall_reduce
(tensor: torch.Tensor)
deepspeed/comm/custom_collective.py:103
Functionall_reduce
TODO: implement torch's async_op behavior, document it.
csrc/cpu/comm/ccl.cpp:214
Methodall_reduce
(self, tensor)
op_builder/custom_collective.py:152
Functionall_reduce_caching
csrc/cpu/comm/ccl.cpp:225
Functionall_reduce_coalesced
(tensors, op=ReduceOp.SUM, group=None,
deepspeed/comm/comm.py:713
Functionall_reduce_comm_off
(flag=False)
deepspeed/comm/torch.py:118
Methodall_reduce_counter
(*a, **k)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:405
Functionall_to_all
(output_tensor_list, input_tensor_list, group=None, async_op=Fals
deepspeed/comm/comm.py:379
Functionall_to_all_fake
(input: torch.Tensor, scatter_idx: int, gather_idx: int, name: str)
deepspeed/compile/custom_ops/all_to_all.py:80
Functionall_to_all_single
(output, input_tensor, group=None, async_op=False)
tests/unit/v1/sequence_parallelism/test_overlap_grad_permutation.py:41
Methodall_to_all_single
(self, output, input, output_spl
deepspeed/comm/torch.py:525
Functionallclose
(x, y, tolerances: Tuple[int, int] = None)
tests/unit/ops/transformer/inference/inference_test_utils.py:40
Methodallgather_before
(func: Callable)
deepspeed/runtime/zero/partition_parameters.py:1674
Functionallgather_fn
(output_tensor, input_tensor, group=None, async_op=False, debug=get_caller_func())
deepspeed/comm/comm.py:344
Functionallgather_into_tensor
Run one allgather_into_tensor through the SDMA handle. Returns an ``_SdmaWork`` (Work-compatible) on success. Returns ``None`` when SDMA is
deepspeed/comm/mori.py:202
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, 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
Methodappend_zeros
(tensor)
deepspeed/sequence/fpdt_layer.py:111
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:2407
Methodare_all_related_partitions_reduced
(params_id)
deepspeed/runtime/zero/stage_1_and_2.py:2394
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
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:2027
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:5369
Functionautoep_topology_baseline_ws4_ep2
(request)
tests/unit/v1/moe/test_autoep_checkpoint.py:893
Methodautotuning_metric
(self)
deepspeed/runtime/engine.py:1624
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
← previousnext →8,401–8,500 of 15,767, ranked by callers