MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethod__init__
(self, params)
tests/unit/v1/ops/muon/test_muon_partial_training.py:317
↓ 2 callersMethod__init__
(self)
tests/unit/v1/pin_memory/test_pin_memory.py:192
↓ 2 callersMethod__init__
(self)
tests/unit/v1/zero/test_reflow.py:2327
↓ 2 callersMethod__init__
(self, checkpointed)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:153
↓ 2 callersMethod__init__
(self, attn: nn.Module)
tests/unit/v1/sequence_parallelism/test_autosp_integration.py:89
↓ 2 callersMethod__init__
(self, seq_dim, vocab_size=64, hidden=32, num_heads=2)
tests/unit/v1/compile/test_compile_autosp.py:94
↓ 2 callersMethod__init__
(self)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:74
↓ 2 callersMethod__init__
(self, attn_cls, hidden: int)
tests/benchmarks/bench_multimodal_sp.py:90
↓ 2 callersMethod__init__
(self, batch_size, hidden_size, intermediate_size, heads, attn_dropout_ratio, hidden_dropout_ratio,
deepspeed/ops/transformer/transformer.py:21
↓ 2 callersMethod__init__
(self, config, q_scales=None, q_groups=1, merge_count=1, mlp_extra_grouping=False, mp_group=None)
deepspeed/ops/transformer/inference/moe_inference.py:134
↓ 2 callersMethod__init__
(self, chunk: torch.Tensor, device=None, is_in_use=False)
deepspeed/sequence/fpdt_layer.py:558
↓ 2 callersMethod__init__
(self, micro_batches, stages, stage_id)
deepspeed/runtime/pipe/schedule.py:49
↓ 2 callersMethod__init__
Create a mapping of n-dimensional tensor coordinates to linear indices. Arguments: axes (list): the names of the tensor axes
deepspeed/runtime/pipe/topology.py:26
↓ 2 callersMethod__init__
(self, typename, *module_args, **module_kwargs)
deepspeed/runtime/pipe/module.py:53
↓ 2 callersMethod__init__
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:143
↓ 2 callersMethod__init__
( self, init_optimizer, param_names, timers, optimizer_params,
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:55
↓ 2 callersMethod__init__
(self, scale=1)
deepspeed/runtime/fp16/loss_scaler.py:188
↓ 2 callersMethod__new__
( cls, data: Optional[torch.Tensor] = None, requires_grad: bool = False, # quantized
deepspeed/linear/quantization.py:37
↓ 2 callersMethod__reduce_and_partition_ipg_grads
(self, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage3.py:1873
↓ 2 callersMethod__setstate__
(self, state)
deepspeed/linear/quantization.py:92
↓ 2 callersFunction_abort_if_any_rank_failed
Agree across ranks on whether profiling can go on, and stop everywhere if it cannot. Profiling issues collectives node by node. A rank that hits
deepspeed/compile/profilers/graph_profile.py:105
↓ 2 callersFunction_absolute_profile_memory
Read absolute allocator residency and peak with external memory included once.
deepspeed/compile/profilers/graph_profile.py:189
↓ 2 callersMethod_add_tensors
(self, tensor_list)
deepspeed/runtime/swap_tensor/optimizer_utils.py:66
↓ 2 callersFunction_aggregate_autoep_zero12_metadata
(model_state_metadata)
deepspeed/checkpoint/ds_to_universal.py:1112
↓ 2 callersFunction_agree
Collective AND: both ranks must pass or both fall back. The verdict tensor must live on the accelerator: an NCCL-only group has no CPU backen
deepspeed/comm/custom_collective.py:40
↓ 2 callersFunction_alias_root
The node that allocated the storage `node` reads. An aliasing op returns a tensor that shares the storage of its first tensor input, so following
deepspeed/compile/passes/offload_activation.py:310
↓ 2 callersMethod_align_host_address
(accelerator, address)
deepspeed/utils/pin_memory.py:141
↓ 2 callersFunction_all_gather_cat_dim1
Same as _all_gather_cat_dim0, but for row-parallel weights sharded along dim 1.
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1367
↓ 2 callersFunction_all_gather_sequence
(local: torch.Tensor, group, size: int)
deepspeed/models/glm_moe_dsa/attention.py:66
↓ 2 callersFunction_all_gather_variable_rows
(tensor: torch.Tensor, group, tp_size: int,
deepspeed/moe/ep_tp_dispatch.py:342
↓ 2 callersFunction_all_real_if_tensor
(args)
deepspeed/compile/profilers/graph_profile.py:26
↓ 2 callersFunction_all_reduce_replicated_kv_rows
All-reduce the replicated K/V rows in place. Some backends return this gradient non-contiguously, which collectives reject; reduce a contiguo
deepspeed/module_inject/layers.py:1474
↓ 2 callersMethod_all_source_files
(self)
ci/tests_fetcher.py:279
↓ 2 callersMethod_all_test_files
(self)
ci/tests_fetcher.py:271
↓ 2 callersFunction_alloc_reload_buffer
(like_tensor, compute_stream)
deepspeed/compile/passes/offload_adam_states.py:103
↓ 2 callersMethod_allocate_and_return_buffers_for_swap_in
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:178
↓ 2 callersMethod_allocate_or_extend_buffers
(self, idx, shape, dtype)
deepspeed/runtime/pipe/engine.py:1275
↓ 2 callersMethod_apply_all_deferred_grad_scales
(self)
deepspeed/runtime/zero/stage3.py:3365
↓ 2 callersMethod_apply_repetition_penalty
Penalize the tokens of ``input_ids`` in last-position ``logits``, without changing ``logits``. generate() applies the penalty in float32, bef
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1515
↓ 2 callersFunction_apply_rotary_interleave
Interleaved rotary embedding on ``[batch, seq, heads, rope_dim]`` tensors. The same formula as transformers' ``apply_rotary_pos_emb_interleave``
deepspeed/models/glm_moe_dsa/attention.py:101
↓ 2 callersFunction_as_concat
Normalize grouped_linear output: some routing paths return concatenated (list of 1), others separate (list of n).
tests/unit/module_inject/test_segment_ki_kernels.py:54
↓ 2 callersFunction_aspect_ratio_scale
(rows, cols)
deepspeed/runtime/zero/muon/original_muon.py:163
↓ 2 callersFunction_assert_compile_step_close
(actual, expected)
tests/unit/v1/moe/test_autoep_grad_parity.py:317
↓ 2 callersFunction_assert_grad_maps_close
(actual, expected, *, lhs_name, rhs_name)
tests/unit/v1/moe/test_autoep_grad_parity.py:167
↓ 2 callersFunction_assert_kept_update_survives
(engine, loss)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:336
↓ 2 callersFunction_assert_moves_exactly
(plan, source_map, target_map, full)
tests/unit/checkpoint/test_affine_replica_policy.py:56
↓ 2 callersFunction_assert_native_fused_gradient_close
(actual, expected, *, name)
tests/unit/v1/moe/test_autoep_deepep_parity.py:487
↓ 2 callersFunction_assert_no_further_from_reference
(fused, eager, reference, allowance, what)
tests/unit/v1/moe/test_autoep_fused_parity.py:195
↓ 2 callersFunction_assert_no_less_accurate
(kernel_out, eager_out, ref, dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:286
↓ 2 callersFunction_assert_pid_gone
(pid: int)
ci/test_torch_latest.py:1130
↓ 2 callersFunction_assert_relative_tensor_error
(actual, expected, name)
tests/unit/v1/moe/test_autoep_grad_parity.py:308
↓ 2 callersFunction_assert_same_dtype_device
(actual, expected)
tests/unit/v1/moe/test_autoep_unit.py:116
↓ 2 callersMethod_assert_sparse_routes_match
(combine_weights, sparse_output)
tests/unit/v1/moe/test_moe.py:382
↓ 2 callersFunction_assert_step_matches
(fused, eager, reference)
tests/unit/v1/moe/test_autoep_fused_parity.py:249
↓ 2 callersFunction_assert_structure
AutoTP shards the attention projections only; AutoEP owns every MoE block.
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:214
↓ 2 callersMethod_assert_training_matches_reference
(self, engine, reference, vocab_parallel)
tests/unit/v1/autotp/test_autotp_training.py:240
↓ 2 callersFunction_assert_universal_expert_metadata
(universal_dir, num_experts)
tests/unit/v1/moe/test_autoep_checkpoint.py:92
↓ 2 callersMethod_assert_window_grads_match
(self, staged_windows, unstaged_windows)
tests/unit/v1/moe/test_autoep_grad_parity.py:837
↓ 2 callersMethod_assert_zero3_universal_weights_only_load
(self, tmpdir, load_kwargs)
tests/unit/v1/moe/test_autoep_checkpoint.py:595
↓ 2 callersMethod_assign_resources_to_tensor_slice
(self, slice_resources, my_slice_index, my_dp_ranks)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:174
↓ 2 callersFunction_autoep_expert_param_names_by_rank
(model_files)
deepspeed/checkpoint/ds_to_universal.py:695
↓ 2 callersMethod_autoep_expert_parameter_names
(autoep_layers, model)
deepspeed/runtime/engine.py:4708
↓ 2 callersFunction_autoep_zero12_dp_ranks
Return stage-local ZeRO DP ranks that own one EP rank's fragments.
deepspeed/checkpoint/autoep_universal.py:244
↓ 2 callersMethod_autoep_zero3_param_converter
(self, model)
deepspeed/runtime/engine.py:950
↓ 2 callersMethod_autoep_zero_optimizer_param_families
(self)
deepspeed/runtime/engine.py:4229
↓ 2 callersMethod_autotp_meta
(self, module)
deepspeed/inference/engine.py:245
↓ 2 callersFunction_autotp_stub
(*, tp_meta=None, partition_config=None, mp_group=None, mp_size=2)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:529
↓ 2 callersFunction_base_lion_step
One step of the base DeepSpeedCPULion, seeded with the given momentum, as the reference.
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:222
↓ 2 callersFunction_bf16_optimizer_stub
(lp, hp_grad)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:25
↓ 2 callersMethod_bigcode_affine_map
GPTBigCode shards the query rows and gives every rank the whole key/value block. The two segments differ only in who holds them, which is wha
deepspeed/module_inject/layers.py:1643
↓ 2 callersFunction_blas_linear_helper
(tokens: int, in_channels: int, out_channels: int,
tests/unit/inference/v2/modules/test_blas_linear_module.py:49
↓ 2 callersFunction_block_of
(piece, logical_shape)
deepspeed/checkpoint/affine.py:1037
↓ 2 callersFunction_bloom_type_transpose
(input, mp_size, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:219
↓ 2 callersMethod_bucketwise_chunk_update_worker
Generate low-precision weights for these ranges. Persist owns the master and moment updates.
deepspeed/runtime/reflow/reflow_stage3.py:1195
↓ 2 callersMethod_bucketwise_clip_range_to_valid_partition
Clamp a range to the valid partition; return None if it is entirely padding.
deepspeed/runtime/reflow/reflow_stage3.py:1181
↓ 2 callersMethod_bucketwise_commit_group_steps
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1450
↓ 2 callersMethod_bucketwise_flush_all_pending
(self, use_pending_buffer, combined_scale)
deepspeed/runtime/reflow/reflow_stage3.py:1432
↓ 2 callersMethod_bucketwise_get_valid_partition_element_count
Return the flat-buffer bound, including padding between parameters.
deepspeed/runtime/reflow/reflow_stage3.py:1175
↓ 2 callersMethod_bucketwise_schedule_enqueue_range
Schedule a range enqueue off the main thread (falls back to sync if no executor).
deepspeed/runtime/reflow/reflow_stage3.py:1154
↓ 2 callersMethod_buffer_key
(self, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:140
↓ 2 callersFunction_build_average_tensor_optimizer
(monkeypatch, *, copy_streams)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:137
↓ 2 callersMethod_build_continuous_batch
(self, request, responses)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1652
↓ 2 callersMethod_build_indexes
(self, files: list[Path])
ci/tests_fetcher.py:327
↓ 2 callersFunction_build_qwen_attn_layer
(block, hidden, tp_world_size, tp_index, meta)
tests/unit/module_inject/test_fused_repartition.py:64
↓ 2 callersFunction_build_test_engine
(backend, ep_size, seed, *,
tests/unit/v1/moe/test_autoep_deepep_parity.py:226
↓ 2 callersFunction_build_unmanaged_offload_config
(zero_stage, gradient_accumulation_steps,
tests/unit/v1/zero/test_zero_user_backward.py:2081
↓ 2 callersFunction_build_writer
(file_path)
tests/unit/v1/nvme/test_fast_file_writer_fd_close.py:58
↓ 2 callersFunction_byte_cast_multiple_tensors
(typed_tensor_list)
tests/unit/utils/test_byte_cast.py:30
↓ 2 callersFunction_byte_cast_single_tensor
(typed_tensor)
tests/unit/utils/test_byte_cast.py:23
↓ 2 callersFunction_cache_config
(head_dim=None)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1945
↓ 2 callersMethod_cache_layer_count
(cache)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1640
↓ 2 callersMethod_cache_layer_tensors
(cache, layer_idx)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1646
↓ 2 callersMethod_call_model
Call models with only the cache arguments their HF version accepts.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1590
↓ 2 callersFunction_cgroup_memory
Returns (limit, available) in bytes for the cgroups that limit this process, or None. The limit is the smallest one from the process's cgroup up
accelerator/cpu_accelerator.py:131
↓ 2 callersMethod_change_recovery_script_permissions
(self, dst)
deepspeed/runtime/engine.py:5732
↓ 2 callersFunction_check_broken_transformers_moe
Reject models whose experts forward the installed transformers cannot capture in a graph.
deepspeed/compile/init_tp.py:25
↓ 2 callersFunction_check_folded_matches_reference
Compare a folded run with the unfolded reference: losses, gradients and the global norm. With ``clip`` both runs clip to that norm and take one o
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:246
↓ 2 callersFunction_check_fused_rms_norm_matches_hf_forward_and_backward
(dtype, shape)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:167
↓ 2 callersFunction_check_fused_rms_norm_width_one_has_nonzero_input_gradient
(dtype, n_rows=257)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:196
↓ 2 callersFunction_check_kept_param_gradient
The kept parameter's gradient is reduced and accumulated in fp32: over two micro-batches it equals the fp32 reference exactly. bf16 keeps 8 signif
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:317
← previousnext →2,001–2,100 of 15,468, ranked by callers