MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 6 callersMethodwrite_events
(self, event_list)
deepspeed/monitor/monitor.py:20
↓ 5 callersMethod__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:124
↓ 5 callersMethod__init__
(self, args, world_info_base64)
deepspeed/launcher/multinode_runner.py:67
↓ 5 callersMethod__init__
(self, )
deepspeed/runtime/domino/transformer.py:46
↓ 5 callersFunction_affine_resume_engine
(tp_size, load_universal=False, zero_stage=1)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1623
↓ 5 callersFunction_affine_resume_state
(engine, tp_size, gradients=False)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1680
↓ 5 callersFunction_alignment_step
(engine, lr=None, input_value=1)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:86
↓ 5 callersFunction_allow_dynamo_dynamic_parameter_shapes_for_z3
Acquire process-wide ZeRO-3 Dynamo config ownership and return its release callback.
deepspeed/compile/init_z3.py:30
↓ 5 callersFunction_answering
(answer)
tests/unit/checkpoint/test_affine_replica_policy.py:257
↓ 5 callersFunction_assert_bf16_gemm_close
(actual, expected)
tests/unit/v1/moe/test_autoep_expert_activation.py:78
↓ 5 callersFunction_assert_matches
(plan_targets, target_map, full)
tests/unit/checkpoint/test_affine_transfer_executor.py:54
↓ 5 callersMethod_assert_weight_grads_match
(self, staged, plain)
tests/unit/v1/moe/test_autoep_expert_activation.py:810
↓ 5 callersMethod_autoep_expert_parallel_group
(self, params)
deepspeed/runtime/zero/stage3.py:717
↓ 5 callersFunction_aws_text
(run_command: Any, args: Sequence[str], *, timeout: float | None = None)
ci/torch_latest.py:897
↓ 5 callersMethod_bucketwise_drain_enq_executor
Block until all async enqueue work has been reflected in the pending ranges. ``_bucketwise_schedule_enqueue_range`` submits enqueue work asyn
deepspeed/runtime/reflow/reflow_stage3.py:1137
↓ 5 callersFunction_by_name
(param_groups)
tests/unit/runtime/zero/test_muon_param_groups.py:31
↓ 5 callersMethod_capture_continuous_graph
Capture one fixed-capacity decode forward and return its static logits.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1310
↓ 5 callersFunction_clamped_tol
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:252
↓ 5 callersMethod_clear_fp32_optimizer_param_groups
(self)
deepspeed/runtime/zero/stage3.py:3782
↓ 5 callersFunction_config
(stage, pin_memory=True, offload_param=False, offload_optimizer=True)
tests/unit/v1/pin_memory/test_destroy_unpin.py:41
↓ 5 callersFunction_config
(stage, dtype="fp32")
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:61
↓ 5 callersMethod_create_config
(self, world_size, rank)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:46
↓ 5 callersMethod_create_momentum_buffer
(self, num_elements, i, ds_id)
deepspeed/runtime/zero/stage3.py:1128
↓ 5 callersFunction_cutlass_moe_testing_helper
(tokens: int, in_channels: int, intermediate_d
tests/unit/inference/v2/modules/test_cutlass_moe.py:83
↓ 5 callersFunction_engine
(config, model_class=PartlyUsedModel)
tests/unit/v1/zero/test_zero3_unused_param_grads.py:102
↓ 5 callersMethod_engine
(self, module)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:93
↓ 5 callersMethod_eos_token_ids
Every id that ends a response: the tokenizer's EOS id, then those in the model's generation config. A negative id is no token, and generate()
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1778
↓ 5 callersMethod_expert
(self, value, device, with_grad=True)
tests/unit/runtime/test_runtime_utils.py:89
↓ 5 callersFunction_flatten_dense_tensors
Flatten dense tensors into a contiguous 1D buffer. Assume tensors are of same dense type. Since inputs are dense, the resulting tensor will b
deepspeed/runtime/zenflow/zenflow_utils.py:19
↓ 5 callersMethod_forward
(self, sample, timestamp, encoder_hidden_states, return_dict=True)
deepspeed/model_implementations/diffusers/vae.py:150
↓ 5 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:564
↓ 5 callersFunction_gathered
(param)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:275
↓ 5 callersMethod_get_fp32_opt_state_partition
(self, param, release_swap_buffers, optim_state_key=None)
deepspeed/runtime/zero/stage3.py:3525
↓ 5 callersMethod_get_norm_groups
(self)
deepspeed/runtime/zero/stage3.py:2822
↓ 5 callersMethod_get_swap_paths
(self, params, must_exist=False)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:148
↓ 5 callersFunction_get_test_write_file
(tmpdir, index)
tests/unit/v1/nvme/test_aio.py:54
↓ 5 callersFunction_import_deep_ep
Import DeepEP, explaining the environment it needs when it is absent. DeepEP is an optional dependency with prerequisites a cluster either meets
deepspeed/module_inject/auto_ep_comm.py:156
↓ 5 callersMethod_io_aligned_numel
(self, numel)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:386
↓ 5 callersMethod_is_bias_param
(self, param)
deepspeed/module_inject/layers.py:487
↓ 5 callersFunction_log_probs
(ptr, cols, mask, global_max, log_sum_exp)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:136
↓ 5 callersFunction_make_async_split_model
()
tests/unit/v1/moe/test_autoep_grad_parity.py:38
↓ 5 callersFunction_make_internvl_adapter
(world_size=2, rank=0)
deepspeed/sequence/test_autosp.py:512
↓ 5 callersFunction_make_llava_adapter
(world_size=2, rank=0)
deepspeed/sequence/test_autosp.py:400
↓ 5 callersFunction_make_qwen2vl_adapter
(world_size=2, rank=0)
deepspeed/sequence/test_autosp.py:620
↓ 5 callersFunction_metadata_entry
()
tests/unit/checkpoint/test_autoep_zero3_metadata.py:17
↓ 5 callersMethod_mixed_precision_dtypes
Resolve (param_dtype, buffer_dtype) for the module cast. param_dtype follows the enabled fp16/bf16 mode (None if neither). buffer_dty
deepspeed/runtime/engine.py:1946
↓ 5 callersFunction_new_handle
()
tests/unit/v1/nvme/test_pinned_manager.py:20
↓ 5 callersMethod_overflow_check_and_loss_scale_update
(self, update_scale=True)
deepspeed/runtime/zero/stage3.py:3060
↓ 5 callersMethod_partition_rank
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1715
↓ 5 callersFunction_payload
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:28
↓ 5 callersMethod_post_step
(self, timer_names)
deepspeed/runtime/zero/stage3.py:3084
↓ 5 callersMethod_prepare_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2951
↓ 5 callersFunction_product
(shape)
tests/unit/checkpoint/test_affine_transfer_plan.py:63
↓ 5 callersFunction_projection_layout
(batch, seq_len, heads, head_dim, dtype, generator)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:31
↓ 5 callersFunction_ragged_embed_test_helper
Helper for embedding test to limit the number of tests to run. Params: embed_dim (int): Model dimension vocab_size (int): Le
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:53
↓ 5 callersMethod_read_autotune_table
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:456
↓ 5 callersMethod_reassign_or_swap_out_partitioned_parameters
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:3176
↓ 5 callersMethod_record_bucketwise_worker_error
(self, exc)
deepspeed/runtime/reflow/reflow_stage3.py:502
↓ 5 callersFunction_ref_grouped_mm
Pure-PyTorch reference: out[rows_g] = a[rows_g] @ b[g].
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:93
↓ 5 callersFunction_rel_error
(actual, expected)
tests/unit/v1/runtime/test_subchannel_quantization.py:55
↓ 5 callersFunction_rel_names
(repo: TmpRepo, tests)
ci/test_tests_fetcher.py:116
↓ 5 callersMethod_release_params
Helper for `release_[component]` methods. Accepts a list of tuples where the first element is the module param that needs to be delet
deepspeed/module_inject/containers/features/hybrid_engine.py:100
↓ 5 callersMethod_release_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2980
↓ 5 callersFunction_request
(request_id)
tests/unit/runtime/rollout/test_continuous_batching.py:13
↓ 5 callersFunction_require_fp8_kernels
()
tests/unit/v1/runtime/test_subchannel_quantization.py:28
↓ 5 callersFunction_restore_pin_backend
(prev)
tests/unit/v1/pin_memory/test_destroy_unpin.py:34
↓ 5 callersFunction_router_grad_model
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:247
↓ 5 callersFunction_run
(function, q, k, cos, sin, grad_q, grad_k, unsqueeze_dim=1)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:42
↓ 5 callersFunction_run_aws
(run_command: Any, args: Sequence[str], *, timeout: float | None = None)
ci/torch_latest.py:883
↓ 5 callersFunction_run_one_step
(engine, hidden_dim, dtype)
tests/unit/v1/pin_memory/test_destroy_unpin.py:76
↓ 5 callersFunction_save_and_convert
(engine, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1098
↓ 5 callersMethod_sequence_parallel_group
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:693
↓ 5 callersMethod_set_fp32_optimizer_param_groups
(self)
deepspeed/runtime/zero/stage3.py:3776
↓ 5 callersFunction_skip_unless_fused_row_weighting_enabled
(reason)
tests/unit/v1/moe/test_autoep_deepep_parity.py:58
↓ 5 callersFunction_stored_dtype
(tensor)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:280
↓ 5 callersMethod_tagged
(self, num_heads, batch_dim_idx=0)
tests/unit/v1/sequence_parallelism/test_ulysses.py:697
↓ 5 callersFunction_target_param
(placement, logical_shape, ep_rank)
tests/unit/checkpoint/test_autoep_affine_universal.py:385
↓ 5 callersFunction_targets
(map_, endpoints, dtype)
tests/unit/checkpoint/test_affine_transfer_executor.py:47
↓ 5 callersMethod_test
(self, inputs, class_tmpdir, checkpoint_tag, mp_size, pp_size, mp_resize, pp_resize)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:191
↓ 5 callersFunction_train
Train `steps` optimizer steps and return the master weights after each one. uses_for(step, micro_step) gives the `uses` of PartlyUsedModel.forwar
tests/unit/v1/zero/test_superoffload.py:100
↓ 5 callersFunction_train_steps
(engine, hidden_dim, steps=3)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1090
↓ 5 callersMethod_update_model_bit16_weights
(self, group_index)
deepspeed/runtime/zero/stage_1_and_2.py:911
↓ 5 callersFunction_uses_zero3_partitioned_autoep_metadata
(autoep_metadata)
deepspeed/checkpoint/ds_to_universal.py:661
↓ 5 callersMethod_validate_autoep_zero3_partitioned_metadata
(autoep_layers, model=None,
deepspeed/runtime/engine.py:4750
↓ 5 callersFunction_write_zero12_fragments
(temp_dir, param_name, rank_tensors)
tests/unit/checkpoint/test_autoep_affine_universal.py:28
↓ 5 callersFunction_zero3_config
(memory_efficient_linear)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:16
↓ 5 callersFunction_zero3_functorch_config
()
tests/unit/v1/zero/test_zero_functorch_linear.py:29
↓ 5 callersFunctionadamw
r"""Functional API that performs AdamW algorithm computation. See :class:`~torch.optim.AdamW` for details.
deepspeed/ops/adam/zenflow_torch_adam.py:1057
↓ 5 callersMethodadd_export
(self, key, var)
deepspeed/launcher/multinode_runner.py:37
↓ 5 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:764
↓ 5 callersMethodadvance
(self, finished_ids=())
deepspeed/runtime/rollout/continuous_batching.py:118
↓ 5 callersFunctionapply_determinism
(config)
deepspeed/runtime/determinism.py:24
↓ 5 callersFunctionassignment_ordinals_by_expert
Return stable ordinals within each contiguous expert segment.
deepspeed/moe/ep_tp_dispatch.py:43
↓ 5 callersFunctionautoep_experts_for_rank
Return expert IDs in one rank's local packed order.
deepspeed/checkpoint/autoep_affine.py:100
↓ 5 callersMethodavailable_memory
(self)
tests/unit/v1/compile/test_list_schedule.py:455
↓ 5 callersFunctionclear_backward_inputs
Drop captured inputs and pending capture registrations for selected frames.
deepspeed/compile/patch_compiled_func.py:131
↓ 5 callersMethodclear_mask
< Efficiently disables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:454
↓ 5 callersFunctioncombine_from_routed
Scatter-add expert outputs back to original token positions.
deepspeed/module_inject/auto_ep_layer.py:504
↓ 5 callersFunctioncompare_state_dicts
(state0, state1, expected_mismatch_keys=[])
tests/unit/checkpoint/common.py:87
↓ 5 callersFunctioncompute_split_plan
Compute AllToAllV split sizes for token dispatch/combine. ``num_tokens_per_expert`` may be supplied by the caller to reuse the histogram alre
deepspeed/module_inject/auto_ep_layer.py:318
← previousnext →901–1,000 of 15,767, ranked by callers