MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctiondeepep_dispatch
Dispatch tokens and their routing weights, keeping both differentiable. ``replay`` is the calling layer's record of its forward dispatches, which
deepspeed/module_inject/auto_ep_comm.py:517
↓ 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:215
↓ 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:109
↓ 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:372
↓ 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 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:254
↓ 1 callersFunctiondrop_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:113
↓ 1 callersFunctionds_adam_step
csrc/adam/cpu_adam_impl.cpp:251
↓ 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:1809
↓ 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:304
↓ 1 callersMethodelastic_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:753
↓ 1 callersFunctionempty_cache
()
deepspeed/runtime/utils.py:885
↓ 1 callersMethodempty_partition_cache
(self)
deepspeed/runtime/zero/stage3.py:3948
↓ 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:259
↓ 1 callersFunctionenable_symm_mem_for_group
(group_name: str)
deepspeed/comm/comm.py:819
↓ 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:4135
↓ 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:4191
↓ 1 callersFunctionestimate_zero3_model_states_mem_needs
(total_params, largest_layer_params,
deepspeed/runtime/zero/stage3.py:4150
↓ 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:4233
↓ 1 callersFunctionevaluate_symint_from_shape_env
(sym_int_v)
deepspeed/compile/backend.py:173
↓ 1 callersFunctionexclude_unsupported_gds_targets
Remove explicit GDS targets from runners without GPUDirect Storage.
ci/torch_latest.py:219
↓ 1 callersMethodexperiment_check
(self, pbar)
deepspeed/autotuning/scheduler.py:111
↓ 1 callersMethodexpert_exec
(self, dispatched_input)
deepspeed/ops/transformer/inference/moe_inference.py:241
↓ 1 callersMethodexplain
Human-readable trace of why each test was selected (#7).
ci/tests_fetcher.py:589
↓ 1 callersFunctionexscan_from_cumsum_
(arr)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:337
↓ 1 callersFunctionexternal_parameters
(self)
deepspeed/runtime/zero/partition_parameters.py:141
↓ 1 callersMethodextra_ldflags
(self)
op_builder/mps/cpu_adam.py:58
↓ 1 callersMethodextra_ldflags
(self)
op_builder/klxpu/async_io.py:46
↓ 1 callersMethodextra_ldflags
(self)
op_builder/xpu/builder.py:103
↓ 1 callersMethodextra_ldflags
(self)
op_builder/supa/async_io.py:46
↓ 1 callersFunctionextract_mesh_size
(param_dict)
deepspeed/compile/custom_ops/sp_dp_registry.py:30
↓ 1 callersFunctionextract_value
(key, file)
deepspeed/nvme/parse_nvme_stats.py:36
↓ 1 callersFunctionextract_value
(key, file)
csrc/aio/py_test/parse_aio_stats.py:36
↓ 1 callersFunctionextract_zero_shards_stage3
(optim_files_grid, param_shapes_grid, dp_degree,
deepspeed/checkpoint/ds_to_universal.py:168
↓ 1 callersFunctionf_gelu
(x)
tests/unit/modeling.py:47
↓ 1 callersFunctionf_gelu
(x)
tests/unit/modelingpreln.py:46
↓ 1 callersFunctionfallback_handler_no_reuse
(kernel, never_reuse_input, never_reuse_ou
deepspeed/compile/inductor.py:230
↓ 1 callersFunctionfetch_hostfile
(hostfile_path)
deepspeed/launcher/runner.py:212
↓ 1 callersFunctionfetch_requirements
(path)
setup.py:58
↓ 1 callersMethodfile_write_ordered
MPI_file_write_ordered extended to write a list of tensors, by one rank, iteratively
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:670
↓ 1 callersMethodfileno
(self)
deepspeed/io/py_file_writer.py:21
↓ 1 callersMethodfill_grad_accum_attribute
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1282
↓ 1 callersFunctionfill_indices_wrapper
Launch the Triton kernel to fill permutation indices. Falls back to :func:`fill_indices_cpu` when Triton is unavailable.
deepspeed/moe/ep_kernels.py:104
↓ 1 callersMethodfilter_ccs
Prune any compute capabilities that are not compatible with the builder. Should log which CCs have been pruned.
op_builder/builder.py:826
↓ 1 callersMethodfilter_ccs
Keep only Tensor Core capable targets (>= 7.0).
op_builder/evoformer_attn.py:44
↓ 1 callersMethodfinalize
Finalize the parameter after all of its source parameters have been set. This method will be automatically called when all inputs hav
deepspeed/inference/v2/model_implementations/parameter_base.py:144
↓ 1 callersMethodfinalize
(self, index_file)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:316
↓ 1 callersMethodfinalize_metric_results
(self, metric_types, metric_dtypes, metric_results)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:132
↓ 1 callersFunctionfind_del_key
(d: dict, k: str)
deepspeed/autotuning/utils.py:243
↓ 1 callersFunctionfind_dtype
(module)
tests/unit/inference/test_checkpoint_sharding.py:33
↓ 1 callersMethodfind_estimated_top_configs
Use the cost model to predict the estimated performance of configurations and find the top ones for the next round of evaluation
deepspeed/autotuning/tuner/model_based_tuner.py:58
↓ 1 callersFunctionfind_replace_str
(value, replace_dict)
deepspeed/autotuning/utils.py:41
↓ 1 callersMethodfini
(self)
deepspeed/nvme/torch_io.py:19
↓ 1 callersMethodfini
(self)
csrc/aio/py_test/torch_io.py:19
↓ 1 callersMethodfinish
csrc/aio/py_lib/deepspeed_cpu_op.cpp:43
← previousnext →4,601–4,700 of 14,579, ranked by callers