MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethodholders
Map each element offset of the full tensor to the set of ranks holding it.
deepspeed/checkpoint/affine.py:241
↓ 2 callersMethodinclude_paths
(self)
op_builder/xpu/async_io.py:38
↓ 2 callersMethodindependent_gradient_partition_epilogue
(self)
deepspeed/runtime/zero/stage3.py:1459
↓ 2 callersFunctionindexer_logits
Dense float32 indexer logits ``[rows, tokens_kv]`` for a block of query rows. ``index_q`` is ``[rows, heads, index_dim]`` bf16, ``index_k`` is ``
deepspeed/models/glm_moe_dsa/kernels/indexer_fwd.py:134
↓ 2 callersFunctioninit_ds_engine
(model, ds_config, use_torch_adam)
tests/unit/checkpoint/test_universal_checkpoint.py:68
↓ 2 callersFunctioninit_lora
(model)
deepspeed/linear/context_manager.py:20
↓ 2 callersMethodinit_lora
(self)
deepspeed/linear/optimized_linear.py:125
↓ 2 callersFunctioninit_schedule
(graph: Graph)
deepspeed/compile/list_schedule.py:53
↓ 2 callersFunctioninit_schedule
(schedule)
deepspeed/compile/backend.py:109
↓ 2 callersMethodinitialize_gradient_partition
(self, i, param_group, partition_id)
deepspeed/runtime/zero/stage_1_and_2.py:1200
↓ 2 callersMethodinitialize_tensors
(self, enable_training=False)
deepspeed/module_inject/containers/base.py:140
↓ 2 callersFunctioninjection_assert
(model)
tests/unit/linear/test_ctx.py:25
↓ 2 callersMethodinstalled_cann_path
(self)
op_builder/npu/builder.py:53
↓ 2 callersMethodinvalidate
Drop every captured graph and the memory pool backing them.
deepspeed/runtime/hybrid_engine_graph.py:67
↓ 2 callersMethodinvalidate_secondary_tensor
(self)
deepspeed/runtime/zero/stage3.py:764
↓ 2 callersFunctioninverse_permutation
For each of ``num_rows`` original rows, the padded position ``permuted_indices`` sent it to. ``permuted_indices`` must hold each of ``0 .. num_ro
deepspeed/moe/ep_kernels.py:312
↓ 2 callersMethodisValid
csrc/includes/deepcompile.h:446
↓ 2 callersFunctionis_cast_op
(node: Node)
deepspeed/compile/util.py:146
↓ 2 callersFunctionis_current_accelerator_supported
()
accelerator/real_accelerator.py:47
↓ 2 callersFunctionis_docs_path
Everything under docs/ or blogs/, plus Markdown files anywhere.
ci/check_paths.py:29
↓ 2 callersMethodis_invalid_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:186
↓ 2 callersMethodis_load_module
(module)
deepspeed/module_inject/auto_tp.py:141
↓ 2 callersMethodis_mlp
(self, data, merge_count=1)
deepspeed/runtime/weight_quantizer.py:34
↓ 2 callersFunctionis_offload_optimizer_enabled
(config_dict)
tests/unit/v1/zero/test_offload_states.py:70
↓ 2 callersFunctionis_only_offload_optimizer_states
(offloaded_states, optimizer_offload_states)
tests/unit/v1/zero/test_offload_states.py:74
↓ 2 callersMethodis_pinned
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:416
↓ 2 callersMethodis_pinned
(self, tensor)
accelerator/abstract_accelerator.py:371
↓ 2 callersMethodis_synchronized_device
(self)
accelerator/mps_accelerator.py:32
↓ 2 callersFunctionisclose
(a, b, rtol=1e-09, atol=0.0)
deepspeed/runtime/zero/stage3.py:75
↓ 2 callersFunctioniter_graphs
Yield the graph of gm and of every nested GraphModule. Uses modules() rather than recursing through named_children(): a GraphModule can sit under
deepspeed/compile/passes/tp_compile.py:116
↓ 2 callersFunctionjoin_as_str
csrc/includes/deepcompile.h:55
↓ 2 callersFunctionkeep_tensors_in_fp32
Convert the matching parameters and buffers of ``module`` to fp32 in place. A ZeRO-3 parameter is converted in its partition, so a later gather r
deepspeed/runtime/keep_in_fp32.py:85
↓ 2 callersMethodkv_cache_ids
Returns the Tensor containing the block IDs for this sequence on the appropriate device for the specified cache group. Argum
deepspeed/inference/v2/ragged/sequence_descriptor.py:177
↓ 2 callersFunctionlaunch_sweep
(sweep_jobs, sync_job, flush_cache_job, verbose)
deepspeed/nvme/perf_run_sweep.py:155
↓ 2 callersFunctionlaunch_sweep
(sweep_jobs, sync_job, flush_cache_job)
csrc/aio/py_test/aio_bench_perf_sweep.py:146
↓ 2 callersMethodlayer_norm_residual
(cls, vals, bias, res, gamma, beta, epsilon)
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:27
↓ 2 callersMethodlayer_norm_residual_store_pre_ln_res
(cls, vals, bias, res, gamma, beta, epsilon)
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:38
↓ 2 callersMethodlayernorm
(self)
deepspeed/module_inject/containers/opt.py:156
↓ 2 callersFunctionlazy_init_hp_params_optimizer_state
(lp_param_list, flat_hp_partition, optimizer_state)
deepspeed/utils/mixed_precision_linkage.py:34
↓ 2 callersMethodload
(self, verbose=True)
op_builder/npu/inference.py:504
↓ 2 callersMethodload_buffer
(module, state_dict, prefix)
deepspeed/module_inject/auto_tp.py:153
↓ 2 callersFunctionload_hp_checkpoint_state
(self, folder, tp_rank, tp_world_size, ep_rank=0, ep_size=1, load_optimizer_states=True)
deepspeed/checkpoint/universal_checkpoint.py:236
↓ 2 callersMethodload_hp_checkpoint_state_from_checkpoint_dir
(self, lp_groups_name: str,
deepspeed/runtime/base_optimizer.py:346
↓ 2 callersMethodload_module_state_dict
(self, checkpoint, strict=True,
deepspeed/runtime/engine.py:4350
↓ 2 callersFunctionload_state_dict_from_zero_checkpoint
1. Put the provided model to cpu 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` 3. Load it into the pro
deepspeed/utils/zero_to_fp32.py:785
↓ 2 callersMethodload_state_dir
(self, load_dir, checkpoint_engine, strict=True)
deepspeed/runtime/pipe/module.py:640
↓ 2 callersFunctionload_test_selection
(path: Path, mode: str)
ci/torch_latest.py:350
↓ 2 callersMethodload_to_gpu
(self)
deepspeed/sequence/fpdt_layer.py:536
↓ 2 callersMethodlocal_size
(self)
deepspeed/runtime/utils.py:829
↓ 2 callersFunctionlog_dist_once
(message, ranks=None, level=logging.INFO)
deepspeed/utils/logging.py:146
↓ 2 callersMethodlookup
(name, create_if_missing=False)
ci/test_torch_latest.py:315
↓ 2 callersMethodloss_fn
(self, x, y)
tests/unit/ulysses_alst/test_tiled_compute.py:339
↓ 2 callersMethodloss_scale
(self)
deepspeed/runtime/engine.py:1734
↓ 2 callersFunctionmain
(hide_operator_status=False, hide_errors_and_warnings=False)
deepspeed/env_report.py:177
↓ 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 callersFunctionmatmul_fp8
(inp, weight, scale, quantization_group_size, quantizer)
deepspeed/ops/fp_quantizer/fp8_gemm.py:16
↓ 2 callersMethodmax_memory_allocated
(self)
tests/unit/v1/compile/test_graph_profile.py:36
↓ 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:58
↓ 2 callersFunctionmaybe_step
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:36
↓ 2 callersMethodmemory_bytes
(self)
deepspeed/utils/static_cache.py:148
↓ 2 callersMethodmerge_assert
(self, dim1, dim2)
deepspeed/module_inject/auto_tp.py:50
↓ 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 callersMethodnvcc_args
Returns optional list of compiler flags to forward to nvcc when building CUDA sources
op_builder/builder.py:313
↓ 2 callersFunctionobj_serialization_details
()
deepspeed/io/utils.py:52
↓ 2 callersMethodoffload
(self)
deepspeed/sequence/fpdt_layer.py:555
↓ 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 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:1560
↓ 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 callersFunctionparallel_memcpy
csrc/cpu/comm/shm.cpp:412
↓ 2 callersFunctionparse_model_states
(files)
deepspeed/utils/zero_to_fp32.py:150
↓ 2 callersFunctionparse_range_list
(range_str)
deepspeed/utils/numa.py:89
↓ 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
← previousnext →2,701–2,800 of 14,579, ranked by callers