MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 8 callersMethodcurrent_stream
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:39
↓ 8 callersMethoddequantize
(self, quantized_param, scale, dtype=None)
deepspeed/runtime/zero/partition_parameters.py:891
↓ 8 callersMethoddump
csrc/aio/common/deepspeed_aio_types.cpp:42
↓ 8 callersMethodelapsed
(self, **kwargs)
deepspeed/utils/timer.py:181
↓ 8 callersMethodep_parser
(self)
tests/unit/v1/moe/test_autoep_unit.py:453
↓ 8 callersMethodfinalize
Completes construction of the ragged batch by flushing the host buffers to the device.
deepspeed/inference/v2/ragged/ragged_wrapper.py:184
↓ 8 callersFunctionget_config_dict
Build a config dict. force_fp32 keeps the engine in fp32: the frozen-param non-reentrant CheckpointError only reproduces in fp32 (bf16 recomp
tests/unit/v1/zero/test_zero_user_backward.py:55
↓ 8 callersFunctionget_node_shape_meta
(node: Node)
deepspeed/compile/fx.py:185
↓ 8 callersFunctioninstrument_w_nvtx
Decorator that records an NVTX range for the duration of the function call. Skips NVTX instrumentation when torch.compile is active to avoid gr
deepspeed/utils/nvtx.py:25
↓ 8 callersMethodlazy_initialization
(self, key_states: torch.Tensor, value_states: torch.T
deepspeed/utils/static_cache.py:60
↓ 8 callersFunctionmake_autoep_integration_config
(zero_stage=0, ep_size=2)
tests/unit/v1/moe/autoep_test_utils.py:244
↓ 8 callersMethodmanaged_gradient_accumulation
(self)
deepspeed/runtime/engine.py:1740
↓ 8 callersFunctionmaybe_copy
(module, sd, weight_quantizer, mp_replace, dst_nam
deepspeed/module_inject/policy.py:131
↓ 8 callersFunctionmaybe_get_lora
(p)
deepspeed/module_inject/policy.py:210
↓ 8 callersFunctionmerge_tp_slices
(uc_info, dir, slice_dir, tp_degree, name_and_shapes)
deepspeed/checkpoint/ds_to_universal.py:291
↓ 8 callersMethodno_sync
r""" Context manager to disable gradient reduction during backward pass. This context manager has the following effects on oth
deepspeed/runtime/engine.py:3302
↓ 8 callersFunctionnumber_to_string
(num, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1127
↓ 8 callersFunctionpartition_assignments
Partition routed assignments across TP peers by stable per-expert ordinal. Each peer keeps only ``assignment_index % tp_size == tp_rank`` of the
deepspeed/moe/ep_tp_dispatch.py:230
↓ 8 callersFunctionpartition_balanced
use dynamic programming solve `The Linear Partition Problem`. see https://www8.cs.umu.se/kurser/TDBAfl/VT06/algorithms/BOOK/BOOK2/NODE45.HTM
deepspeed/runtime/utils.py:702
↓ 8 callersMethodquery
Determine the number of tokens and KV blocks to reserve for a given request. Given a UID (this UID may not be recognized by the model
deepspeed/inference/v2/engine_v2.py:158
↓ 8 callersMethodrecord_gathered_param
(self, param)
deepspeed/compile/z3_eager_fallback.py:111
↓ 8 callersFunctionregister_pass_contract
(name: str, contract: Optional[PassContract])
deepspeed/compile/passes/contract.py:47
↓ 8 callersMethodschedule
(self, finished_ids=())
deepspeed/runtime/rollout/continuous_batching.py:88
↓ 8 callersMethodset_rng_state
(self, new_state, device_index=None)
accelerator/hpu_accelerator.py:82
↓ 8 callersFunctionshard_fn
(full_param, rank)
tests/unit/checkpoint/test_affine_shard_map.py:148
↓ 8 callersFunctionsplit_params_into_different_moe_groups_for_optimizer
Split parameters into different MoE groups for optimizer Args: param_groups (Union[Dict[str, Any], Tuple[Dict[str, Any], ...], List[Dict[
deepspeed/moe/utils.py:72
↓ 8 callersMethodstage_to_global
(self, stage_id, **kwargs)
deepspeed/runtime/pipe/topology.py:396
↓ 8 callersMethodstep_subgroup
Update the model parameters in a single subgroup (by index).
deepspeed/ops/adam/cpu_adam.py:173
↓ 8 callersMethodstore
Stores a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:419
↓ 8 callersMethodsync_pread
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:365
↓ 8 callersMethodterminate
(self)
ci/test_torch_latest.py:267
↓ 8 callersMethodto_dict
Serialise to plain scalars, so the map can be read without importing torch.
deepspeed/checkpoint/affine.py:471
↓ 8 callersFunctionto_string
csrc/includes/deepcompile.h:39
↓ 8 callersMethodtotal_memory
(self)
tests/unit/v1/compile/test_list_schedule.py:144
↓ 8 callersFunctiontrack_pinned_memory
(num_bytes: int)
deepspeed/utils/pin_memory_tracker.py:62
↓ 8 callersMethodunscale_and_clip_grads
(self, grad_groups_flat, total_norm, apply_scale=True)
deepspeed/runtime/fp16/fused_optimizer.py:374
↓ 8 callersMethodupdate
( self, key_states: torch.Tensor, value_states: torch.Tensor, *args, *
deepspeed/utils/static_cache.py:88
↓ 8 callersMethodupdate
Updated the running absmax used to calculate params. Function Arguments : val : The __half2 value to update the running min and max with.
csrc/includes/quantization_utils.h:177
↓ 8 callersFunctionupdate_lr
(param_groups, lrs)
deepspeed/runtime/lr_schedules.py:276
↓ 8 callersFunctionvalidate_autoep_zero3_partitioned_metadata
(autoep_metadata, require_partitioned=True,
deepspeed/checkpoint/autoep_zero3_metadata.py:47
↓ 8 callersFunctionvalidate_kv_cache
Given a QKV tensor and a KV cache, validate that the cache contains the correct values.
tests/unit/inference/v2/kernels/ragged_ops/ragged_testing_utils.py:247
↓ 8 callersMethodwait
(self)
tests/unit/comm/test_dist.py:168
↓ 8 callersMethodwait_event
(self, event)
tests/unit/v1/zero/test_zero2_gradient_safety.py:254
↓ 8 callersFunctionzero_storage_affine_map
Describe a flattened parameter of ``numel`` elements stored by ``holder_ranks``. Without ``partition_numel`` every holder stores the whole parame
deepspeed/checkpoint/zero_affine.py:57
↓ 7 callersMethod__init__
(self)
tests/unit/compile/test_zero3_grad_dtype.py:110
↓ 7 callersFunction_all_gather_cat_dim0
Plain all_gather of uneven shards along dim 0, auto-discovering per-rank widths. Independent of AutoTP's gather_params: a bug in the gather under
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1304
↓ 7 callersFunction_assert_equal
(actual, expected, label)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:54
↓ 7 callersFunction_assert_params_match
(ref, test, label, tol=5e-5)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:66
↓ 7 callersMethod_assert_same_partition_group
(self, params)
deepspeed/runtime/zero/stage3.py:677
↓ 7 callersFunction_assert_topology_load_matches_universal
(tmpdir, *, target_ep_
tests/unit/v1/moe/test_autoep_checkpoint.py:355
↓ 7 callersFunction_base_config
(zero_stage, gradient_accumulation_steps=1, cpu_offload=False)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:25
↓ 7 callersFunction_blocked_flash_testing_helper
Helper function for testing blocked flash attention. This implementation is based on the implemnentation in ``unit.inference.kernels.ragged_o
tests/unit/inference/v2/modules/test_blocked_attn.py:28
↓ 7 callersFunction_build_engine
(stage, gas=1)
tests/unit/v1/zero/test_zero_torch_func.py:57
↓ 7 callersFunction_build_map
Derive the affine map of a layout by probing the real partition function.
tests/unit/checkpoint/test_affine_shard_map.py:125
↓ 7 callersFunction_config
(*, compute_grad_norm, gradient_clipping=0.0, stage=1, offload_optimizer=None, zenflow=None)
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:18
↓ 7 callersFunction_device
()
tests/unit/v1/ops/triton_ops/test_autoep_fused_token_ops.py:24
↓ 7 callersFunction_device
()
tests/unit/v1/moe/test_autoep_permute_rows.py:14
↓ 7 callersFunction_do_ref_write
(tmpdir, index=0, file_size=IO_SIZE)
tests/unit/v1/nvme/test_gds.py:32
↓ 7 callersFunction_fused_qkv_shard_fn
(layout_name, mp_size, meta)
tests/unit/checkpoint/test_affine_shard_map.py:145
↓ 7 callersMethod_get_sub_group_process_group
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:661
↓ 7 callersMethod_git
(self, *args: str)
ci/test_tests_fetcher.py:94
↓ 7 callersFunction_init_engine
(*, load_universal=False, world_size=1)
tests/unit/checkpoint/test_fp32_master_only.py:59
↓ 7 callersMethod_is_lm_head_name
(self, name)
deepspeed/module_inject/auto_tp.py:692
↓ 7 callersFunction_join_transfer_group
()
tests/unit/checkpoint/test_affine_transfer_executor.py:26
↓ 7 callersFunction_make_bwd_graph
A backward graph that reads the saved activations late, leaving room to start copies early.
tests/unit/v1/compile/test_offload_activation.py:793
↓ 7 callersFunction_make_bwd_profile
(graph, peak=0, node_time_ms=1.0)
tests/unit/v1/compile/test_offload_activation.py:817
↓ 7 callersFunction_make_offload_state_key
(key)
deepspeed/runtime/zero/offload_states.py:13
↓ 7 callersFunction_make_offs
(counts, device)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:104
↓ 7 callersFunction_module_with_fp32_buffer
Linear layer plus an fp32 buffer that mimics the rotary inv_freq.
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:18
↓ 7 callersFunction_nested
(layout, holders_by_layout_rank, partition_by_layout_rank=None)
tests/unit/checkpoint/test_zero_affine.py:102
↓ 7 callersFunction_num_rows
(logits)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:359
↓ 7 callersMethod_op
Return torch.ops.deepspeed.<name>, raising clearly if not registered.
op_builder/supa/quantizer.py:23
↓ 7 callersMethod_optimizer_states_and_gradient_swap_in
(self, sub_group_id, timer_names=None)
deepspeed/runtime/zero/stage3.py:2788
↓ 7 callersFunction_oracle_shards
(full_tensor, experts_by_rank)
tests/unit/checkpoint/test_autoep_affine.py:20
↓ 7 callersMethod_partition_all_parameters
(self)
deepspeed/runtime/zero/stage3.py:3402
↓ 7 callersMethod_partition_world_size
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1712
↓ 7 callersMethod_shape_before_zero3_partition
Shape of ``param`` as it was before ZeRO-3 partitioned it. ZeRO-3 replaces a partitioned parameter's local data with an empty 1-D ten
deepspeed/module_inject/layers.py:507
↓ 7 callersFunction_stored_by_rank
What each process stores, by slicing each flattened layout shard with ZeRO's rule.
tests/unit/checkpoint/test_zero_affine.py:88
↓ 7 callersFunction_tiny_config
A 2-layer GLM-5.2 config. ``dense_mlps`` gives every layer a dense MLP, for tests of the attention alone: the MoE backward can hang in torch 2.8's
tests/unit/v1/models/test_glm_moe_dsa.py:107
↓ 7 callersMethod_token_selector
Return a function that picks the next tokens ``[B, 1]`` from last-position logits ``[B, V]``. Tokens are picked after each forward or graph r
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1212
↓ 7 callersMethod_validate_zero3_moe_compatibility
(self)
deepspeed/runtime/engine.py:2270
↓ 7 callersMethodadd_item
(self, tensor)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:283
↓ 7 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:759
↓ 7 callersFunctionallclose_on_all_ranks
Compare two tensors across all ranks. We want to make sure that all ranks succeed or fail together.
tests/unit/common.py:589
↓ 7 callersMethodallocate
Allocate a list of blocks from the associated KV-caches. This will return `num_blocks` blocks from the KV-cache if they are available
deepspeed/inference/v2/ragged/blocked_allocator.py:50
↓ 7 callersFunctionapply_rotary_pos_emb
input tensor t is of shape [seq_length, ..., dim] rotary positional embeding tensor freqs is of shape [seq_length, ..., dim] check https:
deepspeed/sequence/layer.py:125
↓ 7 callersFunctionautoep_metadata_to_affine_map
Load a persisted AutoEP affine map, falling back to legacy placement lowering.
deepspeed/checkpoint/autoep_affine.py:210
↓ 7 callersFunctionautoep_storage_affine_map
Lower one expert parameter to the storage each global rank actually holds. ``holders_by_ep_rank`` maps every rank ID of ``descriptor`` to the glo
deepspeed/checkpoint/autoep_affine.py:176
↓ 7 callersFunctionblock_gather_map
Each rank holds a chosen set of equal-sized blocks, not necessarily adjacent ones. Yuan's shared-QK attention is the motivating case: a rank take
deepspeed/checkpoint/affine.py:764
↓ 7 callersFunctionclassify_fused_gate_up_layout
Classify fused gate/up expert weights from raw tensor shapes.
deepspeed/moe/fused_expert_layout.py:23
↓ 7 callersMethodclear
Clear the ragged batch. This will reset the number of tokens and sequences to 0.
deepspeed/inference/v2/ragged/ragged_wrapper.py:123
↓ 7 callersMethodclear_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:793
↓ 7 callersFunctionconsolidate_autoep_zero12_expert_states
Consolidate AutoEP expert FP32 and Adam states from ZeRO-1/2 fragments.
deepspeed/checkpoint/autoep_universal.py:288
↓ 7 callersMethodcpu_arch
(self)
op_builder/builder.py:428
↓ 7 callersFunctioncreate_ddp_model
(model_class, device, rank, dtype, seed=42, lr=1e-3, **model_kwargs)
tests/unit/v1/zero/test_zero_user_backward.py:110
↓ 7 callersFunctioncreate_deepspeed_model
(config_dict, model, base_optimizer)
tests/unit/checkpoint/common.py:156
↓ 7 callersFunctioncreate_gm_nodes
Load a tiny LlamaForCausalLM, tag inputs with AutoSP keys, mark the sequence dimension dynamic, and capture the torch-fx GraphModule via a cu
tests/unit/v1/compile/util.py:231
↓ 7 callersFunctionelem_size
Return size in bytes of the given dtype.
deepspeed/inference/v2/inference_utils.py:91
↓ 7 callersMethodenable_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:800
↓ 7 callersMethodend_profile
Ends profiling. The added attributes and handles are removed recursively on all the modules.
deepspeed/profiling/flops_profiler/profiler.py:203
← previousnext →501–600 of 14,579, ranked by callers