MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 6 callersFunctionceil_div
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:121
↓ 6 callersMethodclear
csrc/includes/deepcompile.h:236
↓ 6 callersMethodclear_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:810
↓ 6 callersFunctioncollect_deepspeed_parameters
Collect parameters from DeepSpeed engine (handles ZeRO-3 gathering)
tests/unit/v1/zero/test_zero_user_backward.py:203
↓ 6 callersFunctioncombine_grad_norm_groups
L2-combine per-group gradient norms without laundering the -1 invalid sentinel. Several DeepSpeed helpers replace inf/NaN group norms with -1. Co
deepspeed/runtime/utils.py:966
↓ 6 callersFunctioncompare_parameters
Compare parameters between DDP and DeepSpeed
tests/unit/v1/zero/test_zero_user_backward.py:216
↓ 6 callersMethodconfig_tp_params
Configures the weight tensor for training with tensor parallelism. This includes enabling gradients and associating necessary methods
deepspeed/module_inject/layers.py:491
↓ 6 callersFunctionconstruct
(tokens, labels=None, weights=None, mask=None, positions=None, chunk=8, size=1, rank=0)
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:14
↓ 6 callersMethodcopy_grads_in_partition
(self, param, group_idx=None)
deepspeed/runtime/zero/stage_1_and_2.py:2242
↓ 6 callersMethodcpu_arch
(self)
op_builder/builder.py:396
↓ 6 callersFunctioncreate_config_from_dict
(tmpdir, config_dict)
tests/unit/simple_model.py:268
↓ 6 callersFunctiondata_file_path
(prefix_path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:127
↓ 6 callersFunctiondetect_model_sp_info
Recursively scan *model* and return an :class:`SPModelInfo`. The function identifies: * ViT encoder attention layers → wrapped with :class:`U
deepspeed/sequence/autosp_detector.py:89
↓ 6 callersMethoddevice_count
(self)
tests/unit/v1/moe/test_autoep_unit.py:953
↓ 6 callersMethoddisable
(self)
deepspeed/linear/optimized_linear.py:120
↓ 6 callersMethodelapsed_total
(self, **kwargs)
deepspeed/utils/timer.py:184
↓ 6 callersMethodenable
< CUTLASS_HOST_DEVICE enables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:551
↓ 6 callersMethodenable_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:814
↓ 6 callersFunctionensure_zero_ordered_dict
Wrap ``module._parameters`` in :class:`ZeROOrderedDict` if not already. PyTorch 2.5+ defaults ``nn.Module._parameters`` to a plain ``dict`` (
deepspeed/runtime/zero/parameter_offload.py:113
↓ 6 callersFunctionfill_with_head_ids
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:15
↓ 6 callersMethodfinalize_gradient_accumulation_boundary
(self)
deepspeed/runtime/zero/stage3.py:1553
↓ 6 callersMethodfrom_dict
(cls, entry)
deepspeed/checkpoint/affine.py:464
↓ 6 callersMethodget
deepspeed/inference/v2/kernels/includes/memory_access_utils.h:74
↓ 6 callersMethodget_data_parallel_group
The group of ranks within the same stage of all pipelines.
deepspeed/runtime/pipe/topology.py:434
↓ 6 callersMethodget_global_rank
(self)
deepspeed/runtime/pipe/topology.py:405
↓ 6 callersFunctionget_input_nodes
(graph: Graph)
deepspeed/compile/util.py:133
↓ 6 callersMethodget_param_gradient_attribute
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1304
↓ 6 callersMethodget_partition_dim
Get effective partition dimension.
deepspeed/module_inject/autotp_config.py:180
↓ 6 callersFunctionget_shard_size
Size of one shard of ``total_size`` split across a tensor-parallel group of ``mp_size``. ``meta`` carries this model's ``num_kv_heads`` / ``tp_gr
deepspeed/module_inject/tp_shard.py:113
↓ 6 callersMethodget_stage_id
(self)
deepspeed/runtime/pipe/topology.py:365
↓ 6 callersMethodget_swap_paths
(self)
deepspeed/runtime/swap_tensor/utils.py:77
↓ 6 callersMethodget_tensor_model_parallel_world_size
(self)
tests/unit/v1/moe/test_autoep_unit.py:549
↓ 6 callersMethodhas_function
Test for existence of a function within a tuple of libraries. This is used as a smoke test to check whether a certain library is ava
op_builder/builder.py:308
↓ 6 callersFunctionhas_inf_or_nan
Whether ``x`` contains any NaN or infinity, as a scalar tensor on ``x``'s device. Reduces before testing rather than testing elementwise: ``max``
deepspeed/runtime/utils.py:211
↓ 6 callersFunctionindex_file_path
(prefix_path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:123
↓ 6 callersMethodinsert_sequence
Incrementally insert a sequence into the ragged batch. This will update the metadata for the ragged batch and the sequence.
deepspeed/inference/v2/ragged/ragged_wrapper.py:134
↓ 6 callersFunctioninstall_head_sharded_helper
Give ``module`` a head-slicing wrapper around one of its own methods. The wrapper is bound to this instance instead of installed on its class. A
deepspeed/module_inject/auto_tp_model_utils.py:35
↓ 6 callersMethodis_complete_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:197
↓ 6 callersMethodis_deepcompile_active
(self)
deepspeed/runtime/engine.py:6210
↓ 6 callersMethodis_deepcompile_enabled
(self)
deepspeed/runtime/engine.py:6207
↓ 6 callersFunctionis_deepcompile_supported
()
deepspeed/compile/util.py:29
↓ 6 callersMethodlayer
(ep_size=2, comm_backend=DEEPEP_BACKEND, *, return_router_logits=False)
tests/unit/module_inject/test_auto_ep_comm.py:604
↓ 6 callersMethodload
csrc/deepspeed4science/evoformer_attn/transform/bias_broadcast.h:42
↓ 6 callersMethodload_hp_checkpoint_state
(self, folder, key, param=None)
deepspeed/runtime/zero/stage3.py:4192
↓ 6 callersFunctionlog_rank0
(msg: str, enable: bool = False)
deepspeed/compile/util.py:86
↓ 6 callersFunctionmake_folding_metadata
(*, tp_size, tp_rank, ep_size,
deepspeed/checkpoint/autoep_universal.py:54
↓ 6 callersFunctionmaybe_copy_qkv
(module, sd, weight_quantizer, mp_replace, dst_name, src_names, split_qkv=False)
deepspeed/module_inject/policy.py:166
↓ 6 callersMethodmemory_breakdown
(self)
deepspeed/runtime/engine.py:1572
↓ 6 callersMethodmp_size
(self)
deepspeed/autotuning/autotuner.py:247
↓ 6 callersMethodnew_cpu_locked_tensor
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:403
↓ 6 callersFunctionnode_route
Route each message by the nodes of its two processes. Across nodes, a message occupies the sender's ``network_send`` and the receiver's ``net
deepspeed/checkpoint/affine_transfer_cost.py:91
↓ 6 callersFunctionns_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
↓ 6 callersFunctionopen_file
csrc/aio/common/deepspeed_aio_common.cpp:301
↓ 6 callersMethodoptimizer_name
(self)
deepspeed/runtime/engine.py:1610
↓ 6 callersMethodquantize
(self, param, groups=None)
deepspeed/runtime/zero/partition_parameters.py:862
↓ 6 callersMethodquantize
(self, inputs, qkv=True, count=1, parallel_dim=0)
deepspeed/module_inject/replace_module.py:51
↓ 6 callersMethodreduce
(self, tensor, dst, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:151
↓ 6 callersFunctionreference_kl
(student_logits, teacher_logits, reverse)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:30
↓ 6 callersMethodregister_with_transformers
Register "ulysses" attn_implementation with HF transformers and return mpu (Megatron-LM-style parallel state groups object). If seque
deepspeed/runtime/sequence_parallel/ulysses_sp.py:391
↓ 6 callersMethodreload_states
Reload the engine states to the original device. Arguments: non_blocking: Optional. Whether to offload the states asynchronously.
deepspeed/runtime/engine.py:6259
↓ 6 callersMethodremove_partition_and_release_buffers
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:236
↓ 6 callersFunctionreport_file_error
csrc/aio/common/deepspeed_aio_common.cpp:294
↓ 6 callersFunctionrestore_combined
Gather TP-partitioned assignment outputs and combine back by token index. The all-gather rebuilds an identical full output on every TP peer, so a
deepspeed/moe/ep_tp_dispatch.py:431
↓ 6 callersMethodrollback_subgroup
Rollback the optimizer state for a specific subgroup.
deepspeed/ops/adam/cpu_adam.py:297
↓ 6 callersMethodroute
Drive _deepep_route with a stub exchange, recording what each stage saw.
tests/unit/module_inject/test_auto_ep_comm.py:363
↓ 6 callersMethodrun
Run the graph with profiling enabled. args: inputs to the graph. Tensors in the inpusts must be real tensors, not fake tensors. args can cont
deepspeed/compile/profilers/graph_profile.py:223
↓ 6 callersMethodrun_block
(self, skip, checkpoint_func, score_apply="post",
tests/unit/module_inject/test_auto_ep_comm.py:1443
↓ 6 callersFunctionrun_model_step
(model, x_sample, y_label, grad_value)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:24
↓ 6 callersFunctionrun_tp_layer_fwd_bwd
(tp_size, tp_overlap_comm, column_parallel,
tests/unit/v1/autotp/test_autotp_training.py:1103
↓ 6 callersMethodset_write_position
(self, pos: torch.Tensor)
deepspeed/utils/static_cache.py:53
↓ 6 callersFunctionshard_param
Utility for sharding a parameter. This will return the slice of the parameter that should exist on the given shard_rank given the sharding co
deepspeed/inference/v2/model_implementations/sharding/utils.py:43
↓ 6 callersFunctionsplit
(requests)
tests/unit/checkpoint/test_affine_replica_policy.py:240
↓ 6 callersMethodstep
(self, closure=None)
deepspeed/runtime/zero/muon/original_muon.py:400
↓ 6 callersMethodsteps_per_print
(self)
deepspeed/runtime/engine.py:1829
↓ 6 callersMethodstop_profile
Stop profiling. All torch.nn.functionals are restored to their originals.
deepspeed/profiling/flops_profiler/profiler.py:134
↓ 6 callersFunctionstore_with_byte_offset
Stores a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:679
↓ 6 callersMethodsync_pwrite
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:372
↓ 6 callersMethodtokens_to_seq
Mapping of token to which sequence it belongs to in the ragged batch. If the device Tensor is requested, the Tensor is truncated to t
deepspeed/inference/v2/ragged/ragged_wrapper.py:240
↓ 6 callersFunctiontopkgating
Implements TopKGating on logits.
deepspeed/moe/sharded_moe.py:415
↓ 6 callersMethodtrain_batch
Progress the pipeline to train the next batch of data. The engine will ingest ``self.train_batch_size()`` total samples collectively across al
deepspeed/runtime/pipe/engine.py:332
↓ 6 callersFunctionunion_affine_maps
One map of a parameter that several layouts hold at the same time. Each map describes the same parameter in its own layout, held by its own locat
deepspeed/checkpoint/affine.py:940
↓ 6 callersFunctionvalidate_aio_operation
csrc/aio/common/deepspeed_aio_common.cpp:377
↓ 6 callersFunctionvalidate_test
(model_w_task, dtype, enable_cuda_graph, enable_triton)
tests/unit/inference/test_inference.py:270
↓ 6 callersMethodwrite_events
(self, event_list)
deepspeed/monitor/monitor.py:20
↓ 5 callersMethod__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:124
↓ 5 callersMethod__init__
(self, args, world_info_base64)
deepspeed/launcher/multinode_runner.py:67
↓ 5 callersMethod__init__
(self, )
deepspeed/runtime/domino/transformer.py:46
↓ 5 callersFunction_affine_resume_engine
(tp_size, load_universal=False, zero_stage=1)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1623
↓ 5 callersFunction_affine_resume_state
(engine, tp_size, gradients=False)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1680
↓ 5 callersFunction_alignment_step
(engine, lr=None, input_value=1)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:86
↓ 5 callersFunction_allow_dynamo_dynamic_parameter_shapes_for_z3
Acquire process-wide ZeRO-3 Dynamo config ownership and return its release callback.
deepspeed/compile/init_z3.py:30
↓ 5 callersFunction_answering
(answer)
tests/unit/checkpoint/test_affine_replica_policy.py:257
↓ 5 callersFunction_assert_bf16_gemm_close
(actual, expected)
tests/unit/v1/moe/test_autoep_expert_activation.py:78
↓ 5 callersFunction_assert_matches
(plan_targets, target_map, full)
tests/unit/checkpoint/test_affine_transfer_executor.py:54
↓ 5 callersMethod_assert_weight_grads_match
(self, staged, plain)
tests/unit/v1/moe/test_autoep_expert_activation.py:810
↓ 5 callersMethod_autoep_expert_parallel_group
(self, params)
deepspeed/runtime/zero/stage3.py:716
↓ 5 callersFunction_aws_text
(run_command: Any, args: Sequence[str], *, timeout: float | None = None)
ci/torch_latest.py:897
↓ 5 callersMethod_bucketwise_drain_enq_executor
Block until all async enqueue work has been reflected in the pending ranges. ``_bucketwise_schedule_enqueue_range`` submits enqueue work asyn
deepspeed/runtime/reflow/reflow_stage3.py:1137
↓ 5 callersFunction_by_name
(param_groups)
tests/unit/runtime/zero/test_muon_param_groups.py:31
↓ 5 callersFunction_clamped_tol
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:252
← previousnext →801–900 of 15,468, ranked by callers