MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 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 callersMethodget_backend
(self, group=None)
deepspeed/comm/torch.py:611
↓ 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:348
↓ 4 callersFunctionget_gpt2_model
(args_others, mp_size=1)
tests/unit/megatron_model.py:24
↓ 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_num_threads
csrc/includes/reflow_cpu_adam.h:137
↓ 4 callersMethodget_op_builder
(self, class_name)
accelerator/hpu_accelerator.py:296
↓ 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 callersFunctionget_position_id_node
(gm: GraphModule)
deepspeed/compile/util.py:567
↓ 4 callersMethodget_result
Get result from worker process with optional event type validation. Args: expected_event_type (str, optional): Expected
deepspeed/runtime/superoffload/superoffload_utils.py:327
↓ 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:1568
↓ 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:858
↓ 4 callersFunctionget_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:293
↓ 4 callersMethodgrad_scale_supported
Whether step(grad_scale=...) is available (every kernel but RVV).
deepspeed/ops/adam/cpu_adam.py:232
↓ 4 callersFunctionhas_comm_dtype
(param: torch.nn.Parameter)
deepspeed/runtime/torch_autocast.py:77
↓ 4 callersMethodhas_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:71
↓ 4 callersMethodinit_timers
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:234
↓ 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_autocast_enabled
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:221
↓ 4 callersFunctionis_compile_supported
()
deepspeed/runtime/compiler.py:40
↓ 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 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 callersFunctionis_setup
()
deepspeed/compile/custom_ops/sp_dp_registry.py:26
↓ 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:556
↓ 4 callersFunctionlink_hp_params
(lp_param_list, flat_hp_partition, gradient_dict, off
deepspeed/utils/mixed_precision_linkage.py:11
↓ 4 callersMethodload_moe_state_dict
(checkpoint_path, tag, state_dict,
deepspeed/runtime/engine.py:4342
↓ 4 callersMethodload_universal_checkpoint
(self)
deepspeed/runtime/engine.py:1827
↓ 4 callersFunctionlocal_folding_ranks
(global_rank: int, spec: ParallelFoldingSpec)
deepspeed/module_inject/auto_ep_folding.py:161
↓ 4 callersMethodlog_level
(self)
deepspeed/runtime/engine.py:1830
↓ 4 callersFunctionmake_cpp_batch_wrapper
deepspeed/inference/v2/kernels/ragged_ops/ragged_helpers/ragged_kernel_helpers.cpp:8
↓ 4 callersFunctionmark_autoep_folding_router_parameter
Tag a router/gate parameter as the *replicated* folded family (AVERAGE). This is the ONLY family marker applied on the live forward path today:
deepspeed/module_inject/auto_ep_folding.py:275
↓ 4 callersFunctionmask_nan_or_inf_with_val_inplace
(input, device=None, val=-1.)
deepspeed/runtime/utils.py:959
↓ 4 callersMethodmax_memory_allocated
(self)
tests/unit/v1/compile/test_graph_profile.py:36
↓ 4 callersFunctionmaybe_loss_for_backward
Check if the value is a loss tensor. Conditions: - The value must be a tensor. - The tensor must have exactly one element. - The tenso
deepspeed/runtime/utils.py:1335
↓ 4 callersFunctionmerge_state
(state_a, state_b, key_list=[])
deepspeed/checkpoint/reshape_utils.py:100
↓ 4 callersMethodmetric
(self)
deepspeed/autotuning/autotuner.py:238
↓ 4 callersFunctionmove_primals_to_head
(graph: Graph)
deepspeed/compile/fx.py:58
↓ 4 callersFunctionmove_to_device
Move tensor on to specified device by changing the storage. Works on individual tensors, and tensors contained/nested in lists, tuples, and d
deepspeed/runtime/utils.py:176
↓ 4 callersFunctionnhwc_bias_add
(activation: torch.Tensor, bias: torch.Tensor, other: Optional[torch.Tenso
deepspeed/ops/transformer/inference/bias_add.py:13
↓ 4 callersFunctionomp_set_num_threads
csrc/includes/reflow_cpu_adam.h:17
↓ 4 callersMethodparallel_for
Split [0, total) into one chunk per thread. Chunk boundaries are rounded up to a multiple of `align` so each slice's AVX/scalar split lines up with th
csrc/adam/cpu_adam_impl.cpp:581
↓ 4 callersFunctionpartition_uniform
(num_items, num_parts)
deepspeed/runtime/utils.py:682
↓ 4 callersFunctionpatch_compiled_func
()
deepspeed/compile/patch_compiled_func.py:81
↓ 4 callersFunctionprint_object
(obj, name, exclude_list=[])
deepspeed/runtime/swap_tensor/utils.py:29
↓ 4 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:21
↓ 4 callersFunctionprobe_is_compatible
Report whether an op can be built, treating a probe that itself fails as "not compatible". Compatibility is probed for every op when deepspeed is
op_builder/builder.py:117
↓ 4 callersFunctionproduct
(shape: Sequence[int])
deepspeed/checkpoint/affine_geometry.py:18
↓ 4 callersFunctionquantization_test_helper
(pre_quant_type: torch.dtype, num_bits: int)
tests/unit/inference/quantization/test_intX_quantization.py:36
↓ 4 callersMethodquantize
(self, input, q_bits=8, q_mantisa_bits=3,
deepspeed/ops/fp_quantizer/quantize.py:30
↓ 4 callersMethodquantize
(self, input, q_bits=8, q_mantisa_bits=3,
deepspeed/ops/fp_quantizer/quantize.py:67
↓ 4 callersMethodrecord_forward_graph
Record a grad-bearing forward whose fallback gathers must survive until backward.
deepspeed/compile/z3_eager_fallback.py:163
↓ 4 callersMethodrecording
Record one or more model forwards.
deepspeed/moe/routing_replay.py:123
↓ 4 callersMethodreduce_ready_partitions_and_remove_grads
(self, param)
deepspeed/runtime/zero/stage3.py:2400
↓ 4 callersFunctionreference_geglu_implementation
(input: torch.Tensor, bias: Optional[torch.Tensor] = None,
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:22
↓ 4 callersFunctionreference_jsd
(student_logits, teacher_logits, beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:38
↓ 4 callersFunctionreference_logprobs
(logits, index, ignore_index=-100)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:18
↓ 4 callersFunctionreflow_ready_loop
csrc/includes/reflow_ready.h:197
↓ 4 callersMethodrefresh_weights
Handshake for in-place weight updates (arena / reshard syncs). Drops the injected forwards' derived-weight caches. The weights themse
deepspeed/runtime/rollout/hybrid_engine_rollout.py:261
↓ 4 callersFunctionrepack_expert_weights
Repack expert weights from HF format to TorchTitan grouped format. Returns (w1, w2, w3) where: w1: [E_local, ffn_hidden_size, hidden_size
deepspeed/moe/ep_repack.py:46
↓ 4 callersMethodreplaying
Replay recorded or imported routes for model forwards.
deepspeed/moe/routing_replay.py:137
↓ 4 callersFunctionreplicated_kv_query_widths
Per-rank query-row widths for a replicated-K/V fused qkv layout, or None without n_embd.
deepspeed/module_inject/fusedqkv_utils.py:95
↓ 4 callersMethodreport_ipg_memory_usage
(self, tag, param_elems, dtype=None)
deepspeed/runtime/base_optimizer.py:413
↓ 4 callersMethodreset
csrc/includes/deepcompile.h:171
↓ 4 callersMethodreset_peak_memory_stats
(self, device_index=None)
accelerator/hpu_accelerator.py:144
↓ 4 callersFunctionrotary_pos_embs
(q: torch.Tensor, k: torch.Tensor, seq_descs: List[DSSequenceDescripto
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:29
↓ 4 callersFunctionrotate_half
(x: torch.Tensor)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:51
↓ 4 callersMethodrun
(self)
deepspeed/autotuning/scheduler.py:158
↓ 4 callersFunctionrun_fragmented_model
(model, config_dict, hidden_dim, dtype, validate_after_bwd, validate_after_step)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:154
↓ 4 callersFunctionrun_frozen_checkpoint_comparison
Shared driver for the frozen-param + checkpoint regression tests. Each iteration checks: (1) backward runs without CheckpointError, (2) grads mat
tests/unit/v1/zero/test_zero_user_backward.py:267
↓ 4 callersMethodrun_test
(self, test_config)
tests/model/Megatron_GPT2/run_perf_baseline.py:84
↓ 4 callersMethodrun_test
(self, test_config)
tests/model/Megatron_GPT2/run_perf_test.py:88
↓ 4 callersFunctionsafe_get_local_fp32_param
Get the local partition of a ZeRO-3 partitioned parameter in fp32 precision. Args: param (``torch.nn.Parameter``): A model parame
deepspeed/utils/tensor_fragment.py:289
↓ 4 callersMethodscaled_global_norm
(self, norm_type=2)
deepspeed/runtime/zero/stage_1_and_2.py:3058
↓ 4 callersMethodschedule_experiments
(self, exp_paths)
deepspeed/autotuning/scheduler.py:58
↓ 4 callersFunctionschedule_transfers
The schedule ``execute_transfers`` would run for a batch, without buffers or communication. ``plans`` are the batch's plans in request order, sin
deepspeed/checkpoint/affine_transfer_executor.py:487
↓ 4 callersFunctionselect_topk
Select the ``topk`` keys of every query row. Runs in blocks of ``block_rows`` query rows so that the float32 logits, ``[block_rows, tokens_kv]``,
deepspeed/models/glm_moe_dsa/kernels/indexer.py:13
↓ 4 callersMethodset_dataiterator
Store an iterator to sample for training data.
deepspeed/runtime/pipe/engine.py:644
↓ 4 callersFunctionset_log_level_from_string
Sets a log level in the passed `logger` and its handlers from string. e.g. "info" => `logging.INFO` Args: log_level_str: one of 'debug',
deepspeed/utils/logging.py:193
↓ 4 callersMethodset_routing_replay
Attach per-model route replay state to this router.
deepspeed/moe/ep_router.py:96
↓ 4 callersFunctionshard_attn_out_param
Utility method for sharding an attention output parameter.
deepspeed/inference/v2/model_implementations/sharding/attn_out.py:14
↓ 4 callersFunctionshard_mlp_1_param
Utility method for sharding an MLP 1 parameter. Both biases and weights are supported, as well as for fused weights for MoE. Args:
deepspeed/inference/v2/model_implementations/sharding/mlp.py:14
← previousnext →1,301–1,400 of 15,767, ranked by callers