MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 3 callersFunction_is_nvidia_cuda
(accelerator)
deepspeed/runtime/determinism.py:17
↓ 3 callersMethod_is_partition_offloaded
Whether the parameter partition needs the per-parameter offload path. The selective update assumes the partition is resident on the compute d
deepspeed/ops/adam/zenflow_torch_adam.py:416
↓ 3 callersMethod_launch_daemonic_procs
(self, num_procs, init_method)
tests/unit/common.py:182
↓ 3 callersFunction_launch_group_gemm
(kernel, configs, grid, *args, **kwargs)
deepspeed/ops/triton_ops/group_gemm_triton.py:311
↓ 3 callersFunction_layer_shape
The parameter's shape as a layer, rather than as a ZeRO-3 partition. Under ``deepspeed.zero.Init`` a partitioned parameter's data is a flat place
deepspeed/__init__.py:345
↓ 3 callersFunction_leaf_module_name
`model.layers.0.self_attn.q_proj.weight` -> `q_proj`. Matching the leaf rather than the whole path keeps generic names from matching by accident:
deepspeed/__init__.py:132
↓ 3 callersMethod_link_all_hp_params
(self)
deepspeed/runtime/zero/stage_1_and_2.py:838
↓ 3 callersMethod_live_expert_affine_map
(self, name: str, placement: dict)
deepspeed/module_inject/auto_ep_layer.py:779
↓ 3 callersMethod_live_expert_placement
(self)
deepspeed/module_inject/auto_ep_layer.py:769
↓ 3 callersFunction_load_universal_dense_state
(universal_dir, param_name, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:62
↓ 3 callersFunction_local_expert_range
Return the [start, end) slice of expert indices this rank owns.
deepspeed/moe/ep_repack.py:39
↓ 3 callersFunction_loss_and_grad
(loss_function, logits, labels, vocab, **kwargs)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:47
↓ 3 callersFunction_make_autoep_zero2_config
(ep_size)
tests/unit/v1/moe/test_autoep_grad_parity.py:77
↓ 3 callersFunction_make_empty_graph_module
()
tests/unit/v1/compile/test_graph_profile.py:79
↓ 3 callersFunction_make_engine
()
tests/unit/runtime/test_engine_attribute_delegation.py:10
↓ 3 callersFunction_make_freqs
(seq_len, rot_dim, theta=10000.0, device="cpu")
tests/unit/sequence/test_apply_rotary_pos_emb.py:13
↓ 3 callersMethod_make_key
(self, i, j)
deepspeed/checkpoint/reshape_meg_2d.py:52
↓ 3 callersFunction_make_model
()
tests/unit/v1/moe/test_autoep_grad_parity.py:34
↓ 3 callersFunction_make_tp_layer
(cls)
tests/unit/compile/test_tp_compile.py:536
↓ 3 callersFunction_make_view_graph
x -> relu(base) -> aten.view(viewed) -> sum(out), shaped the way the partitioner leaves it. AOTAutograd saves whichever values the backward pass
tests/unit/v1/compile/test_offload_activation.py:471
↓ 3 callersFunction_manager_stack
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:316
↓ 3 callersFunction_mark_fake_zero_param
(param, full_data, partition_data=None, ds_id=0, name="param")
tests/unit/v1/moe/test_autoep_unit.py:156
↓ 3 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1051
↓ 3 callersFunction_masters
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:90
↓ 3 callersMethod_mlp_gemm
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/npu/inference.py:412
↓ 3 callersMethod_model_parallel_all_reduce
Perform all reduce within model parallel group, if any.
deepspeed/runtime/zero/stage3.py:2492
↓ 3 callersMethod_model_parallel_all_reduce
Perform all reduce within model parallel group, if any.
deepspeed/runtime/zero/stage_1_and_2.py:2718
↓ 3 callersMethod_module_list_model
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2894
↓ 3 callersFunction_module_with_narrow_param
Linear layer plus a submodule holding a frozen quantized weight and its scale.
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:33
↓ 3 callersFunction_muon_flags
(model)
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:36
↓ 3 callersFunction_narrow_sub_params
Take this rank's piece of every sub-parameter and concatenate them back together. ``shard_widths`` gives the per-rank width of each sub-parameter
deepspeed/checkpoint/universal_checkpoint.py:108
↓ 3 callersMethod_num_bytes
(tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:116
↓ 3 callersFunction_offloaded_stage3_param
(selected_indices)
tests/unit/ops/adam/test_zf_torch_adam.py:227
↓ 3 callersFunction_one_request_pair
()
tests/unit/checkpoint/test_affine_replica_policy.py:253
↓ 3 callersFunction_operator_profile_complete
Require the graph marker plus per-node absolute start and peak memory.
deepspeed/compile/passes/zero3_compile.py:69
↓ 3 callersMethod_optimizer
(self, optimizer_class, **fp16_config)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:306
↓ 3 callersMethod_optimizer_has_ckpt_event_epilogue
(self)
deepspeed/runtime/engine.py:1952
↓ 3 callersMethod_optimizer_has_ckpt_event_prologue
(self)
deepspeed/runtime/engine.py:1949
↓ 3 callersFunction_oracle_storage
What each global rank stores, built by indexing the full tensor rather than through a map.
tests/unit/checkpoint/test_autoep_affine.py:243
↓ 3 callersFunction_ordered_bits
Integers whose difference is the distance in representable values, for 16-bit floats.
tests/unit/v1/runtime/test_chunked_cross_entropy.py:54
↓ 3 callersMethod_partition_autoep_zero3_experts
(replacement, convert_to_zero_parameters)
deepspeed/runtime/engine.py:931
↓ 3 callersFunction_partition_logical_tensor
(tensor, partition_dim, tp_world_size, tp_index, shard_widths, subparam_sizes=None)
deepspeed/module_inject/layers.py:2089
↓ 3 callersMethod_partition_param_sec
(self, param, buffer=None, has_been_updated=False)
deepspeed/runtime/zero/partition_parameters.py:1883
↓ 3 callersMethod_partitioned_buffers_all_gather
Allgather the partitioned buffers of the parameters to the global buffer. Args: params: List[Parameter] buffe
deepspeed/runtime/zero/stage3.py:2137
↓ 3 callersFunction_patch_kwargs
(kwargs, monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:51
↓ 3 callersFunction_per_head_orthogonalize
Newton-Schulz per attention head, then fold the head dim back.
deepspeed/runtime/zero/muon/original_muon.py:170
↓ 3 callersMethod_phase1_buffer
The phase-1 slot of the micro-batch held in phase-0 slot ``buffer_id``.
deepspeed/runtime/pipe/dualpipev.py:186
↓ 3 callersMethod_pin_fresh
(self, template, shape)
accelerator/abstract_accelerator.py:326
↓ 3 callersMethod_placeholder
(self, param)
tests/unit/ops/adam/test_zf_torch_adam.py:204
↓ 3 callersMethod_pool_cpu_buffer
(self, key: _BufferKey, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:150
↓ 3 callersFunction_pre_ln_test_helper
(n_tokens: int, n_channels: int, dtype: torch.dtype, res_add: bool = False)
tests/unit/inference/v2/modules/test_cuda_pre_ln_module.py:36
↓ 3 callersFunction_pre_rms_test_helper
(n_tokens: int, n_channels: int, dtype: torch.dtype, res_add: bool = False)
tests/unit/inference/v2/modules/test_pre_rms_module.py:38
↓ 3 callersMethod_pre_step
(self)
deepspeed/runtime/zero/stage3.py:2617
↓ 3 callersMethod_precompute_checkpointable_values
(self)
deepspeed/runtime/pipe/module.py:221
↓ 3 callersMethod_profile_end
(profile, field, start, count=None)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1090
↓ 3 callersMethod_profile_start
(profile)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1083
↓ 3 callersMethod_qkv_gemm
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/npu/inference.py:114
↓ 3 callersMethod_quantize_groups
Per-group symmetric quantization of an fp32 [groups, elems] tensor. Returns the quantized values (int32, in the representable range) and
op_builder/npu/quantizer.py:66
↓ 3 callersFunction_quantize_module
(model, policies)
deepspeed/module_inject/module_quantize.py:62
↓ 3 callersMethod_raise_if_autoep_zero3_consolidated_export
(self, operation)
deepspeed/runtime/engine.py:5719
↓ 3 callersMethod_reassign_or_swap_out_partitioned_parameters_async
Asynchronously update partitioned parameters with optimized values.
deepspeed/runtime/superoffload/superoffload_stage3.py:136
↓ 3 callersFunction_rebuild_zero3_autoep_rank_tensors
(ep_tensors, affine_map_or_placement, logical_shape, context)
deepspeed/checkpoint/ds_to_universal.py:774
↓ 3 callersMethod_record_offload_copy
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1830
↓ 3 callersMethod_recursive_getattr
Allow getting an attribute like "linear.weight
deepspeed/runtime/pipe/module.py:449
↓ 3 callersFunction_reduce_int
Reduce an integer scheduling input, or preserve it outside distributed mode.
deepspeed/compile/passes/zero3_compile.py:33
↓ 3 callersFunction_reference_grad
(model, inputs)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:79
↓ 3 callersFunction_reference_unpermute
(expert_output, permuted_indices, n_tokens)
tests/unit/v1/moe/test_autoep_permute_rows.py:23
↓ 3 callersMethod_release_tensor
(self, tensor_id)
deepspeed/runtime/zero/contiguous_memory_allocator.py:147
↓ 3 callersFunction_released
(param)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:17
↓ 3 callersMethod_repetition_penalty
(module)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1168
↓ 3 callersMethod_replace_with_config
Replace layer using the new configurable AutoTP API. This method uses TPLayerSpec to determine how to partition the layer.
deepspeed/module_inject/auto_tp.py:483
↓ 3 callersFunction_require_aio_cuda
()
tests/unit/v1/nvme/test_aio_gil.py:25
↓ 3 callersFunction_require_liger
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:24
↓ 3 callersFunction_require_native
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:84
↓ 3 callersFunction_rescale_to_global_max
(local_max, global_max)
deepspeed/sequence/vocab_parallel_ops.py:122
↓ 3 callersMethod_residual_add_bias
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size, mlp
op_builder/npu/inference.py:453
↓ 3 callersMethod_resolve_presets
Determine which preset(s) to use for detection.
deepspeed/module_inject/auto_ep.py:766
↓ 3 callersFunction_restore_ckpt_config
(saved)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:128
↓ 3 callersMethod_riscv_has_vector
(self)
op_builder/builder.py:505
↓ 3 callersFunction_router_params
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:143
↓ 3 callersFunction_run_folded_checkpoint_same_topology_resume
(checkpoint_dir, *, ep_size=2, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:258
↓ 3 callersFunction_run_gate
Run ci/check_paths.py in ``repo``; return its exit code and what it wrote to GITHUB_OUTPUT.
ci/test_tests_fetcher.py:295
↓ 3 callersFunction_run_on
(device, op, student, teacher, index)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:540
↓ 3 callersMethod_run_test
(self, tmpdir, dtype, ds_config, load_optim, use_torch_adam, world_size)
tests/unit/checkpoint/test_universal_checkpoint.py:223
↓ 3 callersFunction_scheduler_debug_enabled
()
deepspeed/compile/passes/zero3_compile.py:105
↓ 3 callersFunction_set_module_by_name
Replace the submodule at *dotted_name* with *new_module* in-place.
deepspeed/sequence/auto_sp.py:134
↓ 3 callersFunction_set_vocab_parallel_loss
(model, loss_fn)
deepspeed/sequence/cross_entropy.py:428
↓ 3 callersMethod_setup_baseline_linears
(self, model)
tests/unit/v1/autotp/test_tp_plan_e2e.py:55
↓ 3 callersFunction_shared_qk_shard_fn
(shard_value, meta)
tests/unit/checkpoint/test_affine_shard_map.py:154
↓ 3 callersFunction_skip_if_unsupported
()
tests/unit/v1/zero/test_zero3_nvme_offload.py:21
↓ 3 callersFunction_skip_if_unsupported
Mirror the check the engine itself makes. `_do_sanity_check` raises `Type fp16 is not supported on your device.` on `not get_accelerator().is
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:82
↓ 3 callersFunction_skip_unsupported_dtype
(dtype)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:174
↓ 3 callersMethod_slice_autoep_universal_expert_param
(self, checkpoint_state, param)
deepspeed/runtime/zero/stage3.py:3902
↓ 3 callersMethod_slice_embedding
(self, child, name, conv_linear_layer)
deepspeed/module_inject/auto_tp.py:895
↓ 3 callersFunction_snapshot_ckpt_config
()
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:123
↓ 3 callersMethod_softmax_context
(query_key_value, attn_mask, rotary_dim,
op_builder/npu/inference.py:193
↓ 3 callersFunction_source_param_shape
(param: torch.Tensor | nn.Parameter)
deepspeed/module_inject/auto_ep.py:102
↓ 3 callersFunction_spawn
(target, *args)
tests/unit/checkpoint/test_fp32_master_only.py:191
↓ 3 callersFunction_split
(total, degree)
tests/unit/checkpoint/test_affine_transfer_plan.py:67
↓ 3 callersFunction_split_plan_counts
(scenario)
tests/unit/v1/moe/test_autoep_unit.py:1650
← previousnext →1,401–1,500 of 14,579, ranked by callers