MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethod_get_param_coordinator
(self)
deepspeed/runtime/zero/stage3.py:873
↓ 2 callersMethod_get_parameter_partitions
(self)
deepspeed/runtime/zero/stage3.py:1082
↓ 2 callersMethod_get_rank_zero_ckpt_name
(self, checkpoints_path, tag, mp_rank, dp_rank, bf16_mode)
deepspeed/runtime/engine.py:4530
↓ 2 callersMethod_get_scale_factor
(self)
deepspeed/runtime/lr_schedules.py:582
↓ 2 callersFunction_get_send_recv_group
the group id is always the smaller rank unless its a wrap around
deepspeed/runtime/pipe/p2p.py:161
↓ 2 callersMethod_get_sub_group_partition_count
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:697
↓ 2 callersMethod_get_swap_paths
(self, parameters, num_elems)
deepspeed/runtime/swap_tensor/optimizer_utils.py:430
↓ 2 callersMethod_get_trainable_parameter_groups
(self)
deepspeed/runtime/zero/stage3.py:768
↓ 2 callersFunction_get_zero3_model_state_files
(checkpoint_dir)
deepspeed/checkpoint/ds_to_universal.py:1058
↓ 2 callersFunction_git
(cwd: Path, *args: str)
ci/test_torch_latest.py:194
↓ 2 callersFunction_global_ranks
(group)
deepspeed/checkpoint/zero_affine.py:103
↓ 2 callersFunction_global_sp_sum
(local_value, sp_group)
deepspeed/sequence/cross_entropy.py:134
↓ 2 callersFunction_grad_mismatches
Name, relative error and scale of every gradient that differs from the reference. ``rounding`` adds a per-element allowance for rounding that hap
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:229
↓ 2 callersMethod_gradient_averaging_world_size
(self, params, partition_world_size)
deepspeed/runtime/zero/stage3.py:731
↓ 2 callersFunction_grads
(function, inputs, upstream)
tests/unit/v1/moe/test_autoep_permute_rows.py:37
↓ 2 callersFunction_group_gemm
Forward-style grouped GEMM: a[M,KC] x b[E,KC,NO] -> out[M,NO], grouped over M.
deepspeed/ops/triton_ops/group_gemm_triton.py:322
↓ 2 callersFunction_group_ranges
(sizes)
tests/unit/v1/runtime/test_subchannel_quantization.py:59
↓ 2 callersFunction_group_ranks
(group)
deepspeed/comm/custom_collective.py:36
↓ 2 callersMethod_group_step_offloaded
Per-parameter selective update for offloaded partitions (CPU or NVMe). NVMe partitions are swapped in, updated, and swapped back out one at a
deepspeed/ops/adam/zenflow_torch_adam.py:519
↓ 2 callersFunction_grouped_mlp_weight_grads
The weight gradients of the grouped-GEMM expert MLP in ``x.dtype``, or ``None`` where not needed. The products are the ones autograd forms for ``
deepspeed/moe/ep_experts.py:476
↓ 2 callersFunction_has_3d_expert_params
Check if module stores expert weights as 3D parameter tensors (transformers 5.0.0+). Returns True if the module has a parameter named preset.expe
deepspeed/module_inject/auto_ep.py:112
↓ 2 callersMethod_has_inf_or_nan
(x, j=None)
deepspeed/runtime/zero/stage3.py:3429
↓ 2 callersFunction_has_mixed_gemm
Whether ``device_type`` has GEMMs that take fp16/bf16 inputs and produce fp32 outputs. The dispatcher is asked whether the device registers these
deepspeed/sequence/linear_cross_entropy.py:46
↓ 2 callersFunction_has_moments
(engine)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:74
↓ 2 callersMethod_head
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:392
↓ 2 callersMethod_hf_sampling_kwargs
Hugging Face ``generate()`` arguments for ``sampling``; ``temperature <= 0`` is greedy.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:2036
↓ 2 callersMethod_hyperparams
The hyperparameters of a param group, which LR, momentum or weight decay schedules change.
deepspeed/runtime/superoffload/superoffload_stage3.py:365
↓ 2 callersFunction_in_backward
Whether this thread is running inside an autograd backward pass.
deepspeed/module_inject/auto_ep_comm.py:411
↓ 2 callersFunction_in_family
(layer_type, family)
deepspeed/compile/passes/tp_compile.py:52
↓ 2 callersFunction_indexed_operations
Every chunk of a batch in execution order, tagged with the index of its plan. Many parameters share one plan object; its geometry is built once p
deepspeed/checkpoint/affine_transfer_executor.py:380
↓ 2 callersFunction_infer_subparam_logical_shapes
(weight_shape, shape, partition_dim, name=None)
deepspeed/module_inject/layers.py:2025
↓ 2 callersMethod_init
(self, log_level=None)
tests/unit/v1/test_engine_log_level.py:53
↓ 2 callersMethod_init
(self, gradient_clipping=None)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:50
↓ 2 callersFunction_init_engine
(config_dict, hidden_dim, seed=42)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:51
↓ 2 callersFunction_init_external_params
(module)
deepspeed/runtime/zero/partition_parameters.py:137
↓ 2 callersMethod_initialization_checker
Returns whether or not all parameters have been initialized and transformed by the model. Once this returns True, all the `ParameterB
deepspeed/inference/v2/model_implementations/layer_container_base.py:205
↓ 2 callersMethod_initialize_from_swapped_fp16_params
(self, aio_handle, fp16_partitions_info, fp16_num_elems, fp16_pin
deepspeed/runtime/swap_tensor/optimizer_utils.py:292
↓ 2 callersMethod_initialize_parameters
(self, parameters, src_tensors, aio_handle)
deepspeed/runtime/swap_tensor/optimizer_utils.py:403
↓ 2 callersMethod_inputs
(self, model_size, grad_dtype)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:246
↓ 2 callersMethod_install
(self, model)
tests/unit/module_inject/test_segment_ki_kernels.py:398
↓ 2 callersFunction_install_skewed_routing
(engine)
tests/unit/v1/moe/test_autoep_deepep_parity.py:115
↓ 2 callersMethod_invalidate_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:217
↓ 2 callersMethod_is_checkpointable
(self, funcs)
deepspeed/runtime/pipe/module.py:660
↓ 2 callersFunction_is_column_parallel
(layer_type)
deepspeed/compile/passes/tp_compile.py:44
↓ 2 callersFunction_is_even
(x)
deepspeed/runtime/pipe/schedule.py:640
↓ 2 callersFunction_is_expert_model_state_file
(checkpoint_file)
deepspeed/checkpoint/ds_to_universal.py:1053
↓ 2 callersMethod_is_folded_expert_group
(self, group_index)
deepspeed/runtime/zero/stage_1_and_2.py:3052
↓ 2 callersMethod_is_last_rank
(self)
deepspeed/runtime/pipe/dualpipev.py:126
↓ 2 callersMethod_is_loss_stage
(self, phase)
deepspeed/runtime/pipe/dualpipev.py:123
↓ 2 callersMethod_is_ongoing_drain
(self)
deepspeed/io/double_io_buffer.py:83
↓ 2 callersFunction_is_packed
Whether a region is one run of consecutive elements in row-major order. This is ``Tensor.is_contiguous`` for the ``as_strided`` view ``_region``
deepspeed/checkpoint/affine_transfer_executor.py:342
↓ 2 callersFunction_is_rank_preserving
(node: Node)
deepspeed/compile/passes/sp_compile.py:153
↓ 2 callersFunction_is_reshape
(node: Node)
deepspeed/compile/passes/sp_compile.py:157
↓ 2 callersFunction_is_row_parallel
(layer_type)
deepspeed/compile/passes/tp_compile.py:48
↓ 2 callersFunction_is_sequence
A real sequence: indexable and sized, which a generator is not and a string should not count as.
deepspeed/checkpoint/affine_transfer.py:692
↓ 2 callersMethod_is_test_file
(self, path: Path)
ci/tests_fetcher.py:262
↓ 2 callersFunction_is_valid_send_recv
(src_stage, dest_stage)
deepspeed/runtime/pipe/p2p.py:37
↓ 2 callersFunction_join
(processes)
tests/unit/checkpoint/test_fp32_master_only.py:186
↓ 2 callersFunction_join_transfer_group
()
tests/unit/checkpoint/test_affine_transfer_analysis.py:123
↓ 2 callersFunction_jsd_log_ratios
(student, teacher, global_max, log_sum_exp, beta)
deepspeed/sequence/vocab_parallel_ops.py:391
↓ 2 callersFunction_jsd_ratios
(log_q, log_p, log_beta, log_one_minus_beta)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:68
↓ 2 callersMethod_keep_in_fp32
Convert the parameters and buffers of ``module`` that it names for fp32 (keep_in_fp32.py).
deepspeed/runtime/zero/partition_parameters.py:1255
↓ 2 callersFunction_key_list_to_string
(key_list)
deepspeed/checkpoint/reshape_utils.py:76
↓ 2 callersFunction_kimi_k3_hybrid_config
Kimi-K3-0.40B: linear-attention layers on a config that also carries MLA fields. `linear_attn_config` gives `num_heads: 8, head_dim: 32`, so its
tests/unit/runtime/zero/test_per_head_muon.py:448
↓ 2 callersFunction_kv_attention_stub
(monkeypatch, **attrs)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:540
↓ 2 callersFunction_lanes
(indexed: Sequence[Tuple[int, _Operation]], processes: Sequence[int], max_elements: int)
deepspeed/checkpoint/affine_transfer_executor.py:408
↓ 2 callersFunction_launch
(x, cos, sin, out, backward)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:168
↓ 2 callersMethod_launch_non_daemonic_procs
(self, num_procs, init_method)
tests/unit/common.py:233
↓ 2 callersMethod_launch_with_file_store
(self, request, world_size)
tests/unit/common.py:358
↓ 2 callersMethod_lazy
(buffer, kind)
tests/unit/checkpoint/test_affine_transfer_executor.py:368
↓ 2 callersMethod_lazy_init_class_dict
(self)
accelerator/hpu_accelerator.py:263
↓ 2 callersMethod_lazy_init_class_dict
(self)
accelerator/supa_accelerator.py:243
↓ 2 callersMethod_lazy_init_class_dict
(self)
accelerator/cuda_accelerator.py:381
↓ 2 callersMethod_lazy_init_hp_params_optimizer_state
(self)
deepspeed/runtime/zero/stage_1_and_2.py:866
↓ 2 callersMethod_libomp_prefix
(self)
op_builder/mps/cpu_adam.py:41
↓ 2 callersMethod_link_all_hp_params
(self)
deepspeed/runtime/bf16_optimizer.py:340
↓ 2 callersFunction_link_first_half
(param)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:61
↓ 2 callersFunction_llama3_inverse_frequencies
(config: Any, device: Any)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:34
↓ 2 callersMethod_lm_head_patterns
(self)
deepspeed/module_inject/auto_tp.py:728
↓ 2 callersMethod_load_global_state
(self, sd)
deepspeed/runtime/bf16_optimizer.py:701
↓ 2 callersFunction_load_native_op
Best-effort load of the segment-KI native op; None → composite. Ask the accelerator whether it registers this builder — the kernels are CUDA
deepspeed/module_inject/segment_ki.py:810
↓ 2 callersFunction_load_torch_checkpoint
(path)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:212
↓ 2 callersFunction_load_universal_file
(universal_dir, param_name, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:56
↓ 2 callersMethod_load_zero_checkpoint
(self, load_dir, tag, load_optimizer_states=True)
deepspeed/runtime/engine.py:4994
↓ 2 callersFunction_local_conv_wb
()
deepspeed/module_inject/segment_ki.py:601
↓ 2 callersMethod_local_grad_norm_squared
(self, params, counts_every_rank)
deepspeed/runtime/zero/stage3.py:2206
↓ 2 callersFunction_local_kv_tokens
(prompts, new_tokens, local_heads)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:62
↓ 2 callersFunction_log_scheduler_result
(graph_id: int, bwd: bool, scheduler_budget,
deepspeed/compile/passes/zero3_compile.py:239
↓ 2 callersMethod_loss_stage_global_rank
Global rank of the stage that computes the loss.
deepspeed/runtime/pipe/engine.py:506
↓ 2 callersMethod_make_autoep_folding_metadata
(folding_spec, *, family,
deepspeed/runtime/engine.py:4231
↓ 2 callersFunction_make_deferred_dw_config
(zero_stage, ep_size, flush_period, rows_per_expert=0)
tests/unit/v1/moe/test_autoep_grad_parity.py:772
↓ 2 callersFunction_make_offload_state_key
(key)
deepspeed/runtime/utils.py:1229
↓ 2 callersFunction_make_zero2_config
()
tests/unit/v1/moe/test_autoep_grad_parity.py:51
↓ 2 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:2375
↓ 2 callersMethod_master_pinned_at_construction
Whether _create_fp32_partitions pinned this sub-group's CPU master partition (offload_optimizer.pin_memory; NVMe-swapped sub-groups are manage
deepspeed/runtime/zero/stage3.py:3102
↓ 2 callersFunction_masters
(engine)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:66
↓ 2 callersFunction_masters
(engine)
tests/unit/v1/zero/test_superoffload.py:91
↓ 2 callersFunction_match_outputs
(ref, tgt)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:52
↓ 2 callersMethod_matches_glob
(self, rel_posix: str, globs: tuple[str, ...])
ci/tests_fetcher.py:471
↓ 2 callersFunction_measured_margin
The share of the device the allocator holds without using, clamped to a calibrated range.
deepspeed/compile/passes/offload_activation.py:130
← previousnext →2,301–2,400 of 15,767, ranked by callers