MCPcopy Create free account

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

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

Functionparam_is_not_shared
(param)
DeepSpeedExample/megatron/core/transformer/module.py:18
Functionparam_is_not_shared
(param)
DeepSpeedExample/megatron/model/module.py:32
Functionparam_is_not_tensor_parallel_duplicate
(param)
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:56
Functionparse_arguments
()
deepspeed/runtime/lr_schedules.py:115
Functionparse_num_nodes
(str_num_nodes: str, elastic_training: bool)
deepspeed/launcher/runner.py:367
Methodparse_user_args
(self)
deepspeed/launcher/multinode_runner.py:63
Functionpartition_activations_in_checkpoint
(partition_activation)
deepspeed/runtime/activation_checkpointing/checkpointing.py:720
Methodpartition_after
(f)
deepspeed/runtime/zero/partition_parameters.py:361
Functionpartition_balanced
(weights, num_parts, eps=1e-3)
deepspeed/runtime/utils.py:603
Methodpartition_gradients
(param_list=None, partition_buffers=None, hierarchy=0, accumulate=False)
deepspeed/runtime/zero/partition_parameters.py:964
Methodpartition_grads
(self, params_to_release: List[Parameter], grad_partitions: List[Tensor])
deepspeed/runtime/zero/mics.py:406
Functionpartitioned_block
deepspeed/ops/csrc/includes/reduction_utils.h:513
Methodpartitions
(self)
deepspeed/runtime/pipe/module.py:478
Methodpin_memory
(self, tensor)
deepspeed/accelerator/npu_accelerator.py:193
Methodpin_memory
(self, tensor)
deepspeed/accelerator/cuda_accelerator.py:203
Methodpin_memory
(self, tensor)
deepspeed/accelerator/abstract_accelerator.py:221
Methodpost_hook
(module, input, output)
deepspeed/profiling/flops_profiler/profiler.py:97
Methodpre_hook
(module, input)
deepspeed/profiling/flops_profiler/profiler.py:90
Methodpread
deepspeed/ops/csrc/aio/py_lib/deepspeed_py_aio_handle.cpp:212
Methodprefetch
(self, indices)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:229
Functionprep_param_lists
Creates a list of FP32 master parameters for a given model, as in `Training Neural Networks with Mixed Precision: Real Examples`_. Args
DeepSpeedExample/megatron/fp16/fp16util.py:109
Methodprint_3d_file_map
(self, tag=None)
deepspeed/checkpoint/zero_checkpoint.py:81
Methodprint_3d_index_map
(self, tag=None)
deepspeed/checkpoint/zero_checkpoint.py:75
Methodprint_average_usage
Print memory usage average over time. We would like this value to be as high as possible.
DeepSpeedExample/megatron/memory.py:118
Functionprint_backward_tensors
(tensor)
deepspeed/utils/debug.py:132
Functionprint_device_bdf
hls_smartInfinity/src/host/g16_host_step_adam.cpp:358
Functionprint_device_bdf
hls_smartInfinity/src/host/host_step_adam.cpp:363
Functionprint_device_bdf
hls_smartInfinity/src/host/host_step_adam_topk.cpp:389
Functionprint_device_bdf
hls_smartInfinity/src/host/host_step_sgd.cpp:321
Functionprint_device_bdf
hls_smartInfinity/src/host/host_step_adagrad_topk.cpp:360
Functionprint_device_bdf
hls_smartInfinity/src/host/host_step_adagrad.cpp:322
Functionprint_device_bdf
hls_smartInfinity/src/host/host_step_sgd_topk.cpp:350
Functionprint_device_bdf
hls_smartInfinity/src/host/g16_host_step_adam_topk.cpp:389
Methodprint_func
()
deepspeed/runtime/zero/stage3.py:1353
Methodprint_func
()
deepspeed/runtime/zero/stage_1_and_2.py:1275
Functionprint_params_min_max_norm
Print min, max, and norm of all parameters.
DeepSpeedExample/megatron/utils.py:55
Methodprint_rank_0
(self, message)
deepspeed/runtime/zero/stage_1_and_2.py:870
Functionprint_rank_msg
(msg)
deepspeed/runtime/zero/stage_1_and_2.py:77
Functionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
DeepSpeedExample/megatron/tokenizer/bert_tokenization.py:98
Functionprintflock
For printing messages for all concurrent gpus w/o getting interleaved text. This is useful when debugging issues where multi-gpus don't syn
deepspeed/utils/debug.py:65
Methodprocess_samples_from_single_path
Implement abstract method.
DeepSpeedExample/tasks/glue/mnli.py:34
Methodprocess_samples_from_single_path
Implement abstract method.
DeepSpeedExample/tasks/glue/qqp.py:34
Methodprofile_model_time
(self, use_cuda_events=True)
deepspeed/inference/engine.py:218
Functionptb_detokenizer
(string)
DeepSpeedExample/tasks/zeroshot_gpt2/detokenizer.py:21
Methodpwrite
deepspeed/ops/csrc/aio/py_lib/deepspeed_py_aio_handle.cpp:246
Methodqkv_gemm_fallback
(self, input, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:39
Functionqkv_unfused_cublas
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:892
Methodquantize
deepspeed/ops/csrc/includes/quantization_utils.h:110
Methodquantize_fn
(layer, policy_cls)
deepspeed/runtime/weight_quantizer.py:113
Functionquantize_kernel
deepspeed/ops/csrc/quantization/pt_binding.cpp:68
Functionquantize_transformer_layer
Quantize bert-style transformer layers with DeepSpeed's transformer layer Arguments: orig_layer_impl (torch.nn.Module): the original tran
deepspeed/module_inject/module_quantize.py:9
Functionquantized_gemm
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:846
Methodrandom
(self)
deepspeed/accelerator/npu_accelerator.py:49
Methodrandom
(self)
deepspeed/accelerator/cuda_accelerator.py:53
Methodrandom
(self)
deepspeed/accelerator/abstract_accelerator.py:51
Methodrange_pop
(self)
deepspeed/accelerator/npu_accelerator.py:154
Methodrange_pop
(self)
deepspeed/accelerator/cuda_accelerator.py:163
Methodrange_pop
(self)
deepspeed/accelerator/abstract_accelerator.py:173
Methodrange_push
(self, msg)
deepspeed/accelerator/npu_accelerator.py:151
Methodrange_push
(self, msg)
deepspeed/accelerator/cuda_accelerator.py:159
Methodrange_push
(self, msg)
deepspeed/accelerator/abstract_accelerator.py:169
Functionread_binary_file
hls_smartInfinity/src/host/g16_host_step_adam.cpp:111
Functionread_binary_file
hls_smartInfinity/src/host/host_step_adam.cpp:111
Functionread_binary_file
hls_smartInfinity/src/host/host_step_adam_topk.cpp:117
Functionread_binary_file
hls_smartInfinity/src/host/host_step_sgd.cpp:108
Functionread_binary_file
hls_smartInfinity/src/host/host_step_adagrad_topk.cpp:116
Functionread_binary_file
hls_smartInfinity/src/host/host_step_adagrad.cpp:109
Functionread_binary_file
hls_smartInfinity/src/host/host_step_sgd_topk.cpp:113
Functionread_binary_file
hls_smartInfinity/src/host/g16_host_step_adam_topk.cpp:117
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
DeepSpeedExample/megatron/deprecated_data_utils/file_utils.py:238
Functionrecv
(tensor, src_stage, async_op=False)
deepspeed/runtime/pipe/p2p.py:71
Functionrecv
(tensor, src=None, group=None, tag=0, prof=False, log_name='recv', debug=get_caller_func())
deepspeed/comm/comm.py:348
Functionrecv_backward
Receive tensor from next rank in pipeline (backward receive). See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:357
Functionrecv_forward
Receive tensor from previous rank in pipeline (forward receive). See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:332
Functionrecv_obj
Receive an arbitrary python object from ``sender``. WARN: This incur a CPU <-> GPU transfers and should be used sparingly for performance rea
deepspeed/runtime/pipe/p2p.py:123
Functionreduce_block_into_lanes
deepspeed/ops/csrc/includes/type_shim.h:83
Methodreduce_gradients_at_owner
(param_list=None, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:955
Methodreduce_partition_and_remove_grads
(*notneeded)
deepspeed/runtime/zero/stage3.py:1070
Methodreduce_partition_and_remove_grads
(*notneeded)
deepspeed/runtime/zero/stage_1_and_2.py:809
Functionreduce_scatter_fn
(output_tensor, tensor, op=ReduceOp.SUM, gro
deepspeed/comm/comm.py:238
Functionredundancy_clean
Remove the redundancy of a model Args: model (`torch.nn.Module`) The model to compress. deepspeed_config (`DeepSp
deepspeed/compression/compress.py:148
Methodrefresh_fp32_params
(self)
deepspeed/runtime/zero/stage3.py:2354
Methodrefresh_fp32_params
(self)
deepspeed/runtime/zero/stage_1_and_2.py:2040
Methodrefresh_fp32_params
(self)
deepspeed/runtime/fp16/fused_optimizer.py:423
Methodrefresh_fp32_params
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:355
Methodregister_module_hooks
(module, ignore_list)
deepspeed/profiling/flops_profiler/profiler.py:79
Methodrelease_memory
Delete module parameters if they exist and point them back to the container. The primary purpose of this is for TP-inference with ZeR
deepspeed/module_inject/containers/features/hybrid_engine.py:88
Methodrelease_mlp
(self)
deepspeed/module_inject/containers/features/gated_mlp.py:53
Methodrelease_qkv
(self)
deepspeed/module_inject/containers/features/split_qkv.py:51
Methodrelease_tensor_with_id
(self, tensor_id)
deepspeed/runtime/zero/contiguous_memory_allocator.py:108
Methodremove_profile_attrs
(module)
deepspeed/profiling/flops_profiler/profiler.py:135
Functionreplace_attn
(child, policy)
deepspeed/module_inject/replace_module.py:189
Functionreplace_attn_block
(child, policy)
deepspeed/module_inject/replace_module.py:228
Functionreplace_fn
(child, _policy, layer_id=0, prefix="", state_dict=None)
deepspeed/module_inject/replace_module.py:505
Methodreplace_model_self_attention_with_sparse_self_attention
This function replaces the self attention layers in model encoder with sparse self attention. It currently supports bert and roberta model and
deepspeed/ops/sparse_attention/sparse_attention_utils.py:81
Methodrepr
(self)
deepspeed/elasticity/config.py:106
Functionreset
Resets memory buffers related to contiguous memory optimizations. Should be called during eval when multiple forward propagations are computed
deepspeed/runtime/activation_checkpointing/checkpointing.py:732
Methodreset
Reset the buffer start index to the beginning of the buffer.
DeepSpeedExample/megatron/memory.py:74
Functionreset_cache
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:431
Functionreset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
DeepSpeedExample/megatron/core/tensor_parallel/random.py:59
← previousnext →4,501–4,600 of 4,989, ranked by callers