MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 9 callersFunction_hf_rms_norm
(hidden, weight, eps)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:56
↓ 9 callersFunction_init_alignment_engine
(zero_stage, parameter_alignment=True, offload_optimizer=False)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:52
↓ 9 callersFunction_initialize_zero3
(model, *, gradient_accumulation_steps=1, dtype=torch.float32, module_granularity_threshold=0)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:88
↓ 9 callersFunction_launch
(kernel, logits, *args, max_block=None, **kwargs)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:363
↓ 9 callersFunction_make_request
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:50
↓ 9 callersFunction_meta_tensor
(numel)
tests/unit/v1/compile/test_offload_activation.py:54
↓ 9 callersFunction_owned_ids
(optimizer)
tests/unit/v1/moe/test_autoep_unit.py:2527
↓ 9 callersFunction_param
(shape, use_muon, requires_grad=True)
tests/unit/runtime/zero/test_muon_param_groups.py:20
↓ 9 callersFunction_placeholder
(graph, name)
tests/unit/v1/compile/test_list_schedule.py:87
↓ 9 callersFunction_row_start
(row, inner_rows, outer_stride, row_stride)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:132
↓ 9 callersMethod_set_param_uc_meta
(self, param, *, partition_ty
deepspeed/module_inject/layers.py:518
↓ 9 callersFunction_synchronize
()
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:99
↓ 9 callersFunction_tables
(batch, seq_len, head_dim, dtype, base=10000.0)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:22
↓ 9 callersFunction_triton_kernels
()
deepspeed/sequence/vocab_parallel_ops.py:59
↓ 9 callersMethod_use_compact_grad_partition_buffer
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:1299
↓ 9 callersFunction_use_triton
(*logits)
deepspeed/sequence/vocab_parallel_ops.py:44
↓ 9 callersMethod_validate_buffer_index
(self, index)
deepspeed/io/double_io_buffer.py:75
↓ 9 callersFunction_wait
(graph, arg, ds_id, name)
tests/unit/v1/compile/test_list_schedule.py:199
↓ 9 callersFunction_write_tp_states
(base_dir, param_name, tp_idx, fp32_tensor)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:396
↓ 9 callersMethodasync_pwrite
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:386
↓ 9 callersMethodbatch_metadata_buffer
Buffer associated with the batch metadata tensor that can be populated in preparation for passing a new input to the device.
deepspeed/inference/v2/ragged/ragged_wrapper.py:230
↓ 9 callersFunctionbwc_tensor_model_parallel_rank
Backwards-compatible way of querying the tensor model parallel rank from an ``mpu`` object. *Tensor* model parallelism means that tensors are
deepspeed/utils/bwc.py:7
↓ 9 callersFunctionclose_mmap_dataset_builder
(builder, fname)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:49
↓ 9 callersFunctioncompile_autoep_non_moe_regions
Compile callable parents of AutoEP layers while keeping AutoEP eager.
deepspeed/runtime/compiler.py:132
↓ 9 callersMethodconfigure
(self, comms_config)
deepspeed/utils/comms_logging.py:78
↓ 9 callersMethoddata_ptr
csrc/aio/py_lib/deepspeed_cpu_op.cpp:41
↓ 9 callersMethoddeepspeed_src_path
(self, code_path)
op_builder/builder.py:582
↓ 9 callersFunctionexpected_folding_group_tables
Derive TP, dense-DP, EP, and EDP rank tables without process groups.
deepspeed/module_inject/auto_ep_folding.py:130
↓ 9 callersMethodfind_matching_spec
Find the first matching spec for a parameter.
deepspeed/module_inject/autotp_config.py:272
↓ 9 callersFunctionfunc
()
deepspeed/inference/quantization/layers.py:36
↓ 9 callersMethodget_alignment
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:94
↓ 9 callersMethodget_default_quant_dtype
()
op_builder/fp_quantizer.py:76
↓ 9 callersFunctionget_local_heads
Helper to determine the number of local heads of a given shard. Args: shard_rank (int): The rank of the shard. num_shards (i
deepspeed/inference/v2/model_implementations/sharding/attn.py:9
↓ 9 callersMethodget_lora_params
Return a list of all parameters that would have LoRA for the module.
deepspeed/module_inject/containers/features/hybrid_engine.py:176
↓ 9 callersFunctionget_master_port
(base_port=29500, port_range_size=1000)
tests/unit/common.py:47
↓ 9 callersMethodget_param_coordinator
(self)
deepspeed/runtime/zero/parameter_offload.py:252
↓ 9 callersMethodget_tensor_model_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:466
↓ 9 callersMethodgradient_clipping
(self)
deepspeed/runtime/engine.py:1812
↓ 9 callersMethodgradients
(self, mode, micro_batches=1, replay=True)
tests/unit/module_inject/test_auto_ep_comm.py:905
↓ 9 callersMethodinflight_seq_descriptors
Buffer associated with the metadata of each sequence in the ragged batch. If the device Tensor is requested, the Tensor is truncated
deepspeed/inference/v2/ragged/ragged_wrapper.py:250
↓ 9 callersMethodis_gradient_accumulation_boundary
True if the engine is executing a gradient reduction or optimizer step instruction. This is overridden from :class:`DeepSpeedEngine` to force
deepspeed/runtime/pipe/engine.py:658
↓ 9 callersMethodis_last_stage
True if this process is in the last stage in the pipeline.
deepspeed/runtime/pipe/engine.py:514
↓ 9 callersMethodis_training_mode
(self)
deepspeed/module_inject/layers.py:572
↓ 9 callersMethodlog
(self, names)
tests/unit/v1/zero/test_zero2_gradient_safety.py:406
↓ 9 callersFunctionmake_param
(Opt, shape, selected_indices=None)
tests/unit/ops/adam/test_zf_torch_adam.py:13
↓ 9 callersMethodmark
(self, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:420
↓ 9 callersFunctionpartition_data
(data_list, num_partitions)
deepspeed/checkpoint/reshape_utils.py:68
↓ 9 callersMethodrecv
(self, tensor, src, group=None, tag=0)
deepspeed/comm/ccl.py:128
↓ 9 callersFunctionrow_layout
``(inner_rows, outer_stride, row_stride)`` addressing every row of ``logits`` in place, or None. Two levels of row strides cover contiguous tenso
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:334
↓ 9 callersMethodscale
csrc/aio/common/deepspeed_aio_types.cpp:54
↓ 9 callersMethodseed
(self)
accelerator/mps_accelerator.py:87
↓ 9 callersMethodsend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/ccl.py:125
↓ 9 callersFunctionsequence_dataloader
(model, total_samples, hidden_dim, device, seq_len: int = 32, dtype=preferred_dtype())
tests/unit/simple_model.py:259
↓ 9 callersMethodset_residual_tile
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:796
↓ 9 callersFunctionsetup_serial_env
()
tests/unit/runtime/zero/utils.py:10
↓ 9 callersFunctionshard_qkv_param
Utility method for sharding a QKV parameter. Both biases and weights are supported. It is assumed that the layout of the parameter is such th
deepspeed/inference/v2/model_implementations/sharding/qkv.py:14
↓ 9 callersMethodstep
(self, closure=None)
tests/unit/simple_model.py:198
↓ 9 callersMethodstream
(self, stream)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:36
↓ 9 callersMethodsubmit
(self, request: ContinuousBatchRequest)
deepspeed/runtime/rollout/continuous_batching.py:80
↓ 9 callersFunctionswiglu
Fused SwiGLU activation: ``silu(gate) * up``. Args: gate: Gate projection output, any shape, float16/bfloat16/float32. up: Up pro
deepspeed/ops/triton_ops/swiglu_triton.py:208
↓ 9 callersMethodtotal_memory
(self, device_index=None)
accelerator/hpu_accelerator.py:153
↓ 9 callersMethodunpin_device_tensor
csrc/gds/py_lib/deepspeed_py_gds_handle.cpp:98
↓ 9 callersMethodupper
(self)
deepspeed/checkpoint/affine_geometry.py:108
↓ 9 callersMethodzero_optimization
(self)
deepspeed/runtime/engine.py:1572
↓ 8 callersMethod__init__
(self)
tests/unit/modeling.py:86
↓ 8 callersMethod__init__
(self, hidden_dim, empty_grad=False, nlayers=1)
tests/unit/simple_model.py:22
↓ 8 callersMethod__init__
(self)
tests/unit/compile/test_tp_compile.py:784
↓ 8 callersMethod__init__
(self, hidden_size=64)
tests/unit/v1/moe/test_autoep_unit.py:199
↓ 8 callersMethod__init__
(self, hidden_dim)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:103
↓ 8 callersMethod__init__
(self, hidden_dim)
tests/unit/runtime/zero/test_zero_leaf_module.py:99
↓ 8 callersMethod__init__
(self, *_args, **_kwargs)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:354
↓ 8 callersFunction_add_node
(graph, target, args, name, numel)
tests/unit/v1/compile/test_offload_activation.py:58
↓ 8 callersFunction_assert_ulp_close
(actual, expected, *, max_ulp, min_frac_within_1, label)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:99
↓ 8 callersFunction_build_local_lm_head_autotp
(model, vocab_parallel_lm_head=True)
tests/unit/module_inject/test_tp_partition_config_path.py:182
↓ 8 callersFunction_build_param_uc_restore_meta
Build the restore-facing parameter UC metadata. Restore metadata stays on the parameter object and may include details that are intentionally
deepspeed/module_inject/layers.py:111
↓ 8 callersFunction_command_result
(returncode=0, stdout="", stderr="")
ci/test_torch_latest.py:89
↓ 8 callersFunction_config
(stage, keep="auto", buffer_dtype=None)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:62
↓ 8 callersFunction_fake_modal
( candidate_sha: str, fail_label: str | None = None, cleanup_failure: bool = False, wait_failu
ci/test_torch_latest.py:278
↓ 8 callersFunction_flatten
(vocab_parallel_logits)
deepspeed/sequence/vocab_parallel_ops.py:198
↓ 8 callersFunction_inputs
(vocab_size=17, hidden_size=8, device="cpu", dtype=torch.float32, bias=True)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:16
↓ 8 callersMethod_io_aligned_numel
(self, numel)
deepspeed/runtime/swap_tensor/optimizer_utils.py:557
↓ 8 callersFunction_make_sampling
(n_samples_per_prompt=1)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:57
↓ 8 callersFunction_neg
(graph, arg, name, device_time=0)
tests/unit/v1/compile/test_list_schedule.py:206
↓ 8 callersFunction_node_by_name
(graph, name)
tests/unit/v1/compile/test_offload_activation.py:139
↓ 8 callersFunction_prod
(dims)
deepspeed/profiling/flops_profiler/profiler.py:516
↓ 8 callersFunction_reference
(hidden, weight, bias, target, reduction)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:31
↓ 8 callersFunction_release
(graph, arg, ds_id, name)
tests/unit/v1/compile/test_list_schedule.py:216
↓ 8 callersFunction_replace_callable_autoep_layers
(num_layers=2)
tests/unit/v1/moe/test_autoep_unit.py:150
↓ 8 callersFunction_row_chunks
(logits_2d)
deepspeed/sequence/vocab_parallel_ops.py:65
↓ 8 callersMethod_test
( self, param_persistence_threshold: int = 0, fp16_enabled: bool = False, cont
tests/unit/v1/zero/test_zero.py:1007
↓ 8 callersFunction_train
(engine, steps)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:349
↓ 8 callersFunction_triton_rows
(logits)
deepspeed/sequence/vocab_parallel_ops.py:51
↓ 8 callersMethodacquire
(self)
deepspeed/runtime/python_gc.py:40
↓ 8 callersMethodall_gather_object
(self, object_list, obj, group=None)
deepspeed/comm/torch.py:472
↓ 8 callersMethodattention
Returns attention qkv and dense parameters weight: (3*hidden, hidden) and (hidden, hidden) bias: (3*hidden) and (hidden)
deepspeed/module_inject/policy.py:34
↓ 8 callersFunctionbackward_values
(opt, param, values, boundaries)
tests/unit/v1/zero/test_zero2_gradient_safety.py:90
↓ 8 callersFunctionbuild
(monkeypatch)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:299
↓ 8 callersMethodclose
Shutdown the worker process gracefully. Sends termination signal to worker and waits for clean shutdown. If the process does
deepspeed/runtime/superoffload/superoffload_utils.py:286
↓ 8 callersFunctioncompare_loss
(self, config, dtype, iteration=5, hidden_dim_override=None, rtol=None, atol=None, model_cls=None)
tests/unit/v1/compile/util.py:22
↓ 8 callersFunctioncpu_cgroup
Fake cgroup tree and /proc/self/cgroup for the CPU accelerator's memory queries.
tests/unit/v1/accelerator/test_accelerator.py:306
← previousnext →401–500 of 14,579, ranked by callers