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
↓ 5 callers
Function
get_backward_inputs
(frame_key=None)
deepspeed/compile/patch_compiled_func.py:113
↓ 5 callers
Method
get_bwd_mapping
(self, bw_graph: Graph)
deepspeed/compile/graph_param.py:61
↓ 5 callers
Method
get_checkpoint_info
(self, info_key=CHECKPOINT_INFO_KEY)
deepspeed/checkpoint/deepspeed_checkpoint.py:227
↓ 5 callers
Method
get_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:383
↓ 5 callers
Method
get_data_parallel_partitions
(self, tensor, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:2636
↓ 5 callers
Method
get_data_parallel_world_size
The number of pipelines.
deepspeed/runtime/pipe/topology.py:430
↓ 5 callers
Function
get_fp32_state_dict_from_zero_checkpoint
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training
deepspeed/utils/zero_to_fp32.py:614
↓ 5 callers
Function
get_fused_qkv_type
(module)
deepspeed/module_inject/fusedqkv_utils.py:44
↓ 5 callers
Method
get_gradient_for_reduction
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1287
↓ 5 callers
Method
get_hp_fragment
(self, optim_state_key=None)
deepspeed/utils/tensor_fragment.py:55
↓ 5 callers
Method
get_last_continuous_stats
Return cache and throughput statistics from the most recent continuous rollout.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1367
↓ 5 callers
Method
get_lr_ratio
(self)
deepspeed/runtime/lr_schedules.py:904
↓ 5 callers
Function
get_megatron_version
()
tests/unit/megatron_model.py:16
↓ 5 callers
Method
get_model_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:447
↓ 5 callers
Method
get_param_comm_dtype
(self, param)
deepspeed/runtime/zero/stage3.py:1625
↓ 5 callers
Method
get_sequence
Get the sequence descriptor for the given sequence id. If the sequence does not exist, then None is returned.
deepspeed/inference/v2/ragged/ragged_manager.py:123
↓ 5 callers
Method
get_sequence_parallel_world_size
(self)
tests/unit/v1/moe/test_autoep_unit.py:445
↓ 5 callers
Method
get_slice_parallel_group
(self)
deepspeed/runtime/pipe/topology.py:469
↓ 5 callers
Method
get_slice_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:463
↓ 5 callers
Method
get_total_macs
Returns the total MACs of the model. Args: as_string (bool, optional): whether to output the flops as string. Defaults to False.
deepspeed/profiling/flops_profiler/profiler.py:244
↓ 5 callers
Method
group_step
(self, group_to_paramlist)
deepspeed/ops/adam/zenflow_torch_adam.py:203
↓ 5 callers
Method
has_all_gather_into_tensor
(self)
deepspeed/comm/torch.py:302
↓ 5 callers
Method
has_gradients
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:63
↓ 5 callers
Method
inference_all_reduce
(self, tensor, op=ReduceOp.SUM, group=None)
deepspeed/comm/ccl.py:87
↓ 5 callers
Method
init_process_group
(self)
deepspeed/comm/backend.py:44
↓ 5 callers
Function
install_chunked_causal_lm_loss
Make a Hugging Face causal LM compute its training loss with :class:`ChunkedCausalLMLoss`. Only models whose ``loss_function`` is the stock ``For
deepspeed/runtime/chunked_cross_entropy.py:283
↓ 5 callers
Function
is_activation_to_checkpoint
Is an activation to be checkpointed
deepspeed/runtime/activation_checkpointing/checkpointing.py:377
↓ 5 callers
Function
is_autoep_zero3_partitioned_entry
(entry)
deepspeed/checkpoint/autoep_zero3_metadata.py:42
↓ 5 callers
Function
is_autotp_training_mode
()
deepspeed/module_inject/layers.py:176
↓ 5 callers
Method
is_deepcompile_enabled
(self)
deepspeed/runtime/engine.py:6104
↓ 5 callers
Method
is_first_stage
True if this process is in the first stage in the pipeline.
deepspeed/runtime/pipe/engine.py:510
↓ 5 callers
Function
is_profile_incomplete
(graph: Graph)
deepspeed/compile/profilers/graph_profile.py:81
↓ 5 callers
Method
is_record_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:189
↓ 5 callers
Method
is_swappable_tensor
(self, tensor=None, numel=None)
deepspeed/runtime/swap_tensor/optimizer_utils.py:225
↓ 5 callers
Method
kv_ptrs
Pointer to where the list of KV ids associated with a sequence are. If the device Tensor is requested, the Tensor is truncated to the
deepspeed/inference/v2/ragged/ragged_wrapper.py:260
↓ 5 callers
Function
legacy_uniform_autoep_placement_descriptor
Synthesize the legacy contiguous, uniform AutoEP placement.
deepspeed/checkpoint/autoep_affine.py:109
↓ 5 callers
Function
load_with_byte_offset
Loads a fragment from memory
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:323
↓ 5 callers
Method
load_with_pointer_offset
Loads a fragment from memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:812
↓ 5 callers
Method
log_timers
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:237
↓ 5 callers
Function
macs_to_string
(macs, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1123
↓ 5 callers
Function
make_cutlass_checkout
(path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:16
↓ 5 callers
Method
moe
Dispatch, a per-expert matmul over each expert's contiguous rows, weighting, combine.
tests/unit/module_inject/test_auto_ep_comm.py:892
↓ 5 callers
Method
needs_scaler
Check if this optimizer requires loss scaling for correct backward pass. Returns True if any of the following conditions are met:
deepspeed/runtime/base_optimizer.py:430
↓ 5 callers
Function
nest_affine_maps
Compose a layout map with a description of how each of its shards is stored. ``outer`` describes the parameter's layout: the shard each layout ra
deepspeed/checkpoint/affine.py:807
↓ 5 callers
Function
ns_compute_dtype
The dtype a Newton-Schulz iteration runs in, by method. `gram` uses fp16 for better precision than bf16, `standard` uses bf16, and either falls
deepspeed/runtime/zero/muon/original_muon.py:37
↓ 5 callers
Function
params_to_string
(params_num, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1169
↓ 5 callers
Function
parse_inclusion_exclusion
(resource_pool, inclusion, exclusion)
deepspeed/launcher/runner.py:373
↓ 5 callers
Method
populate_all_inference_policies
(self)
deepspeed/runtime/hybrid_engine.py:124
↓ 5 callers
Function
prepare_autosp_inputs
Prepare inputs for AutoSP by marking dynamic dimensions and tagging tensors. Args: input_id: Token IDs tensor (required) lab
deepspeed/compile/passes/sp_compile.py:24
↓ 5 callers
Function
prepare_step
(opt, param, master, monkeypatch, mock_collectives=True)
tests/unit/v1/zero/test_zero2_gradient_safety.py:410
↓ 5 callers
Function
reduce
(tensor, dst, op=ReduceOp.SUM, group=None, async_op=False,
deepspeed/comm/comm.py:639
↓ 5 callers
Method
reduce_independent_p_g_buckets_and_remove_grads
(self, param)
deepspeed/runtime/zero/stage3.py:1643
↓ 5 callers
Function
reduce_scatter_coalesced
simultaneously reduce-scatter a list of tensors - this can be done more efficiently than individual reduce scatter calls TODO. see if PyTorch
deepspeed/runtime/comm/coalesced_collectives.py:81
↓ 5 callers
Function
reference_entropy
(logits)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:25
↓ 5 callers
Function
register_external_parameter
Instruct DeepSpeed to coordinate ``parameter``'s collection and partitioning in the forward and backward passes of ``module``. This is used w
deepspeed/runtime/zero/partition_parameters.py:151
↓ 5 callers
Method
release_memory
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:35
↓ 5 callers
Method
reload_states
Reload the engine states to the original device. Arguments: non_blocking: Optional. Whether to offload the states asynchronously.
deepspeed/runtime/engine.py:6156
↓ 5 callers
Function
replace_attention
Replace every DSA attention module of ``model`` with :class:`DeepSpeedGlmMoeDsaAttention`. Returns the number of replaced modules. Call it after
deepspeed/models/glm_moe_dsa/attention.py:393
↓ 5 callers
Method
reset_cpu_buffers
(self)
deepspeed/runtime/zero/stage3.py:2614
↓ 5 callers
Method
run
(self)
deepspeed/autotuning/scheduler.py:158
↓ 5 callers
Method
run
Profile absolute memory and release gathered/interpreter state on every exit.
deepspeed/compile/profilers/graph_profile.py:436
↓ 5 callers
Method
run_gpt2_test
(self, test_config, output)
tests/model/Megatron_GPT2/test_common.py:55
↓ 5 callers
Method
run_test
(self, test_config, r_tol)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:113
↓ 5 callers
Function
run_training_steps
(engine, num_steps=3, seq_len=8, hidden_dim=64)
tests/unit/v1/moe/autoep_test_utils.py:271
↓ 5 callers
Method
save
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:32
↓ 5 callers
Method
set_dependency
Set dependency can be used for managing dependencies when a mapping is provided in the class definition for the layer. The dep_name h
deepspeed/inference/v2/model_implementations/layer_container_base.py:272
↓ 5 callers
Method
set_residual_tile
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:760
↓ 5 callers
Method
shard
Replace the weights with column-parallel shards, as AutoTP's `_tp_partition` does.
tests/unit/runtime/zero/test_per_head_muon.py:766
↓ 5 callers
Function
shard_tensor_node
(gm: GraphModule, tensor_node: Node)
deepspeed/compile/util.py:596
↓ 5 callers
Function
sort_dtypes
(dtypes: List[torch.dtype])
deepspeed/runtime/torch_autocast.py:89
↓ 5 callers
Method
source_offsets
Yield the offset into the full tensor of every element this piece covers. Used to check coverage. Pieces are small relative to the parameter,
deepspeed/checkpoint/affine.py:101
↓ 5 callers
Method
step
(self, closure=None)
deepspeed/runtime/zero/muon/original_muon.py:400
↓ 5 callers
Method
step
Not supporting closure.
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:778
↓ 5 callers
Method
store_with_pointer_offset
Store a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:830
↓ 5 callers
Function
task_log
(tid, msg, force=False)
deepspeed/nvme/test_ds_aio_utils.py:20
↓ 5 callers
Function
task_log
(tid, msg, force=False)
csrc/aio/py_test/test_ds_aio_utils.py:20
↓ 5 callers
Method
to
Move the parameter to the given device. Then, if the device is a cuda device, quantize it.
deepspeed/linear/quantization.py:118
↓ 5 callers
Function
top1gating
Implements Top1Gating on logits.
deepspeed/moe/sharded_moe.py:216
↓ 5 callers
Function
torch_assert_equal
Compare two tensors or non-tensor numbers for their equality. Add msg=blah to add an additional comment to when assert fails.
tests/unit/util.py:127
↓ 5 callers
Function
transpose
(data)
deepspeed/module_inject/utils.py:9
↓ 5 callers
Method
validate
(config)
tests/unit/module_inject/test_auto_ep_comm.py:29
↓ 5 callers
Function
validate_folding_metadata
(metadata, *, tp_size,
deepspeed/checkpoint/autoep_universal.py:84
↓ 5 callers
Function
wrap_ddp_reference
(model, device, rank)
tests/unit/v1/zero/test_zero_user_backward.py:119
↓ 5 callers
Method
writer
(cls, path, dtype)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:375
↓ 5 callers
Method
zero_offload_param
(self)
deepspeed/runtime/engine.py:1590
↓ 5 callers
Method
zero_use_cpu_optimizer
(self)
deepspeed/runtime/engine.py:1593
↓ 4 callers
Method
GetMaxTokenLength
csrc/transformer/inference/includes/inference_context.h:191
↓ 4 callers
Method
Instance
(cls)
deepspeed/ops/transformer/inference/op_binding/workspace.py:32
↓ 4 callers
Method
RATIO
csrc/includes/dropout.h:22
↓ 4 callers
Function
Run
csrc/includes/gemm_test.h:123
↓ 4 callers
Method
__init__
(self, num_experts=4, ffn_hidden=128, hidden_size=64, intermediate_size=None)
tests/unit/v1/moe/autoep_test_utils.py:57
↓ 4 callers
Method
__init__
(self, out=None, bias=None)
tests/unit/runtime/zero/test_zero_context_return.py:28
↓ 4 callers
Method
__init__
(self, *args)
tests/unit/runtime/zero/test_zero_context.py:24
↓ 4 callers
Method
__init__
(self)
tests/unit/module_inject/test_tp_partition_config_path.py:31
↓ 4 callers
Method
__release_param
(self, param: Parameter, free_data: bool = True)
deepspeed/runtime/zero/partitioned_param_coordinator.py:624
↓ 4 callers
Method
__setattr__
(self, name, value)
deepspeed/module_inject/auto_tp_model_utils.py:23
↓ 4 callers
Function
_add
(graph, lhs, rhs, name, device_time=0)
tests/unit/v1/compile/test_list_schedule.py:211
↓ 4 callers
Method
_add_to_grad_partition_buffer
(output, source)
deepspeed/runtime/zero/stage_1_and_2.py:1431
↓ 4 callers
Method
_aligned_size
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1701
↓ 4 callers
Method
_all_gather_shards
Reassemble a parameter from its tensor parallel shards along ``dim``. ``partition_sizes`` is derived locally from the same deterministic spli
deepspeed/module_inject/layers.py:591
← previous
next →
901–1,000 of 14,579, ranked by callers