MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 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_tensor_node
(gm: GraphModule, tensor_node: Node)
deepspeed/compile/util.py:596
↓ 4 callersFunctionshard_value_with_share_qk
( weight, bias, rank, world_size, shard_value, # True -> shard_value;
deepspeed/module_inject/fusedqkv_utils.py:343
↓ 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:229
↓ 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 callersMethodsync_weights
(self, step: int)
tests/unit/runtime/rollout/test_rollout_interface.py:189
↓ 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 callersMethodvalidate
(**settings)
tests/unit/v1/moe/test_autoep_expert_activation.py:366
↓ 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:52
↓ 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 callersFunctionwarning_once
This method is identical to `logger.warning()`, but will emit the warning with the same message only once Note: The cache is for the functio
deepspeed/utils/logging.py:65
↓ 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:2985
↓ 4 callersMethodzero_nvme_offload_optimizer
(self)
deepspeed/runtime/engine.py:1748
↓ 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:931
↓ 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/zero/test_zero3_unused_param_grads.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, output)
tests/unit/module_inject/test_auto_ep_comm.py:595
↓ 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 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_step
(engine, tp_size, step)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1704
↓ 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, dtyp
deepspeed/runtime/superoffload/superoffload_utils.py:46
↓ 3 callersMethod_apply_deferred_grad_scale
Multiply the gradients that a fused CPU Adam step left unscaled by its factor, except the ones overwritten since then. A parameter that is not
deepspeed/runtime/zero/stage3.py:3352
↓ 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_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_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
↓ 3 callersFunction_assert_nonzero_named_grad
(engine, *name_fragments)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:163
↓ 3 callersFunction_assert_partition_status
(model: Module, valid_statuses: Set[ZeroParamStatus])
tests/unit/v1/zero/test_zero.py:837
↓ 3 callersFunction_assert_same
(actual, expected, exact, atol=1e-5)
tests/unit/v1/zero/test_superoffload.py:182
↓ 3 callersFunction_assert_secondary_tensor_size
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:158
↓ 3 callersFunction_autoep_expert_param_info
(autoep_metadata)
deepspeed/checkpoint/ds_to_universal.py:674
↓ 3 callersMethod_autoep_sequence_parallel_world_size
(self)
deepspeed/runtime/engine.py:998
↓ 3 callersFunction_aws_run_identity
(env: Mapping[str, str])
ci/torch_latest.py:859
↓ 3 callersFunction_backfill_missing_profile_metadata
(graph: Graph, profile_complete: bool = True)
deepspeed/compile/profilers/graph_profile.py:93
↓ 3 callersMethod_backward_epilogue
(self)
deepspeed/runtime/engine.py:3341
↓ 3 callersFunction_bias_activation_test_helper
Fully parameterized testing entry point.
tests/unit/inference/v2/kernels/core_ops/test_bias_activation.py:43
↓ 3 callersFunction_block_n
(n_cols: int)
deepspeed/ops/triton_ops/fused_rms_norm.py:249
↓ 3 callersMethod_build_compact_grad_partition_buffer
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:1324
↓ 3 callersFunction_build_config
Partition config that matches q_proj and o_proj via regex.
tests/unit/module_inject/test_tp_partition_config_path.py:76
↓ 3 callersFunction_build_engine
(combine_impl, ep_size, reference_state, seed, mixed_precision=True)
tests/unit/v1/moe/test_autoep_fused_parity.py:80
↓ 3 callersFunction_build_gathered_lm_head_autotp
(model, mp_size=1)
tests/unit/module_inject/test_tp_partition_config_path.py:159
↓ 3 callersFunction_build_overlap_optimizer
(monkeypatch, *, resolves_data_dependency)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:49
↓ 3 callersFunction_cache_config
(head_dim=None)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2280
↓ 3 callersFunction_call
(pass_fn, gm, profile, bwd, param_manager=None, graph_id=0)
tests/unit/v1/compile/test_offload_activation.py:94
↓ 3 callersFunction_capacity
(gates: Tensor, capacity_factor: Tensor, min_capacity: Tensor)
deepspeed/moe/sharded_moe.py:152
↓ 3 callersFunction_capture_matched_names
Run _replace_module and capture full_name values that match a spec.
tests/unit/module_inject/test_tp_partition_config_path.py:84
↓ 3 callersFunction_check_bigcode_copy
(plan, source, target)
tests/unit/checkpoint/test_affine_transfer_plan.py:114
↓ 3 callersMethod_check_process_alive
Check if the checkpoint process is still alive. Note: Only call this when self.ckpt_process is not None. Some ranks don't have a chec
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:116
↓ 3 callersFunction_check_zero3_param_storage
(param)
deepspeed/checkpoint/zero_affine.py:109
↓ 3 callersFunction_clamped_inputs
(shape, dtype, scale=4.0, requires_grad=False)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:295
↓ 3 callersMethod_clear_previous_reduced_grads
(self)
deepspeed/runtime/zero/stage_1_and_2.py:2490
↓ 3 callersFunction_client_optimizer_needs_remap
Whether ``optimizer`` is one that module replacement can invalidate. A config-built or callable optimizer is constructed after the replacement an
deepspeed/runtime/engine.py:229
↓ 3 callersFunction_collect
Collect the sandbox suite with the gate off/on and return the node ids.
tests/unit/test_multirank_selection.py:88
↓ 3 callersFunction_collect_autoep_expert_grads
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:141
↓ 3 callersFunction_collect_by_ep_rank
(local_tensor, ep_rank, ep_size, device)
tests/unit/v1/moe/test_autoep_checkpoint.py:163
↓ 3 callersFunction_column_parallel_shards
(tensor, tp)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:55
↓ 3 callersMethod_combined_grad_scale
(self, total_norm)
deepspeed/runtime/zero/stage3.py:3315
↓ 3 callersFunction_common_config
()
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:89
↓ 3 callersMethod_compare
(self, tmpdir, offload, gas, managed, precision="fp32", model_class=PartlyUsedModel)
tests/unit/v1/zero/test_zero3_unused_param_grads.py:201
↓ 3 callersFunction_compiler
(name)
tests/unit/compile/test_inductor_aot_kwargs.py:9
↓ 3 callersFunction_config
(stage, low_precision_master, accumulation_dtype)
tests/unit/v1/zero/test_zero_offload_accum_precision.py:37
↓ 3 callersFunction_config_dtype
(config)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:86
↓ 3 callersMethod_configure_python_gc
(self)
deepspeed/runtime/engine.py:1391
↓ 3 callersFunction_consolidate_zero3_autoep_expert_states
(output_dir, model_files, optim_files)
deepspeed/checkpoint/ds_to_universal.py:816
↓ 3 callersFunction_convert_to_universal
(checkpoint_dir, universal_dir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1079
↓ 3 callersMethod_copy_ready_ranges
(self, fp16_flat, output, ranges, prepare=None)
deepspeed/runtime/reflow/reflow_stage3.py:1309
↓ 3 callersFunction_count_type
(cmds, classtype)
tests/unit/runtime/pipe/test_pipe_schedule.py:10
↓ 3 callersMethod_cpu_flags
(self)
op_builder/cpu/reflow.py:16
↓ 3 callersFunction_cpu_info
Returns the host CPU architecture, named the way py-cpuinfo names it (X86_64, ARM_8, PPC_64, RISCV_64, ...), and its feature flags as a froze
op_builder/builder.py:83
↓ 3 callersMethod_create_prefill_cache
Cache for a single prefill forward whose KV is then copied into the decode cache. Under autocast, keys and values can come out in different d
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1820
↓ 3 callersFunction_create_sdpa_graph
(seq_len, num_heads=2, num_kv_heads=None)
tests/unit/v1/compile/test_compile_autosp.py:31
↓ 3 callersMethod_create_static_cache
Construct StaticCache across Transformers' batch-size API variants.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1841
↓ 3 callersMethod_create_vocab_parallel_layer
(self, child, name)
deepspeed/module_inject/auto_tp.py:745
↓ 3 callersFunction_curriculum_scheduler
(min_difficulty, max_difficulty, difficulty_step, schedule_type="fixed_linear")
tests/unit/runtime/test_data_efficiency.py:58
← previousnext →1,401–1,500 of 15,767, ranked by callers