Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
↓ 1 callers
Function
_tp_payload_for_backward_parity
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:109
↓ 1 callers
Method
_track_numel
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:173
↓ 1 callers
Function
_train
(engine, hidden_dim, steps)
tests/unit/checkpoint/test_universal_checkpoint.py:289
↓ 1 callers
Function
_train
(config, checkpointing)
tests/unit/v1/zero/test_zero3_nvme_param_prefetch.py:81
↓ 1 callers
Function
_train
(config)
tests/unit/v1/zero/test_zero3_nvme_offload.py:66
↓ 1 callers
Method
_train
(self, pin_memory, ratio)
tests/unit/v1/zero/test_zero.py:1928
↓ 1 callers
Method
_train
(self, immediate_grad_update, batches, hidden_dim, seed)
tests/unit/v1/half_precision/test_bf16.py:517
↓ 1 callers
Function
_train_and_detach_masters
(engine)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:78
↓ 1 callers
Function
_train_save_convert_autoep_zero3
(tmpdir, *, tag, ep_size, num_experts=4)
tests/unit/v1/moe/test_autoep_checkpoint.py:115
↓ 1 callers
Method
_train_schedule
(self)
deepspeed/runtime/pipe/engine.py:500
↓ 1 callers
Function
_train_two_windows
(engine, tp_size)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:729
↓ 1 callers
Function
_trainable_gradients
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:628
↓ 1 callers
Function
_transpose
(x, heads=1, mp_replace=None)
deepspeed/module_inject/policy.py:114
↓ 1 callers
Method
_transpose_for_context
(self, x)
deepspeed/ops/transformer/inference/ds_attention.py:194
↓ 1 callers
Function
_transpose_fused_qkvw
(src, mp_size, fused_qkv_type=None, module=None)
deepspeed/module_inject/fusedqkv_utils.py:184
↓ 1 callers
Method
_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 callers
Method
_trim_left
Shift the cache contents left while preserving tensor addresses.
deepspeed/utils/static_cache.py:174
↓ 1 callers
Method
_triton_autotune
(min_seqlen, max_seqlen, head_size,
deepspeed/ops/transformer/inference/triton/attention.py:109
↓ 1 callers
Method
_triton_autotune
(min_seqlen, max_seqlen, hidden_size, dtype=torch.float16)
deepspeed/ops/transformer/inference/op_binding/linear.py:51
↓ 1 callers
Method
_triton_autotune
(min_seqlen, max_seqlen, hidden_size, dtype=torch.float16)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:48
↓ 1 callers
Method
_triton_autotune
(min_seqlen, max_seqlen, hidden_size, dtype=torch.float16)
deepspeed/ops/transformer/inference/op_binding/vector_matmul.py:45
↓ 1 callers
Function
_triton_entropy
(logits, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:128
↓ 1 callers
Function
_triton_kl_div
(a_logits, b_logits, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:147
↓ 1 callers
Function
_triton_ops_matmul_early_config_prune
(configs, named_args)
deepspeed/ops/transformer/inference/triton/triton_matmul_kernel.py:15
↓ 1 callers
Function
_ulp_distance_statistics
(actual, expected, rows_per_chunk)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:60
↓ 1 callers
Function
_ulp_stats
(actual, expected)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:87
↓ 1 callers
Method
_unaligned_drain
(self, unaligned_tensor)
deepspeed/io/fast_file_writer.py:163
↓ 1 callers
Function
_unbalanced_offs
Cumulative row offsets with unbalanced (0.2x..1.8x avg) tokens per expert.
tests/benchmarks/group_gemm_bench.py:30
↓ 1 callers
Function
_unit_stride
(tensor)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:201
↓ 1 callers
Function
_unpatch_gradient_checkpointing_layer_marker
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:369
↓ 1 callers
Function
_unpermute
Reverse the permutation produced by :func:`_permute`.
deepspeed/moe/ep_kernels.py:431
↓ 1 callers
Method
_unpin_offload_buffers
(self)
deepspeed/runtime/zero/stage3.py:555
↓ 1 callers
Method
_unpin_offload_buffers
(self)
deepspeed/runtime/zero/stage_1_and_2.py:780
↓ 1 callers
Function
_unwrap_staticmethod
(method)
deepspeed/compile/patch_compiled_func.py:19
↓ 1 callers
Function
_update_mask
(reference_gradient)
tests/unit/v1/moe/test_autoep_fused_parity.py:181
↓ 1 callers
Function
_update_only
The pre-orthogonalization update muon_update forms, without mutating the caller's tensors.
tests/unit/runtime/zero/test_per_head_muon.py:65
↓ 1 callers
Function
_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 callers
Method
_update_partition_count
(self, sd)
deepspeed/checkpoint/zero_checkpoint.py:138
↓ 1 callers
Method
_update_scale
(self, has_overflow=False)
deepspeed/runtime/zero/stage_1_and_2.py:3398
↓ 1 callers
Method
_update_storage_to_flattened_tensor
(self, tensor_list, flat_tensor)
deepspeed/runtime/bf16_optimizer.py:379
↓ 1 callers
Method
_update_wall_clock_timers
(self)
deepspeed/runtime/engine.py:3777
↓ 1 callers
Method
_update_write_stats
(self, num_bytes, secs_latency)
deepspeed/io/fast_file_writer.py:183
↓ 1 callers
Function
_use_jsd_triton
(student, teacher)
deepspeed/sequence/vocab_parallel_ops.py:398
↓ 1 callers
Method
_uses_autoep_zero3_partitioned_experts
(autoep_layers)
deepspeed/runtime/engine.py:4581
↓ 1 callers
Function
_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 callers
Function
_validate_aliases
(requests: Sequence[TransferRequest])
deepspeed/checkpoint/affine_transfer_executor.py:245
↓ 1 callers
Function
_validate_attr_name
(field_name: str, value, *, allow_dot: bool = False)
deepspeed/module_inject/auto_ep_config.py:269
↓ 1 callers
Function
_validate_auto_cast_settings
(engine)
deepspeed/runtime/torch_autocast.py:30
↓ 1 callers
Function
_validate_autoep_expert_shapes
(model_states_by_rank, metadata_by_rank)
deepspeed/checkpoint/ds_to_universal.py:731
↓ 1 callers
Function
_validate_buffer
csrc/aio/common/deepspeed_aio_common.cpp:364
↓ 1 callers
Function
_validate_buffers
(plan: TransferPlan, source_buffers: Mapping[int, torch.Tensor], target_buffers: Mapping
deepspeed/checkpoint/affine_transfer_executor.py:213
↓ 1 callers
Function
_validate_checkout_symlinks
(destination: Path)
ci/torch_latest.py:430
↓ 1 callers
Method
_validate_continuous_graph_options
(self, prompt_len, sampling)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:768
↓ 1 callers
Method
_validate_continuous_inputs
(self, requests, sampling, max_batch_size)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:929
↓ 1 callers
Method
_validate_destinations
Check that dense intervals and strided boxes stay within the shard and do not overlap.
deepspeed/checkpoint/affine.py:269
↓ 1 callers
Method
_validate_folder
(self, dir, pipeline_parallel)
deepspeed/checkpoint/deepspeed_checkpoint.py:354
↓ 1 callers
Function
_validate_folder_mapping
(args)
deepspeed/nvme/ds_aio_args.py:43
↓ 1 callers
Function
_validate_folder_mapping
(args)
csrc/aio/py_test/ds_aio_args.py:43
↓ 1 callers
Method
_validate_hf_model_type
( self, preset_name: str, preset: MoEModelPreset, model_type: str | None,
deepspeed/module_inject/auto_ep_presets/base.py:189
↓ 1 callers
Function
_validate_holders
A piece's declared holders must cover exactly its logical box on every named rank.
deepspeed/checkpoint/affine_transfer.py:362
↓ 1 callers
Function
_validate_preset_compatibility
( preset_name: str, preset: MoEModelPreset, model_config, )
deepspeed/module_inject/auto_ep_presets/registry.py:188
↓ 1 callers
Function
_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 callers
Method
_validate_remote_device
(self, remote_device, ds_config)
deepspeed/runtime/zero/partition_parameters.py:1212
↓ 1 callers
Method
_validate_row_parallel_head_ties
(self, head)
deepspeed/module_inject/auto_tp.py:644
↓ 1 callers
Function
_validate_runtime_layer
(entry, placement, expected_runtime_layers)
deepspeed/checkpoint/autoep_zero3_metadata.py:148
↓ 1 callers
Method
_validate_shape
(self, input)
deepspeed/ops/fp_quantizer/quantize.py:58
↓ 1 callers
Method
_validate_shape_format
(self)
deepspeed/module_inject/autotp_config.py:151
↓ 1 callers
Function
_validate_superoffload_accelerator
Validate that the current accelerator is compatible with SuperOffload.
deepspeed/runtime/superoffload/superoffload_stage3.py:20
↓ 1 callers
Function
_validate_target
(value: str)
ci/torch_latest.py:339
↓ 1 callers
Method
_validate_transformers_version
( self, preset_name: str, preset: MoEModelPreset, model_type: str | None,
deepspeed/module_inject/auto_ep_presets/base.py:206
↓ 1 callers
Function
_validate_vocab_shard_bounds
(local_vocab_size, vocab_start_index, vocab_end_index, tp_group, device)
deepspeed/sequence/cross_entropy.py:143
↓ 1 callers
Function
_validated_placement
(entry)
deepspeed/checkpoint/autoep_zero3_metadata.py:128
↓ 1 callers
Function
_validated_storage_holders
(holders_by_ep_rank, entries_by_rank)
deepspeed/checkpoint/autoep_affine.py:293
↓ 1 callers
Function
_verify_staircase_increase
(values, step_size)
tests/unit/runtime/test_lr_schedulers.py:34
↓ 1 callers
Method
_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:275
↓ 1 callers
Method
_wait_for_drain
(self)
deepspeed/io/double_io_buffer.py:78
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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:309
↓ 1 callers
Method
_wait_for_swap_complete
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:138
↓ 1 callers
Function
_warm_compile_step
(engine, batch, checkpoint_root=False)
tests/unit/v1/moe/test_autoep_grad_parity.py:297
↓ 1 callers
Function
_warm_up_kernels
Compile, load and launch every DSA kernel once, forward and backward, for this module's shapes. With 128 threads (head blocks under 64 heads) the
deepspeed/models/glm_moe_dsa/attention.py:350
↓ 1 callers
Function
_warm_up_once
Run ``_warm_up_kernels`` once per device and kernel shape, then never again for this module. Only the 128-thread backward kernel needs it (see ``_
deepspeed/models/glm_moe_dsa/attention.py:330
↓ 1 callers
Method
_warn_listed_params_not_kept
(self, keep_pattern)
deepspeed/runtime/engine.py:1938
↓ 1 callers
Method
_warn_overridden_embedding_spec
(self, name)
deepspeed/module_inject/auto_tp.py:772
↓ 1 callers
Method
_warn_overridden_lm_head_spec
(self, name)
deepspeed/module_inject/auto_tp.py:759
↓ 1 callers
Function
_warp_rank
deepspeed/inference/v2/kernels/includes/reduction_utils.h:148
↓ 1 callers
Function
_warp_rank
csrc/includes/reduction_utils.h:152
↓ 1 callers
Function
_window_error
Relative max error of the window's gradient sum against the exact sum, read before step().
tests/unit/v1/zero/test_zero_offload_accum_precision.py:68
↓ 1 callers
Function
_with_no_progress_watchdog
(argv: Sequence[str])
ci/torch_latest.py:625
↓ 1 callers
Function
_world_size
(process_group=None)
deepspeed/compile/passes/zero3_compile.py:49
↓ 1 callers
Method
_write_monitor
(self)
deepspeed/runtime/engine.py:3812
↓ 1 callers
Function
_write_step_summary
Emit a GitHub job summary explaining the decision (#6).
ci/tests_fetcher.py:660
↓ 1 callers
Function
_write_tp_slice
(base_dir, param_name, tp_idx, state_name, tensor)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:390
↓ 1 callers
Function
_written_out
Each built-in form as the model code writes it, independent of the registry.
tests/unit/v1/moe/test_autoep_expert_activation.py:61
↓ 1 callers
Function
_zero12_values_equal
(left, right)
deepspeed/checkpoint/autoep_universal.py:282
↓ 1 callers
Function
_zero2_merge_frozen_params
(state_dict, zero_model_states)
deepspeed/utils/zero_to_fp32.py:270
↓ 1 callers
Function
_zero2_merge_trainable_params
(state_dict, world_size, fp32_flat_groups,
deepspeed/utils/zero_to_fp32.py:307
↓ 1 callers
Function
_zero3_bf16_autocast_config
()
tests/unit/runtime/zero/test_zero_autocast_mixed_dtype.py:22
↓ 1 callers
Function
_zero3_config
(*, gradient_accumulation_steps=1, dtype=torch.float32, module_granularity_threshold=0)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:75
← previous
next →
4,201–4,300 of 14,579, ranked by callers