MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodfrom_dict
(cls, entry: Dict[str, List[object]])
deepspeed/checkpoint/affine_transfer.py:203
Methodfrom_dict
Create config from dictionary (JSON config).
deepspeed/module_inject/autotp_config.py:284
Methodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
tests/unit/modeling.py:217
Methodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
tests/unit/modelingpreln.py:218
Methodfrom_json_file
(cls, json_file)
deepspeed/ops/transformer/transformer.py:137
Methodfrom_json_file
(cls, json_file)
deepspeed/ops/transformer/inference/config.py:130
Methodfrom_json_file
(cls, json_file)
deepspeed/ops/transformer/inference/moe_inference.py:104
Functionfrom_tensor_wrapper
(self, t, *args, **kwargs)
deepspeed/compile/patch_fake_tensor.py:131
Methodfunction
(value, *, scale, offset)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:310
Functionfunction_with_kwargs
(*all_args)
deepspeed/runtime/activation_checkpointing/checkpointing.py:1059
Functionfused_apply_rotary_pos_emb
Apply Hugging Face's split-half rotary position embedding with a fused Triton kernel. Computes ``q * cos + rotate_half(q) * sin`` and the same fo
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:245
Functionfused_gemm_gelu
(input, weight, weight_scale, bias,
deepspeed/ops/transformer/inference/triton/ops.py:17
Functionfused_gemm_gelu
csrc/transformer/inference/csrc/pt_binding.cpp:1705
Functionfused_rms_norm
Apply Hugging Face RMSNorm with fused Triton kernels. The variance and normalization are computed in FP32, the normalized value is rounded on
deepspeed/ops/triton_ops/fused_rms_norm.py:249
Functionfused_row_weighting
Apply ``weights`` to ``rows`` as ``(rows.float() * weights).to(rows.dtype)``.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:450
Functionfused_weighted_restore
Restore ``[T * K, H]`` rows directly to weighted ``[B, S, H]`` output.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:456
Functionfwd_bwd
(op=op)
tests/benchmarks/group_gemm_bench.py:80
Methodgated_activation_fallback
(cls, activation, bias, activation_func_type)
deepspeed/ops/transformer/inference/op_binding/gated_activation.py:25
Methodgated_mlp
Return a boolean to determine whether the model uses a gated activation function.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:260
Methodgather
(self, tensor, gather_list=None, dst=0, group=None, async_op=False)
deepspeed/comm/torch.py:541
Functiongather_for_logits
Logits gather will parse the ragged batch data structure and gather only the logits that will be used for token sampling. */
deepspeed/inference/v2/kernels/ragged_ops/logits_gather/logits_gather.cpp:23
Functiongather_from_tp_region
All-gather the last dimension using the frozen shard widths. Inserted after a column-parallel matmul whose layer asks for gather_output, so that
deepspeed/compile/custom_ops/tp_collectives.py:52
Functiongather_from_tp_region_fake
(input: torch.Tensor, partition_sizes: List[int])
deepspeed/compile/custom_ops/tp_collectives.py:90
Methodgather_params
Gathers parameters across devices for distributed training. Must be implemented by subclasses in "TRAINING" mode.
deepspeed/module_inject/layers.py:461
Methodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:912
Methodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:1201
Methodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:1302
Methodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:1394
Methodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:1667
Methodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:1707
Functiongather_tensor
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:42
Methodgds_op_desc_t
csrc/gds/py_lib/deepspeed_gds_op.cpp:91
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
tests/unit/modeling.py:68
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
tests/unit/modelingpreln.py:67
Methodgelu_gemm_fallback
(self, input, weight, scale, bias, out, out_scale, dtype, transpose)
deepspeed/ops/transformer/inference/op_binding/gelu_gemm.py:33
Functiongelu_kernel
(x_ptr, output_ptr, n_elements, BLOCK_SIZE: tl.constexpr)
deepspeed/ops/transformer/inference/triton/gelu.py:20
Functiongen_combinations
(d: dict)
deepspeed/autotuning/tuner/utils.py:45
Methodgen_sparse_grad
(vocabulary_size, dim, num_indices, dtype, device)
tests/unit/ops/adagrad/test_cpu_adagrad.py:80
Methodgenerate
(self)
deepspeed/sequence/fpdt_layer.py:107
Methodgenerate
(self, *inputs, **kwargs)
deepspeed/runtime/hybrid_engine.py:237
Methodget
Returns a pointer
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:573
Methodget
Returns a pointer
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1291
Methodget
Returns a pointer
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1493
Methodget
Returns a pointer
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1700
Methodget
Returns a pointer
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1907
MethodgetBlocksGrid
csrc/deepspeed4science/evoformer_attn/kernel_forward.h:281
MethodgetBlocksGrid
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:396
MethodgetBuffer
csrc/includes/deepcompile.h:211
FunctiongetExecutor
csrc/includes/deepcompile.h:618
MethodgetId
csrc/includes/deepcompile.h:275
MethodgetNumParams
csrc/includes/deepcompile.h:434
MethodgetOffloadStream
csrc/includes/deepcompile.h:355
MethodgetOffset
csrc/includes/deepcompile.h:145
MethodgetQueryStart
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1741
MethodgetReductionOp
csrc/includes/deepcompile.h:601
MethodgetReloadStream
csrc/includes/deepcompile.h:361
MethodgetRowOffset
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:557
MethodgetScalarType
csrc/includes/deepcompile.h:147
MethodgetThreadsGrid
csrc/deepspeed4science/evoformer_attn/kernel_forward.h:286
MethodgetThreadsGrid
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:397
FunctiongetWarpsPerSm
csrc/deepspeed4science/evoformer_attn/kernel_forward.h:80
FunctiongetWarpsPerSm
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:172
Methodget_2d_parallel_state
(self, tp_index: int, pp_index: int)
deepspeed/checkpoint/deepspeed_checkpoint.py:230
Methodget_additional_losses
Returns model specific additional losses for reporting Return a dictionary of {"loss name": loss_value} or None if no additional losses.
deepspeed/runtime/pipe/module.py:681
Functionget_alibi_mask
(self, tensor, seq_length_with_past, mp_group=None, head_shard_sizes=None, total_num_heads=None)
deepspeed/module_inject/auto_tp_model_utils.py:134
Methodget_aligned_num_bytes
(self)
deepspeed/io/double_io_buffer.py:47
Methodget_aligned_num_bytes
(self)
deepspeed/io/single_io_buffer.py:30
Functionget_alignment_padding
(tensor_list, alignment)
deepspeed/runtime/zero/stage_1_and_2.py:91
Functionget_all_ranks_from_group
(group=None)
deepspeed/comm/comm.py:789
Methodget_args
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:224
Methodget_attn_params
(self)
deepspeed/module_inject/containers/features/split_qkv.py:156
Functionget_auto_tp_mode
()
deepspeed/module_inject/layers.py:171
Functionget_available_coll
csrc/cpu/comm/ccl.cpp:323
Functionget_available_dataset_impl
()
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:40
Functionget_backend
(group=None)
tests/unit/comm/test_dist.py:205
Methodget_batch
(step, device)
tests/unit/v1/zero/test_zero.py:173
Methodget_batch_info
Get all training batch related settings. Returns: train_batch_size (int): The effective training batch size. This is the amount of
deepspeed/runtime/engine.py:1337
Methodget_bit16_param_group
(self, group_no)
deepspeed/runtime/zero/stage_1_and_2.py:3065
Methodget_bsh
(self, hidden_stats)
deepspeed/runtime/data_pipeline/data_routing/basic_layer.py:60
Methodget_buffer
(self)
deepspeed/io/double_io_buffer.py:39
Methodget_buffer
(self)
deepspeed/io/single_io_buffer.py:24
Functionget_bw
(comm_op, size, duration)
deepspeed/compile/profilers/comm_profile.py:25
Methodget_checkpoint_info
(self, key)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:83
Methodget_cmd
(self, environment, active_resources)
tests/unit/launcher/test_user_args.py:20
Methodget_cmd
Return the command to execute on node
deepspeed/launcher/multinode_runner.py:34
Methodget_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:289
Functionget_comm_operation_count
Get the total number of communication operations logged. Returns: int: Total count of all communication operations across all types
deepspeed/comm/comm.py:608
Methodget_compile_backend
(self)
accelerator/supa_accelerator.py:287
Methodget_compile_backend
(self)
accelerator/sdaa_accelerator.py:308
Methodget_compile_backend
(self)
accelerator/cpu_accelerator.py:518
Methodget_compile_backend
(self)
accelerator/mlu_accelerator.py:280
Methodget_compile_backend
(self)
accelerator/npu_accelerator.py:349
Methodget_compile_backend
(self)
accelerator/xpu_accelerator.py:503
Methodget_compile_backend
(self)
accelerator/cuda_accelerator.py:426
Methodget_compile_backend
(self)
accelerator/mps_accelerator.py:305
Methodget_compile_backend
(self)
accelerator/abstract_accelerator.py:420
Methodget_compile_time
(self)
deepspeed/runtime/engine.py:6096
Methodget_compute_tensor
(self, offset)
deepspeed/runtime/swap_tensor/utils.py:89
Methodget_compute_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:136
Methodget_compute_tensors
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:87
← previousnext →9,201–9,300 of 14,579, ranked by callers