Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
↓ 2 callers
Function
make
(cls, out_features, in_features)
tests/unit/compile/test_tp_compile.py:773
↓ 2 callers
Function
make_backend
(backend, compile_config, compile_kwargs={}, process_group=None, owned_frames=None)
deepspeed/compile/backend.py:311
↓ 2 callers
Method
make_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 callers
Method
make_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 callers
Function
make_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 callers
Function
make_params
tests/unit/inference/v2/model_implementations/sharding/test_mlp_sharding.py:20
↓ 2 callers
Function
make_rollout
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1695
↓ 2 callers
Function
matmul_fp8
(inp, weight, scale, quantization_group_size, quantizer)
deepspeed/ops/fp_quantizer/fp8_gemm.py:16
↓ 2 callers
Method
max_train_batch_size
(self)
deepspeed/autotuning/autotuner.py:244
↓ 2 callers
Function
maybe_restore_sharded_dim
(dim: torch.SymInt, factor: int)
deepspeed/compile/custom_ops/all_to_all.py:60
↓ 2 callers
Function
maybe_step
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:36
↓ 2 callers
Method
memory_bytes
(self)
deepspeed/utils/static_cache.py:162
↓ 2 callers
Method
memory_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 callers
Method
merge_assert
(self, dim1, dim2)
deepspeed/module_inject/auto_tp.py:65
↓ 2 callers
Method
merge_layer_scales
(self, layer_scales)
deepspeed/runtime/weight_quantizer.py:64
↓ 2 callers
Method
merge_scales
(self)
deepspeed/runtime/weight_quantizer.py:72
↓ 2 callers
Function
merge_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 callers
Function
mixed_precision_config
()
tests/unit/v1/moe/autoep_test_utils.py:181
↓ 2 callers
Method
mlp
(self, enable_training=False)
deepspeed/module_inject/containers/opt.py:150
↓ 2 callers
Method
mlp_output_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:259
↓ 2 callers
Function
move_back_hp_param
(src_tensor, dest_buf, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:142
↓ 2 callers
Function
move_back_key
(state, key, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:112
↓ 2 callers
Function
move_hp_param
(src_tensor, dest_buf, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:127
↓ 2 callers
Function
move_key
(state, key, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:83
↓ 2 callers
Function
multi_output_dataloader
(model, total_samples, hidden_dim, device, inputs, targets)
tests/unit/multi_output_model.py:27
↓ 2 callers
Method
num_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 callers
Function
obj_serialization_details
()
deepspeed/io/utils.py:52
↓ 2 callers
Method
offload
(self)
deepspeed/sequence/fpdt_layer.py:594
↓ 2 callers
Method
offload
csrc/includes/deepcompile.h:307
↓ 2 callers
Method
offload_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 callers
Function
omp_get_num_procs
csrc/includes/reflow_cpu_adam.h:16
↓ 2 callers
Method
op_builder_dir
(self)
accelerator/hpu_accelerator.py:249
↓ 2 callers
Method
op_builder_dir
(self)
accelerator/klxpu_accelerator.py:37
↓ 2 callers
Function
op_envvar
(op_name)
setup.py:147
↓ 2 callers
Method
optimizer_params
(self)
deepspeed/runtime/engine.py:1613
↓ 2 callers
Method
output_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 callers
Function
override_1cycle_params
(args, params)
deepspeed/runtime/lr_schedules.py:147
↓ 2 callers
Function
override_lr_range_test_params
(args, params)
deepspeed/runtime/lr_schedules.py:133
↓ 2 callers
Function
override_warmupCosineLR_params
(args, params)
deepspeed/runtime/lr_schedules.py:198
↓ 2 callers
Function
override_warmupLR_params
(args, params)
deepspeed/runtime/lr_schedules.py:184
↓ 2 callers
Function
pack_f32_as_bf16_nearest
csrc/includes/reflow_simd.h:33
↓ 2 callers
Function
parallel_memcpy
csrc/cpu/comm/shm.cpp:412
↓ 2 callers
Function
parse_model_states
(files)
deepspeed/utils/zero_to_fp32.py:150
↓ 2 callers
Method
parse_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 callers
Function
partition
()
tests/unit/v1/compile/test_z3_eager_fallback.py:135
↓ 2 callers
Function
partition_activations
(args, cpu_checkpoint, contiguous_checkpoint)
deepspeed/runtime/activation_checkpointing/checkpointing.py:387
↓ 2 callers
Method
partition_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 callers
Function
partition_physical_cpus
Assign whole physical cores, sharing only when there are fewer cores than ranks.
deepspeed/runtime/reflow/reflow_utils.py:204
↓ 2 callers
Function
pass_insert_attention_all_to_all
(gm: GraphModule, real_inputs)
deepspeed/compile/passes/sp_compile.py:525
↓ 2 callers
Function
patch_create_aot_dispatcher_function
Temporarily install graph-specific AOT compilers and return an idempotent restore callback.
deepspeed/compile/inductor.py:185
↓ 2 callers
Method
patch_init_and_builtins
(self)
deepspeed/runtime/zero/partition_parameters.py:416
↓ 2 callers
Function
path_of
(from_process: int, to_process: int)
deepspeed/checkpoint/affine_transfer_calibration.py:58
↓ 2 callers
Function
permute_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 callers
Method
pip_install
(self, *packages, index_url=None)
ci/test_torch_latest.py:299
↓ 2 callers
Function
place_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 callers
Function
policy
(requests: Sequence[ReplicaRequest])
deepspeed/checkpoint/affine_replica_policy.py:74
↓ 2 callers
Function
policy_to_ds_container
(**kwargs)
deepspeed/module_inject/utils.py:14
↓ 2 callers
Function
pop_backward_input
Pop captured real inputs for one DeepCompile frame.
deepspeed/compile/patch_compiled_func.py:119
↓ 2 callers
Function
post_all2all
Post-processing function for `all2all` communication.
deepspeed/sequence/layer.py:97
↓ 2 callers
Method
post_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 callers
Method
post_sub_module_backward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:591
↓ 2 callers
Function
pre_all2all_fun
Pre-processing function for `all2all` communication.
deepspeed/sequence/layer.py:112
↓ 2 callers
Method
pre_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 callers
Method
pread
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:315
↓ 2 callers
Method
prep_iocbs
csrc/aio/common/deepspeed_aio_utils.cpp:41
↓ 2 callers
Function
prepare_operation
(args, tid, read_op)
deepspeed/nvme/io_engine.py:17
↓ 2 callers
Function
prepare_tp_fused_qkvw
(module, src, mp_size, gpu_index, meta: AutoTPMeta)
deepspeed/module_inject/fusedqkv_utils.py:171
↓ 2 callers
Method
preserves_storage_sharing
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:62
↓ 2 callers
Method
print_data
(self, tag)
deepspeed/checkpoint/reshape_meg_2d.py:43
↓ 2 callers
Function
print_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 callers
Function
print_json_dist
(message, ranks=None, path=None)
deepspeed/utils/logging.py:156
↓ 2 callers
Function
print_r0
(msg)
deepspeed/compile/passes/offload_adam_states.py:52
↓ 2 callers
Function
productDim
csrc/includes/deepcompile.h:47
↓ 2 callers
Function
prologue
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:501
↓ 2 callers
Method
purge_state
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:206
↓ 2 callers
Method
push
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:403
↓ 2 callers
Method
put
(self, table)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:109
↓ 2 callers
Method
quantize_data
(self, data, quantize_bits, groups, key=None)
deepspeed/runtime/weight_quantizer.py:21
↓ 2 callers
Function
quantize_weight
(weight)
deepspeed/module_inject/module_quantize.py:24
↓ 2 callers
Method
random
(self)
accelerator/hpu_accelerator.py:79
↓ 2 callers
Method
random_ltd_config
(self)
deepspeed/runtime/engine.py:1508
↓ 2 callers
Function
rank_indices
(length, chunk, size)
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:19
↓ 2 callers
Method
read_data
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:165
↓ 2 callers
Function
read_state_right_after_each_step
(model, config, batches)
tests/unit/v1/zero/test_reflow.py:1990
↓ 2 callers
Method
record_backward_start
Record that backward reached an output from a tracked forward graph.
deepspeed/compile/z3_eager_fallback.py:174
↓ 2 callers
Method
record_module
adds sub module to trace
deepspeed/runtime/zero/partitioned_param_coordinator.py:239
↓ 2 callers
Method
record_user_context_claim
Record that an explicit user context overlaps this fallback-owned parameter.
deepspeed/compile/z3_eager_fallback.py:138
↓ 2 callers
Function
recursive_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 callers
Function
recursive_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 callers
Function
reduce_all_buffers
csrc/cpu/comm/shm.cpp:127
↓ 2 callers
Function
reduce_autoep_folding_gradient
( folding_spec: ParallelFoldingSpec | None, param, grad, *, tp_group, param_name: str
deepspeed/module_inject/auto_ep_folding.py:435
↓ 2 callers
Function
reduce_boolean_flags
(flag: bool, op=all)
tests/unit/common.py:588
↓ 2 callers
Method
reduce_gradients
(self, pipeline_parallel=False)
deepspeed/runtime/zero/stage_1_and_2.py:980
↓ 2 callers
Method
reduce_ready_partitions_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage_1_and_2.py:2388
↓ 2 callers
Method
reduce_scatter
(self, output, input_list, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:143
↓ 2 callers
Function
reference_implementation
(hidden_states, weights)
tests/unit/inference/v2/kernels/core_ops/test_blas_linear.py:25
↓ 2 callers
Function
reference_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 callers
Function
reflow_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 callers
Function
reflow_lion_resolve_omp_threads
Non-positive thread counts use all cores available to this worker.
csrc/lion/reflow_cpu_lion_impl.cpp:55
↓ 2 callers
Function
reflow_num_threads
(engine: "DeepSpeedEngine")
deepspeed/runtime/reflow/engine.py:38
← previous
next →
3,001–3,100 of 15,468, ranked by callers