MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 4 callersFunction_assert_bf16_gemm_close
(actual, expected)
tests/unit/v1/moe/test_autoep_expert_activation.py:76
↓ 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:1333
↓ 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:1846
↓ 4 callersMethod_autoep_expert_parallel_group
(self, params)
deepspeed/runtime/zero/stage3.py:684
↓ 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:104
↓ 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 callersMethod_configure_expert_parallel
Initialize AutoEP: detect MoE layers, create EP groups, replace with EP-enabled layers.
deepspeed/runtime/engine.py:825
↓ 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_momentum_buffer
(self, num_elements, i, ds_id)
deepspeed/runtime/zero/stage3.py:1094
↓ 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:538
↓ 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:703
↓ 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:764
↓ 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_gather_zero3_params
Give ``module`` full, ordinary parameters in place of ZeRO-3 partitioned ones. Under ``deepspeed.zero.Init`` every rank holds one partition o
deepspeed/module_inject/auto_tp.py:521
↓ 4 callersMethod_get_compact_grad_partition_slice
(self, group_idx, partition_id, param_id, num_elements)
deepspeed/runtime/zero/stage_1_and_2.py:1419
↓ 4 callersMethod_get_fp32_grad_state_partition
(self, param, release_swap_buffers)
deepspeed/runtime/zero/stage3.py:3205
↓ 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:1632
↓ 4 callersFunction_grad_parity_metrics
(actual, expected)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:379
↓ 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:962
↓ 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:268
↓ 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:6042
↓ 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 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 callersFunction_num_selected_columns
(num_columns, topk_ratio)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:47
↓ 4 callersMethod_overflow_check_and_loss_scale_update
(self, update_scale=True)
deepspeed/runtime/zero/stage3.py:2889
↓ 4 callersMethod_pad_after_eos
Retain the first response EOS and pad every subsequent position.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1409
↓ 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:1687
↓ 4 callersFunction_plan_for
(names, graph_id=0, size=LARGE_SIZE)
tests/unit/v1/compile/test_offload_activation.py:824
↓ 4 callersMethod_post_step
(self, timer_names)
deepspeed/runtime/zero/stage3.py:2913
↓ 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:310
↓ 4 callersMethod_reassign_or_swap_out_partitioned_parameters
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:2951
↓ 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_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:792
↓ 4 callersFunction_require_native
()
tests/unit/v1/pin_memory/test_destroy_unpin.py:23
↓ 4 callersFunction_require_native
(monkeypatch)
tests/unit/v1/pin_memory/test_offload_route.py:18
↓ 4 callersFunction_resolve_expected_grad_dtype
(param)
deepspeed/compile/init_z3.py:75
↓ 4 callersFunction_resolve_vocab_metadata
Infer (if needed) and collectively validate the vocabulary shard layout. This always re-runs the validation collective; it does not cache across
deepspeed/sequence/cross_entropy.py:170
↓ 4 callersFunction_row_to_column
(world_size, tp_size=2)
tests/unit/checkpoint/test_affine_transfer_executor.py:59
↓ 4 callersFunction_run
(raw: str)
ci/test_classify_multirank_exit.py:32
↓ 4 callersFunction_run_fwd_pass
(monkeypatch, graph, budget_gb="0")
tests/unit/v1/compile/test_offload_opt_states.py:71
↓ 4 callersMethod_run_git
(self, args: list[str])
ci/tests_fetcher.py:202
↓ 4 callersFunction_run_multi_backward
(config_dict, hidden_dim, num_chunks, num_steps=1, seed=42)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:72
↓ 4 callersFunction_run_router_grad_boundary
(engine, *, logical_dp_world_size, logical_dp_rank, seed)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:261
↓ 4 callersFunction_run_to_boundary
Forward and backward over one accumulation window; the last backward reduces the gradients.
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:136
↓ 4 callersFunction_run_unmanaged_vs_managed_offload
(zero_stage, gradient_accumulation_steps,
tests/unit/v1/zero/test_zero_user_backward.py:2105
↓ 4 callersFunction_selected_experts_from_counts
Build a routing assignment list whose histogram is exactly ``counts``.
tests/unit/v1/moe/test_autoep_unit.py:1660
↓ 4 callersFunction_set_cuda_rng_state
Sets the random number generator state of the current GPU. Arguments: new_state (torch.ByteTensor): The desired state This function i
deepspeed/runtime/activation_checkpointing/checkpointing.py:101
↓ 4 callersMethod_set_deepcompile_active
Toggle DeepCompile runtime state and manage forward hooks accordingly.
deepspeed/runtime/engine.py:6060
↓ 4 callersFunction_shape_prod
(values)
deepspeed/module_inject/layers.py:1915
↓ 4 callersFunction_single_line
(value: object)
ci/torch_latest.py:779
↓ 4 callersFunction_skip_unless_fused_row_weighting_enabled
(reason)
tests/unit/v1/moe/test_autoep_deepep_parity.py:58
↓ 4 callersFunction_softmax_stats
Global fp32 softmax statistics over the sharded vocabulary of each ``[rows, local_vocab]`` tensor. All tensors share one MAX and one SUM all-redu
deepspeed/sequence/vocab_parallel_ops.py:71
↓ 4 callersMethod_start_timers
(self, timer_names)
deepspeed/runtime/engine.py:3766
↓ 4 callersFunction_subparam_shard_widths
Per-rank width of each sub-parameter, as one list per sub-parameter. Sub-parameters follow the same deterministic split as ordinary layers, so a
deepspeed/module_inject/layers.py:2047
↓ 4 callersFunction_targets
(map_, endpoints, dtype)
tests/unit/checkpoint/test_affine_transfer_executor.py:45
↓ 4 callersFunction_tiny_causal_lm
(seed)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:299
↓ 4 callersFunction_tp_consistent_input
(engine, *, seed=1234)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:148
↓ 4 callersFunction_tp_group
Return this rank's group: a real 2-rank group, a single-rank group, or None (no TP).
tests/unit/module_inject/test_tp_autograd_reduce.py:15
↓ 4 callersFunction_train
(model, config, steps=6, hidden_dim=64, seed=1234)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:228
↓ 4 callersFunction_train_and_detach_masters
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:73
↓ 4 callersFunction_undefined_rows
(global_max)
deepspeed/sequence/vocab_parallel_ops.py:193
↓ 4 callersMethod_validate_autoep_folding_checkpoint_metadata
(state, *,
deepspeed/runtime/engine.py:4175
↓ 4 callersFunction_validate_autotp_conversion_support
(universal_checkpoint_info)
deepspeed/checkpoint/ds_to_universal.py:1076
↓ 4 callersFunction_verify_continuous_increase
(values)
tests/unit/runtime/test_lr_schedulers.py:29
↓ 4 callersFunction_write_stage3_checkpoint
(ckpt_dir, shards_by_param, dp_degree, uc_info)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:663
← previousnext →1,001–1,100 of 14,579, ranked by callers