MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

Methodfinalize
Our gated format (this is different from InferenceV1!) is to have the gate and activated neurons interleaved. So if we have 4 output
deepspeed/inference/v2/model_implementations/common_parameters/mlp_parameters.py:43
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/mlp_parameters.py:79
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/mlp_parameters.py:98
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/invfreq_parameters.py:18
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/attn_output_parameters.py:28
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/moe_parameters.py:26
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/moe_parameters.py:38
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/moe_parameters.py:51
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/moe_parameters.py:69
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/qkv_parameters.py:25
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/qkv_parameters.py:43
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/qkv_parameters.py:73
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/qkv_parameters.py:110
Methodfinalize
(self)
deepspeed/inference/v2/model_implementations/common_parameters/embedding_parameters.py:25
Methodfinalize
(self, index_file)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:623
Methodfinalize_autotp
(autotp=None, attach_uc_metadata=False, require_vocab_parallel_lm_head=False)
deepspeed/runtime/engine.py:1134
Methodfinalize_gradient_accumulation_boundary
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1095
Methodfinalize_gradient_accumulation_boundary
(self)
deepspeed/runtime/reflow/reflow_stage3.py:2000
Functionfind_replace
(target, replace_dict)
deepspeed/autotuning/utils.py:59
Methodfini
(self)
deepspeed/nvme/ds_aio_handle.py:24
Methodfini
(self)
deepspeed/nvme/torch_fastio_engine.py:22
Methodfini
(self)
deepspeed/nvme/ds_aio_basic.py:21
Methodfinish
csrc/gds/deepspeed_gds_op.cpp:110
Methodfinish
csrc/aio/py_lib/deepspeed_aio_op_desc.cpp:79
Functionflash_attn_by_atoms
deepspeed/inference/v2/kernels/ragged_ops/blocked_flash/blocked_flash.cpp:21
Methodflash_attn_func_v2
(self, q, k, v, dropout_p, softmax_scale, is_causal)
op_builder/xpu/flash_attn.py:14
Functionflatten
(grads)
tests/unit/v1/zero/test_zero2_gradient_safety.py:462
Methodflatten_and_print
(self, message, tensors, start=0, n=5)
deepspeed/runtime/zero/stage3.py:2451
Methodflatten_and_print
(self, message, tensors, start=0, n=5)
deepspeed/runtime/zero/stage_1_and_2.py:2404
Methodflattened_param_metadata
The flattened parameter metadata.
deepspeed/inference/v2/model_implementations/inference_model_base.py:175
Methodflattened_params
The flattened parameter buffer.
deepspeed/inference/v2/model_implementations/inference_model_base.py:168
Methodflops_repr
(module)
deepspeed/profiling/flops_profiler/profiler.py:401
Methodflush
(self)
deepspeed/io/fast_file_writer.py:102
Methodflush
(self)
deepspeed/io/base_file_writer.py:26
Methodflush
(self)
deepspeed/io/mock_file_writer.py:28
Methodflush
Remove all state associated with a sequence from the inference engine. Arguments: uid (int): The UID of the sequence to
deepspeed/inference/v2/engine_v2.py:242
MethodflushAllReduceBuckets
csrc/includes/deepcompile.h:577
MethodflushReduceBucket
csrc/compile/z2.cpp:42
MethodflushReduceBucket
csrc/compile/z3.cpp:252
MethodflushReduceBucket
csrc/compile/z1.cpp:49
Methodflush_bucket
()
deepspeed/ops/adam/zenflow_torch_adam.py:179
Methodflush_bucket
()
deepspeed/ops/adam/zenflow_torch_adam.py:653
Methodflush_gradients
(self)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:99
Methodflush_gradients
(self)
deepspeed/runtime/swap_tensor/partitioned_optimizer_swapper.py:60
Functionfolded_universal_source
(request)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:846
Methodfolding_metadata
(*, family, ep_rank, ze
deepspeed/runtime/engine.py:5352
Functionforbidden
(self, *args, **kwargs)
tests/unit/checkpoint/test_affine_transfer_plan.py:929
Functionforced_budget
(monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:144
Functionforward
(x)
tests/unit/v1/runtime/test_subchannel_quantization.py:362
Functionforward
(x)
tests/unit/v1/moe/test_autoep_deepep_parity.py:175
Methodforward
(self, data, residual)
tests/torch_compile/test_compile.py:47
Methodforward
(self, input_ids)
tests/torch_compile/test_deepcompile_skipped_frame.py:51
Methodforward
(self, input)
tests/unit/modeling.py:130
Methodforward
(self, hidden_states, attention_mask, grads=None)
tests/unit/modeling.py:273
Methodforward
(self, hidden_states, input_tensor)
tests/unit/modeling.py:314
Methodforward
(self, input_tensor, attention_mask)
tests/unit/modeling.py:331
Methodforward
(self, hidden_states)
tests/unit/modeling.py:350
Methodforward
(self, hidden_states, input_tensor)
tests/unit/modeling.py:365
Methodforward
(self, hidden_states, attention_mask, grads, collect_all_grads=False)
tests/unit/modeling.py:382
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False)
tests/unit/modeling.py:426
Methodforward
(self, x, y)
tests/unit/simple_model.py:30
Methodforward
(self, x, y)
tests/unit/simple_model.py:60
Methodforward
(self, x, y)
tests/unit/simple_model.py:96
Methodforward
(self, x, y)
tests/unit/simple_model.py:128
Methodforward
(self, x, y)
tests/unit/simple_model.py:163
Methodforward
(self, args)
tests/unit/megatron_model.py:72
Methodforward
(self, input)
tests/unit/modelingpreln.py:129
Methodforward
(self, input_ids, token_type_ids=None)
tests/unit/modelingpreln.py:255
Methodforward
(self, hidden_states, attention_mask, grads=None)
tests/unit/modelingpreln.py:306
Methodforward
(self, hidden_states, input_tensor)
tests/unit/modelingpreln.py:352
Methodforward
(self, input_tensor, attention_mask)
tests/unit/modelingpreln.py:368
Methodforward
(self, hidden_states)
tests/unit/modelingpreln.py:387
Methodforward
(self, hidden_states, input_tensor)
tests/unit/modelingpreln.py:402
Methodforward
(self, hidden_states, attention_mask, grads, collect_all_grads=False)
tests/unit/modelingpreln.py:420
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False)
tests/unit/modelingpreln.py:468
Methodforward
(self, inputs, targets)
tests/unit/multi_output_model.py:18
Methodforward
(self, x, y)
tests/unit/alexnet_model.py:42
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False)
tests/unit/ops/accelerators/test_accelerator_forward.py:58
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False)
tests/unit/ops/accelerators/test_accelerator_backward.py:106
Methodforward
(self, query, key, value)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:34
Methodforward
(self, x)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:134
Methodforward
(self, lhs, rhs)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:256
Methodforward
(self, x)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:278
Methodforward
(self, x)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:292
Methodforward
(self, x, y)
tests/unit/checkpoint/test_zero_affine.py:248
Methodforward
(self, x, y)
tests/unit/checkpoint/test_zero_affine.py:361
Methodforward
(self, x)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1033
Methodforward
(self, x)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1056
Methodforward
(self, x)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1065
Methodforward
(self, x)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1073
Methodforward
(self, x)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1619
Methodforward
(self, x)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1850
Methodforward
(self, x)
tests/unit/checkpoint/test_fp32_master_only.py:32
Methodforward
(self, x)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:26
Methodforward
(self, inputs)
tests/unit/checkpoint/test_convert_checkpoint.py:205
Methodforward
(self, value)
tests/unit/compile/test_zero3_grad_dtype.py:122
Methodforward
(self, x)
tests/unit/compile/test_tp_compile.py:39
Methodforward
(self, x)
tests/unit/compile/test_tp_compile.py:53
Methodforward
(self, input_ids)
tests/unit/compile/test_tp_compile.py:77
Methodforward
(self, x)
tests/unit/compile/test_tp_compile.py:267
← previousnext →9,301–9,400 of 15,767, ranked by callers