MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 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:709
↓ 3 callersFunction_assert_secondary_tensor_size
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:158
↓ 3 callersFunction_assert_trains_like_cpu_offload
(tmpdir, optimizer_device, param_device, **nvme_options)
tests/unit/v1/zero/test_zero3_nvme_offload.py:89
↓ 3 callersFunction_autoep_expert_param_info
(autoep_metadata)
deepspeed/checkpoint/ds_to_universal.py:674
↓ 3 callersMethod_autoep_sequence_parallel_world_size
(self)
deepspeed/runtime/engine.py:944
↓ 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:3236
↓ 3 callersFunction_bias_activation_test_helper
Fully parameterized testing entry point.
tests/unit/inference/v2/kernels/core_ops/test_bias_activation.py:38
↓ 3 callersMethod_build_compact_grad_partition_buffer
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:1316
↓ 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:79
↓ 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:840
↓ 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:111
↓ 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:255
↓ 3 callersMethod_clear_previous_reduced_grads
(self)
deepspeed/runtime/zero/stage_1_and_2.py:2472
↓ 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:228
↓ 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_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 callersFunction_common_config
()
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:85
↓ 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:1310
↓ 3 callersFunction_consolidate_zero3_autoep_expert_states
(output_dir, model_files, optim_files)
deepspeed/checkpoint/ds_to_universal.py:808
↓ 3 callersFunction_count_type
(cmds, classtype)
tests/unit/runtime/pipe/test_pipe_schedule.py:10
↓ 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_static_cache
Construct StaticCache across Transformers' batch-size API variants.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1275
↓ 3 callersMethod_create_vocab_parallel_layer
(self, child, name)
deepspeed/module_inject/auto_tp.py:702
↓ 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:6054
↓ 3 callersFunction_decode_kwargs
()
tests/unit/hybrid_engine/test_he_graph.py:117
↓ 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_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:351
↓ 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 callersMethod_dump_state
(self)
deepspeed/io/fast_file_writer.py:174
↓ 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_expand_unpadded_flat_group
(self, compact_group, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:3520
↓ 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:502
↓ 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:3193
↓ 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:42
↓ 3 callersFunction_gamma_before_cast_rms_norm
(hidden, weight, eps)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:64
↓ 3 callersFunction_gather_logical_tensor
(tensor, logical_shape, partition_dim,
deepspeed/module_inject/layers.py:2139
↓ 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 callersFunction_get_autoep_metadata
(model_state)
deepspeed/checkpoint/ds_to_universal.py:654
↓ 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:4418
↓ 3 callersMethod_get_continuous_graph_state
(self, module, max_batch_size, prompt_len, max_cache_len, device, model_dtype,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:777
↓ 3 callersMethod_get_current_buffer
(self)
deepspeed/runtime/swap_tensor/utils.py:173
↓ 3 callersFunction_get_data_parallel_group
Get the data parallel group the caller rank belongs to.
deepspeed/utils/groups.py:786
↓ 3 callersFunction_get_ds_id
(node: Node)
deepspeed/compile/list_schedule.py:384
↓ 3 callersMethod_get_expert_ckpt_name
(checkpoints_path, layer_id, expert_id, tag, mpu=None, checkpoint_mp_rank=None)
deepspeed/runtime/engine.py:4450
↓ 3 callersFunction_get_expert_data_parallel_group
Get the expert data parallel group the caller rank belongs to.
deepspeed/utils/groups.py:716
↓ 3 callersFunction_get_expert_parallel_group
Get the expert parallel group the caller rank belongs to.
deepspeed/utils/groups.py:697
↓ 3 callersFunction_get_expert_weight
Get expert weight tensor by name, handling both attribute and child module patterns.
deepspeed/moe/ep_repack.py:309
↓ 3 callersFunction_get_file_path
(tmpdir, file_prefix, index=0)
tests/unit/v1/nvme/test_aio.py:40
↓ 3 callersFunction_get_fw_real_inputs
Resolve graph-local real inputs from the one-shot queue or persistent storage.
deepspeed/compile/backend.py:242
↓ 3 callersFunction_get_io_error
(io_call)
tests/unit/v1/nvme/test_aio.py:472
↓ 3 callersFunction_get_local_rank
()
tests/unit/v1/nvme/test_gds.py:26
↓ 3 callersFunction_get_mem_usage_out_of_torch
()
deepspeed/compile/profilers/graph_profile.py:161
↓ 3 callersMethod_get_optimizer_param
(self, param_name)
deepspeed/runtime/engine.py:3843
↓ 3 callersMethod_get_optimizer_state
(self, sd, state_key)
deepspeed/checkpoint/zero_checkpoint.py:120
↓ 3 callersFunction_get_param_uc_conversion_meta
Return the conversion-facing view of AutoTP UC metadata for a parameter. AutoTP keeps a single parameter-level metadata object with two roles:
deepspeed/module_inject/layers.py:680
↓ 3 callersFunction_get_test_write_file_and_device_buffer
(tmpdir, ref_buffer, gds_handle, index=0)
tests/unit/v1/nvme/test_gds.py:52
↓ 3 callersFunction_get_test_write_file_and_unpinned_tensor
(tmpdir, ref_buffer, index=0)
tests/unit/v1/nvme/test_aio.py:58
↓ 3 callersMethod_get_universal_checkpoint_info
(self)
deepspeed/runtime/bf16_optimizer.py:325
↓ 3 callersMethod_get_used_buffers
(self)
deepspeed/runtime/swap_tensor/utils.py:176
↓ 3 callersFunction_get_zero_param_intra_parallel_group
Get the ZeRO parameter partitioning intra parallel group the caller rank belongs to.
deepspeed/utils/groups.py:974
↓ 3 callersFunction_git_command
(*args: str)
ci/torch_latest.py:404
↓ 3 callersFunction_glm52_mla_config
()
tests/unit/runtime/zero/test_per_head_muon.py:315
↓ 3 callersMethod_has_inf_or_nan
(x, j=None)
deepspeed/runtime/zero/stage_1_and_2.py:3361
↓ 3 callersFunction_import_transformers_library
()
deepspeed/linear/context_manager.py:11
↓ 3 callersFunction_init_group_wise_weight_quantization
[Experimental] Apply group-wise weight quantization to model. Replace layers module according to config_list Args: model (nn.Module): A n
deepspeed/inference/quantization/quantization.py:20
↓ 3 callersMethod_ipg_bucket_capacity
(self, bucket)
deepspeed/runtime/zero/stage3.py:1640
↓ 3 callersMethod_is_grid_valid
(self)
deepspeed/runtime/pipe/topology.py:388
↓ 3 callersMethod_is_kept_in_fp32
A parameter stored in fp32 while the model trains in bf16/fp16 (data_types.keep_in_fp32_modules).
deepspeed/runtime/zero/stage3.py:1621
↓ 3 callersMethod_is_muon_group
(self, tensor_list)
deepspeed/runtime/zero/stage_1_and_2.py:2878
← previousnext →1,301–1,400 of 14,579, ranked by callers