MCPcopy Create free account

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

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

↓ 1 callersFunctioncompression_preparation
Prepare the compression techniques of a model. Args: model (`torch.nn.Module`) The model to prepare the compression techn
deepspeed/compression/helper.py:185
↓ 1 callersMethodcompute_attention
(self, qkv_out, input_mask, layer_past, alibi)
deepspeed/ops/transformer/inference/ds_attention.py:90
↓ 1 callersMethodcompute_eigenvalue
(self, module, device=None, scale=1.0)
deepspeed/runtime/eigenvalue.py:67
↓ 1 callersFunctioncompute_elastic_config
Core deepspeed elasticity API. Given an elastic config (similar to the example below) DeepSpeed will compute a total train batch size correspondin
deepspeed/elasticity/elasticity.py:233
↓ 1 callersMethodconcat_tokens
(self, tokens_a, token_types_a, tokens_b, token_types_b)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:847
↓ 1 callersFunctioncondition
(model, attr)
DeepSpeedExample/megatron/core/utils.py:35
↓ 1 callersFunctionconfigure
( deepspeed_config=None, enabled=None, prof_all=None, prof_ops=None, verbose=None, deb
deepspeed/comm/comm.py:71
↓ 1 callersMethodconstruct_parameter_trace_from_module_trace
use module trace to construct parameter trace
deepspeed/runtime/zero/partitioned_param_coordinator.py:176
↓ 1 callersMethodcontains_sentence_end
(self, tok)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:574
↓ 1 callersMethodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
DeepSpeedExample/megatron/deprecated_data_utils/wordpiece.py:131
↓ 1 callersMethodconvert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
DeepSpeedExample/megatron/tokenizer/gpt2_tokenization.py:269
↓ 1 callersFunctionconvert_module
Converts a module's immediate parameters and buffers to dtype.
DeepSpeedExample/megatron/fp16/fp16util.py:64
↓ 1 callersFunctionconvert_network
Converts a network's parameters and buffers to dtype.
DeepSpeedExample/megatron/fp16/fp16util.py:80
↓ 1 callersMethodconvert_to_required_dtype
(self)
deepspeed/module_inject/containers/base.py:131
↓ 1 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization_gpt2.py:245
↓ 1 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
DeepSpeedExample/megatron/deprecated_data_utils/wordpiece.py:117
↓ 1 callersFunctionconvert_zero_checkpoint_to_fp32_state_dict
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_stat
deepspeed/utils/zero_to_fp32.py:508
↓ 1 callersMethodcopy_data_to_new_module
(self)
deepspeed/module_inject/containers/base.py:251
↓ 1 callersMethodcopy_params_from
Copy the weight and bias data from ``other``. This is especially useful for reproducible initialization and testing. Equivalent to:
deepspeed/runtime/zero/tiling.py:208
↓ 1 callersFunctioncopy_to_model_parallel_region
(input_)
DeepSpeedExample/megatron/mpu/mappings.py:144
↓ 1 callersFunctioncopy_to_model_parallel_region
(input_)
deepspeed/compression/basic_layer.py:751
↓ 1 callersFunctioncopy_to_tensor_model_parallel_region
(input_)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:254
↓ 1 callersFunctioncreate_and_build_program_with_source
deepspeed/ops/csrc/adam/opencl/adam/vadd.cpp:264
↓ 1 callersMethodcreate_inference_containers
(self, module, layer_id=0)
deepspeed/runtime/hybrid_engine.py:284
↓ 1 callersMethodcreate_inference_module
(self)
deepspeed/runtime/hybrid_engine.py:310
↓ 1 callersMethodcreate_logger
create a logger Args: name (str): name of the logger level: level of logger Raises: ValueError i
deepspeed/utils/logging.py:23
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective. Note: Tokens here are vocab ids and not text tokens.
DeepSpeedExample/megatron/data/dataset_utils.py:139
↓ 1 callersMethodcreate_masked_lm_predictions
Mask sequence pair for BERT training according to: https://github.com/google-research/bert/blob/master/create_pretraining_data.py#L33
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:854
↓ 1 callersFunctioncreate_mics_comm_groups
create shard-group, replicate-group from config_file TODO: consider broadcast the config from rank0 Returns: MiCS_CommGroups
deepspeed/runtime/zero/mics_utils.py:48
↓ 1 callersMethodcreate_random_sentencepair
fetches a random sentencepair corresponding to rng state similar to https://github.com/google-research/bert/blob/master/create_pretra
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:704
↓ 1 callersMethodcreate_reduce_and_remove_grad_hooks
(self)
deepspeed/runtime/zero/stage3.py:1053
↓ 1 callersMethodcreate_reduce_and_remove_grad_hooks
(self)
deepspeed/runtime/zero/stage_1_and_2.py:799
↓ 1 callersFunctioncreate_tokens_and_tokentypes
Merge segments A and B, add [CLS] and [SEP] and build tokentypes.
DeepSpeedExample/megatron/data/dataset_utils.py:100
↓ 1 callersMethodcurrent_device
(self)
deepspeed/accelerator/npu_accelerator.py:36
↓ 1 callersMethodcurrent_device
(self)
deepspeed/accelerator/cuda_accelerator.py:40
↓ 1 callersMethodcurrent_tokens
deepspeed/ops/csrc/transformer/inference/includes/inference_context.h:200
↓ 1 callersFunctioncustom_backward
Directly call C++ autograd engine. To make the 'deallocate_output_tensor' (above) optimization work, the C++ autograd engine must be called d
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:127
↓ 1 callersMethodcxx_args
(self)
deepspeed/ops/op_builder/cpu/builder.py:30
↓ 1 callersMethoddata_efficiency_config
(self)
deepspeed/runtime/engine.py:526
↓ 1 callersMethoddata_iterator
iterates through data and handles wrap around
DeepSpeedExample/megatron/data/samplers.py:132
↓ 1 callersMethoddata_sampling_config
(self)
deepspeed/runtime/engine.py:532
↓ 1 callersMethoddataloader_drop_last
(self)
deepspeed/runtime/engine.py:1576
↓ 1 callersFunctiondebug_extract_module_and_param_names
(model)
deepspeed/utils/debug.py:14
↓ 1 callersFunctiondebug_module2name_id
(module)
deepspeed/utils/debug.py:30
↓ 1 callersFunctiondebug_param2name_id_shape
(param)
deepspeed/utils/debug.py:49
↓ 1 callersFunctiondebug_rank0
(msg: str)
deepspeed/runtime/zero/partition_parameters.py:96
↓ 1 callersFunctiondebug_report
()
deepspeed/env_report.py:82
↓ 1 callersFunctiondecompressor
hls_smartInfinity/src/kernel_cpp/adam_topk.cpp:54
↓ 1 callersFunctiondecompressor
hls_smartInfinity/src/kernel_cpp/adagrad_topk.cpp:53
↓ 1 callersFunctiondecompressor
hls_smartInfinity/src/kernel_cpp/sgd_topk.cpp:53
↓ 1 callersFunctiondecompressor
hls_smartInfinity/src/kernel_cpp/g16_adam_topk.cpp:53
↓ 1 callersFunctiondecompressor
hls_smartInfinity/src/kernel_cpp/g16_adam.cpp:48
↓ 1 callersMethoddefragment
move provided tensors into a contiguous flat buffer, with some additional measures taken to reduce memory fragmentation
deepspeed/runtime/zero/stage3.py:451
↓ 1 callersMethoddestroy_process_group
(self, group=None)
deepspeed/comm/torch.py:246
↓ 1 callersFunctiondict_to_dims
(tuning_space)
deepspeed/autotuning/tuner/utils.py:30
↓ 1 callersFunctiondomain_is_in_blacklist
(url)
DeepSpeedExample/tools/openwebtext/blacklist_urls.py:138
↓ 1 callersFunctiondrop_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:101
↓ 1 callersFunctionds_layer_norm_internal
deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:755
↓ 1 callersFunctionds_page_aligned_alloc
deepspeed/ops/csrc/aio/common/deepspeed_aio_utils.cpp:106
↓ 1 callersFunctionds_quantizer
(input, groups=1, bit_num=8, sr=False, asym=False)
deepspeed/ops/quantizer/quantizer.py:14
↓ 1 callersMethoddtype
(self)
DeepSpeedExample/megatron/data/indexed_dataset.py:427
↓ 1 callersMethoddtype
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:571
↓ 1 callersMethoddump_state
(self)
deepspeed/runtime/engine.py:815
↓ 1 callersMethodeigenvalue_layer_name
(self)
deepspeed/runtime/engine.py:511
↓ 1 callersMethodeigenvalue_max_iter
(self)
deepspeed/runtime/engine.py:499
↓ 1 callersMethodeigenvalue_stability
(self)
deepspeed/runtime/engine.py:505
↓ 1 callersMethodeigenvalue_tol
(self)
deepspeed/runtime/engine.py:502
↓ 1 callersMethodeigenvalue_verbose
(self)
deepspeed/runtime/engine.py:496
↓ 1 callersFunctionelasticity_enabled
(ds_config: dict)
deepspeed/elasticity/elasticity.py:202
↓ 1 callersMethodembed_query
Embed a batch of tokens using the query model
DeepSpeedExample/megatron/model/realm_model.py:72
↓ 1 callersFunctionempty_cache
()
deepspeed/runtime/utils.py:770
↓ 1 callersMethodenable_activation_quantization
(self, bits, quantization_type, range_calibration)
deepspeed/compression/basic_layer.py:348
↓ 1 callersMethodenable_channel_pruning
(self, ratio, method)
deepspeed/compression/basic_layer.py:461
↓ 1 callersMethodenable_head_pruning
(self, ratio, method, num_heads)
deepspeed/compression/basic_layer.py:187
↓ 1 callersMethodenable_row_pruning
(self, ratio, method)
deepspeed/compression/basic_layer.py:166
↓ 1 callersMethodenable_sparse_pruning
(self, ratio, method)
deepspeed/compression/basic_layer.py:147
↓ 1 callersMethodenable_weight_quantization
(self, start_bits, target_bits, quantization_period, weight_quantization_en
deepspeed/compression/basic_layer.py:79
↓ 1 callersFunctionencode_world_info
(world_info)
deepspeed/launcher/runner.py:347
↓ 1 callersMethodend_document
(self)
DeepSpeedExample/megatron/data/indexed_dataset.py:291
↓ 1 callersMethodend_document
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:290
↓ 1 callersFunctionensemble_predictions
(args)
DeepSpeedExample/tasks/ensemble_classifier.py:120
↓ 1 callersFunctionensure_divisibility
Ensure that numerator is divisible by the denominator.
DeepSpeedExample/megatron/core/utils.py:16
↓ 1 callersFunctionensure_immutable_elastic_config
Ensure the resource scheduler saw the same elastic config we are using at runtime
deepspeed/elasticity/elasticity.py:208
↓ 1 callersFunctionestimate_zero2_model_states_mem_needs
(total_params, num_gpus_per_node=1,
deepspeed/runtime/zero/stage_1_and_2.py:2243
↓ 1 callersFunctionestimate_zero2_model_states_mem_needs_all_cold
Print out estimates on memory usage requirements for ZeRO 2 params, optim states and gradients for a given ``model`` and hardware setup.
deepspeed/runtime/zero/stage_1_and_2.py:2297
↓ 1 callersFunctionestimate_zero3_model_states_mem_needs
(total_params, largest_layer_params,
deepspeed/runtime/zero/stage3.py:2498
↓ 1 callersFunctionestimate_zero3_model_states_mem_needs_all_cold
Print out estimates on memory usage requirements for ZeRO 3 params, optim states and gradients for a given ``model`` and hardware setup.
deepspeed/runtime/zero/stage3.py:2581
↓ 1 callersFunctionevaluate
Evaluation.
DeepSpeedExample/megatron/training.py:575
↓ 1 callersFunctionevaluate
Evaluation.
DeepSpeedExample/tasks/zeroshot_gpt2/evaluate.py:109
↓ 1 callersFunctionevaluate_and_print_results
Evaluate and print results on screen.
DeepSpeedExample/tasks/zeroshot_gpt2/evaluate.py:134
↓ 1 callersFunctionexists_lazy
Check if we've already made a lazy version of this file for the `data_type` field.
DeepSpeedExample/megatron/deprecated_data_utils/lazy_loader.py:33
↓ 1 callersMethodexpert_exec
(self, dispatched_input)
deepspeed/ops/transformer/inference/moe_inference.py:257
↓ 1 callersFunctionexscan_from_cumsum_
(arr)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:337
↓ 1 callersFunctionextention_is_in_blacklist
(url)
DeepSpeedExample/tools/openwebtext/blacklist_urls.py:214
↓ 1 callersFunctionexternal_parameters
(self)
deepspeed/runtime/zero/partition_parameters.py:111
↓ 1 callersFunctionfetch_hostfile
(hostfile_path)
deepspeed/launcher/runner.py:194
↓ 1 callersMethodfilter_ccs
Prune any compute capabilities that are not compatible with the builder. Should log which CCs have been pruned.
deepspeed/ops/op_builder/builder.py:580
↓ 1 callersFunctionfilter_corpus
(filename, out_filename, print_interval=10000)
DeepSpeedExample/tools/openwebtext/cleanup_dataset.py:45
↓ 1 callersMethodfinalize
(self, index_file)
DeepSpeedExample/megatron/data/indexed_dataset.py:314
↓ 1 callersMethodfinalize
(self, index_file)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:316
← previousnext →1,701–1,800 of 4,989, ranked by callers