MCPcopy Create free account

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

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

Functionreset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
DeepSpeedExample/megatron/mpu/random.py:65
Methodreset_index
Delete existing index and create anew
DeepSpeedExample/megatron/data/realm_index.py:157
Methodreset_max_memory_allocated
(self, device_index=None)
deepspeed/accelerator/npu_accelerator.py:104
Methodreset_max_memory_allocated
(self, device_index=None)
deepspeed/accelerator/cuda_accelerator.py:108
Methodreset_max_memory_allocated
(self, device_index=None)
deepspeed/accelerator/abstract_accelerator.py:115
Methodreset_max_memory_cached
(self, device_index=None)
deepspeed/accelerator/npu_accelerator.py:113
Methodreset_max_memory_cached
(self, device_index=None)
deepspeed/accelerator/cuda_accelerator.py:117
Methodreset_max_memory_cached
(self, device_index=None)
deepspeed/accelerator/abstract_accelerator.py:127
Methodreset_mlp
(self)
deepspeed/module_inject/containers/features/gated_mlp.py:64
Methodreset_peak_memory_stats
(self, device_index=None)
deepspeed/accelerator/npu_accelerator.py:120
Methodreset_peak_memory_stats
(self, device_index=None)
deepspeed/accelerator/cuda_accelerator.py:124
Methodreset_peak_memory_stats
(self, device_index=None)
deepspeed/accelerator/abstract_accelerator.py:135
Methodreset_qkv
(self)
deepspeed/module_inject/containers/features/split_qkv.py:64
Methodreset_qkv_experimental
WIP - experimental and likely to be changed/improved. Unused by keeping for now.
deepspeed/module_inject/containers/features/split_qkv.py:89
Functionreshape
reshape([tp_size_src, pp_size_src, dp_size_src], [tp_size_tgt, pp_size_tgt, dp_size_tgt])
deepspeed/checkpoint/reshape_meg_2d.py:182
Methodrestore_slots
(self)
deepspeed/autotuning/scheduler.py:281
Functionrevert_transformer_layer
Revert DeepSpeed's transformer layer back to original bert-style transformer layer Arguments: orig_layer_impl (torch.nn.Module): the orig
deepspeed/module_inject/replace_module.py:682
Methodrms_mlp_gemm_fallback
(self, input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale,
deepspeed/ops/transformer/inference/op_binding/mlp_gemm.py:54
Methodrms_qkv_gemm_fallback
(self, input, weight, q_scale, gamma, eps, q_int8, transpose)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:50
Functionrun_experiment
(exp: dict, reservations, user_script, user_args)
deepspeed/autotuning/scheduler.py:311
Methodrun_forward
(*inputs, **kwargs)
deepspeed/runtime/hybrid_engine.py:369
Methodrun_map
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:180
Methodrun_reduce
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:411
Functions3_request
Wrapper function for s3 requests in order to create more helpful error messages.
DeepSpeedExample/megatron/deprecated_data_utils/file_utils.py:130
Functionsafe_get_full_fp32_param
Assemble and return the fp32 parameter of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A model p
deepspeed/utils/tensor_fragment.py:91
Functionsafe_get_full_grad
Assemble and return the fp32 gradient of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A model pa
deepspeed/utils/tensor_fragment.py:124
Functionsafe_get_full_optimizer_state
Assemble and return the fp32 optimizer state of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A m
deepspeed/utils/tensor_fragment.py:107
Methodsanity_check
(self, ckpt_file_name)
deepspeed/runtime/state_dict_factory.py:186
Methodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/nebula_checkpoint_engine.py:44
Methodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/torch_checkpoint_engine.py:20
Methodsave_args_for_backward
(*all_args)
deepspeed/runtime/activation_checkpointing/checkpointing.py:489
Methodsave_exp_results_to_database
Print message when one of following condition meets + not dist.is_initialized() + dist.get_rank() in ranks if ranks is not None or ra
deepspeed/autotuning/scheduler.py:187
Methodsave_fp16_model
has been renamed to save_16bit_model, keeping this around for backwards compatibility
deepspeed/runtime/engine.py:3315
Methodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization_gpt2.py:286
Methodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
DeepSpeedExample/megatron/tokenizer/gpt2_tokenization.py:288
Functionsave_without_random_ltd
(model)
deepspeed/runtime/data_pipeline/data_routing/helper.py:28
Methodscale
deepspeed/ops/csrc/aio/common/deepspeed_aio_types.cpp:53
Methodscale_gradient
(self, module, grad_in, grad_out)
DeepSpeedExample/megatron/fp16/loss_scaler.py:63
Methodscale_gradient
(self, module, grad_in, grad_out)
DeepSpeedExample/megatron/fp16/loss_scaler.py:191
Methodscale_gradient
(self, module, grad_in, grad_out)
deepspeed/runtime/fp16/loss_scaler.py:55
Functionscaled_masked_softmax_warp_backward
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.h:182
Functionscaled_masked_softmax_warp_forward
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.h:78
Functionscaled_upper_triang_masked_softmax_warp_backward
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:171
Functionscaled_upper_triang_masked_softmax_warp_forward
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:78
Functionscatter_to_sequence_parallel_region
(input_)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:270
Functionsdd_segment
deepspeed/ops/csrc/sparse_attention/utils.cpp:97
Methodsearch_mips_index
Get the top-k blocks by the index distance metric. :param reconstruct: if True: return a [num_queries x k x embed_dim] array of blocks
DeepSpeedExample/megatron/data/realm_index.py:195
MethodselfAttention_fp
(input, context, input_mask)
deepspeed/ops/transformer/inference/diffusers_attention.py:54
Functionsend
(tensor, dest_stage, async_op=False)
deepspeed/runtime/pipe/p2p.py:50
Functionsend
(tensor, dst, group=None, tag=0, prof=False, log_name='send', debug=get_caller_func())
deepspeed/comm/comm.py:342
Functionsend_backward
Send tensor to previous rank in pipeline (backward send). See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:401
Functionsend_backward_recv_backward
Batched recv from next rank and send to previous rank in pipeline. See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:495
Functionsend_backward_recv_forward
Batched send and recv with previous rank in pipeline. See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:445
Functionsend_forward
Send tensor to next rank in pipeline (forward send). See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:380
Functionsend_forward_backward_recv_forward_backward
Batched send and recv with previous and next ranks in pipeline. See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:521
Functionsend_forward_recv_backward
Batched send and recv with next rank in pipeline. See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:421
Functionsend_forward_recv_forward
Batched recv from previous rank and send to next rank in pipeline. See _communicate for argument details.
DeepSpeedExample/megatron/core/pipeline_parallel/p2p_communication.py:469
Functionsend_obj
Send an arbitrary python object to ``dest``. Note: ``msg`` must be pickleable. WARN: This incurs a CPU -> GPU transfer and should be used sp
deepspeed/runtime/pipe/p2p.py:100
Methodsep
(self)
DeepSpeedExample/megatron/tokenizer/tokenizer.py:107
Methodsep
(self)
DeepSpeedExample/megatron/tokenizer/tokenizer.py:177
Functionseq_bias_add_add
deepspeed/ops/csrc/spatial/csrc/pt_binding.cpp:58
Functionseq_bias_add_bias_add
deepspeed/ops/csrc/spatial/csrc/pt_binding.cpp:81
Functionseq_unroll_bias_add
deepspeed/ops/csrc/spatial/csrc/pt_binding.cpp:35
Functionsequence_data_parallel_is_initialized
Check if sequence data parallel groups are initialized.
DeepSpeedExample/megatron/core/parallel_state.py:336
Functionsequence_parallel_is_initialized
Check if sequence and data parallel groups are initialized.
DeepSpeedExample/megatron/core/parallel_state.py:329
Functionset_accelerator
(accel_obj)
deepspeed/accelerator/real_accelerator.py:106
Methodset_attention
(self, qkvw, qkvb, dense_w, dense_b)
deepspeed/module_inject/containers/features/split_qkv.py:14
Methodset_attn_parameters_wo_copy
(self, Z3_enabled=False)
deepspeed/module_inject/containers/features/split_qkv.py:126
Methodset_batch_fn
Execute a post-processing function on input data. Args: fn (function): The function to run.
deepspeed/runtime/pipe/engine.py:552
Methodset_checkpoint_interval
(self, interval)
deepspeed/runtime/pipe/module.py:498
Methodset_current_difficulty
(self, difficulty)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:110
Methodset_current_seq
(self, seq_length)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:73
Methodset_custom_curriculum_learning_schedule
(self, schedule_func_dict)
deepspeed/runtime/engine.py:433
Methodset_custom_curriculum_learning_schedule
(self, schedule_func_dict)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:117
Methodset_data_post_process_func
(self, post_process_func)
deepspeed/runtime/engine.py:429
Methodset_defaults
(self, **kwargs)
DeepSpeedExample/megatron/deprecated_data_utils/configure_data.py:37
Functionset_defaults_if_not_set_tensor_model_parallel_attributes
(tensor)
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:72
Methodset_device
(self, device_index)
deepspeed/accelerator/npu_accelerator.py:33
Methodset_device
(self, device_index)
deepspeed/accelerator/cuda_accelerator.py:37
Methodset_device
(self, device_index)
deepspeed/accelerator/abstract_accelerator.py:30
Methodset_doc_idx
(self, doc_idx_)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:559
Methodset_epoch
(self, epoch)
DeepSpeedExample/megatron/deprecated_data_utils/samplers.py:74
Methodset_has_attention_mask
(self, value)
deepspeed/runtime/pipe/engine.py:211
Methodset_input_tensor
See megatron.model.transformer.set_input_tensor()
DeepSpeedExample/megatron/core/models/gpt/gpt_model.py:89
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
DeepSpeedExample/megatron/core/transformer/transformer_block.py:170
Methodset_input_tensor
(self, input_tensor)
DeepSpeedExample/megatron/core/transformer/module.py:100
Methodset_key_value_list
(dictionary, key, value)
deepspeed/runtime/zero/stage_1_and_2.py:747
Methodset_lora_params
Necessary to implement for `HybridEngineContainer`
deepspeed/module_inject/containers/gptneo.py:33
Methodset_lora_params
Necessary to implement for `HybridEngineContainer`
deepspeed/module_inject/containers/opt.py:32
Methodset_lora_params
Necessary to implement for `HybridEngineContainer`
deepspeed/module_inject/containers/bloom.py:38
Methodset_lora_params
Necessary to implement for `HybridEngineContainer`
deepspeed/module_inject/containers/llama.py:40
Methodset_lora_params
Necessary to implement for `HybridEngineContainer`
deepspeed/module_inject/containers/gptneox.py:37
Methodset_lora_params
Necessary to implement for `HybridEngineContainer`
deepspeed/module_inject/containers/gptj.py:33
Methodset_lr
Set the learning rate.
deepspeed/runtime/zero/stage3.py:440
Methodset_lr
Set the learning rate.
deepspeed/runtime/zero/stage_1_and_2.py:1593
Methodset_lr
Set the learning rate.
deepspeed/runtime/fp16/fused_optimizer.py:201
Methodset_lr
Set the learning rate.
deepspeed/runtime/fp16/unfused_optimizer.py:180
Methodset_mlp
(self, _h4h_w, _h4h_b, _4hh_w, _4hh_b)
deepspeed/module_inject/containers/features/gated_mlp.py:18
Methodset_mlp_gate
Necessary to implement for `HybridGatedMLPContainer`
deepspeed/module_inject/containers/llama.py:64
Methodset_mlp_params_wo_copy
(self, Z3_enabled=False)
deepspeed/module_inject/containers/features/gated_mlp.py:86
← previousnext →4,601–4,700 of 4,989, ranked by callers