MCPcopy Create free account

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

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

↓ 1 callersMethodload_state_dir
(self, load_dir, checkpoint_engine, strict=True)
deepspeed/runtime/pipe/module.py:582
↓ 1 callersFunctionload_transformer_module
()
deepspeed/ops/transformer/inference/diffusers_transformer_block.py:21
↓ 1 callersFunctionload_triton_flash_attn
()
deepspeed/ops/transformer/inference/diffusers_attention.py:21
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
DeepSpeedExample/megatron/deprecated_data_utils/wordpiece.py:50
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
DeepSpeedExample/megatron/tokenizer/bert_tokenization.py:121
↓ 1 callersMethodlog_all
(self)
deepspeed/utils/comms_logging.py:125
↓ 1 callersMethodlog_timers
(self, timer_names)
deepspeed/runtime/zero/stage_1_and_2.py:1573
↓ 1 callersFunctionmain
Create a BlockData data structure by running an IndexBuilder over an ICT Dataset - Include all args needed for initial model specification Ot
DeepSpeedExample/tools/create_doc_index.py:8
↓ 1 callersFunctionmain
Main program.
DeepSpeedExample/tools/generate_samples_gpt2.py:75
↓ 1 callersFunctionmain
()
DeepSpeedExample/tools/merge_mp_partitions.py:186
↓ 1 callersFunctionmain
()
DeepSpeedExample/tools/preprocess_data.py:143
↓ 1 callersFunctionmain
()
DeepSpeedExample/megatron/data/test/test_indexed_dataset.py:82
↓ 1 callersFunctionmain
()
DeepSpeedExample/tasks/ensemble_classifier.py:126
↓ 1 callersFunctionmain
Main program.
DeepSpeedExample/tasks/zeroshot_gpt2/evaluate.py:170
↓ 1 callersFunctionmain
(args=None)
deepspeed/launcher/runner.py:382
↓ 1 callersFunctionmain
()
deepspeed/launcher/launch.py:132
↓ 1 callersMethodmake_init
(self)
deepspeed/compression/scheduler.py:33
↓ 1 callersMethodmake_layout
Set 1 to all blocks of the layout meaning the pattern is dense; not sparse. Arguments: seq_len: required: an integer determining
deepspeed/ops/sparse_attention/sparsity_config.py:80
↓ 1 callersFunctionmake_lazy
Make lazy version of `data_type` field of the file. Byte offsets corresponding to data indices are stored in a `.len.pkl` data file.
DeepSpeedExample/megatron/deprecated_data_utils/lazy_loader.py:47
↓ 1 callersFunctionmake_loaders
makes training/val/test
DeepSpeedExample/megatron/deprecated_data_utils/configure_data.py:118
↓ 1 callersMethodmake_lut
Generates the sparsity layout used in block-sparse softmax
deepspeed/ops/sparse_attention/softmax.py:236
↓ 1 callersMethodmake_lut
Generates the sparsity layout/s used in block-sparse matmul
deepspeed/ops/sparse_attention/matmul.py:637
↓ 1 callersFunctionmake_tfrecord_loaders
Load train/val/test dataset from shuffled TFRecords
DeepSpeedExample/megatron/deprecated_data_utils/configure_data.py:81
↓ 1 callersFunctionmake_tokenizer
Helper function to instantiate a tokenizer given common combinations of options.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:32
↓ 1 callersMethodmark_persistent_parameters
(self, param_threshold, model_threshold)
deepspeed/runtime/zero/parameter_offload.py:339
↓ 1 callersMethodmask_token
helper function to mask `idx` token from `tokens` according to section 3.3.1 of https://arxiv.org/pdf/1810.04805.pdf
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:822
↓ 1 callersMethodmatch_replaced
(self, module)
deepspeed/module_inject/containers/vae.py:27
↓ 1 callersMethodmax_memory_reserved
(self, device_index=None)
deepspeed/accelerator/cpu_accelerator.py:149
↓ 1 callersFunctionmaybe_copy
(attribute)
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:81
↓ 1 callersFunctionmaybe_copy_geglu
(module, sd, weight_quantizer, mp_replace, dst_name, src_names)
deepspeed/module_inject/policy.py:198
↓ 1 callersFunctionmaybe_set
(attribute, value)
DeepSpeedExample/megatron/core/tensor_parallel/layers.py:73
↓ 1 callersFunctionmegatron_layer_quantize
(layer)
deepspeed/module_inject/module_quantize.py:28
↓ 1 callersMethodmemory_reserved
(self, device_index=None)
deepspeed/accelerator/cpu_accelerator.py:146
↓ 1 callersMethodmemory_stats
(self, device_index=None)
deepspeed/accelerator/cpu_accelerator.py:139
↓ 1 callersMethodmerge_map_results
(self, dataset, metric_names, metric_types, save_path, num_workers, num_threads, num
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:260
↓ 1 callersMethodmerge_query_key_value
Up to now we found 3 Q/K/V parameter formats in different Megatron checkpoint versions: 1. version 0, there is no version informatio
deepspeed/runtime/state_dict_factory.py:220
↓ 1 callersMethodmerge_scales_split
(self, split_count)
deepspeed/runtime/weight_quantizer.py:79
↓ 1 callersMethodmerge_shards_and_save
Combine all the shards made using self.save_shard()
DeepSpeedExample/megatron/data/realm_index.py:83
↓ 1 callersFunctionmerge_state_dict
(dict_a, dict_b, key_list)
deepspeed/checkpoint/reshape_utils.py:63
↓ 1 callersMethodmerge_state_dict
(self, mp_world_size, mp_rank, quantize, quantize_bits, groups, mlp_extra_grouping)
deepspeed/runtime/state_dict_factory.py:178
↓ 1 callersFunctionmerge_state_list
(list_a, list_b, key_list)
deepspeed/checkpoint/reshape_utils.py:75
↓ 1 callersFunctionmerge_tensors
Merge two lists (or tuples) of tensors and non-tensors using a mapping of positions in merged list (or tuple). Parameters: tensor_ob
deepspeed/runtime/activation_checkpointing/checkpointing.py:316
↓ 1 callersMethodmics_shard_size
(self)
deepspeed/runtime/engine.py:705
↓ 1 callersMethodmixed_fp16_quantize
(self, input, input_q, index)
deepspeed/runtime/quantize.py:123
↓ 1 callersMethodmlp_inter_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:240
↓ 1 callersMethodmlp_inter_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/features/gated_mlp.py:36
↓ 1 callersMethodmlp_mp
(self)
deepspeed/module_inject/containers/base_moe.py:103
↓ 1 callersMethodmlp_quantization
(self)
deepspeed/module_inject/containers/base.py:206
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy model gradients to master gradients. Args: model_params: List of model parameters created by :func:`prep_param_lists`.
DeepSpeedExample/megatron/fp16/fp16util.py:155
↓ 1 callersMethodmodel_info_profile_run
Does a model information profiling experiment that collects the number of model parameters and activation memory.\ The experiment produces
deepspeed/autotuning/autotuner.py:663
↓ 1 callersFunctionmodel_provider
Build the model.
DeepSpeedExample/tasks/race/finetune.py:40
↓ 1 callersMethodmodel_quantize
(self, model, quantize_policy, quantize_bits, groups)
deepspeed/runtime/weight_quantizer.py:110
↓ 1 callersFunctionmodel_to_params
(model)
deepspeed/runtime/zero/stage3.py:2537
↓ 1 callersFunctionmodel_to_params
(model)
deepspeed/runtime/zero/stage_1_and_2.py:2261
↓ 1 callersFunctionmodule_inject
(layer_obj, model, config, micro_batch_size, max_seq_length, seed, preln, fp16=True)
deepspeed/module_inject/inject.py:11
↓ 1 callersMethodmoe_gate_einsum
(self, attention_output)
deepspeed/ops/transformer/inference/moe_inference.py:248
↓ 1 callersFunctionmove_to_cpu
(tensor_list)
deepspeed/runtime/zero/stage_1_and_2.py:72
↓ 1 callersFunctionmove_to_device
Move tensor on to specified device by changing the storage. Works on individual tensors, and tensors contained/nested in lists, tuples, and d
deepspeed/runtime/utils.py:150
↓ 1 callersFunctionmpi_discovery
Discovery MPI environment via mpi4py and map to relevant dist state
deepspeed/comm/comm.py:630
↓ 1 callersMethodmpu
(self)
deepspeed/runtime/pipe/module.py:506
↓ 1 callersFunctionmpu_cross_entropy
(batch_size, seq_length, vocab_size, logits_scale, seed)
DeepSpeedExample/megatron/mpu/tests/test_cross_entropy.py:44
↓ 1 callersFunctionmultiplicative_jitter
Modified from switch transformer paper. mesh transformers Multiply values by a random number between 1-epsilon and 1+epsilon. Makes model
deepspeed/moe/sharded_moe.py:49
↓ 1 callersMethodnext_batch
Select the next batch of configurations for evaluation
deepspeed/autotuning/tuner/base_tuner.py:31
↓ 1 callersFunctionnhwc_bias_add
(activation: torch.Tensor, bias: torch.Tensor, other: Optional[torch.Tenso
deepspeed/ops/transformer/inference/bias_add.py:13
↓ 1 callersFunctionninja_installed
()
deepspeed/env_report.py:59
↓ 1 callersMethodnum_tuning_micro_batch_sizes
(self)
deepspeed/autotuning/autotuner.py:262
↓ 1 callersFunctionnumber_to_string
(n, postfix="", units=None, precision=2)
deepspeed/autotuning/utils.py:441
↓ 1 callersFunctionnumber_to_string
(num, units=None, precision=2)
deepspeed/profiling/flops_profiler/profiler.py:1007
↓ 1 callersMethodnvcc_args
Returns optional list of compiler flags to forward to nvcc when building CUDA sources
deepspeed/ops/op_builder/builder.py:211
↓ 1 callersMethodnvcc_args
(self)
deepspeed/ops/op_builder/builder.py:662
↓ 1 callersFunctionnvcc_version
()
deepspeed/env_report.py:67
↓ 1 callersMethodop_builder_dir
(self)
deepspeed/accelerator/cpu_accelerator.py:219
↓ 1 callersMethodop_builder_dir
(self)
deepspeed/accelerator/cuda_accelerator.py:213
↓ 1 callersFunctionop_report
(verbose=True)
deepspeed/env_report.py:29
↓ 1 callersMethodoptimizer_params
(self)
deepspeed/runtime/engine.py:641
↓ 1 callersMethodoverlapping_partition_gradients_reduce_epilogue
(self)
deepspeed/runtime/zero/stage_1_and_2.py:796
↓ 1 callersFunctionpack_lora_weights
(p)
deepspeed/module_inject/policy.py:211
↓ 1 callersFunctionpad_and_convert_to_numpy
Pad sequences and convert them to numpy.
DeepSpeedExample/megatron/data/dataset_utils.py:324
↓ 1 callersFunctionpad_batch
(batch, pad_id, args)
DeepSpeedExample/megatron/text_generation_utils.py:279
↓ 1 callersMethodpad_seq
(self, seq)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:568
↓ 1 callersMethodpadding_size
()
deepspeed/runtime/zero/partition_parameters.py:978
↓ 1 callersFunctionparse_args
Parse all arguments.
DeepSpeedExample/megatron/arguments.py:53
↓ 1 callersFunctionparse_args
(args=None)
deepspeed/launcher/runner.py:45
↓ 1 callersFunctionparse_args
()
deepspeed/launcher/launch.py:34
↓ 1 callersFunctionparse_arguments
()
deepspeed/env_report.py:103
↓ 1 callersFunctionparse_inclusion_exclusion
(resource_pool, inclusion, exclusion)
deepspeed/launcher/runner.py:339
↓ 1 callersFunctionparse_model_states
(files)
deepspeed/utils/zero_to_fp32.py:95
↓ 1 callersFunctionparse_opt
deepspeed/ops/csrc/adam/opencl/adam/main.cpp:31
↓ 1 callersFunctionparse_optim_states
(files, ds_checkpoint_dir)
deepspeed/utils/zero_to_fp32.py:141
↓ 1 callersFunctionparse_range
(rng)
deepspeed/utils/numa.py:62
↓ 1 callersFunctionparse_range_list
(range_str)
deepspeed/utils/numa.py:86
↓ 1 callersFunctionparse_resource_filter
Parse an inclusion or exclusion string and filter a hostfile dictionary. String format is NODE_SPEC[@NODE_SPEC ...], where NODE_SPEC = NA
deepspeed/launcher/runner.py:249
↓ 1 callersMethodparse_user_args
(self)
deepspeed/launcher/multinode_runner.py:39
↓ 1 callersFunctionpartition_activations
(args, cpu_checkpoint, contiguous_checkpoint)
deepspeed/runtime/activation_checkpointing/checkpointing.py:366
↓ 1 callersMethodpartition_grads
(self, params_to_release: List[Parameter], grad_partitions: List[Tensor])
deepspeed/runtime/zero/stage3.py:1249
↓ 1 callersFunctionpatch_aml_env_for_torch_nccl_backend
Helper routine to get and set environment variables. This is adapted from Azure ML's documentation available from: https://azure.github.io/azu
deepspeed/comm/comm.py:685
↓ 1 callersFunctionpatch_aws_sm_env_for_torch_nccl_backend
Helper routine to get and set environment variables when running inside an AWS SageMaker environment.
deepspeed/comm/comm.py:717
↓ 1 callersMethodpld_enabled
(self)
deepspeed/runtime/engine.py:481
↓ 1 callersMethodpld_gamma
(self)
deepspeed/runtime/engine.py:490
↓ 1 callersMethodpld_theta
(self)
deepspeed/runtime/engine.py:487
← previousnext →2,201–2,300 of 4,989, ranked by callers