MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethod_torch_is_pinned
(self, tensor)
accelerator/abstract_accelerator.py:290
↓ 1 callersMethod_torch_pin_memory
(self, tensor)
tests/unit/v1/accelerator/test_accelerator.py:121
↓ 1 callersMethod_torch_pin_memory
(self, tensor)
accelerator/hpu_accelerator.py:234
↓ 1 callersMethod_torch_pin_memory
(self, tensor)
accelerator/xpu_accelerator.py:403
↓ 1 callersMethod_torch_pin_memory
(self, tensor)
accelerator/abstract_accelerator.py:284
↓ 1 callersFunction_torch_reduce_scatter_fn
(input_tensor: Tensor, output_tensor: Tensor, group=None, async_op=False, prof=False)
deepspeed/runtime/comm/coalesced_collectives.py:22
↓ 1 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:929
↓ 1 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:1215
↓ 1 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:1316
↓ 1 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:2333
↓ 1 callersMethod_tp_partition_unsupported_layout
Cut a fused layout that has no per-sub-parameter description.
deepspeed/module_inject/layers.py:1393
↓ 1 callersMethod_track_checkpointed_parameters
(self)
deepspeed/runtime/reflow/reflow_stage3.py:130
↓ 1 callersMethod_track_numel
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:173
↓ 1 callersFunction_train
(engine, hidden_dim, steps)
tests/unit/checkpoint/test_universal_checkpoint.py:289
↓ 1 callersFunction_train
(config, checkpointing)
tests/unit/v1/zero/test_zero3_nvme_param_prefetch.py:81
↓ 1 callersFunction_train
(config, dtype)
tests/unit/v1/zero/test_zero3_nvme_offload.py:66
↓ 1 callersMethod_train
(self, pin_memory, ratio)
tests/unit/v1/zero/test_zero.py:1947
↓ 1 callersMethod_train
(self, immediate_grad_update, batches, hidden_dim, seed)
tests/unit/v1/half_precision/test_bf16.py:517
↓ 1 callersFunction_train_and_detach_masters
(engine)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:78
↓ 1 callersFunction_train_save_convert_autoep_zero3
(tmpdir, *, tag, ep_size, num_experts=4)
tests/unit/v1/moe/test_autoep_checkpoint.py:115
↓ 1 callersMethod_train_schedule
(self)
deepspeed/runtime/pipe/engine.py:500
↓ 1 callersMethod_train_step
(self, engine, batch)
tests/unit/v1/zero/test_offload_states.py:298
↓ 1 callersFunction_train_two_windows
(engine, tp_size)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:729
↓ 1 callersFunction_trainable_gradients
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:628
↓ 1 callersFunction_transpose
(x, heads=1, mp_replace=None)
deepspeed/module_inject/policy.py:114
↓ 1 callersMethod_transpose_for_context
(self, x)
deepspeed/ops/transformer/inference/ds_attention.py:194
↓ 1 callersFunction_transpose_fused_qkvw
(src, mp_size, fused_qkv_type=None, module=None)
deepspeed/module_inject/fusedqkv_utils.py:249
↓ 1 callersMethod_traverse_and_register_hooks
Recursively traverse outputs to find tensors with grad_fn and register hooks. Args: outputs: Can be a tensor, tuple, lis
deepspeed/runtime/utils.py:1411
↓ 1 callersMethod_trim_left
Shift the cache contents left while preserving tensor addresses.
deepspeed/utils/static_cache.py:188
↓ 1 callersMethod_triton_autotune
(min_seqlen, max_seqlen, head_size,
deepspeed/ops/transformer/inference/triton/attention.py:109
↓ 1 callersMethod_triton_autotune
(min_seqlen, max_seqlen, hidden_size, dtype=torch.float16)
deepspeed/ops/transformer/inference/op_binding/linear.py:51
↓ 1 callersMethod_triton_autotune
(min_seqlen, max_seqlen, hidden_size, dtype=torch.float16)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:48
↓ 1 callersMethod_triton_autotune
(min_seqlen, max_seqlen, hidden_size, dtype=torch.float16)
deepspeed/ops/transformer/inference/op_binding/vector_matmul.py:45
↓ 1 callersFunction_triton_entropy
(logits, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:128
↓ 1 callersFunction_triton_kl_div
(a_logits, b_logits, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:147
↓ 1 callersFunction_triton_ops_matmul_early_config_prune
(configs, named_args)
deepspeed/ops/transformer/inference/triton/triton_matmul_kernel.py:15
↓ 1 callersFunction_ulp_distance_statistics
(actual, expected, rows_per_chunk)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:60
↓ 1 callersFunction_ulp_stats
(actual, expected)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:110
↓ 1 callersMethod_unaligned_drain
(self, unaligned_tensor)
deepspeed/io/fast_file_writer.py:163
↓ 1 callersFunction_unbalanced_offs
Cumulative row offsets with unbalanced (0.2x..1.8x avg) tokens per expert.
tests/benchmarks/group_gemm_bench.py:30
↓ 1 callersFunction_undo_logits_seq_slices
Remove the sequence slices between the logits and a cross entropy, as each rank must keep the logits of its whole shard. Return the window ``
deepspeed/compile/passes/sp_compile.py:231
↓ 1 callersFunction_union_of_two
(first, second)
deepspeed/checkpoint/affine.py:965
↓ 1 callersFunction_unit_stride
(tensor)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:201
↓ 1 callersFunction_unpatch_gradient_checkpointing_layer_marker
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:369
↓ 1 callersFunction_unpermute
Reverse the permutation produced by :func:`_permute`.
deepspeed/moe/ep_kernels.py:431
↓ 1 callersMethod_unpin_offload_buffers
(self)
deepspeed/runtime/zero/stage3.py:585
↓ 1 callersMethod_unpin_offload_buffers
(self)
deepspeed/runtime/zero/stage_1_and_2.py:780
↓ 1 callersFunction_unwrap_staticmethod
(method)
deepspeed/compile/patch_compiled_func.py:19
↓ 1 callersMethod_update_full_gradient_partition
(self, param, group, update_func)
deepspeed/runtime/reflow/reflow_stage3.py:1934
↓ 1 callersFunction_update_mask
(reference_gradient)
tests/unit/v1/moe/test_autoep_fused_parity.py:221
↓ 1 callersFunction_update_only
The pre-orthogonalization update muon_update forms, without mutating the caller's tensors.
tests/unit/runtime/zero/test_per_head_muon.py:67
↓ 1 callersFunction_update_out_and_lse
( out: torch.Tensor, lse: torch.Tensor, block_out: torch.Tensor, block_lse: torch.Tensor, )
deepspeed/sequence/fpdt_layer.py:41
↓ 1 callersMethod_update_partition_count
(self, sd)
deepspeed/checkpoint/zero_checkpoint.py:138
↓ 1 callersMethod_update_scale
(self, has_overflow=False)
deepspeed/runtime/zero/stage_1_and_2.py:3424
↓ 1 callersMethod_update_storage_to_flattened_tensor
(self, tensor_list, flat_tensor)
deepspeed/runtime/bf16_optimizer.py:379
↓ 1 callersMethod_update_wall_clock_timers
(self)
deepspeed/runtime/engine.py:3859
↓ 1 callersMethod_update_write_stats
(self, num_bytes, secs_latency)
deepspeed/io/fast_file_writer.py:183
↓ 1 callersMethod_updates
The change of this rank's fp32 partitions after each of 3 steps. Gathering the params instead would interleave with DeepCompile's own gathers.
tests/unit/v1/zero/test_zero3_unused_param_grads.py:316
↓ 1 callersFunction_use_jsd_triton
(student, teacher)
deepspeed/sequence/vocab_parallel_ops.py:398
↓ 1 callersMethod_uses_autoep_zero3_partitioned_experts
(autoep_layers)
deepspeed/runtime/engine.py:4663
↓ 1 callersFunction_validate
(mat_a: torch.Tensor, mat_b: torch.Tensor, offs: torch.Tensor, trans_b: bool)
deepspeed/ops/triton_ops/group_gemm_triton.py:288
↓ 1 callersFunction_validate_aliases
Refuse a region this process writes that it also reads, or writes twice; return the local copies to run. A local copy whose source and target are
deepspeed/checkpoint/affine_transfer_executor.py:264
↓ 1 callersFunction_validate_attr_name
(field_name: str, value, *, allow_dot: bool = False)
deepspeed/module_inject/auto_ep_config.py:332
↓ 1 callersFunction_validate_auto_cast_settings
(engine)
deepspeed/runtime/torch_autocast.py:30
↓ 1 callersFunction_validate_autoep_expert_shapes
(model_states_by_rank, metadata_by_rank)
deepspeed/checkpoint/ds_to_universal.py:734
↓ 1 callersFunction_validate_buffer
csrc/aio/common/deepspeed_aio_common.cpp:364
↓ 1 callersFunction_validate_buffers
(plan: TransferPlan, source_buffers: Mapping[int, torch.Tensor], target_buffers: Mapping
deepspeed/checkpoint/affine_transfer_executor.py:212
↓ 1 callersFunction_validate_checkout_symlinks
(destination: Path)
ci/torch_latest.py:430
↓ 1 callersMethod_validate_continuous_graph_options
(self, prompt_len, sampling)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1015
↓ 1 callersMethod_validate_continuous_inputs
(self, request, sampling, max_batch_size)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1185
↓ 1 callersMethod_validate_destinations
Check that dense intervals and strided boxes stay within the shard and do not overlap.
deepspeed/checkpoint/affine.py:250
↓ 1 callersMethod_validate_folder
(self, dir, pipeline_parallel)
deepspeed/checkpoint/deepspeed_checkpoint.py:354
↓ 1 callersFunction_validate_folder_mapping
(args)
deepspeed/nvme/ds_aio_args.py:43
↓ 1 callersMethod_validate_hf_model_type
( self, preset_name: str, preset: MoEModelPreset, model_type: str | None,
deepspeed/module_inject/auto_ep_presets/base.py:193
↓ 1 callersFunction_validate_holders
A piece's declared holders must cover exactly its logical box on every named rank. Most maps pass without comparing pieces pairwise: when no two
deepspeed/checkpoint/affine_transfer.py:419
↓ 1 callersFunction_validate_holders_pairwise
(frames: List[_Frame], side: str, limits: PlanBudget)
deepspeed/checkpoint/affine_transfer.py:439
↓ 1 callersFunction_validate_preset_compatibility
( preset_name: str, preset: MoEModelPreset, model_config, )
deepspeed/module_inject/auto_ep_presets/registry.py:188
↓ 1 callersFunction_validate_registered_preset_adapters
Fail fast if a registered preset references an adapter that is not registered.
deepspeed/module_inject/auto_ep_presets/registry.py:38
↓ 1 callersMethod_validate_remote_device
(self, remote_device, ds_config)
deepspeed/runtime/zero/partition_parameters.py:1212
↓ 1 callersMethod_validate_replicated_kv_tp_width
Reject a replicated-K/V layout sharded across more ranks than query heads. Runs after custom config, HF tp_plan, or heuristic AutoTP has been
deepspeed/module_inject/auto_tp.py:442
↓ 1 callersMethod_validate_row_parallel_head_ties
(self, head)
deepspeed/module_inject/auto_tp.py:687
↓ 1 callersFunction_validate_runtime_layer
(entry, placement, expected_runtime_layers)
deepspeed/checkpoint/autoep_zero3_metadata.py:148
↓ 1 callersMethod_validate_shape
(self, input)
deepspeed/ops/fp_quantizer/quantize.py:58
↓ 1 callersMethod_validate_shape_format
(self)
deepspeed/module_inject/autotp_config.py:151
↓ 1 callersMethod_validate_shard_lengths
(self, query, key, value, batch_dim_idx)
deepspeed/sequence/layer.py:520
↓ 1 callersFunction_validate_superoffload_accelerator
Validate that the current accelerator is compatible with SuperOffload.
deepspeed/runtime/superoffload/superoffload_stage3.py:20
↓ 1 callersFunction_validate_target
(value: str)
ci/torch_latest.py:339
↓ 1 callersMethod_validate_transformers_version
( self, preset_name: str, preset: MoEModelPreset, model_type: str | None,
deepspeed/module_inject/auto_ep_presets/base.py:210
↓ 1 callersFunction_validate_vocab_shard_bounds
(local_vocab_size, vocab_start_index, vocab_end_index, tp_group, device)
deepspeed/sequence/cross_entropy.py:143
↓ 1 callersFunction_validated_placement
(entry)
deepspeed/checkpoint/autoep_zero3_metadata.py:128
↓ 1 callersFunction_validated_storage_holders
(holders_by_ep_rank, entries_by_rank)
deepspeed/checkpoint/autoep_affine.py:293
↓ 1 callersFunction_validation_outcome
(affine_map)
tests/unit/checkpoint/test_affine_shard_map.py:615
↓ 1 callersFunction_verify_staircase_increase
(values, step_size)
tests/unit/runtime/test_lr_schedulers.py:34
↓ 1 callersMethod_wait_for_async_operations
Wait for all pending asynchronous CPU optimizer operations to complete with timeout error. Args: timeout_seconds (int): Maximum t
deepspeed/runtime/superoffload/superoffload_stage3.py:276
↓ 1 callersMethod_wait_for_drain
(self)
deepspeed/io/double_io_buffer.py:78
↓ 1 callersMethod_wait_for_event_with_timeout
Wait for save_event with timeout and process health checks. Returns True if event was set, raises RuntimeError if process died or timeout occ
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:124
↓ 1 callersMethod_wait_for_optimizer_process
Block until the optimizer process signals the submitted step is done. The wait wakes up periodically to check the optimizer process is still
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:696
↓ 1 callersMethod_wait_for_single_async_result
Wait for a single asynchronous CPU-Adam optimizer operation with timeout. Args: event_type (str): Type of operation expected ('ad
deepspeed/runtime/superoffload/superoffload_stage3.py:310
↓ 1 callersMethod_wait_for_swap_complete
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:138
↓ 1 callersFunction_warm_compile_step
(engine, batch, checkpoint_root=False)
tests/unit/v1/moe/test_autoep_grad_parity.py:297
← previousnext →4,501–4,600 of 15,468, ranked by callers