MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodset_rng_state
(self, new_state, device_index=None)
accelerator/xpu_accelerator.py:229
Methodset_rng_state
(self, new_state, device_index=None)
accelerator/cuda_accelerator.py:98
Methodset_rng_state
(self, new_state, device_index=None)
accelerator/mps_accelerator.py:75
Methodset_rng_state
(self, new_state, device_index=None)
accelerator/abstract_accelerator.py:69
Functionset_tensor_model_parallel_rank
Set tensor model parallel rank.
deepspeed/utils/groups.py:286
Functionset_tensor_model_parallel_world_size
Set the tensor model parallel size
deepspeed/utils/groups.py:268
Methodset_tensor_parallel_config
(self, mp_size, mp_group)
deepspeed/module_inject/containers/base.py:168
Methodset_train_batch_size
Adjust the global batch size by increasing or decreasing the number of micro-batches (i.e., gradient accumulation steps). The size of each mic
deepspeed/runtime/engine.py:1406
Methodset_train_batch_size
Adjust the global batch size by increasing or decreasing the number of micro-batches (i.e., gradient accumulation steps). The size of each mic
deepspeed/runtime/pipe/engine.py:487
Methodset_train_micro_batch_size
Adjust the micro batch size(i.e., the micro batch size in every data parallel group), while keep the gradient accumulation steps the same.
deepspeed/runtime/engine.py:1423
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/supa_accelerator.py:283
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/sdaa_accelerator.py:304
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/cpu_accelerator.py:518
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/mlu_accelerator.py:276
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/npu_accelerator.py:345
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/xpu_accelerator.py:513
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/cuda_accelerator.py:429
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/mps_accelerator.py:301
Methodset_visible_devices_envs
(self, current_env, local_accelerator_ids)
accelerator/abstract_accelerator.py:416
Methodset_write_position
(self, _write_position)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:364
Functionset_z1_grad_buffer
(is_gradient_accumulation_boundary)
deepspeed/compile/init_z1_and_2.py:161
Functionset_z2_grad_buffer
(_is_gradient_accumulation_boundary)
deepspeed/compile/init_z1_and_2.py:136
Functionset_zero_outside_bounds
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_pipelined.h:209
Functionset_zero_outside_bounds
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_multistage.h:252
Functionsettled
initialize() reached a verdict: engaged, or explicitly declined this topology (latched ``failed``). False means it exited before latching eith
deepspeed/comm/custom_collective.py:59
Methodsetup_context
(ctx, inputs, output)
deepspeed/runtime/zero/linear.py:110
Methodsetup_context
(ctx, inputs, output)
deepspeed/runtime/zero/parameter_offload.py:476
Methodsetup_context
(ctx, inputs, output)
deepspeed/runtime/zero/parameter_offload.py:507
Methodshard
(tensor_bld)
tests/unit/v1/sequence_parallelism/test_ulysses.py:570
Methodshard
(tensor)
tests/unit/v1/sequence_parallelism/test_ulysses.py:844
Methodshard
(tensor)
tests/unit/v1/sequence_parallelism/test_ulysses.py:896
Functionshard_embedding_param
Utility method for sharding an embedding parameter. Args: param (torch.Tensor): The parameter to shard. Should be of shape [vocab_si
deepspeed/inference/v2/model_implementations/sharding/embedding.py:12
Functionsharded_embedding_dim
Utility method for getting the size of the embedding dimension of a sharded embedding. Args: embedding_size (int): The size of the e
deepspeed/inference/v2/model_implementations/sharding/embedding.py:24
Methodshared
csrc/aio/py_lib/deepspeed_pin_tensor_client.cpp:16
Functionshared_close
csrc/cpu/comm/shm.cpp:79
Functionshared_fn
()
tests/unit/compile/test_pass_contract.py:140
Methodshould_refresh_expected_hook_count
Return True when count_used_parameters_in_backward() should be re-evaluated. Refresh is needed in two cases: 1. First hook of a backw
deepspeed/runtime/base_optimizer.py:171
Methodshow_2d_mapping
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:159
Functionshow_memory
(label: str)
deepspeed/compile/util.py:437
Methodshow_pp_transformer_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:175
Methodshow_tp_embedding_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:169
Methodshow_tp_final_norm_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:172
Methodshow_transformer_file_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:178
Functionshutdown_init_context
This function is used to initialize deepspeed engine inside the context of Init. We need to remove the wrappers but keep the context.
deepspeed/runtime/zero/partition_parameters.py:681
Functionsigkill_handler
(signum, frame)
deepspeed/launcher/runner.py:621
Functionsilu_mul
GLU epilogue on a [M, 2n] buffer: silu(g) * u.
deepspeed/module_inject/kernel_reference.py:81
Functionsimd_add
csrc/includes/simd.h:281
Functionsimd_add
csrc/xpu/includes/simd.h:117
Functionsimd_and
csrc/includes/simd.h:311
Functionsimd_and
csrc/xpu/includes/simd.h:147
Functionsimd_andnot
csrc/includes/simd.h:323
Functionsimd_andnot
csrc/xpu/includes/simd.h:159
Functionsimd_div
csrc/includes/simd.h:305
Functionsimd_div
csrc/xpu/includes/simd.h:141
Functionsimd_fma
csrc/includes/simd.h:251
Functionsimd_fma
csrc/xpu/includes/simd.h:87
Functionsimd_load
csrc/includes/simd.h:221
Functionsimd_load
csrc/xpu/includes/simd.h:80
Functionsimd_mul
csrc/includes/simd.h:293
Functionsimd_mul
csrc/xpu/includes/simd.h:129
Functionsimd_or
csrc/includes/simd.h:337
Functionsimd_or
csrc/xpu/includes/simd.h:173
Functionsimd_sqrt
csrc/includes/simd.h:275
Functionsimd_sqrt
csrc/xpu/includes/simd.h:111
Functionsimd_store
csrc/includes/simd.h:191
Functionsimd_store
csrc/xpu/includes/simd.h:73
Functionsimd_xor
csrc/includes/simd.h:349
Functionsimd_xor
csrc/xpu/includes/simd.h:185
Functionsimple_config
()
tests/unit/pipe/test_pipe_module.py:36
Functionsimple_prefetch
(graph: Graph, available_mem: int, output_size: int, debug_log: bool)
deepspeed/compile/list_schedule.py:170
Methodsize
(self, index)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:549
Methodsizes
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:465
Functionsizes_to_int_vector
csrc/compile/deepcompile.cpp:32
Functionskewed_forward
(hidden_states, _expert_bias, *, _router=router)
tests/unit/v1/moe/test_autoep_deepep_parity.py:121
Functionskip_on_cuda
(valid_cuda)
tests/unit/util.py:27
Methodslice_with_autotp
(embedding)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:817
Functionslow_prepare
(*args, **kwargs)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2535
Methodslow_save
(state_dict, path, *args, **kwargs)
tests/unit/checkpoint/test_latest_checkpoint.py:103
Methodsoftmax_bf16
(scores, mask, alibi, triangular, recompute, local_attention, window_size, async_op, layer_scale,
op_builder/supa/inference.py:91
Methodsoftmax_context_bf16
(query_key_value, attn_mask, rotary_dim,
op_builder/npu/inference.py:344
Methodsoftmax_context_bf16
(query_key_value, attn_mask, rotary_dim, rotate_half, rotate_every_two, heads, num_kv,
op_builder/supa/inference.py:113
Methodsoftmax_context_fallback
(self, query_key_value, attn_mask, rotary_dim, rotate_half, rotate_every_two, heads,
deepspeed/ops/transformer/inference/op_binding/softmax_context.py:73
Methodsoftmax_context_fp16
(query_key_value, attn_mask, rotary_dim, rotate_half, rotate_every_two, heads, num_kv,
op_builder/supa/inference.py:103
Methodsoftmax_context_fp32
(query_key_value, attn_mask, rotary_dim,
op_builder/npu/inference.py:369
Methodsoftmax_context_fp32
(query_key_value, attn_mask, rotary_dim, rotate_half, rotate_every_two, heads, num_kv,
op_builder/supa/inference.py:123
Methodsoftmax_fp16
(scores, mask, alibi, triangular, recompute, local_attention, window_size, async_op, layer_scale,
op_builder/supa/inference.py:85
Methodsoftmax_fp32
(scores, mask, alibi, triangular, recompute, local_attention, window_size, async_op, layer_scale,
op_builder/supa/inference.py:97
Functionsoftmax_kernel
(output_ptr, input_ptr, stride, n_cols, BLOCK_SIZE: tl.constexpr)
deepspeed/ops/transformer/inference/triton/softmax.py:17
Methodsources
(self)
tests/unit/ops/test_op_builder.py:40
Methodsources
(self)
op_builder/fp_quantizer.py:21
Methodsources
(self)
op_builder/pin_memory.py:29
Methodsources
(self)
op_builder/fused_glu.py:17
Methodsources
(self)
op_builder/random_ltd.py:26
Methodsources
(self)
op_builder/gds.py:29
Methodsources
(self)
op_builder/utils.py:19
Methodsources
(self)
op_builder/ragged_utils.py:27
Methodsources
(self)
op_builder/quantizer.py:20
Methodsources
(self)
op_builder/inference_core_ops.py:28
Methodsources
(self)
op_builder/inference_cutlass_builder.py:27
Methodsources
(self)
op_builder/fused_lamb.py:21
← previousnext →11,501–11,600 of 15,468, ranked by callers