MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functionlog_rank_file
Print to a log file of the given rank This is useful for debugging hanging in sync processes. Here is a possible workflow: 1. Enable th
deepspeed/utils/debug.py:172
Functionlog_selective_optimizer_timers
(optimizer_z3: "DeepSpeedZeroOptimizer_Stage3")
deepspeed/runtime/zenflow/engine_stage3.py:368
Functionlog_summary
Print and/or return communication operation statistics across all ranks. This function synchronizes all ranks and logs communication statist
deepspeed/comm/comm.py:483
Functionlog_wrapper
(*args, **kwargs)
deepspeed/comm/comm.py:104
Functionlogprobs_backward
(logits, global_max, log_sum_exp, grad_sum, zero_grad_row, local_index, index_grad)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:402
Methodloss_and_grads
()
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:289
Methodloss_fn
(w, x)
tests/unit/v1/zero/test_zero_functorch_linear.py:78
Methodloss_fn
(model, x_shard, y_shard)
tests/unit/ulysses_alst/test_tiled_compute.py:457
Methodloss_function
(self, value)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:358
Methodloss_function
(self)
tests/unit/v1/autotp/test_autotp_training.py:225
Methodloss_function
(self, value)
tests/unit/v1/autotp/test_autotp_training.py:232
Methodloss_scale
(self)
deepspeed/runtime/fp16/loss_scaler.py:153
Methodloss_sum
(module, ids, positions, labels)
tests/unit/v1/models/test_glm_moe_dsa.py:375
Functionmain
()
deepspeed/nvme/perf_run_sweep.py:309
Functionmain
()
deepspeed/nvme/perf_generate_param.py:92
Functionmain
( Q: T.Tensor(q_shape, dtype), # type: ignore KV: T.Tensor(kv_shape, dtype), # type:
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_fwd.py:84
Functionmake_autoep_client_optimizer_config
AutoEP config with NO ``optimizer`` block, so the caller's own optimizer is the one used. bf16 deliberately, not the shared fp16 helper: fp16 car
tests/unit/v1/moe/autoep_test_utils.py:220
Methodmake_batch
(step, rank)
tests/unit/v1/compile/test_compile_autosp.py:318
Functionmake_builder
(out_file, impl, vocab_size=None)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:60
Functionmake_bw_graph
(gm, sample_inputs)
deepspeed/compile/backend.py:412
Functionmake_dataset
(path, impl, skip_warmup=False)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:67
Functionmake_fw_graph
(gm, sample_inputs)
deepspeed/compile/backend.py:370
Methodmake_grad_allreduce_hook
(group)
deepspeed/module_inject/auto_tp.py:1050
Methodmake_hook
(params)
deepspeed/runtime/zero/stage3.py:1730
Functionmake_model_config_filename
Make a filename for a model config file. Arguments: base: Base directory. Returns: str: Filename.
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:87
Methodmake_moe_layer
Instantiates the MoE layer for the model. This sets the `self.moe` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:635
Methodmake_norm_layer
Instantiates the normalization layer for the model. This sets the `self.norm` attribute. TODO(cmikeh2): In the future we'll distingu
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:105
Methodmake_optimizer
(module)
tests/unit/runtime/zero/test_zero_adagrad.py:25
Functionmake_state_dict
(*args, **kwargs)
tests/unit/checkpoint/test_convert_checkpoint.py:69
Functionmanage_locked_tensors
()
tests/unit/v1/nvme/test_aio_gil.py:159
Methodmanual_seed
(self, seed)
accelerator/supa_accelerator.py:84
Methodmanual_seed
(self, seed)
accelerator/sdaa_accelerator.py:105
Methodmanual_seed
(self, seed)
accelerator/mlu_accelerator.py:75
Methodmanual_seed
(self, seed)
accelerator/npu_accelerator.py:109
Methodmanual_seed
(self, seed)
accelerator/xpu_accelerator.py:239
Methodmanual_seed
(self, seed)
accelerator/cuda_accelerator.py:110
Methodmanual_seed
(self, seed)
accelerator/abstract_accelerator.py:77
Methodmanual_seed_all
(self, seed)
accelerator/supa_accelerator.py:87
Methodmanual_seed_all
(self, seed)
accelerator/sdaa_accelerator.py:108
Methodmanual_seed_all
(self, seed)
accelerator/cpu_accelerator.py:248
Methodmanual_seed_all
(self, seed)
accelerator/mlu_accelerator.py:78
Methodmanual_seed_all
(self, seed)
accelerator/npu_accelerator.py:112
Methodmanual_seed_all
(self, seed)
accelerator/xpu_accelerator.py:242
Methodmanual_seed_all
(self, seed)
accelerator/cuda_accelerator.py:113
Methodmanual_seed_all
(self, seed)
accelerator/mps_accelerator.py:84
Methodmanual_seed_all
(self, seed)
accelerator/abstract_accelerator.py:81
Methodmapping_params
(self)
deepspeed/inference/v2/model_implementations/layer_container_base.py:257
Functionmark_any_rank_failed
(tensor, op)
tests/unit/v1/compile/test_list_schedule.py:107
Functionmask_gather_bert
csrc/random_ltd/pt_binding.cpp:125
Functionmask_gather_gpt
csrc/random_ltd/pt_binding.cpp:158
Functionmasked_softmax_kernel
(output_ptr, input_ptr, stride, mask_ptr, mask_stride, n_cols, BLOCK_SIZE: tl.constexpr)
deepspeed/ops/transformer/inference/triton/softmax.py:33
Methodmasks
Placeholder for supporting complex masks. Currently not supported. Models that will need this will be BERT-like, not generative.
deepspeed/inference/v2/ragged/ragged_wrapper.py:270
Methodmasters
()
tests/unit/v1/zero/test_zero3_unused_param_grads.py:320
Methodmatch
(self, module)
deepspeed/module_inject/containers/unet.py:25
Methodmatch_replaced
(self, module)
deepspeed/module_inject/containers/unet.py:28
Functionmaterialize_fake
(v, device=None)
deepspeed/compile/util.py:227
Methodmaterializes
(*args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:757
Functionmatmul_4d_kernel
Kernel for computing the matmul C = A x B. A has shape (M, K), B has shape (K, N) and C has shape (M, N)
deepspeed/ops/transformer/inference/triton/triton_matmul_kernel.py:311
Functionmatmul_4d_prune_config
(configs, named_args, skip_autotune=SKIP_AUTOTUNE, **kwargs)
deepspeed/ops/transformer/inference/triton/triton_matmul_kernel.py:206
Functionmatmul_ext_update_autotune_table
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:488
Functionmatmul_kernel_fp8_bf16
(inp_ptr, weight_ptr, out_ptr, scale_ptr, M, N, K, stride_am, stride_ak, stride_bk,
deepspeed/ops/fp_quantizer/fp8_gemm_triton.py:23
Functionmatmul_kernel_fp8_fp16
(inp_ptr, weight_ptr, out_ptr, scale_ptr, M, N, K, stride_am, stride_ak, stride_bk,
deepspeed/ops/fp_quantizer/fp8_gemm_triton.py:72
Methodmax_context
Maximum number of tokens for this sequence. Currently unused.
deepspeed/inference/v2/ragged/sequence_descriptor.py:150
Methodmax_memory_allocated
(self, device_index=None)
accelerator/supa_accelerator.py:121
Methodmax_memory_allocated
(self, device_index=None)
accelerator/sdaa_accelerator.py:142
Methodmax_memory_allocated
(self, device_index=None)
accelerator/cpu_accelerator.py:296
Methodmax_memory_allocated
(self, device_index=None)
accelerator/mlu_accelerator.py:112
Methodmax_memory_allocated
(self, device_index=None)
accelerator/npu_accelerator.py:146
Methodmax_memory_allocated
(self, device_index=None)
accelerator/xpu_accelerator.py:279
Methodmax_memory_allocated
(self, device_index=None)
accelerator/cuda_accelerator.py:147
Methodmax_memory_allocated
(self, device_index=None)
accelerator/mps_accelerator.py:122
Methodmax_memory_allocated
(self, device_index=None)
accelerator/abstract_accelerator.py:125
Methodmax_memory_cached
(self, device_index=None)
accelerator/supa_accelerator.py:130
Methodmax_memory_cached
(self, device_index=None)
accelerator/sdaa_accelerator.py:151
Methodmax_memory_cached
(self, device_index=None)
accelerator/cpu_accelerator.py:307
Methodmax_memory_cached
(self, device_index=None)
accelerator/mlu_accelerator.py:121
Methodmax_memory_cached
(self, device_index=None)
accelerator/npu_accelerator.py:155
Methodmax_memory_cached
(self, device_index=None)
accelerator/xpu_accelerator.py:288
Methodmax_memory_cached
(self, device_index=None)
accelerator/cuda_accelerator.py:156
Methodmax_memory_cached
(self, device_index=None)
accelerator/mps_accelerator.py:134
Methodmax_memory_cached
(self, device_index=None)
accelerator/abstract_accelerator.py:137
Methodmax_memory_reserved
(self, device_index=None)
accelerator/hpu_accelerator.py:150
Methodmax_memory_reserved
(self, device_index=None)
accelerator/supa_accelerator.py:148
Methodmax_memory_reserved
(self, device_index=None)
accelerator/sdaa_accelerator.py:169
Methodmax_memory_reserved
(self, device_index=None)
accelerator/cpu_accelerator.py:329
Methodmax_memory_reserved
(self, device_index=None)
accelerator/mlu_accelerator.py:139
Methodmax_memory_reserved
(self, device_index=None)
accelerator/npu_accelerator.py:173
Methodmax_memory_reserved
(self, device_index=None)
accelerator/cuda_accelerator.py:174
Methodmax_memory_reserved
(self, device_index=None)
accelerator/mps_accelerator.py:153
Methodmax_memory_reserved
(self, device_index=None)
accelerator/abstract_accelerator.py:157
Methodmax_ragged_sequence_count_validator
(self)
deepspeed/inference/v2/ragged/manager_configs.py:177
Methodmax_sequence_length
The maximum sequence length supported by the model.
deepspeed/inference/v2/model_implementations/inference_model_base.py:228
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/mixtral/model.py:46
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/phi/model.py:41
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:102
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/mistral/model.py:41
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/exaone4/model.py:35
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:42
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/phi3/model.py:41
Methodmax_sequence_length
(self)
deepspeed/inference/v2/model_implementations/falcon/model.py:41
← previousnext →10,401–10,500 of 15,468, ranked by callers