MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunctionmake
(cls, out_features, in_features)
tests/unit/compile/test_tp_compile.py:773
↓ 2 callersFunctionmake_backend
(backend, compile_config, compile_kwargs={}, process_group=None, owned_frames=None)
deepspeed/compile/backend.py:311
↓ 2 callersMethodmake_embedding_layer
Performs setup and creates embedding DSModule. Since OPT includes trained positional embeddings, we will override the base model impl
deepspeed/inference/v2/model_implementations/opt/model.py:101
↓ 2 callersMethodmake_moe_layer
Instantiates the MoE layer for the model. This sets the `self.moe` attribute.
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:126
↓ 2 callersFunctionmake_param_filename
Make a filename for a parameter file. Arguments: rank: Rank of the file. n_ranks: Total number of ranks. Returns:
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:59
↓ 2 callersFunctionmake_params
tests/unit/inference/v2/model_implementations/sharding/test_mlp_sharding.py:20
↓ 2 callersFunctionmake_rollout
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1695
↓ 2 callersFunctionmatmul_fp8
(inp, weight, scale, quantization_group_size, quantizer)
deepspeed/ops/fp_quantizer/fp8_gemm.py:16
↓ 2 callersMethodmax_train_batch_size
(self)
deepspeed/autotuning/autotuner.py:244
↓ 2 callersFunctionmaybe_restore_sharded_dim
(dim: torch.SymInt, factor: int)
deepspeed/compile/custom_ops/all_to_all.py:60
↓ 2 callersFunctionmaybe_step
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:36
↓ 2 callersMethodmemory_bytes
(self)
deepspeed/utils/static_cache.py:162
↓ 2 callersMethodmemory_fence
Flush the non-temporal (streaming) stores so updated params/state are globally visible before a worker future completes. Called by the Reflow
deepspeed/runtime/reflow/reflow_cpu_adam.py:105
↓ 2 callersMethodmerge_assert
(self, dim1, dim2)
deepspeed/module_inject/auto_tp.py:65
↓ 2 callersMethodmerge_layer_scales
(self, layer_scales)
deepspeed/runtime/weight_quantizer.py:64
↓ 2 callersMethodmerge_scales
(self)
deepspeed/runtime/weight_quantizer.py:72
↓ 2 callersFunctionmerge_tensors
Merge two lists (or tuples) of tensors and non-tensors using a mapping of positions in merged list (or tuple). Parameters: tensor_ob
deepspeed/runtime/activation_checkpointing/checkpointing.py:335
↓ 2 callersFunctionmixed_precision_config
()
tests/unit/v1/moe/autoep_test_utils.py:181
↓ 2 callersMethodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/opt.py:150
↓ 2 callersMethodmlp_output_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:259
↓ 2 callersFunctionmove_back_hp_param
(src_tensor, dest_buf, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:142
↓ 2 callersFunctionmove_back_key
(state, key, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:112
↓ 2 callersFunctionmove_hp_param
(src_tensor, dest_buf, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:127
↓ 2 callersFunctionmove_key
(state, key, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:83
↓ 2 callersFunctionmulti_output_dataloader
(model, total_samples, hidden_dim, device, inputs, targets)
tests/unit/multi_output_model.py:27
↓ 2 callersMethodnum_pipe_buffers
The number of pipeline buffers that will be used by this stage. .. note:: Schedules should specialize ``num_pipe_buffers()`` for
deepspeed/runtime/pipe/schedule.py:69
↓ 2 callersFunctionobj_serialization_details
()
deepspeed/io/utils.py:52
↓ 2 callersMethodoffload
(self)
deepspeed/sequence/fpdt_layer.py:594
↓ 2 callersMethodoffload
csrc/includes/deepcompile.h:307
↓ 2 callersMethodoffload_input
Register a tensor for offload; returns its id, or None if skipped. The newest ``keep_last_count`` tensors stay on GPU; older ones start an
deepspeed/runtime/activation_checkpointing/offload_activations.py:218
↓ 2 callersFunctionomp_get_num_procs
csrc/includes/reflow_cpu_adam.h:16
↓ 2 callersMethodop_builder_dir
(self)
accelerator/hpu_accelerator.py:249
↓ 2 callersMethodop_builder_dir
(self)
accelerator/klxpu_accelerator.py:37
↓ 2 callersFunctionop_envvar
(op_name)
setup.py:147
↓ 2 callersMethodoptimizer_params
(self)
deepspeed/runtime/engine.py:1613
↓ 2 callersMethodoutput_index_to_sample_percentile
read index_to_metric and index_to_sample files and write distribution to index_to_sample_percentage_merged
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:417
↓ 2 callersFunctionoverride_1cycle_params
(args, params)
deepspeed/runtime/lr_schedules.py:147
↓ 2 callersFunctionoverride_lr_range_test_params
(args, params)
deepspeed/runtime/lr_schedules.py:133
↓ 2 callersFunctionoverride_warmupCosineLR_params
(args, params)
deepspeed/runtime/lr_schedules.py:198
↓ 2 callersFunctionoverride_warmupLR_params
(args, params)
deepspeed/runtime/lr_schedules.py:184
↓ 2 callersFunctionpack_f32_as_bf16_nearest
csrc/includes/reflow_simd.h:33
↓ 2 callersFunctionparallel_memcpy
csrc/cpu/comm/shm.cpp:412
↓ 2 callersFunctionparse_model_states
(files)
deepspeed/utils/zero_to_fp32.py:150
↓ 2 callersMethodparse_results
Parses the metric file of the finished experiments to select the optimal DeepSpeed configuration. Args: metric (str): the key to
deepspeed/autotuning/scheduler.py:211
↓ 2 callersFunctionpartition
()
tests/unit/v1/compile/test_z3_eager_fallback.py:135
↓ 2 callersFunctionpartition_activations
(args, cpu_checkpoint, contiguous_checkpoint)
deepspeed/runtime/activation_checkpointing/checkpointing.py:387
↓ 2 callersMethodpartition_all_parameters
Partitioning Parameters that were not partitioned usually if parameters of modules whose input parameters do not require grad computation do n
deepspeed/runtime/zero/parameter_offload.py:238
↓ 2 callersFunctionpartition_physical_cpus
Assign whole physical cores, sharing only when there are fewer cores than ranks.
deepspeed/runtime/reflow/reflow_utils.py:204
↓ 2 callersFunctionpass_insert_attention_all_to_all
(gm: GraphModule, real_inputs)
deepspeed/compile/passes/sp_compile.py:525
↓ 2 callersFunctionpatch_create_aot_dispatcher_function
Temporarily install graph-specific AOT compilers and return an idempotent restore callback.
deepspeed/compile/inductor.py:185
↓ 2 callersMethodpatch_init_and_builtins
(self)
deepspeed/runtime/zero/partition_parameters.py:416
↓ 2 callersFunctionpath_of
(from_process: int, to_process: int)
deepspeed/checkpoint/affine_transfer_calibration.py:58
↓ 2 callersFunctionpermute_rows_supported
Whether :func:`permute_rows` and :func:`unpermute_rows` can take ``rows``: 2-D, on CUDA, with Triton.
deepspeed/moe/ep_kernels.py:389
↓ 2 callersMethodpip_install
(self, *packages, index_url=None)
ci/test_torch_latest.py:299
↓ 2 callersFunctionplace_restored_optimizer_step
Give a restored ``step`` the placement torch.optim expects for its param group. Universal checkpoint loading writes ``step`` into the optimizer s
deepspeed/runtime/base_optimizer.py:36
↓ 2 callersFunctionpolicy
(requests: Sequence[ReplicaRequest])
deepspeed/checkpoint/affine_replica_policy.py:74
↓ 2 callersFunctionpolicy_to_ds_container
(**kwargs)
deepspeed/module_inject/utils.py:14
↓ 2 callersFunctionpop_backward_input
Pop captured real inputs for one DeepCompile frame.
deepspeed/compile/patch_compiled_func.py:119
↓ 2 callersFunctionpost_all2all
Post-processing function for `all2all` communication.
deepspeed/sequence/layer.py:97
↓ 2 callersMethodpost_forward
Update the state of the sequence after a forward pass. This should be called after the forward pass completes. NOTE: due to the async
deepspeed/inference/v2/ragged/sequence_descriptor.py:226
↓ 2 callersMethodpost_sub_module_backward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:591
↓ 2 callersFunctionpre_all2all_fun
Pre-processing function for `all2all` communication.
deepspeed/sequence/layer.py:112
↓ 2 callersMethodpre_forward
Update the state of the sequence before a forward pass. Arguments: num_tokens (int): The number of tokens in the sequenc
deepspeed/inference/v2/ragged/sequence_descriptor.py:216
↓ 2 callersMethodpread
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:315
↓ 2 callersMethodprep_iocbs
csrc/aio/common/deepspeed_aio_utils.cpp:41
↓ 2 callersFunctionprepare_operation
(args, tid, read_op)
deepspeed/nvme/io_engine.py:17
↓ 2 callersFunctionprepare_tp_fused_qkvw
(module, src, mp_size, gpu_index, meta: AutoTPMeta)
deepspeed/module_inject/fusedqkv_utils.py:171
↓ 2 callersMethodpreserves_storage_sharing
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:62
↓ 2 callersMethodprint_data
(self, tag)
deepspeed/checkpoint/reshape_meg_2d.py:43
↓ 2 callersFunctionprint_dist
print message when get_dist_msg() deems it should be logged, see its docstring for details. Use this function instead of `log_dist` when the log
deepspeed/utils/logging.py:126
↓ 2 callersFunctionprint_json_dist
(message, ranks=None, path=None)
deepspeed/utils/logging.py:156
↓ 2 callersFunctionprint_r0
(msg)
deepspeed/compile/passes/offload_adam_states.py:52
↓ 2 callersFunctionproductDim
csrc/includes/deepcompile.h:47
↓ 2 callersFunctionprologue
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:501
↓ 2 callersMethodpurge_state
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:206
↓ 2 callersMethodpush
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:403
↓ 2 callersMethodput
(self, table)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:109
↓ 2 callersMethodquantize_data
(self, data, quantize_bits, groups, key=None)
deepspeed/runtime/weight_quantizer.py:21
↓ 2 callersFunctionquantize_weight
(weight)
deepspeed/module_inject/module_quantize.py:24
↓ 2 callersMethodrandom
(self)
accelerator/hpu_accelerator.py:79
↓ 2 callersMethodrandom_ltd_config
(self)
deepspeed/runtime/engine.py:1508
↓ 2 callersFunctionrank_indices
(length, chunk, size)
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:19
↓ 2 callersMethodread_data
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:165
↓ 2 callersFunctionread_state_right_after_each_step
(model, config, batches)
tests/unit/v1/zero/test_reflow.py:1990
↓ 2 callersMethodrecord_backward_start
Record that backward reached an output from a tracked forward graph.
deepspeed/compile/z3_eager_fallback.py:174
↓ 2 callersMethodrecord_module
adds sub module to trace
deepspeed/runtime/zero/partitioned_param_coordinator.py:239
↓ 2 callersMethodrecord_user_context_claim
Record that an explicit user context overlaps this fallback-owned parameter.
deepspeed/compile/z3_eager_fallback.py:138
↓ 2 callersFunctionrecursive_getattr
Recursively get the attribute of a module. Args: model (`torch.nn.Module`) The model to get the attribute from. m
deepspeed/utils/module_utils.py:7
↓ 2 callersFunctionrecursive_setattr
Recursively set the attribute of a module. Args: model (`torch.nn.Module`) The model to set the attribute in. mod
deepspeed/utils/module_utils.py:23
↓ 2 callersFunctionreduce_all_buffers
csrc/cpu/comm/shm.cpp:127
↓ 2 callersFunctionreduce_autoep_folding_gradient
( folding_spec: ParallelFoldingSpec | None, param, grad, *, tp_group, param_name: str
deepspeed/module_inject/auto_ep_folding.py:435
↓ 2 callersFunctionreduce_boolean_flags
(flag: bool, op=all)
tests/unit/common.py:588
↓ 2 callersMethodreduce_gradients
(self, pipeline_parallel=False)
deepspeed/runtime/zero/stage_1_and_2.py:980
↓ 2 callersMethodreduce_ready_partitions_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage_1_and_2.py:2388
↓ 2 callersMethodreduce_scatter
(self, output, input_list, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:143
↓ 2 callersFunctionreference_implementation
(hidden_states, weights)
tests/unit/inference/v2/kernels/core_ops/test_blas_linear.py:25
↓ 2 callersFunctionreference_rms_norm
(vals: torch.Tensor, gamma: torch.Tensor, epsilon: float = 1e-5)
tests/unit/inference/v2/kernels/core_ops/test_rms_norm.py:20
↓ 2 callersFunctionreflow_lion_get_available_cpu_count
Affinity-aware available-core count (falls back to omp_get_num_procs()).
csrc/lion/reflow_cpu_lion_impl.cpp:37
↓ 2 callersFunctionreflow_lion_resolve_omp_threads
Non-positive thread counts use all cores available to this worker.
csrc/lion/reflow_cpu_lion_impl.cpp:55
↓ 2 callersFunctionreflow_num_threads
(engine: "DeepSpeedEngine")
deepspeed/runtime/reflow/engine.py:38
← previousnext →3,001–3,100 of 15,468, ranked by callers