MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 5 callersFunctionvalidate_autoep_post_detection
Post-detection validation: ep_size vs num_experts constraints.
deepspeed/module_inject/auto_ep_config.py:413
↓ 5 callersFunctionvalidate_folding_metadata
(metadata, *, tp_size,
deepspeed/checkpoint/autoep_universal.py:84
↓ 5 callersFunctionwrap_ddp_reference
(model, device, rank)
tests/unit/v1/zero/test_zero_user_backward.py:119
↓ 5 callersMethodwriter
(cls, path, dtype)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:375
↓ 5 callersMethodzero_offload_param
(self)
deepspeed/runtime/engine.py:1671
↓ 5 callersMethodzero_use_cpu_optimizer
(self)
deepspeed/runtime/engine.py:1674
↓ 4 callersMethodConfig
csrc/includes/gelu.h:18
↓ 4 callersMethodGetMaxTokenLength
csrc/transformer/inference/includes/inference_context.h:191
↓ 4 callersMethodInstance
(cls)
deepspeed/ops/transformer/inference/op_binding/workspace.py:32
↓ 4 callersMethodRATIO
csrc/includes/dropout.h:22
↓ 4 callersFunctionRun
csrc/includes/gemm_test.h:123
↓ 4 callersMethod__init__
(self, num_experts=4, ffn_hidden=128, hidden_size=64, intermediate_size=None)
tests/unit/v1/moe/autoep_test_utils.py:57
↓ 4 callersMethod__init__
(self, hidden_dim, shared_weight)
tests/unit/runtime/zero/test_zero_params_to_release_cache.py:66
↓ 4 callersMethod__init__
(self, out=None, bias=None)
tests/unit/runtime/zero/test_zero_context_return.py:28
↓ 4 callersMethod__init__
(self, *args)
tests/unit/runtime/zero/test_zero_context.py:24
↓ 4 callersMethod__init__
(self)
tests/unit/module_inject/test_tp_partition_config_path.py:31
↓ 4 callersMethod__release_param
(self, param: Parameter, free_data: bool = True)
deepspeed/runtime/zero/partitioned_param_coordinator.py:643
↓ 4 callersMethod__setattr__
(self, name, value)
deepspeed/module_inject/auto_tp_model_utils.py:23
↓ 4 callersFunction_add
(graph, lhs, rhs, name, device_time=0)
tests/unit/v1/compile/test_list_schedule.py:211
↓ 4 callersMethod_add_to_grad_partition_buffer
(output, source)
deepspeed/runtime/zero/stage_1_and_2.py:1439
↓ 4 callersMethod_aligned_size
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1701
↓ 4 callersMethod_all_gather_shards
Reassemble a parameter from its tensor parallel shards along ``dim``. ``partition_sizes`` is derived locally from the same deterministic spli
deepspeed/module_inject/layers.py:595
↓ 4 callersFunction_assert_merged_matches
The merged universal slice for `param_name` must equal `expected` element-wise.
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1372
↓ 4 callersFunction_assert_trains_like_cpu_offload
(tmpdir, optimizer_device, param_device, dtype=torch.bfloat16, **nvme_options)
tests/unit/v1/zero/test_zero3_nvme_offload.py:89
↓ 4 callersFunction_assert_union_holds_what_each_layout_holds
Each element lists every location of every layout that holds it, and each location keeps its shard.
tests/unit/checkpoint/test_affine_transfer_plan.py:1069
↓ 4 callersMethod_assert_valid_mixed_precision_config
param_dtype, if set, must match the enabled fp16/bf16 mode. The optimizer/master-weight/reduction paths derive the model dtype from t
deepspeed/runtime/engine.py:1927
↓ 4 callersFunction_autoep_modules
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:130
↓ 4 callersFunction_aws_error_code
(result: Any)
ci/torch_latest.py:892
↓ 4 callersFunction_bigcode_maps
()
tests/unit/checkpoint/test_affine_transfer_plan.py:107
↓ 4 callersMethod_bucketwise_flush_group
Submit all pending ranges for one subgroup with its optimizer settings at enqueue time.
deepspeed/runtime/reflow/reflow_stage3.py:1377
↓ 4 callersMethod_bucketwise_wait_inflight_updates
(self, discard_queued=False, publish_staged=False)
deepspeed/runtime/reflow/reflow_stage3.py:1478
↓ 4 callersFunction_build_universal_engine
(tp_size, ep_size, precision, seed, load_universal=False, offload=False)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:692
↓ 4 callersMethod_capture_on_all_ranks
Run ``capture``, failing it on every rank of the capture groups if it failed on any. Capture records collectives instead of running them, so
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1284
↓ 4 callersFunction_capture_params
(engine)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:62
↓ 4 callersFunction_config
(zero_stage, per_head, lr=0.01, offload_optimizer=False)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:196
↓ 4 callersMethod_config
(self, zero_stage, buffer_dtype=None)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:132
↓ 4 callersFunction_convert_checkpoint_to_universal
(save_dir, tag)
tests/unit/v1/moe/test_autoep_checkpoint.py:38
↓ 4 callersFunction_counts
(ep_degree, num_local_experts, seed, empty_experts=())
tests/unit/v1/moe/test_autoep_permute_rows.py:29
↓ 4 callersMethod_create_zero_config
(self, hidden_dim, leaf_module=None)
tests/unit/runtime/zero/test_zero_leaf_module.py:300
↓ 4 callersFunction_do_parallel_work
(do_work, work_chunks, num_workers)
deepspeed/checkpoint/ds_to_universal.py:541
↓ 4 callersFunction_do_reshape
(src_3d, tgt_3d)
tests/unit/checkpoint/test_reshape_checkpoint.py:35
↓ 4 callersFunction_ds_initialize_for_param_partitioning_testing
(model: Module, cfg: dict)
tests/unit/v1/zero/test_zero.py:831
↓ 4 callersMethod_dump_mapping
(self, data_map, map_tag=None)
deepspeed/checkpoint/deepspeed_checkpoint.py:295
↓ 4 callersMethod_engine
(self, param_dtype=None, buffer_dtype=None, fp16=False, bf16=False)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:47
↓ 4 callersMethod_expert_logical_shape
(self, param: nn.Parameter)
deepspeed/module_inject/auto_ep_layer.py:829
↓ 4 callersFunction_expert_params
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:136
↓ 4 callersMethod_flush_gradient_swapper
(self, gradient_swapper)
deepspeed/runtime/swap_tensor/optimizer_utils.py:247
↓ 4 callersFunction_folding_spec
(mp_mode="tp", tp_size=2)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:44
↓ 4 callersFunction_full_grad_by_suffix
(engine, suffix)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:274
↓ 4 callersMethod_gather_view_and_storage
(self, shard, graph_id, ds_id)
tests/torch_compile/test_deepcompile_z3_release.py:45
↓ 4 callersMethod_gen
(self, rollout, ids)
tests/unit/module_inject/test_segment_ki_kernels.py:669
↓ 4 callersMethod_get_ckpt_name
(self, checkpoints_path, tag, mp_placeholder=None, pp_placeholder=None)
deepspeed/runtime/engine.py:4544
↓ 4 callersMethod_get_compact_grad_partition_slice
(self, group_idx, partition_id, param_id, num_elements)
deepspeed/runtime/zero/stage_1_and_2.py:1427
↓ 4 callersMethod_get_fp32_grad_state_partition
(self, param, release_swap_buffers)
deepspeed/runtime/zero/stage3.py:3485
↓ 4 callersFunction_get_param_uc_restore_meta
Return the restore-facing view of AutoTP UC metadata for a parameter. AutoTP parameter metadata intentionally serves two separate consumers:
deepspeed/checkpoint/universal_checkpoint.py:28
↓ 4 callersFunction_get_test_write_file_and_pinned_tensor
(tmpdir, ref_buffer, aio_handle=None, index=0)
tests/unit/v1/nvme/test_aio.py:64
↓ 4 callersMethod_grad_accumulation_dtype
(self, param)
deepspeed/runtime/zero/stage3.py:1775
↓ 4 callersFunction_grad_parity_metrics
(actual, expected)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:379
↓ 4 callersFunction_group_bounds
(group_ends: torch.Tensor)
deepspeed/runtime/quantization/subchannel.py:104
↓ 4 callersFunction_group_meta
Compute per-group m-start (exclusive prefix) and m-size on device (no D2H sync). A single Triton kernel reads ``offs`` and writes both outputs, r
deepspeed/ops/triton_ops/group_gemm_triton.py:273
↓ 4 callersFunction_group_per_tp_shapes
(slice_shapes_by_tp, pp_degree, tp_degree)
deepspeed/checkpoint/ds_to_universal.py:994
↓ 4 callersFunction_grouped_mm_runs_on
(device)
tests/unit/v1/moe/test_autoep_expert_activation.py:602
↓ 4 callersFunction_grouped_mm_weight
``weight`` in ``dtype``, at an address ``torch._grouped_mm`` accepts. The CUDA grouped GEMM needs 16-byte aligned operands. A tensor's own alloca
deepspeed/moe/ep_experts.py:322
↓ 4 callersFunction_head_shard
This rank's head count and offset, following the same split AutoTP used for the weights. The heads have to be cut the same way as the attention w
deepspeed/module_inject/auto_tp_model_utils.py:58
↓ 4 callersFunction_hybrid_engine_config
(**kwargs)
tests/unit/hybrid_engine/test_he_graph.py:269
↓ 4 callersMethod_init_dc
(self)
tests/torch_compile/test_deepcompile_z3_release.py:28
↓ 4 callersFunction_init_dist
(rank, world_size, port)
tests/unit/checkpoint/test_fp32_master_only.py:94
↓ 4 callersMethod_initialize_deepcompile_native
(self, compile_config)
deepspeed/runtime/engine.py:6244
↓ 4 callersFunction_initialize_folded_engine
(*, zero_stage=0, ep_size=2, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:155
↓ 4 callersFunction_inputs
(batch, seq, vocab, dtype, seed=0, ignore_every=5, device="cpu")
tests/unit/v1/runtime/test_chunked_cross_entropy.py:38
↓ 4 callersFunction_inputs
(device, rank, micro_step)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:54
↓ 4 callersFunction_install_fake_distributed
(monkeypatch, all_reduce)
tests/unit/v1/compile/test_graph_profile.py:237
↓ 4 callersMethod_ipg_bucket_capacity
(self, bucket)
deepspeed/runtime/zero/stage3.py:1783
↓ 4 callersFunction_load_universal_expert_state
(universal_dir, param_name, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:74
↓ 4 callersFunction_make_engine
(model, gradient_accumulation_steps)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:59
↓ 4 callersFunction_make_engine
(module)
tests/unit/hybrid_engine/test_he_policy.py:31
↓ 4 callersFunction_make_fwd_graph
()
tests/unit/v1/compile/test_offload_opt_states.py:57
↓ 4 callersFunction_make_model
(device, model_class=SharedLinear)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:46
↓ 4 callersFunction_make_node_meta
(node: Node, ds_id: int, comm: bool)
deepspeed/compile/fx.py:124
↓ 4 callersFunction_make_param
(numel, ds_persist=False)
tests/unit/v1/compile/test_selective_gather.py:40
↓ 4 callersFunction_model
()
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:53
↓ 4 callersFunction_model_config
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:25
↓ 4 callersMethod_model_parallel_all_reduce
Perform all reduce within model parallel group, if any.
deepspeed/runtime/zero/stage3.py:2655
↓ 4 callersFunction_num_selected_columns
(num_columns, topk_ratio)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:47
↓ 4 callersFunction_one_sender_two_receivers
()
tests/unit/checkpoint/test_affine_transfer_cost.py:24
↓ 4 callersMethod_pad_after_eos
Retain the first response EOS and pad every subsequent position.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1975
↓ 4 callersMethod_patch_counts_exchange
Emulate the EP metadata all-to-alls seen by rank ``ep_rank``. Both the legacy per-rank exchange and the per-(rank, local-expert) exch
tests/unit/v1/moe/test_autoep_unit.py:1920
↓ 4 callersMethod_pending_gradient_partition
(self, param_id)
deepspeed/runtime/reflow/reflow_stage3.py:1855
↓ 4 callersMethod_pin_current_thread
(self, cpu_affinity_mask)
deepspeed/runtime/reflow/reflow_stage3.py:446
↓ 4 callersFunction_plan_for
(names, graph_id=0, size=LARGE_SIZE)
tests/unit/v1/compile/test_offload_activation.py:824
↓ 4 callersMethod_pre_step
(self)
deepspeed/runtime/zero/stage3.py:2780
↓ 4 callersMethod_queue_p2p
(self, op, tensors, stage)
deepspeed/runtime/pipe/dualpipev.py:174
↓ 4 callersFunction_random_slices
(shapes)
tests/unit/checkpoint/test_affine_shard_map.py:313
↓ 4 callersMethod_reentrant_activation_checkpointing
True when the module checkpoints activations with the reentrant function. Reentrant checkpointing needs the first stage's inputs to require g
deepspeed/runtime/pipe/engine.py:872
↓ 4 callersFunction_reference_permute
(tokens, permuted_indices)
tests/unit/v1/moe/test_autoep_permute_rows.py:18
↓ 4 callersMethod_register_param
(self, dc, graph_id, ds_id, shape, persistent=False)
tests/torch_compile/test_deepcompile_z3_release.py:33
↓ 4 callersMethod_release
(self, view, graph_id, ds_id, n_users, synchronize=True)
tests/torch_compile/test_deepcompile_z3_release.py:54
↓ 4 callersMethod_repetition_penalty
(module, generation_config=None)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1714
↓ 4 callersMethod_replace_moe_layer_without_retarget
( self, spec: MoELayerSpec, ep_size: int, ep_rank: int, collect_source
deepspeed/module_inject/auto_ep.py:631
↓ 4 callersFunction_replicated_bias_map
(world_size, scale)
tests/unit/checkpoint/test_affine_shard_map.py:840
← previousnext →1,101–1,200 of 15,767, ranked by callers