MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 4 callersMethodload_moe_state_dict
(checkpoint_path, tag, state_dict,
deepspeed/runtime/engine.py:4216
↓ 4 callersMethodload_universal_checkpoint
(self)
deepspeed/runtime/engine.py:1746
↓ 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:1749
↓ 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 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:1327
↓ 4 callersMethodmemory_stats
(self, device_index=None)
accelerator/hpu_accelerator.py:141
↓ 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:175
↓ 4 callersFunctionnhwc_bias_add
(activation: torch.Tensor, bias: torch.Tensor, other: Optional[torch.Tenso
deepspeed/ops/transformer/inference/bias_add.py:13
↓ 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:422
↓ 4 callersFunctionpartition_uniform
(num_items, num_parts)
deepspeed/runtime/utils.py:681
↓ 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)
deepspeed/runtime/zero/contiguous_memory_allocator.py:11
↓ 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:65
↓ 4 callersMethodpwrite
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:349
↓ 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 callersFunctionrandom_dataset
(total_samples, hidden_dim, device, dtype=preferred_dtype())
tests/unit/simple_model.py:245
↓ 4 callersMethodrecord_forward_graph
Record a grad-bearing forward whose fallback gathers must survive until backward.
deepspeed/compile/z3_eager_fallback.py:163
↓ 4 callersMethodreduce_ipg_grads
(self, comm_dtype=None)
deepspeed/runtime/zero/stage_1_and_2.py:2282
↓ 4 callersMethodreduce_ready_partitions_and_remove_grads
(self, param)
deepspeed/runtime/zero/stage3.py:2241
↓ 4 callersFunctionreference_geglu_implementation
(input: torch.Tensor, bias: Optional[torch.Tensor] = None,
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:17
↓ 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 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 callersMethodreport_ipg_memory_usage
(self, tag, param_elems, dtype=None)
deepspeed/runtime/base_optimizer.py:413
↓ 4 callersMethodreset
csrc/includes/deepcompile.h:171
↓ 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:24
↓ 4 callersFunctionrotate_half
(x: torch.Tensor)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:46
↓ 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:112
↓ 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 callersMethodscaled_global_norm
(self, norm_type=2)
deepspeed/runtime/zero/stage_1_and_2.py:3039
↓ 4 callersMethodscatter
(self, tensor, gather_list, dst, group=None, async_op=False)
deepspeed/comm/ccl.py:134
↓ 4 callersMethodschedule_experiments
(self, exp_paths)
deepspeed/autotuning/scheduler.py:58
↓ 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 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
↓ 4 callersFunctionshard_mlp_2_param
Utility method for sharding an MLP 2 parameter. Args: param (torch.Tensor): The parameter to shard. shard_rank (int): Which
deepspeed/inference/v2/model_implementations/sharding/mlp.py:42
↓ 4 callersFunctionshard_value_with_share_qk
( weight, bias, rank, world_size, shard_value, # True -> shard_value;
deepspeed/module_inject/fusedqkv_utils.py:278
↓ 4 callersFunctionshared_exchange
The buffer for this scope and geometry, building it on first ask. Collective on construction, and every rank asks in the same order because t
deepspeed/module_inject/auto_ep_comm.py:108
↓ 4 callersMethodsources
Returns list of source files for your op, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:158
↓ 4 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
↓ 4 callersMethodstep
(self, last_batch_iteration=None)
deepspeed/runtime/lr_schedules.py:930
↓ 4 callersMethodswap_in
(self, aio_handle, async_op=False)
deepspeed/runtime/swap_tensor/utils.py:163
↓ 4 callersFunctionterminate_aws_instance
(instance: AwsInstance, run_command: Any = _default_command)
ci/torch_latest.py:1561
↓ 4 callersFunctionto_torch_tensor
Convert state_dict of GatheredTensor to torch tensor
deepspeed/utils/zero_to_fp32.py:586
↓ 4 callersFunctiontop2gating
Implements Top2Gating on logits.
deepspeed/moe/sharded_moe.py:322
↓ 4 callersMethodtransform
(self, param: torch.Tensor)
tests/unit/inference/v2/model_implementations/parameters/utils.py:55
↓ 4 callersMethodtransform_qkv_param
Passes a QKV parameter to the underlying implementation for any necessary transformations. Args: param (torch.Te
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:381
↓ 4 callersMethodtranspose_impl
(self, data)
deepspeed/module_inject/containers/base.py:297
↓ 4 callersFunctionunpatch_compiled_func
Restore torch.autograd.Function and discard inputs captured for this compile cycle.
deepspeed/compile/patch_compiled_func.py:101
↓ 4 callersMethodupdate_records
(self, space_name, exp, metric_val, num_exps)
deepspeed/autotuning/autotuner.py:709
↓ 4 callersMethodupdate_scale
(self, overflow)
deepspeed/runtime/fp16/loss_scaler.py:159
↓ 4 callersMethodupdate_state
csrc/includes/cpu_lion.h:55
↓ 4 callersFunctionvalidate_autoep_post_detection
Post-detection validation: ep_size vs num_experts constraints.
deepspeed/module_inject/auto_ep_config.py:350
↓ 4 callersFunctionvalidate_inferred_shape
Validate that the leading dim of the shard is of the expected size and aligns with the sharding logic for the attention computation itself.
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:31
↓ 4 callersFunctionview_as_uint8
(tensor)
deepspeed/runtime/utils.py:51
↓ 4 callersMethodwait
(self)
ci/test_torch_latest.py:229
↓ 4 callersMethodwait
(self, **kwargs)
tests/unit/runtime/zero/test_zero_context.py:88
↓ 4 callersFunctionwarn_consumer_ssd_writes
csrc/aio/py_lib/deepspeed_aio_op_desc.cpp:25
↓ 4 callersFunctionwarp_uniform
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:217
↓ 4 callersMethodwas_step_applied
Returns True if the latest ``step()`` produced in parameter updates. Note that a ``False`` return is not an error condition. Steps are frequen
deepspeed/runtime/engine.py:2887
↓ 3 callersMethodConfig
csrc/includes/gelu.h:18
↓ 3 callersFunctionCreateLossScaler
(dtype, static_loss_scale, dynamic_scaling, dynamic_loss_args)
deepspeed/runtime/fp16/loss_scaler.py:299
↓ 3 callersMethodFloatTensor
(self, values)
tests/unit/v1/moe/test_autoep_unit.py:875
↓ 3 callersMethodGetNumHeads
csrc/transformer/inference/includes/inference_context.h:194
↓ 3 callersMethodIntTensor
(self)
accelerator/hpu_accelerator.py:227
↓ 3 callersMethodQuantize
(self, value_list, quantize_bits, groups, key, merge_dim=0)
deepspeed/runtime/weight_quantizer.py:42
↓ 3 callersMethod__init__
(self, phase: str, timeout_seconds: int)
ci/torch_latest.py:278
↓ 3 callersMethod__init__
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:30
↓ 3 callersMethod__init__
(self, *args)
tests/unit/runtime/zero/test_zero_context_ancestry.py:46
↓ 3 callersMethod__init__
(self, num_layers=3)
deepspeed/sequence/test_autosp.py:74
↓ 3 callersMethod__init__
(self, params, lr=0.02, weight_decay=0, momentum=0.95, ns_method="gram")
deepspeed/runtime/zero/muon/original_muon.py:262
↓ 3 callersMethod__setattr__
(self, name, value)
tests/unit/v1/zero/test_zero.py:899
↓ 3 callersFunction_advance_to_accumulation_boundary
(engine, inputs, gradient_accumulation_steps)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:88
↓ 3 callersFunction_affine_resume_engine
(tp_size, load_universal=False)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1584
↓ 3 callersFunction_affine_resume_state
(engine, tp_size, gradients=False)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1641
↓ 3 callersMethod_after_fork_child
(self)
deepspeed/runtime/python_gc.py:32
↓ 3 callersFunction_all_ops
(logits, other_logits, index)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:362
↓ 3 callersFunction_allgather_allocation_bytes
(node: Node)
deepspeed/compile/list_schedule.py:413
↓ 3 callersFunction_allocate_worker_grad_buffer
(max_grad_numel: int, pin_memory: bool)
deepspeed/runtime/superoffload/superoffload_utils.py:39
↓ 3 callersFunction_apply_dtype_to_config
Set bf16/fp16 in config_dict based on dtype; skip if not supported.
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:344
↓ 3 callersMethod_apply_repetition_penalty
Penalize the tokens of ``input_ids`` in last-position ``logits``, without changing ``logits``. generate() applies the penalty in float32, bef
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1173
↓ 3 callersMethod_as_groups
(tensor, groups)
op_builder/npu/quantizer.py:59
↓ 3 callersFunction_assert_async_split_step_matches
(actual, expected)
tests/unit/v1/moe/test_autoep_grad_parity.py:665
↓ 3 callersFunction_assert_forward_runs
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:300
↓ 3 callersFunction_assert_matches
(plan_targets, target_map, full)
tests/unit/checkpoint/test_affine_transfer_executor.py:52
↓ 3 callersFunction_assert_module_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:282
↓ 3 callersFunction_assert_no_secondary_tensor_group
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:145
← previousnext →1,201–1,300 of 14,579, ranked by callers