MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethodfork_rng
(self, devices)
tests/unit/v1/compile/test_graph_profile.py:15
↓ 3 callersMethodforward
(self, input)
tests/unit/runtime/zero/test_zero_context_return.py:88
↓ 3 callersMethodforward
(self, input)
deepspeed/module_inject/layers.py:1870
↓ 3 callersMethodfp16_enabled
(self)
deepspeed/autotuning/autotuner.py:265
↓ 3 callersMethodfrom_registry
(registry, add_python=None)
ci/test_torch_latest.py:308
↓ 3 callersMethodfrom_rollout
Derive response-only causal targets from ``rollout``.
deepspeed/runtime/rollout/opsd.py:29
↓ 3 callersMethodgK_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:270
↓ 3 callersMethodgV_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:274
↓ 3 callersMethodgather_params
Gather partitioned parameters back to full size.
deepspeed/module_inject/layers.py:2222
↓ 3 callersMethodgen_workspace
(self, num_layers, num_heads, batch_size, prompt_len, hidden_dim, mp_size, external_cache,
deepspeed/ops/transformer/inference/op_binding/workspace.py:37
↓ 3 callersMethodgeometry
(**overrides)
tests/unit/module_inject/test_auto_ep_comm.py:147
↓ 3 callersMethodgetGradBuffer
csrc/includes/deepcompile.h:295
↓ 3 callersFunctionget_annotations
Retrieves annotations from a Python object. In python >=3.14 this is a thin wrapper around the `annotationlib.get_annotations` function
deepspeed/compat.py:31
↓ 3 callersFunctionget_attn_mask_stride
infer stride of attention mask memory layout based on the model type.
csrc/transformer/inference/csrc/pt_binding.cpp:41
↓ 3 callersMethodget_axis_comm_lists
Construct lists suitable for a communicator group along axis ``axis``. Example: >>> topo = Topo(axes=['pipe', 'data', 'model'],
deepspeed/runtime/pipe/topology.py:127
↓ 3 callersMethodget_axis_list
Returns the list of global ranks whose coordinate in an axis is idx. For example: >>> X = ProcessTopology(axes=['x', 'y'], dims=[
deepspeed/runtime/pipe/topology.py:193
↓ 3 callersMethodget_best_space_record
(self, space_name)
deepspeed/autotuning/autotuner.py:715
↓ 3 callersMethodget_buffer
(self)
deepspeed/io/base_io_buffer.py:28
↓ 3 callersFunctionget_ccl_reduce_op
csrc/cpu/comm/ccl.cpp:168
↓ 3 callersMethodget_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:156
↓ 3 callersMethodget_compile_backend
(self)
accelerator/hpu_accelerator.py:321
↓ 3 callersMethodget_config_dict
(self, stage, offload_selective_optimizer,
tests/unit/runtime/zenflow/test_zf.py:83
↓ 3 callersMethodget_data_parallel_group
(self)
tests/unit/v1/moe/test_moe_tp.py:47
↓ 3 callersMethodget_data_parallel_rank
Which pipeline this rank resides in.
deepspeed/runtime/pipe/topology.py:426
↓ 3 callersMethodget_data_types
(self)
deepspeed/runtime/engine.py:1833
↓ 3 callersFunctionget_deepspeed_model
(model)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:24
↓ 3 callersFunctionget_expert_activation
(name: str)
deepspeed/moe/ep_experts.py:86
↓ 3 callersFunctionget_file_size
csrc/aio/common/deepspeed_aio_utils.cpp:108
↓ 3 callersMethodget_gas_from_user_config
(self)
deepspeed/autotuning/autotuner.py:987
↓ 3 callersFunctionget_global_norm_of_tensors
Get norm of an iterable of tensors. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to handle model par
deepspeed/runtime/utils.py:984
↓ 3 callersFunctionget_gradient_clipping
(param_dict)
deepspeed/runtime/config.py:268
↓ 3 callersMethodget_hp_fragment_address
(self)
deepspeed/utils/tensor_fragment.py:49
↓ 3 callersFunctionget_inactive_params
(param_list)
deepspeed/runtime/utils.py:1182
↓ 3 callersFunctionget_index_by_graph_id
(graph_order, target_graph_id)
deepspeed/compile/util.py:458
↓ 3 callersMethodget_kv_requirements
(self, sequence: DSSequenceDescriptor, max_new_tokens: int, max_new_blocks: int)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:158
↓ 3 callersFunctionget_label_id_node
(gm: GraphModule)
deepspeed/compile/util.py:559
↓ 3 callersFunctionget_list
(val)
deepspeed/autotuning/utils.py:74
↓ 3 callersMethodget_local_fp32_param
(self, param, optim_state_key=None)
deepspeed/runtime/zero/stage3.py:3319
↓ 3 callersFunctionget_log_level
(param_dict)
deepspeed/runtime/config.py:415
↓ 3 callersMethodget_lr
(self)
deepspeed/runtime/lr_schedules.py:757
↓ 3 callersMethodget_lr
(self)
deepspeed/runtime/lr_schedules.py:936
↓ 3 callersFunctionget_mapping_to_flat_buffer
(tensors: List[torch.Tensor])
deepspeed/runtime/zero/utils.py:202
↓ 3 callersFunctionget_module_duration
(module)
deepspeed/profiling/flops_profiler/profiler.py:1188
↓ 3 callersFunctionget_module_macs
(module)
deepspeed/profiling/flops_profiler/profiler.py:1184
↓ 3 callersFunctionget_norm_with_moe_layers
Compute the global norm with MoE experts Inputs: non_expert_norm (float) : the calculated norm of the non-expert params expert_tensors (
deepspeed/runtime/utils.py:1188
↓ 3 callersMethodget_offset
(self)
deepspeed/io/base_io_buffer.py:31
↓ 3 callersFunctionget_partition_weights
Return the amount of weight in each partition.
tests/unit/runtime/utils/test_partition.py:91
↓ 3 callersMethodget_pipe_parallel_world_size
The number of stages in the pipeline.
deepspeed/runtime/pipe/topology.py:415
↓ 3 callersFunctionget_position_id_node
(gm: GraphModule)
deepspeed/compile/util.py:567
↓ 3 callersMethodget_prefix
(self)
op_builder/inference_cutlass_builder.py:59
↓ 3 callersMethodget_prefix
(self)
op_builder/ragged_ops.py:60
↓ 3 callersFunctionget_rank
Returns the rank of the current process in the provided ``group`` or the default group if none was provided. Rank is a unique identifier
deepspeed/comm/comm.py:748
↓ 3 callersMethodget_result
Get result from worker process with optional event type validation. Args: expected_event_type (str, optional): Expected
deepspeed/runtime/superoffload/superoffload_utils.py:262
↓ 3 callersFunctionget_runnable_nodes
(scheduled: List[Node], unscheduled: List[Node])
deepspeed/compile/list_schedule.py:80
↓ 3 callersFunctionget_sdpa_nodes
(gm: GraphModule)
deepspeed/compile/util.py:544
↓ 3 callersMethodget_seq_length
(self)
deepspeed/utils/static_cache.py:138
↓ 3 callersFunctionget_sized_buffers
(buffer_list, num_elems_list)
deepspeed/runtime/swap_tensor/utils.py:253
↓ 3 callersMethodget_slice_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:454
↓ 3 callersMethodget_src_tp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:35
↓ 3 callersMethodget_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:74
↓ 3 callersFunctionget_test_path
(filename)
tests/unit/common.py:509
↓ 3 callersFunctionget_topology
(mp, pp, world_size)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:39
↓ 3 callersFunctionget_tp_group
Return the tensor-parallel group created by the existing AutoTP setup.
deepspeed/compile/custom_ops/tp_collectives.py:13
↓ 3 callersFunctionget_weight_norm
Get norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to handle model
deepspeed/runtime/utils.py:612
↓ 3 callersFunctionget_zero_files
(dir)
deepspeed/checkpoint/reshape_utils.py:58
↓ 3 callersMethodgradient_predivide_factor
(self)
deepspeed/runtime/engine.py:1773
↓ 3 callersMethodhasGatheredParam
csrc/includes/deepcompile.h:440
↓ 3 callersFunctionhas_inf_or_nan
(x)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:16
↓ 3 callersFunctionhas_moe_layers
(m: nn.Module)
deepspeed/moe/utils.py:15
↓ 3 callersMethodhas_reduce_scatter_tensor
(self)
deepspeed/comm/torch.py:305
↓ 3 callersFunctioninit_distributed
Initialize dist backend, potentially performing MPI discovery if needed Arguments: dist_backend: Optional (str). torch distributed backe
deepspeed/comm/comm.py:831
↓ 3 callersMethodinit_timers
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:234
↓ 3 callersFunctioninit_z3
(engine, backend, compile_config, compile_kwargs, schedule=None)
deepspeed/compile/init_z3.py:87
↓ 3 callersMethodisPersistent
csrc/includes/deepcompile.h:304
↓ 3 callersMethodis_autocast_enabled
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:221
↓ 3 callersFunctionis_autocast_initialized
()
deepspeed/runtime/torch_autocast.py:65
↓ 3 callersFunctionis_autoep_folding_gradient_corrected
(param)
deepspeed/module_inject/auto_ep_folding.py:475
↓ 3 callersMethodis_available
(self)
accelerator/cuda_accelerator.py:235
↓ 3 callersMethodis_compatible
Check if all non-python dependencies are satisfied to build this op
op_builder/builder.py:325
↓ 3 callersFunctionis_compile_supported
()
deepspeed/runtime/compiler.py:40
↓ 3 callersMethodis_current_stream_capturing
(self)
accelerator/npu_accelerator.py:253
↓ 3 callersMethodis_data_parallel_writer
(self, dp_rank)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:47
↓ 3 callersFunctionis_functorch_transforming
True when called under torch.func.grad / vmap / jacrev / etc.
deepspeed/utils/torch.py:31
↓ 3 callersMethodis_initialized
(self)
deepspeed/comm/torch.py:575
↓ 3 callersMethodis_last_stage
True if the configured ``stage_id`` is the last stage in the pipeline.
deepspeed/runtime/pipe/schedule.py:107
↓ 3 callersMethodis_managed
csrc/pin_memory/deepspeed_pin_tensor.cpp:83
↓ 3 callersMethodis_moe_group
(self, group)
deepspeed/runtime/zero/stage_1_and_2.py:873
↓ 3 callersFunctionis_nfs_path
(path)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:21
↓ 3 callersFunctionis_rocm_pytorch
()
tests/unit/common.py:35
↓ 3 callersFunctionis_setup
()
deepspeed/compile/custom_ops/sp_dp_registry.py:26
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/supa_accelerator.py:21
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/sdaa_accelerator.py:53
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/cpu_accelerator.py:182
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/mlu_accelerator.py:23
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/npu_accelerator.py:57
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/xpu_accelerator.py:189
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/cuda_accelerator.py:51
↓ 3 callersMethodjit_load
(self, verbose=True)
op_builder/builder.py:616
↓ 3 callersMethodkey
(self)
deepspeed/checkpoint/affine_transfer_executor.py:116
↓ 3 callersFunctionlayer_norm
(a, weight, bias, eps)
deepspeed/ops/transformer/inference/triton/layer_norm.py:167
← previousnext →1,601–1,700 of 14,579, ranked by callers