MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethod__init__
(self, output)
tests/unit/module_inject/test_auto_ep_comm.py:595
↓ 3 callersMethod__init__
(self, num_layers=3)
deepspeed/sequence/test_autosp.py:74
↓ 3 callersMethod__init__
(self, params, lr=0.02, weight_decay=0, momentum=0.95, ns_method="gram")
deepspeed/runtime/zero/muon/original_muon.py:262
↓ 3 callersFunction_advance_to_accumulation_boundary
(engine, inputs, gradient_accumulation_steps)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:88
↓ 3 callersFunction_affine_resume_step
(engine, tp_size, step)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1704
↓ 3 callersMethod_after_fork_child
(self)
deepspeed/runtime/python_gc.py:32
↓ 3 callersFunction_all_ops
(logits, other_logits, index)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:362
↓ 3 callersFunction_allgather_allocation_bytes
(node: Node)
deepspeed/compile/list_schedule.py:413
↓ 3 callersFunction_allocate_worker_grad_buffer
(max_grad_numel: int, pin_memory: bool)
deepspeed/runtime/superoffload/superoffload_utils.py:39
↓ 3 callersMethod_apply_deferred_grad_scale
Multiply the gradients that a fused CPU Adam step left unscaled by its factor, except the ones overwritten since then. A parameter that is not
deepspeed/runtime/zero/stage3.py:3351
↓ 3 callersFunction_apply_dtype_to_config
Set bf16/fp16 in config_dict based on dtype; skip if not supported.
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:344
↓ 3 callersMethod_as_groups
(tensor, groups)
op_builder/npu/quantizer.py:59
↓ 3 callersFunction_assert_async_split_step_matches
(actual, expected)
tests/unit/v1/moe/test_autoep_grad_parity.py:665
↓ 3 callersFunction_assert_forward_runs
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:300
↓ 3 callersFunction_assert_module_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:282
↓ 3 callersFunction_assert_no_secondary_tensor_group
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:145
↓ 3 callersFunction_assert_nonzero_named_grad
(engine, *name_fragments)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:163
↓ 3 callersFunction_assert_partition_status
(model: Module, valid_statuses: Set[ZeroParamStatus])
tests/unit/v1/zero/test_zero.py:712
↓ 3 callersFunction_assert_secondary_tensor_size
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:158
↓ 3 callersFunction_autoep_expert_param_info
(autoep_metadata)
deepspeed/checkpoint/ds_to_universal.py:677
↓ 3 callersMethod_autoep_sequence_parallel_world_size
(self)
deepspeed/runtime/engine.py:970
↓ 3 callersFunction_aws_run_identity
(env: Mapping[str, str])
ci/torch_latest.py:859
↓ 3 callersFunction_backfill_missing_profile_metadata
(graph: Graph, profile_complete: bool = True)
deepspeed/compile/profilers/graph_profile.py:93
↓ 3 callersMethod_backward_epilogue
(self)
deepspeed/runtime/engine.py:3313
↓ 3 callersFunction_bias_activation_test_helper
Fully parameterized testing entry point.
tests/unit/inference/v2/kernels/core_ops/test_bias_activation.py:43
↓ 3 callersFunction_block_n
(n_cols: int)
deepspeed/ops/triton_ops/fused_rms_norm.py:249
↓ 3 callersMethod_build_compact_grad_partition_buffer
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:1324
↓ 3 callersFunction_build_config
Partition config that matches q_proj and o_proj via regex.
tests/unit/module_inject/test_tp_partition_config_path.py:76
↓ 3 callersFunction_build_engine
(combine_impl, ep_size, reference_state, seed, mixed_precision=True)
tests/unit/v1/moe/test_autoep_fused_parity.py:80
↓ 3 callersFunction_build_gathered_lm_head_autotp
(model, mp_size=1)
tests/unit/module_inject/test_tp_partition_config_path.py:159
↓ 3 callersFunction_build_overlap_optimizer
(monkeypatch, *, resolves_data_dependency)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:49
↓ 3 callersFunction_call
(pass_fn, gm, profile, bwd, param_manager=None, graph_id=0)
tests/unit/v1/compile/test_offload_activation.py:94
↓ 3 callersFunction_capacity
(gates: Tensor, capacity_factor: Tensor, min_capacity: Tensor)
deepspeed/moe/sharded_moe.py:152
↓ 3 callersMethod_capture_continuous_graph
Capture one fixed-capacity decode forward and return its static logits.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1096
↓ 3 callersFunction_capture_matched_names
Run _replace_module and capture full_name values that match a spec.
tests/unit/module_inject/test_tp_partition_config_path.py:84
↓ 3 callersFunction_check_bigcode_copy
(plan, source, target)
tests/unit/checkpoint/test_affine_transfer_plan.py:114
↓ 3 callersMethod_check_process_alive
Check if the checkpoint process is still alive. Note: Only call this when self.ckpt_process is not None. Some ranks don't have a chec
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:116
↓ 3 callersFunction_check_zero3_param_storage
(param)
deepspeed/checkpoint/zero_affine.py:109
↓ 3 callersFunction_clamped_inputs
(shape, dtype, scale=4.0, requires_grad=False)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:295
↓ 3 callersMethod_clear_previous_reduced_grads
(self)
deepspeed/runtime/zero/stage_1_and_2.py:2490
↓ 3 callersFunction_client_optimizer_needs_remap
Whether ``optimizer`` is one that module replacement can invalidate. A config-built or callable optimizer is constructed after the replacement an
deepspeed/runtime/engine.py:229
↓ 3 callersFunction_collect
Collect the sandbox suite with the gate off/on and return the node ids.
tests/unit/test_multirank_selection.py:88
↓ 3 callersFunction_collect_autoep_expert_grads
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:141
↓ 3 callersFunction_collect_by_ep_rank
(local_tensor, ep_rank, ep_size, device)
tests/unit/v1/moe/test_autoep_checkpoint.py:163
↓ 3 callersFunction_column_parallel_shards
(tensor, tp)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:55
↓ 3 callersMethod_combined_grad_scale
(self, total_norm)
deepspeed/runtime/zero/stage3.py:3314
↓ 3 callersFunction_common_config
()
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:85
↓ 3 callersMethod_compare
(self, tmpdir, offload, gas, managed, precision="fp32", model_class=PartlyUsedModel)
tests/unit/v1/zero/test_zero3_unused_param_grads.py:201
↓ 3 callersFunction_compiler
(name)
tests/unit/compile/test_inductor_aot_kwargs.py:9
↓ 3 callersFunction_config
(stage, low_precision_master, accumulation_dtype)
tests/unit/v1/zero/test_zero_offload_accum_precision.py:37
↓ 3 callersFunction_config_dtype
(config)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:86
↓ 3 callersMethod_configure_python_gc
(self)
deepspeed/runtime/engine.py:1363
↓ 3 callersFunction_consolidate_zero3_autoep_expert_states
(output_dir, model_files, optim_files)
deepspeed/checkpoint/ds_to_universal.py:811
↓ 3 callersFunction_convert_to_universal
(checkpoint_dir, universal_dir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1079
↓ 3 callersMethod_copy_ready_ranges
(self, fp16_flat, output, ranges, prepare=None)
deepspeed/runtime/reflow/reflow_stage3.py:1309
↓ 3 callersFunction_count_type
(cmds, classtype)
tests/unit/runtime/pipe/test_pipe_schedule.py:10
↓ 3 callersMethod_cpu_flags
(self)
op_builder/cpu/reflow.py:16
↓ 3 callersFunction_cpu_info
Returns the host CPU architecture, named the way py-cpuinfo names it (X86_64, ARM_8, PPC_64, RISCV_64, ...), and its feature flags as a froze
op_builder/builder.py:83
↓ 3 callersMethod_create_prefill_cache
Cache for a single prefill forward whose KV is then copied into the decode cache. Under autocast, keys and values can come out in different d
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1599
↓ 3 callersFunction_create_sdpa_graph
(seq_len, num_heads=2, num_kv_heads=None)
tests/unit/v1/compile/test_compile_autosp.py:31
↓ 3 callersMethod_create_vocab_parallel_layer
(self, child, name)
deepspeed/module_inject/auto_tp.py:745
↓ 3 callersFunction_curriculum_scheduler
(min_difficulty, max_difficulty, difficulty_step, schedule_type="fixed_linear")
tests/unit/runtime/test_data_efficiency.py:56
↓ 3 callersMethod_deactivate_deepcompile
(self)
deepspeed/runtime/engine.py:6157
↓ 3 callersFunction_decode_kwargs
()
tests/unit/hybrid_engine/test_he_graph.py:118
↓ 3 callersFunction_define_dc_ops
()
tests/unit/v1/compile/test_list_schedule.py:27
↓ 3 callersMethod_device
(self)
tests/torch_compile/test_deepcompile_z3_release.py:25
↓ 3 callersFunction_device_params
(engine)
tests/unit/v1/zero/test_zero_partial_offload.py:101
↓ 3 callersFunction_dim_zero_all_to_all
Differentiable All2All across dimension 0. The gradient of this exchange has to be something the tracer knows about. An autograd function that fi
deepspeed/sequence/layer.py:357
↓ 3 callersFunction_dist_allgather_fn
(input_tensor: Tensor, output_tensor: Tensor, group=None)
deepspeed/runtime/zero/partition_parameters.py:122
↓ 3 callersFunction_drop_tokens
Divide a tensor among the tensor parallel ranks
deepspeed/moe/mappings.py:56
↓ 3 callersMethod_drop_tracked_param
(self, ds_id, param)
deepspeed/compile/z3_eager_fallback.py:128
↓ 3 callersFunction_eager_weight_gradient_summation_order
Sum the fused weight gradient in eager's order, leaving the rest of the fused path as it is. Fused and eager form the same FP32 products for the
tests/unit/v1/moe/test_autoep_deepep_parity.py:65
↓ 3 callersMethod_enable_universal_checkpoint
(self)
deepspeed/runtime/bf16_optimizer.py:314
↓ 3 callersFunction_engine
(case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:92
↓ 3 callersMethod_engine
(self, param_dtype=None, fp16=False, bf16=False)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:73
↓ 3 callersMethod_ensure_bucketwise_group_step
Reserve one step per subgroup, including ranks with only padding and no Ready ranges.
deepspeed/runtime/reflow/reflow_stage3.py:1465
↓ 3 callersMethod_ensure_param_state
Lazily create the optimizer state (step, exp_avg, exp_avg_sq) for a CPU param.
deepspeed/runtime/reflow/reflow_cpu_adam.py:133
↓ 3 callersMethod_expand_unpadded_flat_group
(self, compact_group, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:3546
↓ 3 callersFunction_expert_weight_parity_worker
(rank, world_size, tp_size, ep_size, zero_stage=0)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:581
↓ 3 callersFunction_flat
The buffer for ``location`` as its own elements, without copying it.
deepspeed/checkpoint/affine_transfer_executor.py:716
↓ 3 callersFunction_fmt_bytes
(num_bytes: int)
deepspeed/utils/pin_memory_tracker.py:14
↓ 3 callersFunction_folded_zero2_config
(*, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:48
↓ 3 callersFunction_format_param
Broadcast a scalar to every param group, or validate a per-group list/tuple.
deepspeed/runtime/lr_schedules.py:303
↓ 3 callersMethod_fp32_state_allgather
(self, param, fp32_state_partition)
deepspeed/runtime/zero/stage3.py:3472
↓ 3 callersMethod_fuse_lora_layer
(self, layer_id)
deepspeed/runtime/hybrid_engine.py:161
↓ 3 callersFunction_fused_engine_available
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:65
↓ 3 callersFunction_gamma_before_cast_rms_norm
(hidden, weight, eps)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:87
↓ 3 callersFunction_gather_logical_tensor
(tensor, logical_shape, partition_dim,
deepspeed/module_inject/layers.py:2221
↓ 3 callersFunction_gather_optimizer_state_for_param
(engine, param, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:207
↓ 3 callersFunction_gather_source_zero_params
Gather source ZeRO params while AutoEP reads full tensor values.
deepspeed/moe/ep_repack.py:25
↓ 3 callersFunction_gather_tokens
Gather tensors and concatenate them along a dimension
deepspeed/moe/mappings.py:30
↓ 3 callersFunction_gather_zero_param
(param)
tests/unit/v1/moe/test_autoep_checkpoint.py:158
↓ 3 callersMethod_gen
(self, rollout, ids)
tests/unit/module_inject/test_segment_ki_kernels.py:618
↓ 3 callersFunction_generate_layout_params
This function generates the parameters required for `permute` and `reshape` operations, which are used to process data before and after `all2
deepspeed/sequence/layer.py:49
↓ 3 callersFunction_get_autoep_metadata
(model_state)
deepspeed/checkpoint/ds_to_universal.py:657
↓ 3 callersMethod_get_buffer
(self, index)
deepspeed/runtime/swap_tensor/async_swapper.py:157
↓ 3 callersMethod_get_ckpt_name
(self, checkpoints_path, tag, mp_placeholder=None, pp_placeholder=None)
deepspeed/runtime/engine.py:4500
↓ 3 callersMethod_get_continuous_graph_state
(self, module, max_batch_size, max_cache_len, device, model_dtype, cache_type)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1024
↓ 3 callersMethod_get_cpu_grad_buffer
(self, sub_group_id, pending=False)
deepspeed/runtime/reflow/reflow_stage3.py:1068
↓ 3 callersFunction_get_cross_entropy_arg
(loss_node: Node, name: str, position: int, default)
deepspeed/compile/passes/sp_compile.py:137
← previousnext →1,401–1,500 of 15,468, ranked by callers