MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethod__init__
(self, input_dim=2, hidden_dim=4, output_dim=4, num_layers=2)
tests/small_model_debugging/stage3_test.py:25
↓ 1 callersMethod__init__
(self, hidden_size, intermediate_size, heads, num_hidden_layers)
deepspeed/ops/transformer/inference/config.py:13
↓ 1 callersMethod__init__
(self, *args, **kwargs)
deepspeed/ops/transformer/inference/ds_attention.py:187
↓ 1 callersMethod__init__
(self, group_size=512)
deepspeed/ops/fp_quantizer/quantize.py:26
↓ 1 callersMethod__init__
(self, *args, offload=False, bucket_size=5e8, **kwargs)
deepspeed/ops/adam/zenflow_torch_adam.py:51
↓ 1 callersMethod__init__
(self, exps: list, resource_manager, metric)
deepspeed/autotuning/tuner/index_based_tuner.py:14
↓ 1 callersMethod__init__
(self, tp_group=None, sp_group=None, vocab_start_index=None
deepspeed/sequence/cross_entropy.py:362
↓ 1 callersMethod__init__
(self, projection: nn.Module, process_group, vision_start_token_id: int, vision_end_token_id:
deepspeed/sequence/autosp_fusion.py:289
↓ 1 callersMethod__init__
(self, gm: GraphModule, iteration: int = 10, warmup: int = 5, debug_log=False, process_group=None)
deepspeed/compile/profilers/graph_profile.py:206
↓ 1 callersMethod__init__
(self, config: Dict, pre_quant_layer: nn.Linear)
deepspeed/inference/quantization/layers.py:49
↓ 1 callersMethod__init__
Initialization of the LayerContainer. This method does not need to be overridden for any children classes. Args:
deepspeed/inference/v2/model_implementations/layer_container_base.py:192
↓ 1 callersMethod__init__
Direct constructor. This should not be called from client code. Args: model (InferenceModel): Inference model that will
deepspeed/inference/v2/model_implementations/parameter_base.py:129
↓ 1 callersMethod__init__
(self, monitor_config)
deepspeed/monitor/monitor.py:16
↓ 1 callersMethod__init__
(self, ckpt_list, version, checkpoint_engine)
deepspeed/runtime/state_dict_factory.py:50
↓ 1 callersMethod__init__
(self, orig_layer, name="")
deepspeed/runtime/utils.py:1165
↓ 1 callersMethod__init__
(self, optimizer, cycle_min_lr, cycle_max_lr,
deepspeed/runtime/lr_schedules.py:483
↓ 1 callersMethod__init__
(self, enable_micro_timers, enable_global_timers)
deepspeed/runtime/engine.py:193
↓ 1 callersMethod__init__
(self, init_optimizer, param_names, timers,
deepspeed/runtime/zero/stage_1_and_2.py:170
↓ 1 callersMethod__init__
( self, input_size: int, output_size: int, config, init_method: Callab
deepspeed/runtime/domino/async_linear.py:97
↓ 1 callersMethod__init__
(self, aio_handle, read_op, param_info, allocated_buffers, state_buffers, num_ops)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:22
↓ 1 callersMethod__init__
(self, size=10_000_000)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:879
↓ 1 callersMethod__init__
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:16
↓ 1 callersMethod__init__
( self, use_pin_memory: bool = True, use_streams: bool = True, min_offload_byt
deepspeed/runtime/activation_checkpointing/offload_activations.py:65
↓ 1 callersMethod__init__
(self)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:26
↓ 1 callersMethod__init__
(self)
deepspeed/module_inject/policy.py:30
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/distil_bert.py:15
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/gptneo.py:22
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/clip.py:15
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/opt.py:21
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/gpt2.py:13
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/bert.py:15
↓ 1 callersMethod__init__
(self, client_module, inference=True, use_load_prefix=True, split_qkv=False)
deepspeed/module_inject/containers/bloom.py:108
↓ 1 callersMethod__init__
(self, client_module, inference=True)
deepspeed/module_inject/containers/llama.py:167
↓ 1 callersMethod__init__
(self, client_module, inference=True)
deepspeed/module_inject/containers/megatron_gpt.py:42
↓ 1 callersMethod__init__
(self, client_module, inference=True, megatron_v2=True, split_qkv=False)
deepspeed/module_inject/containers/gptneox.py:101
↓ 1 callersMethod__init__
(self, client_module, inference=True)
deepspeed/module_inject/containers/megatron_gpt_moe.py:42
↓ 1 callersMethod__init__
(self, client_module, inference=True)
deepspeed/module_inject/containers/internlm.py:121
↓ 1 callersMethod__init__
(self, **kwargs)
deepspeed/module_inject/containers/gptj.py:22
↓ 1 callersMethod__init__
(self, client_module, inference=True)
deepspeed/module_inject/containers/llama2.py:113
↓ 1 callersMethod__init__
(self, model_dim: int, num_experts: int, k: int = 1,
deepspeed/moe/sharded_moe.py:527
↓ 1 callersMethod__init__
(self, work, copy_back)
deepspeed/comm/torch.py:147
↓ 1 callersMethod__init__
(self, ccl_comm_op=None)
deepspeed/comm/ccl.py:27
↓ 1 callersMethod__init__
(self, name=None)
op_builder/cpu/comm.py:15
↓ 1 callersMethod__new__
(cls, clsname, bases, attrs)
deepspeed/inference/v2/model_implementations/layer_container_base.py:51
↓ 1 callersMethod__new__
(cls, *values)
deepspeed/runtime/config.py:154
↓ 1 callersMethod__params_to_release
(self, submodule_to_release: Module, step_id: int)
deepspeed/runtime/zero/partitioned_param_coordinator.py:633
↓ 1 callersMethod__prefetch_nvme_param_partitions
swap in parameter partitions from nvme for those parameters that will be used after the ones that are already being prefetched into full param
deepspeed/runtime/zero/partitioned_param_coordinator.py:666
↓ 1 callersMethod__setitem__
(self, model, can_record_outputs)
tests/unit/v1/moe/test_autoep_unit.py:2416
↓ 1 callersMethod__setitem__
(self, obj, name)
deepspeed/utils/debug.py:32
↓ 1 callersMethod__setstate__
(self, state)
tests/unit/simple_model.py:195
↓ 1 callersMethod__setstate__
(self, state)
deepspeed/ops/adam/zenflow_torch_adam.py:44
↓ 1 callersMethod__str__
(self)
deepspeed/runtime/sparse_tensor.py:52
↓ 1 callersFunction_accumulate_matmul
``accumulator += mat1 @ mat2`` with ``accumulator`` kept in its own (fp32) dtype. Accumulating block gradients in a low-precision buffer drops la
deepspeed/sequence/linear_cross_entropy.py:61
↓ 1 callersFunction_add_core_arguments
r"""Helper (internal) function to update an argument parser with an argument group of the core DeepSpeed arguments. The core set of DeepSpeed
deepspeed/__init__.py:613
↓ 1 callersMethod_add_full_reduction_to_compact_grad_partition
(self, reduced_tensor, communication_data_type)
deepspeed/runtime/zero/stage_1_and_2.py:1435
↓ 1 callersMethod_add_tensor_creation_wrappers
(self)
deepspeed/runtime/zero/partition_parameters.py:632
↓ 1 callersMethod_adjust_for_misaligned_lengths
(self, tensors, offsets)
deepspeed/runtime/swap_tensor/optimizer_utils.py:464
↓ 1 callersFunction_affine_resume_batch
(engine, step)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1620
↓ 1 callersFunction_affine_resume_full_tensor
(name, value, tp_size)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1627
↓ 1 callersMethod_aggregate_total_loss
(self)
deepspeed/runtime/pipe/engine.py:573
↓ 1 callersFunction_agree_on_floor_peak
Make every rank plan against the same floor. This number is measured locally and varies across ranks. Ranks that disagree hand back different
deepspeed/compile/passes/offload_activation.py:163
↓ 1 callersFunction_aliasing_ops
Ops whose output shares storage with an input, for the purpose of tracking that storage. get_no_copy_ops() reads the aten schemas, and aten._unsa
deepspeed/compile/passes/offload_activation.py:290
↓ 1 callersMethod_align_qkv
Internal helper for accepting the head-contiguous weight matrix and chunking the query, key, and value components.
deepspeed/module_inject/containers/features/hybrid_megatron.py:14
↓ 1 callersMethod_align_qkv_transposed
(self, x)
deepspeed/module_inject/containers/features/megatron.py:16
↓ 1 callersMethod_all_gather
(self, param_list, async_op=False, hierarchy=None)
deepspeed/runtime/zero/partition_parameters.py:1734
↓ 1 callersFunction_all_gather_along_dim
(tensor, partition_dim, mp_group, tp_world_size)
deepspeed/module_inject/layers.py:2101
↓ 1 callersFunction_all_gather_uneven_along_dim
Gather shards of differing widths along ``partition_dim``. Shards are zero padded to a common width so the uniform (and faster) ``all_gather_
deepspeed/module_inject/layers.py:2116
↓ 1 callersFunction_all_gather_variable_rows
(tensor: torch.Tensor, group, tp_size: int,
deepspeed/moe/ep_tp_dispatch.py:342
↓ 1 callersFunction_all_shards
(shard)
tests/unit/checkpoint/test_zero_affine.py:367
↓ 1 callersFunction_all_test_functions
()
ci/test_torch_latest.py:1793
↓ 1 callersFunction_all_test_functions
()
ci/test_tests_fetcher.py:644
↓ 1 callersFunction_all_test_functions
()
ci/test_classify_multirank_exit.py:79
↓ 1 callersMethod_allgather_param
(self, param, async_op=False, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1948
↓ 1 callersMethod_allgather_params_coalesced
blocking call avoid explicit memory copy in _allgather_params
deepspeed/runtime/zero/partition_parameters.py:1998
↓ 1 callersMethod_allgather_params_sequential
(self, param_list, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:2108
↓ 1 callersFunction_allgather_ranking_bytes
Use legacy logical bytes for deterministic candidate ranking.
deepspeed/compile/list_schedule.py:417
↓ 1 callersMethod_allocate_buffer
(self, shape, num_buffers=-1, **kwargs)
deepspeed/runtime/pipe/engine.py:1267
↓ 1 callersMethod_allocate_buffer
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:105
↓ 1 callersFunction_allocate_host
(accelerator, numel, arm)
benchmarks/pin_memory/h2d_d2h_bench.py:56
↓ 1 callersMethod_allocate_zeros
Allocate a tensor of zeros on the engine's device. Arguments: shape: the shape of the tensor to allocate kwargs: pas
deepspeed/runtime/pipe/engine.py:1249
↓ 1 callersMethod_allreduce_noncontiguous_bucket_preserving_fp32
(self, grads, grad_params, communication_data_type)
deepspeed/runtime/zero/stage_1_and_2.py:2561
↓ 1 callersMethod_alltoall
(self, dispatched_attention)
deepspeed/ops/transformer/inference/moe_inference.py:257
↓ 1 callersMethod_apply_autoep_folding_tp_correction
Correct one micro-batch gradient for AutoEP + AutoTP folding before it is reduce-scattered. The folded MoE layer runs the router on every TP
deepspeed/runtime/zero/stage3.py:1676
↓ 1 callersMethod_apply_autotp_partitioning
Shard the model with AutoTP. Returns the ``ReplacementSourceMap`` of the parameters AutoTP replaced instead of resharding in place (weights of
deepspeed/runtime/engine.py:1026
↓ 1 callersFunction_apply_forward_and_backward_to_tensors_only
(module, forward_function, backward_function, outputs)
deepspeed/runtime/zero/parameter_offload.py:24
↓ 1 callersMethod_apply_injection_policy
(self, config, client_module=None)
deepspeed/inference/engine.py:411
↓ 1 callersMethod_apply_injection_policy
(self, config, client_module=None)
deepspeed/runtime/tensor_parallel/tp_manager.py:49
↓ 1 callersMethod_apply_muon_to_accumulated_grads
Orthogonalize each Muon parameter's accumulated gradient once per optimizer step. Without optimizer offload the reduce path leaves Muon out,
deepspeed/runtime/zero/stage3.py:1900
↓ 1 callersMethod_apply_muon_updates_cpu_offload
Orthogonalize full logical gradients before clipping CPU-offloaded updates.
deepspeed/runtime/zero/stage3.py:2666
↓ 1 callersMethod_apply_muon_updates_cpu_offload
Orthogonalize full Muon gradients before clipping CPU-offloaded updates.
deepspeed/runtime/zero/stage_1_and_2.py:2142
↓ 1 callersFunction_apply_plan
Execute a plan over plain buffers, counting writes. Test scaffolding, never a production path.
tests/unit/checkpoint/test_affine_replica_policy.py:40
↓ 1 callersMethod_apply_policies
Apply injection policies to the parsed modules.
deepspeed/runtime/tensor_parallel/tp_manager.py:43
↓ 1 callersMethod_apply_qk_norm
Apply RMSNorm to Q and K projections independently per head. hidden_states shape: [tokens, (n_q + n_kv + n_kv) * head_size]
deepspeed/inference/v2/model_implementations/exaone4/model.py:107
↓ 1 callersFunction_args_to_key
(v)
deepspeed/compile/profilers/graph_profile.py:42
↓ 1 callersFunction_as_cpu_float_tensor
(value)
tests/unit/v1/moe/test_moe.py:58
↓ 1 callersFunction_as_finite_float
(value, field_name: str)
deepspeed/module_inject/auto_ep.py:137
↓ 1 callersFunction_assert_autocast_comm_dtype
(model)
tests/unit/runtime/zero/test_zero_autocast_mixed_dtype.py:79
↓ 1 callersFunction_assert_dense_fp32_master_params_match_universal
(engine, universal_dir, param_iter)
tests/unit/v1/moe/test_autoep_checkpoint.py:269
↓ 1 callersFunction_assert_expert_fp32_master_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:259
↓ 1 callersFunction_assert_expert_optimizer_states_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:243
← previousnext →3,101–3,200 of 14,579, ranked by callers