MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethodcreate_writer
(self, file_path, optimize_dp_state)
deepspeed/runtime/model_checkpointing/writer_factory.py:35
↓ 1 callersMethodcreate_zenflow_hooks
(self)
deepspeed/runtime/zero/stage3.py:625
↓ 1 callersMethodcudaHostRegister
(self, address, num_bytes, flags)
tests/unit/v1/pin_memory/test_pin_memory.py:196
↓ 1 callersMethodcudaHostUnregister
(self, address)
tests/unit/v1/pin_memory/test_pin_memory.py:200
↓ 1 callersFunctioncuda_timer
(res_list)
tests/benchmarks/DS4Sci_EvoformerAttention_bench.py:67
↓ 1 callersMethodcurrent_device
(self)
accelerator/supa_accelerator.py:49
↓ 1 callersMethodcurrent_device
(self)
accelerator/sdaa_accelerator.py:77
↓ 1 callersMethodcurrent_device
(self)
accelerator/mlu_accelerator.py:47
↓ 1 callersMethodcurrent_device
(self)
accelerator/npu_accelerator.py:81
↓ 1 callersMethodcurrent_stream
(self, device_index=None)
accelerator/xpu_accelerator.py:259
↓ 1 callersMethodcustom
(start, end)
tests/unit/ops/accelerators/test_accelerator_forward.py:61
↓ 1 callersMethodcustom_reduce
(tensor, dst, op=dist.ReduceOp.SUM, group=None, async_op=False)
tests/unit/v1/half_precision/test_bf16.py:341
↓ 1 callersMethodcxx_args
Returns optional list of compiler flags to forward to the build
op_builder/builder.py:280
↓ 1 callersMethodcxx_args
(self)
op_builder/mps/cpu_adam.py:48
↓ 1 callersMethodcxx_args
(self)
op_builder/klxpu/builder.py:29
↓ 1 callersMethodcxx_args
(self)
op_builder/sdaa/builder.py:56
↓ 1 callersMethodcxx_args
(self)
op_builder/hpu/builder.py:33
↓ 1 callersMethodcxx_args
(self)
op_builder/supa/builder.py:28
↓ 1 callersMethodcxx_args
(self)
op_builder/mlu/builder.py:31
↓ 1 callersMethoddata_efficiency_config
(self)
deepspeed/runtime/engine.py:1518
↓ 1 callersMethoddata_sampling_config
(self)
deepspeed/runtime/engine.py:1524
↓ 1 callersMethoddataloader_drop_last
(self)
deepspeed/runtime/engine.py:2982
↓ 1 callersFunctiondataloader_for_variable_batch_size
( dataset, microbatch_ids, batch_max_seqlens, dataloader_rank=0, dataloader_batch_size=1,
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:165
↓ 1 callersFunctiondebug_param2name_id
(param)
deepspeed/utils/debug.py:117
↓ 1 callersFunctiondebug_param2name_id_shape_status
(param)
deepspeed/utils/debug.py:133
↓ 1 callersFunctiondebug_rank0
(msg: str)
deepspeed/runtime/zero/partition_parameters.py:132
↓ 1 callersFunctiondebug_report
()
deepspeed/env_report.py:133
↓ 1 callersFunctiondeconcat_individual_tensors
(shape_wieght: torch.Size, shape_scale: torch.Size, shape_min: torch.Size)
deepspeed/inference/quantization/utils.py:202
↓ 1 callersFunctiondecorator
(func)
deepspeed/runtime/compiler.py:79
↓ 1 callersFunctiondeepcompile_backward_epilogue
()
deepspeed/compile/util.py:81
↓ 1 callersFunctiondeepcompile_backward_prologue
(is_gradient_accumulation_boundary)
deepspeed/compile/util.py:72
↓ 1 callersFunctiondeepep_combine
(exchange: DeepEPExchange, rows: torch.Tensor, handle)
deepspeed/module_inject/auto_ep_comm.py:607
↓ 1 callersFunctiondeepep_dispatch
Dispatch tokens and their routing weights, keeping both differentiable. ``weight_grad_slot`` and ``expert_weights`` overlap the backward: the exp
deepspeed/module_inject/auto_ep_comm.py:579
↓ 1 callersFunctiondeepep_record_combine
Record :func:`deepep_combine`'s backward without running the combine; the result is all NaN.
deepspeed/module_inject/auto_ep_comm.py:611
↓ 1 callersMethoddefault_cache_dir
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:64
↓ 1 callersMethoddefault_generator
(self, device_index)
accelerator/hpu_accelerator.py:97
↓ 1 callersFunctiondefragment
move provided tensors into a contiguous flat buffer, with some additional measures taken to reduce memory fragmentation
deepspeed/runtime/zero/utils.py:224
↓ 1 callersMethoddequantize_int4_to_half_experimental
Unpack the inference int4 wire format and dequantize to fp16. Each byte holds two unsigned 4-bit values: the high nibble is the even
op_builder/npu/quantizer.py:317
↓ 1 callersMethoddequantize_int8_to_half_experimental
Dequantize the inference int8 wire format to fp16.
op_builder/npu/quantizer.py:333
↓ 1 callersMethoddest_offsets
Yield the offset into the shard of every element this piece covers.
deepspeed/checkpoint/affine.py:113
↓ 1 callersMethoddestroy
(self)
deepspeed/inference/engine.py:191
↓ 1 callersMethoddestroy
Release the buffer. Collective, so every rank must call it.
deepspeed/module_inject/auto_ep_comm.py:384
↓ 1 callersMethoddevice
(self, device_index)
accelerator/mps_accelerator.py:53
↓ 1 callersMethoddevice
(self, device_index)
accelerator/abstract_accelerator.py:40
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/supa_accelerator.py:34
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/sdaa_accelerator.py:66
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/cpu_accelerator.py:195
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/mlu_accelerator.py:36
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/npu_accelerator.py:70
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/xpu_accelerator.py:202
↓ 1 callersMethoddevice_name
(self, device_index=None)
accelerator/cuda_accelerator.py:64
↓ 1 callersFunctiondfs
(node: Node)
deepspeed/compile/list_schedule.py:237
↓ 1 callersFunctiondict_to_dims
(tuning_space)
deepspeed/autotuning/tuner/utils.py:30
↓ 1 callersMethoddirect_injection
(self, name: str, tensor: InferenceParameter)
deepspeed/inference/v2/model_implementations/layer_container_base.py:264
↓ 1 callersFunctiondisable_accelerator
()
deepspeed/runtime/zenflow/zenflow_utils.py:55
↓ 1 callersFunctiondispatch_mask
(logits)
tests/unit/v1/moe/test_moe.py:534
↓ 1 callersMethoddispatch_with_handle
Replay a dispatch against a cached handle. Used as the backward of a combine, which scatters the combined gradient back to the rows t
deepspeed/module_inject/auto_ep_comm.py:295
↓ 1 callersFunctiondistributed_naive_reduce
naive allreduce distributed, each rank do naive reduce on its slice
csrc/cpu/comm/shm.cpp:570
↓ 1 callersFunctiondistribution
Count, sum and order statistics, with nearest-rank percentiles. Empty input has the same keys, with ``None`` for the order statistics and the mea
deepspeed/checkpoint/affine_transfer_analysis.py:200
↓ 1 callersMethoddomino_core_attention_forward
(self, mixed_x_layer, attention_mask, rotary_pos_emb=None)
deepspeed/runtime/domino/transformer.py:195
↓ 1 callersMethoddrain
(self, num_bytes, fd, file_offset)
deepspeed/io/base_io_buffer.py:19
↓ 1 callersFunctiondrain_cp_asyncs
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:509
↓ 1 callersFunctiondrop_some_gradients
(model, iter)
tests/unit/v1/zero/test_zero.py:382
↓ 1 callersFunctiondrop_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:113
↓ 1 callersFunctionds_adam_copy_supported
csrc/adam/cpu_adam_impl.cpp:327
↓ 1 callersFunctionds_adam_grad_scale_supported
csrc/adam/cpu_adam_impl.cpp:344
↓ 1 callersFunctionds_adam_step
csrc/adam/cpu_adam_impl.cpp:300
↓ 1 callersFunctionds_implementation
(vals, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:33
↓ 1 callersFunctionds_implementation
(vals, gamma, epsilon)
tests/unit/ops/transformer/inference/test_rms_norm.py:29
↓ 1 callersFunctionds_io_main
()
deepspeed/nvme/test_ds_aio.py:14
↓ 1 callersFunctionds_layer_norm_internal
csrc/transformer/inference/csrc/pt_binding.cpp:764
↓ 1 callersFunctionds_lion_step
csrc/lion/cpu_lion_impl.cpp:192
↓ 1 callersFunctionds_page_aligned_alloc
csrc/pin_memory/page_alloc.cpp:14
↓ 1 callersFunctionds_triton_implementation
(vals, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:37
↓ 1 callersMethoddump_state
(self)
deepspeed/runtime/engine.py:1890
↓ 1 callersMethoddynamic_loss_scale_args
(self)
deepspeed/runtime/precision_config.py:202
↓ 1 callersFunctiondynamo_counter_text
()
tests/torch_compile/test_deepcompile_skipped_frame.py:29
↓ 1 callersMethodearly_initialization
( self, batch_size: int, num_heads: int, head_dim: int, dtype: torch.d
deepspeed/utils/static_cache.py:390
↓ 1 callersMethodelastic_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:771
↓ 1 callersFunctionempty_cache
()
deepspeed/runtime/utils.py:886
↓ 1 callersMethodempty_partition_cache
(self)
deepspeed/runtime/zero/stage3.py:4336
↓ 1 callersMethodenable
< CUTLASS_HOST_DEVICE enables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:158
↓ 1 callersFunctionenable_grads
(model)
tests/unit/v1/zero/test_zero.py:387
↓ 1 callersFunctionenable_symm_mem_for_group
(group_name: str)
deepspeed/comm/comm.py:827
↓ 1 callersMethodendBackward
csrc/compile/z2.cpp:33
↓ 1 callersMethodendForward
csrc/includes/deepcompile.h:491
↓ 1 callersMethodend_document
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:290
↓ 1 callersMethodensure_directory_exists
(self, filename)
tests/model/BingBertSquad/BingBertSquad_test_common.py:38
↓ 1 callersMethodensure_directory_exists
(self, filename)
tests/model/Megatron_GPT2/test_common.py:44
↓ 1 callersMethodensure_kv_buffer
Grow-on-demand KV buffer stored in the layout npu_fusion_attention consumes. The buffer keeps K/V as [bsz, cap, num_kv_heads * head_dim]: a d
op_builder/npu/inference.py:77
↓ 1 callersMethodenter_backward
Enter backward context. Call at the start of backward pass.
deepspeed/runtime/base_optimizer.py:139
↓ 1 callersFunctionenv_mapping
(env, rank_name_list=None, local_rank_name_list=None)
deepspeed/launcher/launcher_helper.py:55
↓ 1 callersFunctionerr
(s: str)
scripts/check-torchdist.py:18
↓ 1 callersFunctionerr
(s: str)
scripts/check-extraindexurl.py:18
↓ 1 callersFunctionerr
(s: str)
scripts/check-torchcuda.py:18
↓ 1 callersFunctionerr
(s: str)
scripts/check-license.py:17
↓ 1 callersFunctionestimate_zero2_model_states_mem_needs
(total_params, num_gpus_per_node=1,
deepspeed/runtime/zero/stage_1_and_2.py:4175
↓ 1 callersFunctionestimate_zero2_model_states_mem_needs_all_cold
Print out estimates on memory usage requirements for ZeRO 2 params, optim states and gradients for a given ``model`` and hardware setup.
deepspeed/runtime/zero/stage_1_and_2.py:4231
↓ 1 callersFunctionestimate_zero3_model_states_mem_needs
(total_params, largest_layer_params,
deepspeed/runtime/zero/stage3.py:4538
↓ 1 callersFunctionestimate_zero3_model_states_mem_needs_all_cold
Print out estimates on memory usage requirements for ZeRO 3 params, optim states and gradients for a given ``model`` and hardware setup.
deepspeed/runtime/zero/stage3.py:4621
← previousnext →5,001–5,100 of 15,767, ranked by callers