MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_sparse_encode
Place every routed token in its expert slot, returning the [e, c, m] buffer. Inverting the routing map first turns the copy into a single gather.
deepspeed/moe/sharded_moe.py:188
↓ 2 callersMethod_splice_visual_into_text
Replace image placeholder positions in *text_embeds* with *visual_embeds*. This is intentionally architecture-specific. The default raises
deepspeed/sequence/autosp_fusion.py:155
↓ 2 callersFunction_split_affinity
Split a rank's core list into (zf_affinity, pt_affinity): reserve the first ceil(pt_reserved_cores_perc * n) cores for the training thread and giv
deepspeed/runtime/zenflow/zenflow_utils.py:73
↓ 2 callersMethod_split_by_partition_dtype
(self, params_group)
deepspeed/runtime/zero/stage3.py:1246
↓ 2 callersFunction_split_plan_from_expert_counts
Build a SplitPlan from a global per-expert token histogram (ep_size > 1). A single all-to-all exchanges the whole ``[ep_size, E_local]`` count ma
deepspeed/module_inject/auto_ep_layer.py:185
↓ 2 callersFunction_split_plan_received
Rows of the matrix rank ``ep_rank`` receives from the counts all-to-all.
tests/unit/v1/moe/test_autoep_unit.py:1654
↓ 2 callersFunction_stale_wait_cycle
Drive the coordinator's registration pattern by hand. __all_gather_params_ stores ONE handle object under EVERY parameter of a gather group, and
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:21
↓ 2 callersMethod_start_continuous_profile
(self)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1067
↓ 2 callersFunction_step
(engine, case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:111
↓ 2 callersFunction_storage_id
(tensor)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:28
↓ 2 callersMethod_stream_context
(self, stream)
deepspeed/runtime/activation_checkpointing/offload_activations.py:110
↓ 2 callersMethod_supported_optims
(self)
deepspeed/runtime/engine.py:2060
↓ 2 callersFunction_supported_sequence_length
(config: Any)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:72
↓ 2 callersMethod_swap_in_if_offloaded
Read an NVMe-offloaded partition back into memory. The swapper leaves ``ds_tensor.data`` as a 0-dim placeholder while a partition is on NVMe.
deepspeed/ops/adam/zenflow_torch_adam.py:426
↓ 2 callersMethod_swap_out_gradients
(self, parameter, gradient_offsets, gradient_tensors, gradient_swapper)
deepspeed/runtime/swap_tensor/optimizer_utils.py:256
↓ 2 callersMethod_swap_out_offload_fp32_gradients
(self, offload_fp32_gradients, offload_fp32_offsets)
deepspeed/runtime/zero/stage3.py:1511
↓ 2 callersMethod_swap_out_optimizer_state
(self, aio_handle, parameter, swap_in_op)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:205
↓ 2 callersMethod_swap_out_optimizer_state
(self, swap_info)
deepspeed/runtime/swap_tensor/partitioned_optimizer_swapper.py:100
↓ 2 callersMethod_swap_out_unpinned_tensors
(self, aio_handle, unpinned_tensors, dest_paths, pinned_buffers)
deepspeed/runtime/swap_tensor/optimizer_utils.py:441
↓ 2 callersFunction_swiglu_clamped_eager
Pure-PyTorch reference used as the non-Triton fallback.
deepspeed/ops/triton_ops/swiglu_triton.py:438
↓ 2 callersFunction_swiglu_eager
Pure-PyTorch reference used as the non-Triton fallback.
deepspeed/ops/triton_ops/swiglu_triton.py:203
↓ 2 callersMethod_sync_copy_streams
(self)
deepspeed/runtime/activation_checkpointing/offload_activations.py:287
↓ 2 callersMethod_sync_selective_optimizer_lr
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:601
↓ 2 callersMethod_synchronize_tied_weights
(self)
deepspeed/runtime/pipe/module.py:471
↓ 2 callersMethod_take_model_step
(self, lr_kwargs)
deepspeed/runtime/engine.py:3588
↓ 2 callersFunction_tensor_digest_words
(tensor: torch.Tensor)
deepspeed/moe/ep_tp_dispatch.py:89
↓ 2 callersFunction_tensor_kwargs
Names of the keyword arguments that hold a tensor.
deepspeed/runtime/hybrid_engine_graph.py:34
↓ 2 callersFunction_test_activation_checkpoint_ordering
(module, expected_ordering, *inputs)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:87
↓ 2 callersFunction_test_single_mapping_helper
(n_tokens: int, n_experts: int, assigned_exper
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:60
↓ 2 callersFunction_tiny_llama
(device)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:482
↓ 2 callersFunction_to
(v, device)
deepspeed/compile/profilers/graph_profile.py:30
↓ 2 callersMethod_torch_pin_memory
(self, tensor)
accelerator/hpu_accelerator.py:234
↓ 2 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:2369
↓ 2 callersFunction_train_moe
(config, hidden_dim, num_chunks, num_steps, use_no_sync, ep_size=1, seed=42)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:277
↓ 2 callersFunction_triton_attention
(qkv, input_mask, layer_past, alibi,
deepspeed/ops/transformer/inference/triton/attention.py:184
↓ 2 callersFunction_triton_edge_case_logits
(dtype)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:525
↓ 2 callersFunction_triton_packed_flash
(qkv, head_size, mask, sm_scale, causal=False, add_mask=True)
deepspeed/ops/transformer/inference/triton/attention.py:319
↓ 2 callersFunction_triton_softmax_stats
(logits_2d_list, tp_group, local_stats=None)
deepspeed/sequence/vocab_parallel_ops.py:104
↓ 2 callersFunction_two_group_adam
()
tests/unit/runtime/test_lr_schedulers.py:820
↓ 2 callersMethod_unassign_params
(self, tensor_id)
deepspeed/runtime/zero/contiguous_memory_allocator.py:143
↓ 2 callersMethod_under_sources
(self, rel_posix: str)
ci/tests_fetcher.py:316
↓ 2 callersFunction_uneven_vocab_engine
A vocabulary head split 101 ways over `tp_size` ranks, so the shards are uneven.
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1852
↓ 2 callersMethod_unfuse_lora_layer
(self, layer_id)
deepspeed/runtime/hybrid_engine.py:168
↓ 2 callersMethod_unpack_int4
Unpack int8 bytes into int64 nibbles, sign-extending each one.
op_builder/npu/quantizer.py:100
↓ 2 callersMethod_unregister_device
(begin, device_registered)
deepspeed/utils/pin_memory.py:150
↓ 2 callersFunction_unsupported_cases
()
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:205
↓ 2 callersMethod_update_inflight_swap_in
(self, params, swap_in_buffers, inflight_numel)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:280
↓ 2 callersMethod_update_scale
(self, has_overflow=False)
deepspeed/runtime/zero/stage3.py:3408
↓ 2 callersMethod_update_static_causal_attention
(static_attention, static_causal_attention)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:835
↓ 2 callersMethod_upstream_stage
(self, phase)
deepspeed/runtime/pipe/dualpipev.py:171
↓ 2 callersMethod_valid_stage
(self, stage_id)
deepspeed/runtime/pipe/schedule.py:83
↓ 2 callersFunction_validate_accelerator
(accel_obj)
accelerator/real_accelerator.py:28
↓ 2 callersFunction_validate_block_rows
(block_rows: int | None)
deepspeed/runtime/chunked_cross_entropy.py:95
↓ 2 callersFunction_validate_config_values
(config_name, config_dict, valid_values)
deepspeed/runtime/model_checkpointing/config.py:22
↓ 2 callersFunction_validate_final_schedule_fingerprint
In scheduler debug mode, fail every rank when final graph order diverges.
deepspeed/compile/passes/zero3_compile.py:157
↓ 2 callersMethod_validate_indices
(self, pp_index, tp_index)
deepspeed/checkpoint/reshape_meg_2d.py:48
↓ 2 callersMethod_validate_rank
(self, rank)
deepspeed/checkpoint/affine.py:255
↓ 2 callersFunction_validate_segment
(segment: TransferSegment, ndim: int)
deepspeed/checkpoint/affine_transfer_executor.py:196
↓ 2 callersFunction_validate_tensor_cast_properties
(typed_tensor, byte_tensor)
tests/unit/utils/test_byte_cast.py:17
↓ 2 callersMethod_validate_vocab_parallel_layer
(self, child, name)
deepspeed/module_inject/auto_tp.py:748
↓ 2 callersFunction_validate_zero3_model_optim_rank_sets
(model_files, optim_files)
deepspeed/checkpoint/ds_to_universal.py:717
↓ 2 callersFunction_validate_zero3_partitioned_autoep_metadata
(autoep_metadata, require_partitioned=True)
deepspeed/checkpoint/ds_to_universal.py:668
↓ 2 callersMethod_wait_async_split_plan
(self, pending: _PendingSplitPlan)
deepspeed/module_inject/auto_ep_layer.py:757
↓ 2 callersFunction_warmup_mmap_file
(path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:331
↓ 2 callersFunction_was_replaced
(param)
deepspeed/runtime/engine.py:322
↓ 2 callersFunction_weight_ndim
Number of dimensions of a layer's weight. A weight partitioned by ``deepspeed.zero.Init`` holds an empty 1-D placeholder, so its original shape, `
deepspeed/module_inject/auto_tp.py:201
↓ 2 callersMethod_write
(self, num_bytes)
deepspeed/io/mock_file_writer.py:46
↓ 2 callersFunction_write_checkpoint_layout
(tmpdir, parallel_dimensions, autoep_metadata=None)
tests/unit/checkpoint/test_reshape_checkpoint.py:22
↓ 2 callersMethod_write_from_tensor
(self, buffer_tensor)
deepspeed/io/fast_file_writer.py:188
↓ 2 callersMethod_writeback_gradients
Persist a parameter's gradient partitions, whichever way they are stored.
deepspeed/runtime/swap_tensor/optimizer_utils.py:212
↓ 2 callersFunction_zero0_baseline_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:228
↓ 2 callersFunction_zero2_baseline_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:214
↓ 2 callersFunction_zero3_bounds
(numel, partition_numel, index)
deepspeed/checkpoint/zero_affine.py:50
↓ 2 callersFunction_zero3_config
(dtype)
tests/unit/runtime/zero/test_zero_late_module_attach.py:34
↓ 2 callersFunction_zero3_local_numel
(param)
deepspeed/checkpoint/zero_affine.py:97
↓ 2 callersFunction_zero3_optimizer_offloaded
(param)
deepspeed/checkpoint/zero_affine.py:161
↓ 2 callersFunction_zero3_parameter_guard_metadata
(param)
deepspeed/compile/patch_fake_tensor.py:49
↓ 2 callersFunction_zero3_rank_from_file
(path)
deepspeed/checkpoint/ds_to_universal.py:617
↓ 2 callersMethod_zero3_work_remaining
Return a rendezvous over the group used for ZeRO-3 parameter gathers.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1349
↓ 2 callersMethod_zero_init_param
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1195
↓ 2 callersFunction_zero_params_with_collective_stubs
(*ds_ids)
tests/unit/v1/compile/test_z3_eager_fallback.py:498
↓ 2 callersFunction_zero_partitioned_param_info
(unpartitioned_numel, world_size)
deepspeed/checkpoint/ds_to_universal.py:604
↓ 2 callersMethodabsolute_name
(self)
op_builder/gds.py:17
↓ 2 callersMethodabsolute_name
(self)
op_builder/xpu/async_io.py:19
↓ 2 callersMethodaccumulate
csrc/aio/common/deepspeed_aio_types.cpp:47
↓ 2 callersFunctionacquire_aws_instance
( regions: Sequence[AwsRegionConfig], run_identity: str, run_command: Any = _default_command,
ci/torch_latest.py:916
↓ 2 callersFunctionadd_gather_and_release
Insert gather/wait lifetimes and attach releases to ordinary parameter consumers.
deepspeed/compile/passes/zero3_compile.py:335
↓ 2 callersMethodadd_item_numpy
(self, np_array)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:596
↓ 2 callersFunctionadd_pointer_offset
Adds a pointer offset in units of Element
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:289
↓ 2 callersFunctionadd_pre_backward_hook
(hook)
deepspeed/compile/util.py:64
↓ 2 callersFunctionadd_z1_reduce_bw
(gm: GraphModule, graph_id: int, graph_order: List[Tuple[int, bool]], param_manager)
deepspeed/compile/passes/zero_1_and_2_compile.py:36
↓ 2 callersFunctionadd_z1_reduce_fw
(gm: GraphModule, graph_id: int, profiling_results, param_manager, use_z2=False)
deepspeed/compile/passes/zero_1_and_2_compile.py:23
↓ 2 callersFunctionalign_dense_tensors
(tensor_list, alignment)
deepspeed/runtime/utils.py:1069
↓ 2 callersMethodall_gather_scalar
(self, value, dp_group)
deepspeed/runtime/engine.py:4086
↓ 2 callersFunctionall_reduce_outer_loop
csrc/cpu/comm/shm.cpp:680
↓ 2 callersFunctionallclose
(x, y)
tests/unit/ops/transformer/inference/test_softmax.py:15
↓ 2 callersMethodallgatherParam
csrc/compile/z3.cpp:119
↓ 2 callersMethodallocate_blocks
(self, n_blocks: int, cache_group: int = 0)
deepspeed/inference/v2/ragged/ragged_manager.py:203
↓ 2 callersMethodallocate_workspace
(self, size)
deepspeed/model_implementations/transformers/ds_transformer.py:90
↓ 2 callersMethodallreduce_and_copy
(self, small_bucket, dp_group, dp_world_size=None)
deepspeed/runtime/engine.py:3906
← previousnext →2,301–2,400 of 14,579, ranked by callers