MCPcopy Create free account

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

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

↓ 2 callersMethodfree_grad_in_param_list
(self, param_list)
deepspeed/runtime/zero/stage_1_and_2.py:1565
↓ 2 callersFunctionfree_param
Free underlying storage of a parameter.
deepspeed/runtime/zero/partition_parameters.py:266
↓ 2 callersMethodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
DeepSpeedExample/megatron/deprecated_data_utils/wordpiece.py:139
↓ 2 callersMethodfull_size
(self)
deepspeed/runtime/utils.py:717
↓ 2 callersMethodfuse_lora_weight
(self)
deepspeed/runtime/hybrid_engine.py:139
↓ 2 callersFunctiongather_split_1d_tensor
Opposite of split_tensor_into_1d_equal_chunks. Gather values from tensor model parallel ranks. Returns a new Tensor with the gathere
DeepSpeedExample/megatron/core/tensor_parallel/utils.py:65
↓ 2 callersMethodget_2d_parallel_files
(self, tp_index: int, pp_index: int)
deepspeed/checkpoint/deepspeed_checkpoint.py:202
↓ 2 callersFunctionget_adlr_autoresume
ADLR autoresume object. It can be None so no need to check if it is initialized.
DeepSpeedExample/megatron/global_vars.py:52
↓ 2 callersFunctionget_all_subclasses
(cls)
deepspeed/runtime/zero/partition_parameters.py:252
↓ 2 callersMethodget_backend
(self, group=None)
deepspeed/comm/torch.py:230
↓ 2 callersMethodget_best_space_records
(self)
deepspeed/autotuning/autotuner.py:727
↓ 2 callersFunctionget_ccl_reduce_op
deepspeed/ops/csrc/cpu/comm/ccl.cpp:110
↓ 2 callersFunctionget_checkpoint_files
(checkpoint_dir, glob_pattern)
deepspeed/utils/zero_to_fp32.py:77
↓ 2 callersMethodget_checkpoint_version
(self, state_dict)
deepspeed/runtime/state_dict_factory.py:425
↓ 2 callersMethodget_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:326
↓ 2 callersFunctionget_compress_methods
(model, compress_methods, mpu=None)
deepspeed/compression/compress.py:50
↓ 2 callersFunctionget_config_default
(config, field_name)
deepspeed/runtime/config_utils.py:113
↓ 2 callersFunctionget_cuda_bare_metal_version
(cuda_dir)
DeepSpeedExample/megatron/fused_kernels/__init__.py:28
↓ 2 callersFunctionget_data_efficiency_enabled
(param_dict)
deepspeed/runtime/data_pipeline/config.py:27
↓ 2 callersFunctionget_data_parallel_group
Get the data parallel group the caller rank belongs to.
DeepSpeedExample/megatron/core/parallel_state.py:374
↓ 2 callersFunctionget_data_parallel_group
Get the data parallel group the caller rank belongs to.
DeepSpeedExample/megatron/mpu/initialize.py:104
↓ 2 callersMethodget_data_types
(self)
deepspeed/runtime/engine.py:836
↓ 2 callersFunctionget_dataset
gets dataset object based on keyword args and file at `path`
DeepSpeedExample/megatron/deprecated_data_utils/__init__.py:49
↓ 2 callersFunctionget_debug_log_name
(func_args, debug)
deepspeed/comm/utils.py:124
↓ 2 callersFunctionget_default_args
(func)
deepspeed/comm/utils.py:59
↓ 2 callersMethodget_doc
gets text of document corresponding to idx
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:697
↓ 2 callersFunctionget_eigenvalue_enabled
(param_dict)
deepspeed/runtime/config.py:565
↓ 2 callersMethodget_ep_ranks
(self, rank=0, group_name=None)
deepspeed/runtime/zero/stage_1_and_2.py:2068
↓ 2 callersMethodget_files_for_rank
(self, pp_index, tp_index, dp_index)
deepspeed/checkpoint/zero_checkpoint.py:49
↓ 2 callersFunctionget_first_config
(config: dict)
deepspeed/autotuning/utils.py:387
↓ 2 callersMethodget_flat_partition
(self, tensor_list, first_offset, partition_size, dtype, device, return_tensor_list=False)
deepspeed/runtime/zero/stage_1_and_2.py:1527
↓ 2 callersFunctionget_fp32_state_dict_from_zero_checkpoint
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training
deepspeed/utils/zero_to_fp32.py:459
↓ 2 callersFunctionget_global_memory_buffer
Return the global GlobalMemoryBuffer object
DeepSpeedExample/megatron/core/parallel_state.py:721
↓ 2 callersFunctionget_global_norm_of_tensors
Get norm of an iterable of tensors. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to handle model par
deepspeed/runtime/utils.py:849
↓ 2 callersFunctionget_grad_norm
Get grad norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to handle m
deepspeed/runtime/utils.py:375
↓ 2 callersMethodget_grads_for_norm
(self, for_clipping=False)
deepspeed/runtime/bf16_optimizer.py:297
↓ 2 callersMethodget_hidden_heads
(self)
deepspeed/module_inject/containers/opt.py:121
↓ 2 callersMethodget_hp_fragment_address
(self)
deepspeed/utils/tensor_fragment.py:41
↓ 2 callersFunctionget_layer_reduction_enabled
(param_dict)
deepspeed/compression/config.py:40
↓ 2 callersMethodget_lr
(self)
deepspeed/runtime/engine.py:2201
↓ 2 callersFunctionget_ma_status
()
deepspeed/runtime/utils.py:764
↓ 2 callersFunctionget_microbatch
(final_batch_size)
deepspeed/elasticity/elasticity.py:146
↓ 2 callersFunctionget_model
(model_type)
DeepSpeedExample/tools/merge_mp_partitions.py:107
↓ 2 callersFunctionget_model_parallel_src_rank
Calculate the global rank corresponding to a local rank zeor in the model parallel group.
DeepSpeedExample/megatron/mpu/initialize.py:139
↓ 2 callersFunctionget_module_flops
(module)
deepspeed/profiling/flops_profiler/profiler.py:1091
↓ 2 callersFunctionget_numa_cores
()
deepspeed/utils/numa.py:24
↓ 2 callersFunctionget_offload_name
(offload_config)
deepspeed/autotuning/utils.py:328
↓ 2 callersMethodget_op_builder
(self, class_name)
deepspeed/accelerator/cpu_accelerator.py:243
↓ 2 callersMethodget_optim_state_fragment
(self, key)
deepspeed/utils/tensor_fragment.py:35
↓ 2 callersFunctionget_optimizer_name
(param_dict)
deepspeed/runtime/config.py:452
↓ 2 callersFunctionget_optimizer_params
(param_dict)
deepspeed/runtime/config.py:459
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
DeepSpeedExample/megatron/deprecated_data_utils/tokenization_gpt2.py:78
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
DeepSpeedExample/megatron/tokenizer/gpt2_tokenization.py:79
↓ 2 callersFunctionget_parameters_in_billions
(model)
DeepSpeedExample/megatron/utils.py:190
↓ 2 callersFunctionget_random_ltd_enabled
(param_dict)
deepspeed/runtime/data_pipeline/config.py:155
↓ 2 callersFunctionget_rank
Returns the rank of the current process in the provided ``group`` or the default group if none was provided. Rank is a unique identifier
deepspeed/comm/comm.py:519
↓ 2 callersMethodget_sample_based_on_metric_percentile
(self, metric, percentile_start, percentile_end)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:137
↓ 2 callersMethodget_sample_based_on_metric_value
(self, metric, value_start, value_end)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:127
↓ 2 callersFunctionget_scheduler_name
(param_dict)
deepspeed/runtime/config.py:489
↓ 2 callersMethodget_sd_loader_json
(json_file, checkpoint_engine)
deepspeed/runtime/state_dict_factory.py:24
↓ 2 callersFunctionget_sequence_data_parallel_group
Get the sequence parallel group the caller rank belongs to.
DeepSpeedExample/megatron/core/parallel_state.py:367
↓ 2 callersFunctionget_sequence_parallel_rank
Return my rank for the sequence parallel group.
DeepSpeedExample/megatron/core/parallel_state.py:527
↓ 2 callersMethodget_slice_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:446
↓ 2 callersMethodget_states
Get rng states. Copy the dictionary so we have direct pointers to the states, not just a pointer to the dictionary.
DeepSpeedExample/megatron/core/tensor_parallel/random.py:118
↓ 2 callersMethodget_states
Get rng states. Copy the dictionary so we have direct pointers to the states, not just a pointer to the dictionary.
deepspeed/runtime/activation_checkpointing/checkpointing.py:141
↓ 2 callersMethodget_swap_paths
(self)
deepspeed/runtime/swap_tensor/utils.py:77
↓ 2 callersMethodget_swap_paths
(self)
deepspeed/runtime/swap_tensor/utils.py:129
↓ 2 callersMethodget_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:122
↓ 2 callersFunctionget_target_sample_len
DeepSpeedExample/megatron/data/helpers.cpp:125
↓ 2 callersFunctionget_tensor_model_parallel_src_rank
Calculate the global rank corresponding to the first local rank in the tensor model parallel group.
DeepSpeedExample/megatron/core/parallel_state.py:650
↓ 2 callersFunctionget_tensor_position
(func)
deepspeed/comm/utils.py:65
↓ 2 callersFunctionget_tensor_shapes
(*, rank: int, model_type: ModelType, seq_le
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:887
↓ 2 callersMethodget_theta
(self)
deepspeed/runtime/progressive_layer_drop.py:32
↓ 2 callersFunctionget_time
deepspeed/ops/csrc/adam/opencl/adam/util.cpp:15
↓ 2 callersMethodget_total_duration
Returns the total duration of the model forward pass. Args: as_string (bool, optional): whether to output the duration as string.
deepspeed/profiling/flops_profiler/profiler.py:217
↓ 2 callersMethodget_total_macs
Returns the total MACs of the model. Args: as_string (bool, optional): whether to output the flops as string. Defaults to False.
deepspeed/profiling/flops_profiler/profiler.py:205
↓ 2 callersMethodget_total_params
Returns the total parameters of the model. Args: as_string (bool, optional): whether to output the parameters as string. Defaults
deepspeed/profiling/flops_profiler/profiler.py:229
↓ 2 callersFunctionget_train_valid_test_split_
Get dataset splits from comma or '/' separated string list.
DeepSpeedExample/megatron/data/dataset_utils.py:476
↓ 2 callersFunctionget_tuning_keys
Outputs the list of tunable parameters in the tuning space dict. Args: tuning_space (dict): a configuration dictionary containing tunable
deepspeed/autotuning/utils.py:270
↓ 2 callersFunctionget_virtual_pipeline_model_parallel_rank
Return the virtual pipeline-parallel rank.
DeepSpeedExample/megatron/core/parallel_state.py:626
↓ 2 callersFunctionget_virtual_pipeline_model_parallel_world_size
Return the virtual pipeline-parallel world size.
DeepSpeedExample/megatron/core/parallel_state.py:638
↓ 2 callersFunctionget_weight_quantization_shared_parameters
(param_dict)
deepspeed/compression/config.py:80
↓ 2 callersMethodget_weighted_samples
(self, np_rng)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:505
↓ 2 callersFunctionget_zero_files
(dir)
deepspeed/checkpoint/reshape_utils.py:41
↓ 2 callersMethodgetidx
(self, data_idx)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:558
↓ 2 callersFunctiongumbel_rsample
(shape: Tuple, device: torch.device)
deepspeed/moe/sharded_moe.py:73
↓ 2 callersFunctionhas_coalescing_manager
()
deepspeed/comm/torch.py:23
↓ 2 callersMethodhas_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:143
↓ 2 callersFunctioninit_distributed
Initialize dist backend, potentially performing MPI discovery if needed Arguments: dist_backend: Optional (str). torch distributed backe
deepspeed/comm/comm.py:561
↓ 2 callersMethodinit_process_group
(self)
deepspeed/comm/backend.py:44
↓ 2 callersMethodinit_timers
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:202
↓ 2 callersMethodinitial_seed
(self, seed)
deepspeed/accelerator/cpu_accelerator.py:77
↓ 2 callersMethodinitialize_gradient_partition
(self, i, param_group, partition_id)
deepspeed/runtime/zero/stage_1_and_2.py:745
↓ 2 callersMethodinitialize_parameters
(self, parameters, src_tensors)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:83
↓ 2 callersMethodinitialize_tensors
(self, enable_training=False)
deepspeed/module_inject/containers/base.py:124
↓ 2 callersMethodinner_product
(self, xs, ys)
deepspeed/runtime/eigenvalue.py:53
↓ 2 callersMethodinstalled_rocm_version
()
deepspeed/ops/op_builder/builder.py:183
↓ 2 callersFunctionis_False
(config: dict, key)
deepspeed/autotuning/utils.py:183
↓ 2 callersMethodis_elastic_model_parallel_supported
(self)
deepspeed/runtime/engine.py:473
↓ 2 callersFunctionis_last_microbatch_for_model_chunk
Check if an iteration is the last for a model chunk.
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:506
← previousnext →901–1,000 of 4,989, ranked by callers