MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Function_get_expert_parallel_src_rank
Calculate the global rank corresponding to a local rank zero in the expert parallel group.
deepspeed/utils/groups.py:841
Method_get_expert_slice_resources
(expert_resources, resource_name)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:70
Method_get_fp32_opt_state_partition
(self, param, release_swap_buffers, optim_state_key=None)
deepspeed/runtime/reflow/reflow_stage3.py:2076
Method_get_gamma
(self)
deepspeed/runtime/lr_schedules.py:830
Method_get_grad
(param)
tests/unit/v1/autotp/test_tp_plan_e2e.py:75
Function_get_local_all_to_all_group
()
deepspeed/utils/groups.py:757
Method_get_loss_scale
(self)
deepspeed/runtime/zero/stage3.py:3725
Method_get_loss_scale
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3447
Method_get_loss_scale
(self)
deepspeed/runtime/fp16/fused_optimizer.py:544
Method_get_loss_scale
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:335
Function_get_max_expert_parallel_group
Get the max expert parallel size.
deepspeed/utils/groups.py:692
Method_get_model_parallel_slice_resources
()
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:146
Function_get_model_parallel_world_size
Return world size for the model parallel group.
deepspeed/utils/groups.py:870
Method_get_offload_gradient_dict
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:659
Method_get_param_fragment_func
(self, param)
deepspeed/runtime/engine.py:5629
Method_get_param_groups
(self)
deepspeed/runtime/zero/stage3.py:3715
Method_get_param_groups
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3438
Method_get_param_groups
(self)
deepspeed/runtime/fp16/fused_optimizer.py:453
Method_get_param_groups
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:326
Method_get_param_partition_world_size
(self, param)
deepspeed/runtime/zero/stage3.py:690
Method_get_param_shape_func
(self, param)
deepspeed/runtime/engine.py:5626
Method_get_pipeline_stage_resources
(resource_indices)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:122
Function_get_sequence_data_parallel_rank
Return my rank for the data parallel group.
deepspeed/utils/groups.py:924
Function_get_sequence_data_parallel_world_size
Return world size for the model parallel group.
deepspeed/utils/groups.py:914
Function_get_sequence_parallel_group
()
deepspeed/utils/groups.py:905
Function_get_sequence_parallel_rank
Return my rank for the sequence parallel group.
deepspeed/utils/groups.py:895
Function_get_sequence_parallel_world_size
Return world size for the model parallel group.
deepspeed/utils/groups.py:884
Method_get_state
(self)
deepspeed/runtime/zero/stage3.py:3705
Method_get_state
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3428
Method_get_state
(self)
deepspeed/runtime/fp16/fused_optimizer.py:443
Method_get_state
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:316
Method_get_tensor_slice_resources
(resource_indices, resource_name)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:133
Method_get_weight_bias
(experts)
tests/unit/v1/moe/test_moe.py:595
Function_get_zero_param_intra_parallel_group_ranks
Return all ranks for the ZeRO parameter intra parallel group.
deepspeed/utils/groups.py:1006
Function_get_zero_param_intra_parallel_group_world_size
Return world size for the ZeRO parameter parallel group.
deepspeed/utils/groups.py:1001
Function_get_zero_param_intra_parallel_rank_in_mygroup
Return my rank for the ZeRO parameter inter parallel group.
deepspeed/utils/groups.py:996
Function_gqa_model
()
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:50
Method_grad_acc_post_hooks
(self)
deepspeed/runtime/base_optimizer.py:339
Method_graph_replay
Replay CUDA graph(s)
deepspeed/model_implementations/features/cuda_graph.py:23
Function_group_gemm_dw_kernel
For each group e, compute out[e] = a_e.T @ g_e by reducing over its M rows. a_e.T @ g_e: [K, M_e] @ [M_e, NO] -> [K, NO], so out[e, k
deepspeed/ops/triton_ops/group_gemm_triton.py:183
Function_group_gemm_kernel
out[m, n] = sum_k a[m, k] * b[group(m), k, n], grouped along M.
deepspeed/ops/triton_ops/group_gemm_triton.py:72
Function_group_meta_kernel
m_start[g] = offs[g-1] (0 for g==0); m_size[g] = offs[g] - m_start[g].
deepspeed/ops/triton_ops/group_gemm_triton.py:252
Function_group_norm_flops_compute
(input: Tensor, num_groups: int, weight: Optional[
deepspeed/profiling/flops_profiler/profiler.py:695
Method_handle_gradient_clipping
Handle gradient clipping with CPU optimizer rollback and re-optimization.
deepspeed/runtime/superoffload/superoffload_stage3.py:366
Function_handle_overflow
(cpu_sum, x, i)
deepspeed/runtime/utils.py:335
Function_handle_overflow
(cpu_sum, x, i)
deepspeed/runtime/zero/stage3.py:4476
Function_handle_overflow
(cpu_sum, x, i)
deepspeed/runtime/zero/stage_1_and_2.py:4163
Method_has_inf_or_nan
(x)
deepspeed/runtime/fp16/loss_scaler.py:196
Function_hf_name_alike
(qualified_name)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:410
Function_hook
(grad)
tests/unit/runtime/test_runtime_utils.py:379
Method_hooks_fired_this_backward
(self)
deepspeed/runtime/base_optimizer.py:323
Function_in_order
(shape, origin, dest_offset, dest_strides=(6, 1))
tests/unit/checkpoint/test_affine_transfer_plan.py:568
Method_init_cuFile
csrc/gds/deepspeed_py_gds_handle.cpp:36
Method_init_subclass
(cls, **kwargs)
deepspeed/runtime/zero/partition_parameters.py:576
Function_init_takslet
(b)
deepspeed/nvme/io_engine.py:113
Function_init_tp_mesh_device
Initialize model data parallel groups.
deepspeed/utils/groups.py:207
Function_initialize_parameter_parallel_groups
(parameter_parallel_size=None)
deepspeed/runtime/zero/utils.py:25
Function_initialize_zenflow_stage3_epilogue
(optimizer_z3: "DeepSpeedZeroOptimizer_Stage3", zenflow_config: dict =
deepspeed/runtime/zenflow/engine_stage3.py:88
Function_initialize_zenflow_stage3_prologue
(optimizer_z3: "DeepSpeedZeroOptimizer_Stage3", module,
deepspeed/runtime/zenflow/engine_stage3.py:73
Function_instance_norm_flops_compute
( input: Tensor, running_mean: Optional[Tensor] = None, running_var: Optional[Tensor] = None,
deepspeed/profiling/flops_profiler/profiler.py:705
Function_invert_index_kernel
( index_ptr, inverse_ptr, num_indices, num_inverse_rows, BLOCK: tl.con
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:31
Method_is_currently_on_nvme
(param)
deepspeed/runtime/zero/partitioned_param_coordinator.py:459
Method_is_valid_parallel_aio_op
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:268
Function_jsd_backward_kernel
(q_ptr, p_ptr, max_ptr, lse_ptr, kl_ptr, grad_out_ptr, q_grad_ptr, p_grad_ptr, num_rows,
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:99
Function_jsd_forward_kernel
(q_ptr, p_ptr, max_ptr, lse_ptr, out_ptr, num_rows, vocab, q_inner, q_outer, q_row, p_inner,
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:76
Function_jsd_softmax_stats_kernel
(q_ptr, p_ptr, max_ptr, sum_ptr, num_rows, vocab, q_inner, q_outer, q_row, p_inner,
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:38
Function_kl_backward_kernel
(a_ptr, b_ptr, a_max_ptr, a_lse_ptr, b_max_ptr, b_lse_ptr, kl_ptr, grad_out_ptr, a_grad_ptr,
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:302
Function_kl_stats_kernel
(a_ptr, b_ptr, out_ptr, num_rows, vocab, a_inner, a_outer, a_row, b_inner, b_outer, b_row,
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:241
Function_launch
(request, fixture_cls=obj)
tests/conftest.py:134
Method_launch_procs
(self, num_procs, init_method)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:938
Method_launch_procs
(self, num_procs, init_method)
tests/unit/comm/test_dist.py:355
Function_layer_norm_flops_compute
( input: Tensor, normalized_shape: List[int], weight: Optional[Tensor] = None, bias: Optional[
deepspeed/profiling/flops_profiler/profiler.py:683
Method_lazy_init_class_dict
(self)
accelerator/klxpu_accelerator.py:49
Function_leaky_relu_flops_compute
(input: Tensor, negative_slope: float = 0.01, inplace: bool = False)
deepspeed/profiling/flops_profiler/profiler.py:541
Function_legacy_obj_serialization_details
(storage_obj)
deepspeed/io/utils.py:38
Function_linear_flops_compute
(input, weight, bias=None)
deepspeed/profiling/flops_profiler/profiler.py:523
Function_lm_forward
(self, hidden_states)
deepspeed/module_inject/segment_ki.py:992
Method_load_checkpoint
(self, load_dir, load_module_strict=True, tag=None)
deepspeed/inference/engine.py:444
Function_load_dp1
(tmpdir, port)
tests/unit/checkpoint/test_fp32_master_only.py:140
Function_load_dp1_elastic
(tmpdir, port)
tests/unit/checkpoint/test_fp32_master_only.py:167
Function_load_dp1_legacy
(tmpdir, port)
tests/unit/checkpoint/test_fp32_master_only.py:155
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys,
deepspeed/linear/optimized_linear.py:161
Function_load_loss_runtime_in_the_worker
(request)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:27
Function_load_swiglu_in_the_worker
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:30
Function_local_softmax_stats_kernel
(x_ptr, max_ptr, sum_ptr, vocab, x_inner, x_outer, x_row, BLOCK: tl.constexpr)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:141
Function_log_sum_exp_forward_kernel
(logits_ptr, target_ptr, log_sum_exp_ptr, loss_ptr, n_cols, row_stride, ig
deepspeed/runtime/chunked_cross_entropy.py:33
Method_log_timers
(self, name_list, force=False)
deepspeed/runtime/swap_tensor/async_swapper.py:172
Function_logprobs_backward_kernel
(x_ptr, max_ptr, lse_ptr, grad_sum_ptr, zero_row_ptr, index_ptr, index_grad_ptr,
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:216
Method_loop
()
tests/unit/runtime/zero/test_ignore_unused_parameters.py:52
Method_loss_stage_global_rank
(self)
deepspeed/runtime/pipe/dualpipev.py:140
Method_lr_scheduler_callable
(optimizer)
tests/unit/runtime/test_ds_initialize.py:308
Method_lr_scheduler_callable
(optimizer)
tests/unit/runtime/test_ds_initialize.py:375
Method_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:567
Method_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1424
Method_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1752
Method_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1792
Method_matmul_4d
(a, b)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:274
Function_matmul_flops_compute
Count flops for the matmul operation.
deepspeed/profiling/flops_profiler/profiler.py:769
Method_max_expected_hooks_seen
(self)
deepspeed/runtime/base_optimizer.py:331
Method_mock_lazy_import_flash_attention
(implementation, attention_wrapper=None, allow_all_kernels=False)
tests/unit/ulysses_alst/test_ulysses_sp_hf.py:326
← previousnext →7,801–7,900 of 15,468, ranked by callers