MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethod_load_legacy_checkpoint
r"""Loading ZeRO checkpoint Arguments: state_dict_list: List of all saved ZeRO checkpoints, one for each saved partition.
deepspeed/runtime/zero/stage_1_and_2.py:3799
↓ 1 callersFunction_load_liger_vocab_ce
()
deepspeed/sequence/cross_entropy.py:17
↓ 1 callersMethod_load_universal_checkpoint
(self, checkpoint_folder, load_optimizer_states, load_from_fp32_weights)
deepspeed/runtime/bf16_optimizer.py:695
↓ 1 callersMethod_load_universal_checkpoint
(self, checkpoint_folder, load_optimizer_states, load_from_fp32_weights)
deepspeed/runtime/zero/stage3.py:3731
↓ 1 callersMethod_load_universal_checkpoint
(self, checkpoint_folder, load_optimizer_states, load_from_fp32_weights)
deepspeed/runtime/zero/stage_1_and_2.py:3772
↓ 1 callersFunction_load_universal_checkpoint_info_stage3
(model_files)
deepspeed/checkpoint/ds_to_universal.py:954
↓ 1 callersFunction_load_universal_optimizer_step
(universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:82
↓ 1 callersMethod_local_cuda_graph_used
(self, module)
deepspeed/inference/engine.py:575
↓ 1 callersFunction_local_param_by_suffix
(module, suffix)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:558
↓ 1 callersFunction_local_shard
Local ZeRO-3 shard when partitioned, else the tensor itself.
tests/unit/v1/moe/test_autoep_integration.py:288
↓ 1 callersFunction_log_dist_once_cached
(message, ranks_key, level)
deepspeed/utils/logging.py:141
↓ 1 callersMethod_log_event_counters
(self)
deepspeed/runtime/zero/partitioned_param_profiler.py:54
↓ 1 callersFunction_log_selective_optimizer_timers
Log the selective optimizer timers.
deepspeed/runtime/zenflow/engine.py:137
↓ 1 callersMethod_log_timers
(self)
deepspeed/runtime/zero/partitioned_param_profiler.py:49
↓ 1 callersFunction_main
()
tests/perf/adam_test.py:27
↓ 1 callersFunction_main
()
tests/perf/adagrad_test.py:27
↓ 1 callersFunction_make_async_split_model
()
tests/unit/v1/moe/test_autoep_grad_parity.py:38
↓ 1 callersFunction_make_autoep_zero3_config
(ep_size)
tests/unit/v1/moe/test_autoep_grad_parity.py:89
↓ 1 callersMethod_make_backward_hook
Creates a backward hook for a specific tensor. Args: tensor: The output tensor this hook is attached to
deepspeed/runtime/utils.py:1387
↓ 1 callersFunction_make_compile_config
()
tests/unit/v1/moe/test_autoep_grad_parity.py:234
↓ 1 callersFunction_make_fake_optimizer
()
tests/unit/v1/compile/test_offload_opt_states.py:46
↓ 1 callersFunction_make_fixed_grad_moe_model
(expert_weight_scale)
tests/unit/v1/moe/test_moe.py:44
↓ 1 callersFunction_make_fused
(original)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:292
↓ 1 callersMethod_make_layer
(layer_idx, num_experts, hidden_size, intermediate_size, moe_every_n)
tests/unit/v1/moe/autoep_test_utils.py:113
↓ 1 callersMethod_make_layer
(layer_idx, num_experts, hidden_size, intermediate_size, moe_every_n)
tests/unit/v1/moe/autoep_test_utils.py:152
↓ 1 callersMethod_make_layer
(num_experts)
tests/unit/v1/moe/test_autoep_unit.py:245
↓ 1 callersFunction_make_local_batches
(*, logical_dp_world_size, logical_dp_rank, grad_accum, seed, seq_len, micro_batch_size,
tests/unit/v1/moe/test_autoep_grad_parity.py:100
↓ 1 callersFunction_make_logical_batches
(engine, *, logical_dp_world_size, logical_dp_rank, grad_accum, seed)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:251
↓ 1 callersFunction_make_spec
(**overrides)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:28
↓ 1 callersMethod_make_swap_space
(self, numel)
deepspeed/runtime/swap_tensor/async_swapper.py:89
↓ 1 callersFunction_make_upper_case
(value)
deepspeed/runtime/model_checkpointing/config.py:31
↓ 1 callersFunction_mark_output_never_reuse
(out, *, enabled)
deepspeed/compile/inductor.py:80
↓ 1 callersFunction_mark_profile_incomplete
(graph: Graph)
deepspeed/compile/profilers/graph_profile.py:75
↓ 1 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:944
↓ 1 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1218
↓ 1 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1319
↓ 1 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:2389
↓ 1 callersFunction_matches_zero3_parameter_metadata
(param, expected)
deepspeed/compile/patch_fake_tensor.py:54
↓ 1 callersMethod_materialize_value
Recursively materialize a stored value, creating tensors from metadata and keeping non-tensors as-is
deepspeed/compile/input_storage.py:81
↓ 1 callersFunction_max_err
(a, b)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:242
↓ 1 callersFunction_maybe_update_size_from_profile
(ds_id_to_size: Dict[int, int], ds_id: int, tensor_size: int)
deepspeed/compile/passes/selective_gather.py:34
↓ 1 callersFunction_merge
Join copies only when both shard address mappings continue along one axis.
deepspeed/checkpoint/affine_transfer.py:805
↓ 1 callersMethod_merge_inter_w
(self)
deepspeed/ops/transformer/inference/ds_mlp.py:82
↓ 1 callersMethod_merge_qkv
(self)
deepspeed/ops/transformer/inference/ds_attention.py:120
↓ 1 callersFunction_merge_tp_slice_files
(args, uc_info, tp_degree, slice_shapes, temp_dir, exclude_param_names=None)
deepspeed/checkpoint/ds_to_universal.py:579
↓ 1 callersFunction_merge_zero3_slice_files
(args, param_keys, dp_degree, temp_dir)
deepspeed/checkpoint/ds_to_universal.py:598
↓ 1 callersMethod_metal_adam_step
(tensor_lists, lr, beta1, beta2, epsilon, adam_w_mode, bias_correction1, bias_correction2,
op_builder/mps/fused_adam.py:40
↓ 1 callersFunction_min_offload_size
()
deepspeed/compile/passes/offload_activation.py:178
↓ 1 callersFunction_mixed_mask
(size=HIDDEN_DIM)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:288
↓ 1 callersFunction_mixtral_moe_baseline
Baseline implementation for mixtral MoE module. Based on transformers implementation: https://github.com/huggingface/transformers/blob/main/
tests/unit/inference/v2/modules/test_cutlass_moe.py:217
↓ 1 callersFunction_model_parameter_groups
(model_parameters)
deepspeed/runtime/engine.py:261
↓ 1 callersFunction_model_parameters_need_remap
Whether caller-supplied parameters were materialized before module replacement. A lazy iterable remains valid because the engine consumes it afte
deepspeed/runtime/engine.py:246
↓ 1 callersFunction_module_match
(module)
deepspeed/module_inject/replace_module.py:78
↓ 1 callersMethod_module_match
(self, module)
deepspeed/inference/engine.py:568
↓ 1 callersFunction_moe_fp16_zero0_config
()
tests/unit/v1/moe/test_moe.py:24
↓ 1 callersMethod_move_to_flat_buffer
If flat buffer is None then the parameters in the param_list are not copied to the flat buffer. This is because they exceed the number of max_
deepspeed/runtime/zero/stage3.py:877
↓ 1 callersFunction_mpu_world_size
(mpu, *names: str)
deepspeed/module_inject/auto_ep_folding.py:174
↓ 1 callersMethod_muon_all_gather_partitions
Gather only the partition slices needed by Muon parameters.
deepspeed/runtime/zero/stage_1_and_2.py:2039
↓ 1 callersMethod_muon_half_defaults
Config-level settings for one half, with muon_lr / adam_lr overriding the shared lr.
deepspeed/runtime/engine.py:2490
↓ 1 callersMethod_muon_param_batches
(self, params, element_size)
deepspeed/runtime/zero/stage_1_and_2.py:2121
↓ 1 callersMethod_muon_update_sub_group
Run Muon in place on full gradients, for part of sub-group `i`. `group_items` holds `(param, dest_offset, grad)`: `dest_offset` is the parame
deepspeed/runtime/zero/stage3.py:1774
↓ 1 callersFunction_named_gradients
(engine)
tests/unit/v1/moe/test_autoep_fused_parity.py:110
↓ 1 callersFunction_nccl_version
The NCCL version torch is linked against, or None if unknowable.
deepspeed/module_inject/auto_ep_comm.py:187
↓ 1 callersFunction_needs_cpu_staging
Whether this tensor must be copied to CPU before a gloo collective. Gloo cannot operate on MPS tensors. It also faults (``writev`` EFAULT) when a
deepspeed/comm/torch.py:159
↓ 1 callersFunction_nest_replicated_block
(copies, intervals_by_outer_rank, pieces_by_rank)
deepspeed/checkpoint/affine.py:880
↓ 1 callersMethod_new_group
(self, ranks, group)
deepspeed/comm/ccl.py:157
↓ 1 callersFunction_new_process_group_helper
(*args, **kwargs)
deepspeed/comm/torch.py:40
↓ 1 callersFunction_new_value_id
()
deepspeed/compile/passes/offload_activation.py:124
↓ 1 callersMethod_next_batch
(self)
deepspeed/runtime/pipe/engine.py:686
↓ 1 callersMethod_next_tensor_id
(self)
deepspeed/runtime/activation_checkpointing/offload_activations.py:119
↓ 1 callersFunction_node_size
(out)
deepspeed/compile/profilers/graph_profile.py:58
↓ 1 callersFunction_normalize_rank_groups
(groups: Iterable[Iterable[int]])
deepspeed/module_inject/auto_ep_folding.py:502
↓ 1 callersMethod_normalize_shape
(shape)
deepspeed/module_inject/autotp_config.py:144
↓ 1 callersFunction_normalize_shape_spec
(shape)
deepspeed/module_inject/layers.py:1922
↓ 1 callersFunction_normalized
(map_: ParamAffineMap, side: str, limits: PlanBudget)
deepspeed/checkpoint/affine_transfer.py:298
↓ 1 callersMethod_odd_step_backward_id
(self, step_id)
deepspeed/runtime/pipe/schedule.py:295
↓ 1 callersMethod_odd_step_forward_id
(self, step_id)
deepspeed/runtime/pipe/schedule.py:285
↓ 1 callersFunction_offload_device
(offload_config)
deepspeed/runtime/engine.py:240
↓ 1 callersFunction_offload_everything_fwd
Move every eligible activation out, so the profile taken next measures the floor. Profiling the graph as written measures the memory this pass ex
deepspeed/compile/passes/offload_activation.py:536
↓ 1 callersFunction_one_holder_each
(layout)
tests/unit/checkpoint/test_zero_affine.py:374
↓ 1 callersFunction_one_sgd_step
(engine, *, tp_size, seed)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:548
↓ 1 callersMethod_optimized_linear_offload_setup
(self)
deepspeed/runtime/engine.py:789
↓ 1 callersMethod_optimizer_step
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:1282
↓ 1 callersMethod_optimizer_step
(self, group_no)
deepspeed/runtime/zero/stage_1_and_2.py:3070
↓ 1 callersFunction_ordered_float_bits
(tensor)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:81
↓ 1 callersFunction_ordered_ulp_values
(tensor)
tests/unit/v1/ops/triton_ops/test_autoep_fused_token_ops.py:28
↓ 1 callersFunction_origin
(offset: int, strides: Tuple[int, ...], shape: Tuple[int, ...], where: str, which: str)
deepspeed/checkpoint/affine_transfer.py:291
↓ 1 callersMethod_overflow_clean_up
(self, prev_scale)
deepspeed/runtime/zero/stage3.py:2877
↓ 1 callersFunction_overlaps_itself
Whether two positions of a view with this shape and these strides share an address. Taking the axes that move in order of stride, the view is fre
deepspeed/checkpoint/affine.py:515
↓ 1 callersFunction_owner_candidate
The geometry a listed linear-attention module says it built this projection with.
deepspeed/__init__.py:240
↓ 1 callersFunction_owner_module
The module that holds the Linear, i.e. the attention module, not the Linear itself.
deepspeed/__init__.py:230
↓ 1 callersFunction_owners
The modules on the path from ``model`` to ``module_name``, excluding the module itself.
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:195
↓ 1 callersFunction_packed_rounds
(indexed_operations: Sequence[Tuple[int, _Operation]], max_elements: int)
deepspeed/checkpoint/affine_transfer_executor.py:277
↓ 1 callersFunction_pad_to_mul_of_pow2
(val: int, pow_2_val: int)
deepspeed/inference/v2/ragged/ragged_wrapper.py:22
↓ 1 callersFunction_padded_top_k
Round top-k up to a power of two, which ``tl.arange`` requires.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:266
↓ 1 callersFunction_param_allgather_allocation_bytes
Return the registered parameter size in its target gather dtype.
deepspeed/compile/passes/zero3_compile.py:275
↓ 1 callersFunction_parameters
(engine)
tests/unit/v1/moe/test_autoep_fused_parity.py:121
↓ 1 callersMethod_params_to_partition
(self)
deepspeed/runtime/zero/partition_parameters.py:2458
↓ 1 callersFunction_parse_args
()
benchmarks/pin_memory/h2d_d2h_bench.py:32
↓ 1 callersFunction_parse_hostfile
(hostfile_lines)
deepspeed/launcher/runner.py:225
← previousnext →3,801–3,900 of 14,579, ranked by callers