MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethod_replace_with_config
Replace layer using the new configurable AutoTP API. This method uses TPLayerSpec to determine how to partition the layer.
deepspeed/module_inject/auto_tp.py:526
↓ 3 callersFunction_require_aio_cuda
()
tests/unit/v1/nvme/test_aio_gil.py:25
↓ 3 callersFunction_require_liger
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:24
↓ 3 callersFunction_require_native
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:84
↓ 3 callersFunction_rescale_to_global_max
(local_max, global_max)
deepspeed/sequence/vocab_parallel_ops.py:122
↓ 3 callersMethod_residual_add_bias
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size, mlp
op_builder/npu/inference.py:453
↓ 3 callersMethod_resolve_presets
Determine which preset(s) to use for detection.
deepspeed/module_inject/auto_ep.py:769
↓ 3 callersFunction_restore_ckpt_config
(saved)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:128
↓ 3 callersMethod_riscv_has_vector
(self)
op_builder/builder.py:423
↓ 3 callersFunction_router_params
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:143
↓ 3 callersFunction_rows
(box)
deepspeed/checkpoint/affine.py:1030
↓ 3 callersFunction_run_folded_checkpoint_same_topology_resume
(checkpoint_dir, *, ep_size=2, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:258
↓ 3 callersFunction_run_gate
Run ci/check_paths.py in ``repo``; return its exit code and what it wrote to GITHUB_OUTPUT.
ci/test_tests_fetcher.py:295
↓ 3 callersFunction_run_on
(device, op, student, teacher, index)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:540
↓ 3 callersMethod_run_test
(self, tmpdir, dtype, ds_config, load_optim, use_torch_adam, world_size)
tests/unit/checkpoint/test_universal_checkpoint.py:223
↓ 3 callersFunction_run_until_boundary
(engine, *, logical_dp_world_size, logical_dp_rank, grad_accum, seed)
tests/unit/v1/moe/test_autoep_grad_parity.py:111
↓ 3 callersFunction_scheduler_debug_enabled
()
deepspeed/compile/passes/zero3_compile.py:105
↓ 3 callersFunction_set_module_by_name
Replace the submodule at *dotted_name* with *new_module* in-place.
deepspeed/sequence/auto_sp.py:134
↓ 3 callersFunction_set_vocab_parallel_loss
(model, loss_fn)
deepspeed/sequence/cross_entropy.py:428
↓ 3 callersMethod_setup_baseline_linears
(self, model)
tests/unit/v1/autotp/test_tp_plan_e2e.py:55
↓ 3 callersFunction_shared_qk_shard_fn
(shard_value, meta)
tests/unit/checkpoint/test_affine_shard_map.py:157
↓ 3 callersFunction_skip_if_unsupported
Mirror the check the engine itself makes. `_do_sanity_check` raises `Type fp16 is not supported on your device.` on `not get_accelerator().is
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:82
↓ 3 callersFunction_skip_unless_cuda_grouped_mm
()
tests/unit/v1/moe/test_autoep_grad_parity.py:803
↓ 3 callersFunction_skip_unsupported_dtype
(dtype)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:174
↓ 3 callersMethod_slice_autoep_universal_expert_param
(self, checkpoint_state, param)
deepspeed/runtime/zero/stage3.py:4240
↓ 3 callersMethod_slice_embedding
(self, child, name, conv_linear_layer)
deepspeed/module_inject/auto_tp.py:989
↓ 3 callersFunction_snapshot_ckpt_config
()
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:123
↓ 3 callersMethod_softmax_context
(query_key_value, attn_mask, rotary_dim,
op_builder/npu/inference.py:193
↓ 3 callersFunction_source_param_shape
(param: torch.Tensor | nn.Parameter)
deepspeed/module_inject/auto_ep.py:102
↓ 3 callersFunction_spawn
(target, *args)
tests/unit/checkpoint/test_fp32_master_only.py:195
↓ 3 callersFunction_split_plan_counts
(scenario)
tests/unit/v1/moe/test_autoep_unit.py:1708
↓ 3 callersMethod_stop_timers
(self, timer_names)
deepspeed/runtime/engine.py:3852
↓ 3 callersMethod_sub_group_optimizer
The optimizer that steps a sub-group and holds its state.
deepspeed/runtime/zero/stage3.py:1331
↓ 3 callersMethod_sycl_env_paths
Find the SYCL include and lib directories from the Python environment. When using PyTorch XPU wheels, libsycl.so and SYCL headers are
op_builder/xpu/builder.py:61
↓ 3 callersMethod_sync_cpu_optimizer_step
(self, param_group_id: int, sub_group_id: in
deepspeed/runtime/superoffload/superoffload_stage3.py:336
↓ 3 callersMethod_test_set_z3_leaf_modules
(self, cls, requires_grad)
tests/unit/runtime/zero/test_zero_leaf_module.py:327
↓ 3 callersFunction_train
Train one step per entry of `schedule` and return the weights after each step.
tests/unit/v1/zero/test_zero3_unused_param_grads.py:115
↓ 3 callersFunction_trainable_parameters
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:600
↓ 3 callersFunction_triton_device
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:517
↓ 3 callersFunction_unflatten_dense_tensors
View a flat buffer using the sizes of tensors. Assume that tensors are of same dense type, and that flat is given by _flatten_dense_tensors.
deepspeed/runtime/zenflow/zenflow_utils.py:37
↓ 3 callersFunction_unpadded_master
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:67
↓ 3 callersMethod_update_hp_grad
(self, lp, group_idx, param_idx, clear_lp_grads)
deepspeed/runtime/bf16_optimizer.py:513
↓ 3 callersMethod_update_param_state_info
(self, swap_info, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:516
↓ 3 callersMethod_update_scale
(self, skip)
deepspeed/runtime/fp16/unfused_optimizer.py:277
↓ 3 callersMethod_update_static_causal_attention
(static_attention, static_causal_attention)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1091
↓ 3 callersMethod_valid_micro_batch
(self, micro_batch_id)
deepspeed/runtime/pipe/schedule.py:80
↓ 3 callersFunction_validate_stochastic_mode
(config)
deepspeed/ops/transformer/transformer.py:143
↓ 3 callersMethod_values
(kind)
tests/unit/checkpoint/test_affine_transfer_executor.py:362
↓ 3 callersMethod_vector_matmul
(input, weight, async_op, q_scale, q_int8, transposed_mode)
op_builder/npu/inference.py:394
↓ 3 callersFunction_verify_continuous_decrease
(values)
tests/unit/runtime/test_lr_schedulers.py:24
↓ 3 callersMethod_wildcard_to_regex
(pattern: str)
deepspeed/module_inject/tp_plan_converter.py:91
↓ 3 callersMethod_zero3_consolidated_16bit_state_dict
Get a full non-partitioned state_dict with fp16 weights on cpu. Important: this function must be called on all ranks and not just ran
deepspeed/runtime/engine.py:5822
↓ 3 callersMethod_zero3_partition_group_metadata
(self)
deepspeed/runtime/zero/stage3.py:3785
↓ 3 callersFunction_zero_empty_expert_grad
(weight: torch.Tensor, num_tokens_per_expert: torch.Tensor)
deepspeed/moe/ep_experts.py:315
↓ 3 callersFunction_zero_optimizer_stub
(*, partition_gradients, overlap_comm)
tests/unit/v1/moe/test_autoep_autotp_zero1_overlap_folding.py:15
↓ 3 callersMethodabsolute_include_paths
(self)
op_builder/builder.py:474
↓ 3 callersMethodabsolute_name
Returns absolute build path for cases where the op is pre-installed, e.g., deepspeed.ops.adam.cpu_adam will be installed as something
op_builder/builder.py:221
↓ 3 callersFunctionaccess
(tensor)
tests/unit/v1/zero/test_zero2_gradient_safety.py:348
↓ 3 callersFunctionadam_update
(grad, buf1, buf2, step, betas, eps)
deepspeed/runtime/zero/muon/original_muon.py:340
↓ 3 callersFunctionadd_end_backward
(graph: Graph, graph_id: int, release_reduce_buckets: bool = True)
deepspeed/compile/fx.py:40
↓ 3 callersMethodadd_param_group
(self, param_group)
deepspeed/ops/adam/cpu_adam.py:135
↓ 3 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:330
↓ 3 callersMethodaddress
Shard offset of a sub-box of this frame's region, in this shard's own addressing.
deepspeed/checkpoint/affine_transfer.py:117
↓ 3 callersFunctionaddress_range
The lowest and highest address a strided view reaches, both inclusive.
deepspeed/checkpoint/affine_geometry.py:50
↓ 3 callersMethodall_to_all
(self, output_tensor_list, input_tensor_list, group=None, async_op=False)
deepspeed/comm/torch.py:541
↓ 3 callersFunctionall_to_all_quant_reduce
(tensors: List[Tensor], groups: {})
deepspeed/runtime/comm/coalesced_collectives.py:31
↓ 3 callersFunctionallclose
(x, y)
tests/unit/ops/spatial/test_nhwc_bias_add.py:17
↓ 3 callersMethodalloc
csrc/pin_memory/deepspeed_pin_tensor.cpp:42
↓ 3 callersMethodallocate_tensor
(self, swap_path, numel, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:55
↓ 3 callersMethodallreduce_and_copy_with_multiple_ranks
(self, small_bucket,
deepspeed/runtime/zero/stage_1_and_2.py:1640
↓ 3 callersMethodallreduce_and_scatter
(self, bucket, communication_data_type: torch.dtyp
deepspeed/runtime/zero/stage_1_and_2.py:1669
↓ 3 callersMethodallreduce_bucket
(self, bucket, communication_data_type: torch.dtype,
deepspeed/runtime/zero/stage_1_and_2.py:2454
↓ 3 callersFunctionapply_autotp_with_partition_config
(model, tp_size, partition_config)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:165
↓ 3 callersFunctionapply_folding_correction_to_grad_buffer
( folding_spec: ParallelFoldingSpec | None, param, grad, *, tp_group, param_name: str
deepspeed/module_inject/auto_ep_folding.py:484
↓ 3 callersFunctionassert_ints_same_as_other_ranks
NOTE: creates both communication and synchronization overhead so should be used sparingly takes a list of ints from each rank and ensure
deepspeed/runtime/zero/utils.py:123
↓ 3 callersFunctionassert_load_balance_coeff_rejection_message
(exc: BaseException, value: object)
tests/unit/v1/moe/autoep_test_utils.py:174
↓ 3 callersMethodasync_inplace_copy_grad_to_fp32_buffer_from_gpu
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1988
↓ 3 callersMethodattach_decoder_layer
Record the decoder layer whose checkpoint skip_recompute_combine requires.
deepspeed/module_inject/auto_ep_layer.py:1003
↓ 3 callersFunctionattention
csrc/deepspeed4science/evoformer_attn/attention.cpp:15
↓ 3 callersMethodattention_o_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:248
↓ 3 callersFunctionautoep_placements_equal
Return whether two descriptors place the same experts, in the same order, on each rank ID. Rank entries are identified by their explicit rank IDs
deepspeed/checkpoint/autoep_affine.py:124
↓ 3 callersMethodautotuning_enabled
(self)
deepspeed/runtime/engine.py:1575
↓ 3 callersFunctionbackward
(ctx, grad_output)
tests/unit/v1/moe/test_autoep_deepep_parity.py:76
↓ 3 callersMethodbackward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1019
↓ 3 callersFunctionbarrier
()
tests/unit/comm/test_comms_logger.py:97
↓ 3 callersFunctionbaseline_implementation
(hidden_states: torch.Tensor, seq_lens: List[int])
tests/unit/inference/v2/kernels/ragged_ops/test_logits_gather.py:22
↓ 3 callersMethodbroadcast_object_list
(self, object_list, src, group=None, device=None)
deepspeed/comm/torch.py:429
↓ 3 callersMethodbuild
Build the stored specification.
deepspeed/runtime/pipe/module.py:69
↓ 3 callersMethodbuild_atoms
Build the atoms for this module. This is not a strict requirement for the class, so this method is a no-op by default rather than abs
deepspeed/inference/v2/modules/interfaces/attention_base.py:51
↓ 3 callersFunctionbuild_config
(tp_size, use_compile_pass, gather_output_head=False)
tests/unit/compile/test_tp_compile.py:84
↓ 3 callersFunctionbuild_engine
(tp_size, use_compile_pass, gather_output_head=False)
tests/unit/compile/test_tp_compile.py:121
↓ 3 callersMethodbuild_mpt_alibi_tensor
(self, heads, sequence_length, alibi_bias_max=8, device=None)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:754
↓ 3 callersFunctioncan_send_recv
()
deepspeed/runtime/pipe/p2p.py:21
↓ 3 callersFunctioncheapest
Estimate every candidate and keep the cheapest. Each candidate is a way to run the same move, as the stages ``estimate_seconds`` takes. A tie goe
deepspeed/checkpoint/affine_transfer_cost.py:132
↓ 3 callersMethodcheckpoint_event_epilogue
(self)
deepspeed/runtime/zero/stage3.py:4281
↓ 3 callersMethodcheckpoint_event_prologue
(self)
deepspeed/runtime/zero/stage3.py:4278
↓ 3 callersFunctioncleanup_compiled_backward_state
Release engine-owned process-global compiled-backward state.
deepspeed/compile/backend.py:81
↓ 3 callersMethodclear_selected_mv
(self)
deepspeed/ops/adam/zenflow_torch_adam.py:89
↓ 3 callersFunctionclone_tensors_for_torch_save
Returns a copy of ``item`` with all enclosed tensors replaced by clones on a specified device. Works on individual tensors, and tensors conta
deepspeed/checkpoint/utils.py:41
↓ 3 callersMethodclose
(self)
deepspeed/io/fast_file_writer.py:94
← previousnext →1,601–1,700 of 15,468, ranked by callers