MCPcopy Create free account

hub / github.com/AIS-SNU/Smart-Infinity / functions

Functions4,989 in github.com/AIS-SNU/Smart-Infinity

Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/distil_bert.py:68
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/gptneo.py:115
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/clip.py:63
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/gpt2.py:50
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/bert.py:72
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/bloom.py:111
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/llama.py:136
Methodmlp
(self, moe_type='standard', enable_training=False)
deepspeed/module_inject/containers/megatron_gpt.py:75
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/gptneox.py:128
Methodmlp
(self, moe_type='standard', enable_training=False)
deepspeed/module_inject/containers/megatron_gpt_moe.py:60
Methodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/gptj.py:116
Methodmlp_gemm_fallback
(self, input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps,
deepspeed/ops/transformer/inference/op_binding/mlp_gemm.py:41
Functionmlp_unfused_cublas
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:1375
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no torch.cuda.manual_seed
DeepSpeedExample/megatron/core/tensor_parallel/random.py:181
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no torch.cuda.manual_seed
DeepSpeedExample/megatron/mpu/random.py:207
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no get_accelerator().manua
deepspeed/runtime/activation_checkpointing/checkpointing.py:198
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
DeepSpeedExample/megatron/core/parallel_state.py:323
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
DeepSpeedExample/megatron/mpu/initialize.py:90
Functionmodel_provider
Build the model.
DeepSpeedExample/pretrain_bert.py:31
Functionmodel_provider
Build the model.
DeepSpeedExample/pretrain_gpt2.py:35
Functionmodel_provider
Build the model.
DeepSpeedExample/tools/generate_samples_gpt2.py:35
Functionmodel_provider
()
DeepSpeedExample/tools/merge_mp_partitions.py:120
Functionmodel_provider
Build the model.
DeepSpeedExample/tasks/zeroshot_gpt2/evaluate.py:39
Functionmodel_provider
Build the model.
DeepSpeedExample/tasks/glue/finetune.py:41
Methodmodel_times
(self)
deepspeed/inference/engine.py:561
Methodmodule_state_dict
Override hack to save a pipe model and return the directory path of the save. This method should only be called by DeepSpeed's ``save_checkpo
deepspeed/runtime/pipe/engine.py:1240
Methodmoe_backward_compat
(cls, field_value, values)
deepspeed/inference/config.py:277
Functionmoe_res_matmul
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:1889
Functionmonitored_barrier
(group=None, timeout=None, wait_all_ranks=False,
deepspeed/comm/comm.py:398
Methodmonitored_barrier
(self, group=torch.distributed.GroupMember.WORLD, timeout=None, wait_all_ranks=False)
deepspeed/comm/torch.py:216
Functionmove_to_cpu
(tensor_list)
deepspeed/runtime/zero/stage3.py:57
Functionmulti_no_sync
()
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:396
Methodmy_gather
(self, rank, size, group, sendbuf, recvbuf, root)
deepspeed/runtime/comm/nccl.py:44
Methodmy_igather
(self, rank, size, group, sendbuf, recvbuf, root)
deepspeed/runtime/comm/nccl.py:32
Methodname
Return the name of the backend
deepspeed/launcher/multinode_runner.py:43
Methodname
(self)
deepspeed/launcher/multinode_runner.py:60
Methodname
(self)
deepspeed/launcher/multinode_runner.py:119
Methodname
(self)
deepspeed/launcher/multinode_runner.py:171
Methodname
(self)
deepspeed/launcher/multinode_runner.py:242
Methodname
(self)
deepspeed/launcher/multinode_runner.py:323
Methodname
(self)
deepspeed/launcher/multinode_runner.py:403
Functionname_from_datapath
(datapath)
DeepSpeedExample/tasks/glue/finetune.py:73
Functionnatural_keys
alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in
deepspeed/utils/zero_to_fp32.py:52
Functionnetwork_to_half
Convert model to half precision in a batchnorm-safe way. Retained for legacy purposes. It is recommended to use FP16Model.
DeepSpeedExample/megatron/fp16/fp16util.py:55
FunctionnewFunc
(*args, **kwds)
deepspeed/profiling/flops_profiler/profiler.py:746
Methodnew_cpu_locked_tensor
deepspeed/ops/csrc/aio/py_lib/deepspeed_py_aio_handle.cpp:289
Functionnew_group
deepspeed/ops/csrc/cpu/comm/ccl.cpp:88
Functionnew_group
(ranks)
deepspeed/comm/comm.py:177
Methodnew_group
(self, ranks)
deepspeed/comm/torch.py:233
Methodnew_inference_container
(self, orig_layer, policy_cls, layer_id)
deepspeed/runtime/hybrid_engine.py:84
Functionnew_step
(self, closure=None)
deepspeed/compression/helper.py:305
Functionnew_tensor
(cls, *args)
deepspeed/runtime/zero/partition_parameters.py:240
Methodnew_tensor
(cls, *args)
deepspeed/utils/init_on_device.py:56
Methodnew_token
deepspeed/ops/csrc/transformer/inference/includes/inference_context.h:189
Methodnext_batch
(self, sample_size)
deepspeed/autotuning/tuner/model_based_tuner.py:83
Methodnext_batch
(self, sample_size=1)
deepspeed/autotuning/tuner/index_based_tuner.py:17
Methodnext_batch
(self, sample_size=1)
deepspeed/autotuning/tuner/index_based_tuner.py:33
Functionnext_pow2
deepspeed/ops/csrc/includes/ds_kernel_utils.h:43
Functionnext_power_of_2
(n)
deepspeed/ops/sparse_attention/softmax.py:15
Functionnoop_decorator
(func)
deepspeed/runtime/utils.py:51
Methodnum_micro_batches
The number of total micro_batches used to configure this schedule.
deepspeed/runtime/pipe/schedule.py:97
Methodnum_partitions
(self)
deepspeed/runtime/zero/mics.py:302
Methodnum_partitions
(self)
deepspeed/runtime/zero/partition_parameters.py:1524
Methodnum_pipe_buffers
Only two pipeline buffers are required for inferencing. Returns: ``2``
deepspeed/runtime/pipe/schedule.py:180
Methodnum_pipe_buffers
Return the number of pipeline buffers required for this stage. This is equivalent to the maximum number of in-flight forward passes,
deepspeed/runtime/pipe/schedule.py:247
Methodnum_pipe_buffers
Only one pipeline buffer needed.
deepspeed/runtime/pipe/schedule.py:321
Methodnum_pipeline_stages
(self)
deepspeed/runtime/pipe/module.py:509
Methodnum_samples
(self)
DeepSpeedExample/megatron/data/samplers.py:55
Methodnum_samples
(self)
DeepSpeedExample/megatron/deprecated_data_utils/samplers.py:55
Methodnum_stages
The number of total pipeline stages used to configure this schedule.
deepspeed/runtime/pipe/schedule.py:92
Methodnum_tokens
(self, index)
DeepSpeedExample/megatron/data/indexed_dataset.py:194
Methodnum_tokens
(self, index)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:203
Functionnum_warps
(n)
deepspeed/ops/sparse_attention/softmax.py:26
Methodnumel_in_use
Return number of elements in use.
DeepSpeedExample/megatron/memory.py:84
Methodnvcc_args
(self)
deepspeed/ops/op_builder/fused_lamb.py:31
Methodnvcc_args
(self)
deepspeed/ops/op_builder/stochastic_transformer.py:19
Methodnvcc_args
(self)
deepspeed/ops/op_builder/fused_adam.py:31
Methodon_accelerator
(self, tensor)
deepspeed/accelerator/npu_accelerator.py:196
Methodon_accelerator
(self, tensor)
deepspeed/accelerator/cuda_accelerator.py:206
Methodon_accelerator
(self, tensor)
deepspeed/accelerator/abstract_accelerator.py:225
Methodop_builder_dir
(self)
deepspeed/accelerator/npu_accelerator.py:203
Methodop_builder_dir
(self)
deepspeed/accelerator/abstract_accelerator.py:229
Functionopenai_gelu
(x)
DeepSpeedExample/megatron/core/transformer/utils.py:34
Functionopenai_gelu
(x)
DeepSpeedExample/megatron/model/utils.py:56
Methodoperator()
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:37
Methodoperator()
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:44
Methodoperator()
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.h:37
Methodoperator()
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.h:44
Methodout_stream
()
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:431
Methodoverlap_comm_valid
(cls, field_value, values)
deepspeed/runtime/zero/config.py:262
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/zero/stage3.py:1859
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/zero/stage_1_and_2.py:1602
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/fp16/fused_optimizer.py:210
Methodoverride_loss_scale
(self, loss_scale)
deepspeed/runtime/fp16/unfused_optimizer.py:189
Functionoverride_params
(args, params)
deepspeed/runtime/lr_schedules.py:188
Methodpad
(self)
DeepSpeedExample/megatron/tokenizer/tokenizer.py:181
Methodpad_to_block_size
This function pads input tokens and attention mask on sequence length dimension to be multiple of block size. This is a requirement for Sp
deepspeed/ops/sparse_attention/sparse_attention_utils.py:143
Functionpadd_add_transform
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:1252
Methodparam_groups
Forward the wrapped optimizer's parameters.
deepspeed/runtime/bf16_optimizer.py:402
Methodparam_groups
Forward the wrapped optimizer's parameters.
deepspeed/runtime/zero/stage_1_and_2.py:2111
← previousnext →4,401–4,500 of 4,989, ranked by callers