MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 5 callersMethodcreate
(cls, zenflow_config)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:88
↓ 5 callersFunctiondeepcompile_z3_forward_context
(engine)
deepspeed/compile/z3_eager_fallback.py:46
↓ 5 callersFunctiondestroy_exchanges
Release the DeepEP buffers held by the AutoEP layers under ``module``. Collective, and ordered by the module tree, which every rank walks the sam
deepspeed/module_inject/auto_ep_comm.py:140
↓ 5 callersFunctiondo_aio_operation_overlap
csrc/aio/common/deepspeed_aio_common.cpp:224
↓ 5 callersFunctiondo_aio_operation_sequential
csrc/aio/common/deepspeed_aio_common.cpp:157
↓ 5 callersFunctionds_id
(param)
deepspeed/utils/debug.py:103
↓ 5 callersFunctionestimate_seconds
The model's time for running ``stages`` one after another, each as one ``execute_transfers`` call. A two-stage relay is two stages. The executor
deepspeed/checkpoint/affine_transfer_cost.py:124
↓ 5 callersMethodeval_batch
Evaluate the pipeline on a batch of data from ``data_iter``. The engine will evaluate ``self.train_batch_size()`` total samples collec
deepspeed/runtime/pipe/engine.py:409
↓ 5 callersFunctionfind_node_by_name
(gm: GraphModule, name: str)
deepspeed/compile/fx.py:178
↓ 5 callersMethodflops_profiler_enabled
(self)
deepspeed/runtime/engine.py:1574
↓ 5 callersMethodforward
(self, x, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:236
↓ 5 callersMethodfp16_enabled
(self)
deepspeed/autotuning/autotuner.py:265
↓ 5 callersMethodfree
csrc/pin_memory/deepspeed_pin_tensor.cpp:64
↓ 5 callersMethodgetDSId
csrc/includes/deepcompile.h:127
↓ 5 callersMethodgetDSTensor
csrc/includes/deepcompile.h:278
↓ 5 callersFunctionget_backward_inputs
(frame_key=None)
deepspeed/compile/patch_compiled_func.py:113
↓ 5 callersMethodget_bwd_mapping
(self, bw_graph: Graph)
deepspeed/compile/graph_param.py:61
↓ 5 callersMethodget_checkpoint_info
(self, info_key=CHECKPOINT_INFO_KEY)
deepspeed/checkpoint/deepspeed_checkpoint.py:227
↓ 5 callersMethodget_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:383
↓ 5 callersMethodget_data_parallel_partitions
(self, tensor, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:2654
↓ 5 callersMethodget_data_parallel_world_size
The number of pipelines.
deepspeed/runtime/pipe/topology.py:430
↓ 5 callersFunctionget_expert_activation
(name: str)
deepspeed/moe/ep_experts.py:95
↓ 5 callersFunctionget_fp32_state_dict_from_zero_checkpoint
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training
deepspeed/utils/zero_to_fp32.py:614
↓ 5 callersFunctionget_fused_glu_op
Lazily JIT-build and load the fused_glu CUDA op (cached process-wide).
deepspeed/ops/module_inject/fused_glu.py:14
↓ 5 callersFunctionget_fused_qkv_type
(module)
deepspeed/module_inject/fusedqkv_utils.py:48
↓ 5 callersMethodget_gradient_for_reduction
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1295
↓ 5 callersFunctionget_group
(gid: int)
deepspeed/compile/custom_ops/sp_dp_registry.py:18
↓ 5 callersMethodget_hp_fragment
(self, optim_state_key=None)
deepspeed/utils/tensor_fragment.py:55
↓ 5 callersMethodget_lr_ratio
(self)
deepspeed/runtime/lr_schedules.py:904
↓ 5 callersFunctionget_megatron_version
()
tests/unit/megatron_model.py:16
↓ 5 callersMethodget_model_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:447
↓ 5 callersMethodget_sequence
Get the sequence descriptor for the given sequence id. If the sequence does not exist, then None is returned.
deepspeed/inference/v2/ragged/ragged_manager.py:123
↓ 5 callersMethodget_sequence_parallel_world_size
(self)
tests/unit/v1/moe/test_autoep_unit.py:499
↓ 5 callersMethodget_slice_parallel_group
(self)
deepspeed/runtime/pipe/topology.py:469
↓ 5 callersMethodget_slice_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:463
↓ 5 callersMethodget_total_macs
Returns the total MACs of the model. Args: as_string (bool, optional): whether to output the flops as string. Defaults to False.
deepspeed/profiling/flops_profiler/profiler.py:244
↓ 5 callersMethodgroup_step
(self, group_to_paramlist)
deepspeed/ops/adam/zenflow_torch_adam.py:203
↓ 5 callersMethodhas_all_gather_into_tensor
(self)
deepspeed/comm/torch.py:302
↓ 5 callersMethodhas_gradients
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:63
↓ 5 callersMethodhas_value
(self, name: str)
deepspeed/compile/util.py:219
↓ 5 callersMethodinit_process_group
(self)
deepspeed/comm/backend.py:44
↓ 5 callersFunctioninstall_chunked_causal_lm_loss
Make a Hugging Face causal LM compute its training loss with :class:`ChunkedCausalLMLoss`. Only models whose ``loss_function`` is the stock ``For
deepspeed/runtime/chunked_cross_entropy.py:283
↓ 5 callersFunctioninstalled_cuda_version
()
op_builder/builder.py:43
↓ 5 callersFunctionis_activation_to_checkpoint
Is an activation to be checkpointed
deepspeed/runtime/activation_checkpointing/checkpointing.py:377
↓ 5 callersFunctionis_autoep_zero3_partitioned_entry
(entry)
deepspeed/checkpoint/autoep_zero3_metadata.py:42
↓ 5 callersFunctionis_autotp_training_mode
()
deepspeed/module_inject/layers.py:176
↓ 5 callersMethodis_first_stage
True if this process is in the first stage in the pipeline.
deepspeed/runtime/pipe/engine.py:510
↓ 5 callersFunctionis_profile_incomplete
(graph: Graph)
deepspeed/compile/profilers/graph_profile.py:81
↓ 5 callersMethodis_record_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:208
↓ 5 callersMethodis_swappable_tensor
(self, tensor=None, numel=None)
deepspeed/runtime/swap_tensor/optimizer_utils.py:225
↓ 5 callersMethodkv_ptrs
Pointer to where the list of KV ids associated with a sequence are. If the device Tensor is requested, the Tensor is truncated to the
deepspeed/inference/v2/ragged/ragged_wrapper.py:260
↓ 5 callersFunctionlegacy_uniform_autoep_placement_descriptor
Synthesize the legacy contiguous, uniform AutoEP placement.
deepspeed/checkpoint/autoep_affine.py:109
↓ 5 callersFunctionload_with_byte_offset
Loads a fragment from memory
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:323
↓ 5 callersMethodload_with_pointer_offset
Loads a fragment from memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:812
↓ 5 callersFunctionmacs_to_string
(macs, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1123
↓ 5 callersFunctionmake_cutlass_checkout
(path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:16
↓ 5 callersMethodmemory_stats
(self, device_index=None)
accelerator/hpu_accelerator.py:141
↓ 5 callersMethodmoe
Dispatch, a per-expert matmul over each expert's contiguous rows, weighting, combine.
tests/unit/module_inject/test_auto_ep_comm.py:1078
↓ 5 callersMethodneeds_scaler
Check if this optimizer requires loss scaling for correct backward pass. Returns True if any of the following conditions are met:
deepspeed/runtime/base_optimizer.py:430
↓ 5 callersFunctionomp_get_max_threads
Builds without OpenMP (e.g. Apple clang without libomp) run the kernels on one thread. */
csrc/includes/reflow_cpu_adam.h:15
↓ 5 callersFunctionparams_to_string
(params_num, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1169
↓ 5 callersFunctionparse_inclusion_exclusion
(resource_pool, inclusion, exclusion)
deepspeed/launcher/runner.py:373
↓ 5 callersFunctionplan_prefill_buckets
Minimize additive predicted cost over contiguous length-sorted buckets. ``cost(batch_size, padded_width)`` belongs to the model backend. Returned
deepspeed/runtime/rollout/continuous_batching.py:136
↓ 5 callersMethodpopulate_all_inference_policies
(self)
deepspeed/runtime/hybrid_engine.py:124
↓ 5 callersFunctionprepare_step
(opt, param, master, monkeypatch, mock_collectives=True)
tests/unit/v1/zero/test_zero2_gradient_safety.py:597
↓ 5 callersMethodrandom
(self)
tests/unit/v1/compile/test_graph_profile.py:50
↓ 5 callersFunctionrandom_dataset
(total_samples, hidden_dim, device, dtype=preferred_dtype())
tests/unit/simple_model.py:245
↓ 5 callersFunctionreduce
(tensor, dst, op=ReduceOp.SUM, group=None, async_op=False,
deepspeed/comm/comm.py:639
↓ 5 callersFunctionreduce_scatter_coalesced
simultaneously reduce-scatter a list of tensors - this can be done more efficiently than individual reduce scatter calls TODO. see if PyTorch
deepspeed/runtime/comm/coalesced_collectives.py:83
↓ 5 callersMethodreentrant
()
tests/unit/module_inject/test_auto_ep_comm.py:1483
↓ 5 callersFunctionreference_entropy
(logits)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:25
↓ 5 callersFunctionregister_external_parameter
Instruct DeepSpeed to coordinate ``parameter``'s collection and partitioning in the forward and backward passes of ``module``. This is used w
deepspeed/runtime/zero/partition_parameters.py:151
↓ 5 callersFunctionregister_grad_hook
(param, hook)
deepspeed/utils/torch.py:41
↓ 5 callersMethodrelease_memory
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:35
↓ 5 callersFunctionreplace_attention
Replace every DSA attention module of ``model`` with :class:`DeepSpeedGlmMoeDsaAttention`. Returns the number of replaced modules. Call it after
deepspeed/models/glm_moe_dsa/attention.py:393
↓ 5 callersMethodreset_cpu_buffers
(self)
deepspeed/runtime/zero/stage3.py:2777
↓ 5 callersMethodrun
Profile absolute memory and release gathered/interpreter state on every exit.
deepspeed/compile/profilers/graph_profile.py:436
↓ 5 callersMethodrun_gpt2_test
(self, test_config, output)
tests/model/Megatron_GPT2/test_common.py:55
↓ 5 callersMethodrun_test
(self, test_config, r_tol)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:113
↓ 5 callersMethodsample
(logits)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:2025
↓ 5 callersMethodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:32
↓ 5 callersMethodscatter
(self, tensor, gather_list, dst, group=None, async_op=False)
deepspeed/comm/ccl.py:134
↓ 5 callersMethodset_dependency
Set dependency can be used for managing dependencies when a mapping is provided in the class definition for the layer. The dep_name h
deepspeed/inference/v2/model_implementations/layer_container_base.py:272
↓ 5 callersMethodset_residual_tile
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:760
↓ 5 callersMethodshard
Replace the weights with column-parallel shards, as AutoTP's `_tp_partition` does.
tests/unit/runtime/zero/test_per_head_muon.py:768
↓ 5 callersFunctionshould_log_le
Args: max_log_level_str: maximum log level as a string Returns ``True`` if the current log_level is less or equal to the specified l
deepspeed/utils/logging.py:215
↓ 5 callersFunctionsort_dtypes
(dtypes: List[torch.dtype])
deepspeed/runtime/torch_autocast.py:89
↓ 5 callersMethodsource_offsets
Yield the offset into the full tensor of every element this piece covers. Used to check coverage. Pieces are small relative to the parameter,
deepspeed/checkpoint/affine.py:105
↓ 5 callersMethodstep
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/adagrad/cpu_adagrad.py:41
↓ 5 callersMethodstep
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/lion/cpu_lion.py:77
↓ 5 callersMethodstep
Not supporting closure.
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:778
↓ 5 callersMethodstore_with_pointer_offset
Store a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:830
↓ 5 callersFunctionsubchannel_grouped_matmul
``y[m] = x[m] weight[e]^T`` for the rows ``m`` of group ``e``, with quantized forward and backward GEMMs. Args: x: ``[M, K]`` activations
deepspeed/runtime/quantization/subchannel.py:292
↓ 5 callersFunctiontask_log
(tid, msg, force=False)
deepspeed/nvme/test_ds_aio_utils.py:20
↓ 5 callersMethodto
Move the parameter to the given device. Then, if the device is a cuda device, quantize it.
deepspeed/linear/quantization.py:118
↓ 5 callersFunctiontop1gating
Implements Top1Gating on logits.
deepspeed/moe/sharded_moe.py:216
↓ 5 callersFunctiontorch_assert_equal
Compare two tensors or non-tensor numbers for their equality. Add msg=blah to add an additional comment to when assert fails.
tests/unit/util.py:127
↓ 5 callersFunctiontrain_and_collect
(model, config, batches, client_optimizer=None, on_initialize=None, state_keys=())
tests/unit/v1/zero/test_reflow.py:488
↓ 5 callersFunctiontranspose
(data)
deepspeed/module_inject/utils.py:9
↓ 5 callersMethodvalidate
(config)
tests/unit/module_inject/test_auto_ep_comm.py:34
← previousnext →1,001–1,100 of 15,767, ranked by callers