MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 4 callersMethod_writeback_swap_state
(self, sub_group_id, write_opt_state, write_gradients)
deepspeed/runtime/zero/stage3.py:2865
↓ 4 callersFunction_zero12_fragment_path
(temp_dir, param_name, state_name, dp_rank)
deepspeed/checkpoint/autoep_universal.py:240
↓ 4 callersMethodadd_data
(self, pp_index, tp_index, data)
deepspeed/checkpoint/reshape_meg_2d.py:22
↓ 4 callersFunctionadd_postprocess
(graph: Graph, node: Node, fn: Callable[..., Any],
deepspeed/compile/fx.py:96
↓ 4 callersFunctionalign_up
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:127
↓ 4 callersFunctionall_gather_dp_groups
(groups_flat, partitioned_param_groups, dp_process_group, start_alignment_factor, all
deepspeed/runtime/utils.py:1094
↓ 4 callersMethodallocate
(self, num_elems, count, dtype)
deepspeed/runtime/swap_tensor/utils.py:201
↓ 4 callersMethodallocate_all
(self, num_elems, dtype)
deepspeed/runtime/swap_tensor/utils.py:217
↓ 4 callersMethodallreduce_gradients
(self, bucket_size=MEMORY_OPT_ALLREDUCE_SIZE)
deepspeed/runtime/engine.py:3144
↓ 4 callersMethodapply_rotary_pos_emb
(mixed_query, key_layer, rotary_dim, offset, num_heads, rotate_half, rope_theta)
op_builder/supa/inference.py:299
↓ 4 callersFunctionargs_from_dict
(tmpdir, config_dict)
tests/unit/simple_model.py:286
↓ 4 callersFunctionassert_dtype_supported
Reject dtypes DeepEP's kernels cannot dispatch.
deepspeed/module_inject/auto_ep_comm.py:64
↓ 4 callersFunctionassignment_ordinals_by_expert
Return stable ordinals within each contiguous expert segment.
deepspeed/moe/ep_tp_dispatch.py:43
↓ 4 callersMethodautotuning_profile_model_info
(self)
deepspeed/runtime/engine.py:1546
↓ 4 callersFunctioncheck_injection
(model)
tests/unit/inference/test_inference.py:249
↓ 4 callersMethodcheck_using_norm
(self, norm_group, reduce_overflow=True)
deepspeed/runtime/utils.py:259
↓ 4 callersMethodclear
Clear experiment queues, does not reset self.experiment_count
deepspeed/autotuning/scheduler.py:247
↓ 4 callersMethodclear
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1009
↓ 4 callersMethodclear_grad_attribute
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1455
↓ 4 callersMethodclear_lp_grads
(self, set_to_none=False)
deepspeed/runtime/bf16_optimizer.py:616
↓ 4 callersMethodclose
(self)
deepspeed/io/fast_file_writer.py:94
↓ 4 callersFunctioncodegen_block_layout
Which equal-sized blocks of a codegen fused-QKV weight each rank holds, in shard order. ``_codegen_type_transpose`` views the weight as ``codegen
deepspeed/module_inject/fusedqkv_utils.py:239
↓ 4 callersFunctioncombine_grad_norm_groups
L2-combine per-group gradient norms without laundering the -1 invalid sentinel. Several DeepSpeed helpers replace inf/NaN group norms with -1. Co
deepspeed/runtime/utils.py:966
↓ 4 callersFunctioncompare_loss
(model_cls, enable, zero_stage, model_dtype,
tests/unit/v1/zero/test_zero_autocast.py:67
↓ 4 callersMethodcompile_autotp
Determines if AutoTP is set in deepcompile's passes attributes.
deepspeed/runtime/engine.py:1626
↓ 4 callersFunctionconfigure_vocab_parallel_loss
Install the causal-LM loss required by a no-gather vocabulary projection. Leave ``sp_group`` as ``None`` when running under DeepSpeed's Ulysses
deepspeed/sequence/cross_entropy.py:460
↓ 4 callersFunctionconvert_zero_checkpoint_to_state_dict
Convert ZeRO 2 or 3 checkpoint into a consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_state_dict()`` a
deepspeed/utils/zero_to_fp32.py:679
↓ 4 callersFunctioncopy
(tensor, source, *args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1855
↓ 4 callersFunctioncounting_newton_schulz
Counts every Newton-Schulz call, whichever kernel the config selects. Patched inside the test body rather than in a fixture: `DistributedTest` ru
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:27
↓ 4 callersFunctioncreate_deepspeed_engine
(model_class, zero_stage, seed=42, gradient_accumulation_steps=1, **model_kwargs)
tests/unit/v1/zero/test_zero_user_backward.py:126
↓ 4 callersFunctioncreate_file
(filename, num_bytes)
deepspeed/nvme/test_ds_aio_utils.py:77
↓ 4 callersFunctioncreate_file
(filename, num_bytes)
csrc/aio/py_test/test_ds_aio_utils.py:77
↓ 4 callersFunctioncreate_filename
(folder, read_op, size, tid)
deepspeed/nvme/test_ds_aio_utils.py:72
↓ 4 callersFunctioncreate_filename
(folder, read_op, size, tid)
csrc/aio/py_test/test_ds_aio_utils.py:72
↓ 4 callersMethodcreate_op_builder
(self, class_name)
accelerator/hpu_accelerator.py:288
↓ 4 callersFunctioncreate_page_locked_tensor
(num_elem, use_accelerator, aio_handle=None)
deepspeed/nvme/test_ds_aio_utils.py:85
↓ 4 callersFunctioncreate_page_locked_tensor
(num_elem, use_accelerator, aio_handle=None)
csrc/aio/py_test/test_ds_aio_utils.py:85
↓ 4 callersFunctioncuFileGetErrorString
csrc/gds/py_lib/deepspeed_gds_utils.h:76
↓ 4 callersMethodcurriculum_learning_enabled
(self)
deepspeed/runtime/engine.py:1446
↓ 4 callersFunctiondebug_clear_module_and_param_names
()
deepspeed/utils/debug.py:66
↓ 4 callersFunctiondebug_extract_module_and_param_names
(model)
deepspeed/utils/debug.py:71
↓ 4 callersFunctiondebug_module2name
(module)
deepspeed/utils/debug.py:81
↓ 4 callersMethoddelete
(self, rel: str)
ci/test_tests_fetcher.py:102
↓ 4 callersMethoddequantize
(self, tensor: Tensor, quant_scale: Tensor, quant_min: Tensor)
deepspeed/inference/quantization/utils.py:110
↓ 4 callersMethoddequantized
Return a tensor containing the dequantized weights of this parameter.
deepspeed/linear/quantization.py:67
↓ 4 callersMethoddestroy_process_group
(self, group=None)
deepspeed/comm/torch.py:595
↓ 4 callersMethoddevice_count
(self)
tests/unit/v1/moe/test_autoep_unit.py:903
↓ 4 callersFunctiondp_index_to_str
(dp_index)
deepspeed/checkpoint/ds_to_universal.py:214
↓ 4 callersFunctionduration_to_string
(duration, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1174
↓ 4 callersMethodexpert_affine_maps
Return the affine map of each live expert parameter (``w1``, ``w2``, ``w3``). Map ranks are EP-local ranks; translate them with ``dist.get_gl
deepspeed/module_inject/auto_ep_layer.py:793
↓ 4 callersFunctionextract_tensors
Separate objects in list/tuple into tensors and non-tensors and create a mapping to enable re-aggregation. The order of tensors and non-tenso
deepspeed/runtime/activation_checkpointing/checkpointing.py:315
↓ 4 callersFunctionf
(size)
deepspeed/compile/profilers/comm_profile.py:146
↓ 4 callersFunctionfind_node_by_name
(gm: GraphModule, name: str)
deepspeed/compile/fx.py:178
↓ 4 callersMethodflatten_dense_tensors_aligned
(self, tensor_list, alignment, use_cpu_data=False, param_padding=None)
deepspeed/runtime/zero/stage_1_and_2.py:1497
↓ 4 callersMethodflops_profiler_profile_step
(self)
deepspeed/runtime/engine.py:1499
↓ 4 callersMethodforward
(self, x, y)
tests/unit/v1/zero/test_zero.py:471
↓ 4 callersMethodforward
(self, *_args)
tests/unit/module_inject/test_auto_ep_comm.py:584
↓ 4 callersMethodfree
Return a list of blocks to the free pool. If a single invalid block is provided (i.e., one that is out of range of the allocator or i
deepspeed/inference/v2/ragged/blocked_allocator.py:74
↓ 4 callersMethodfrom_meta
(cls, meta, local_part, group, device=get_accelerator().device_name())
deepspeed/runtime/utils.py:757
↓ 4 callersMethodgen_output_name
(self, test_config, prefix, baseline_config=False)
tests/model/Megatron_GPT2/test_common.py:21
↓ 4 callersMethodgetSendBuf
csrc/includes/deepcompile.h:128
↓ 4 callersFunctionget_all_subclasses
(cls, include_root=True)
deepspeed/runtime/zero/partition_parameters.py:292
↓ 4 callersFunctionget_allgather_dtype
(param, param_ds_tensor)
deepspeed/runtime/zero/partition_parameters.py:56
↓ 4 callersMethodget_axis_names
Return a list of the axis names in the ordering of the topology.
deepspeed/runtime/pipe/topology.py:65
↓ 4 callersFunctionget_ccl_datatype
csrc/cpu/comm/ccl.cpp:153
↓ 4 callersFunctionget_cuda_rng_tracker
Get cuda rng tracker.
deepspeed/runtime/activation_checkpointing/checkpointing.py:206
↓ 4 callersFunctionget_deepspeed_model
(model)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:23
↓ 4 callersMethodget_difficulty
(self, global_steps)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:139
↓ 4 callersFunctionget_files
(dir)
deepspeed/checkpoint/reshape_utils.py:34
↓ 4 callersFunctionget_global_norm
Compute total from a list of norms
deepspeed/runtime/utils.py:347
↓ 4 callersFunctionget_gpt2_model
(args_others, mp_size=1)
tests/unit/megatron_model.py:24
↓ 4 callersFunctionget_group
(gid: int)
deepspeed/compile/custom_ops/sp_dp_registry.py:18
↓ 4 callersMethodget_last_profile
Return the most recent profiling snapshot for this rollout instance.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1363
↓ 4 callersFunctionget_last_uses
(graph: Graph)
deepspeed/compile/util.py:251
↓ 4 callersMethodget_module
(self, sd)
deepspeed/runtime/state_dict_factory.py:148
↓ 4 callersFunctionget_nccl_data_type
csrc/compile/deepcompile.cpp:65
↓ 4 callersFunctionget_no_copy_ops
()
deepspeed/compile/util.py:92
↓ 4 callersMethodget_overlap_step_state
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:669
↓ 4 callersMethodget_pipe_parallel_group
The group of ranks within the same pipeline.
deepspeed/runtime/pipe/topology.py:422
↓ 4 callersMethodget_sd_loader
(ckpt_list, checkpoint_engine, sd_type='Megatron', version=None)
deepspeed/runtime/state_dict_factory.py:41
↓ 4 callersMethodget_sequence_parallel_group
(self)
deepspeed/runtime/engine.py:1487
↓ 4 callersMethodget_states
Get rng states. Copy the dictionary so we have direct pointers to the states, not just a pointer to the dictionary.
deepspeed/runtime/activation_checkpointing/checkpointing.py:154
↓ 4 callersMethodget_text_config
(self, **_kwargs)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:296
↓ 4 callersFunctionget_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:293
↓ 4 callersFunctionhas_comm_dtype
(param: torch.nn.Parameter)
deepspeed/runtime/torch_autocast.py:77
↓ 4 callersFunctionhas_inf_or_nan
Whether ``x`` contains any NaN or infinity, as a scalar tensor on ``x``'s device. Reduces before testing rather than testing elementwise: ``max``
deepspeed/runtime/utils.py:211
↓ 4 callersMethodhas_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:71
↓ 4 callersMethodhas_value
(self, name: str)
deepspeed/compile/util.py:219
↓ 4 callersMethodinclude_paths
Returns list of include paths, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:307
↓ 4 callersMethodinput_ids
The input ids tensor for the ragged batch. If the device Tensor is requested, the Tensor is truncated to the number of tokens in the
deepspeed/inference/v2/ragged/ragged_wrapper.py:220
↓ 4 callersMethodinsert_tensor
(self, tensor, swap_path, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:50
↓ 4 callersMethodis_decoupled
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:50
↓ 4 callersMethodis_deepcompile_active
(self)
tests/unit/v1/compile/test_z3_eager_fallback.py:165
↓ 4 callersMethodis_first_stage
True if the configured ``stage_id`` is the first stage in the pipeline.
deepspeed/runtime/pipe/schedule.py:102
↓ 4 callersMethodis_graph_capture_supported
(self)
accelerator/npu_accelerator.py:250
↓ 4 callersFunctionis_moe_param_group
(param_group)
deepspeed/moe/utils.py:152
↓ 4 callersMethodis_parameter
(self, parameter)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:31
↓ 4 callersFunctionis_release_node
(n: Node)
deepspeed/compile/util.py:454
↓ 4 callersMethodis_zenflow_select_boundary
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:159
↓ 4 callersMethodisend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/torch.py:523
← previousnext →1,101–1,200 of 14,579, ranked by callers