Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIS-SNU/Smart-Infinity
/ functions
Functions
4,989 in github.com/AIS-SNU/Smart-Infinity
⨍
Functions
4,989
◇
Types & classes
624
↓ 1 callers
Method
populate_all_inference_policies
(self)
deepspeed/runtime/hybrid_engine.py:114
↓ 1 callers
Method
post_backward
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:212
↓ 1 callers
Method
post_process
(self, value_list)
deepspeed/runtime/eigenvalue.py:147
↓ 1 callers
Method
post_sub_module_forward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:488
↓ 1 callers
Function
postprocess_predictions
(all_predictions, all_labels, args)
DeepSpeedExample/tasks/ensemble_classifier.py:79
↓ 1 callers
Method
pre_backward
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:209
↓ 1 callers
Method
pre_sub_module_backward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:499
↓ 1 callers
Method
pre_sub_module_forward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:473
↓ 1 callers
Method
predict
(self, xs)
deepspeed/autotuning/tuner/cost_model.py:62
↓ 1 callers
Method
prefetch
(self, indices)
DeepSpeedExample/megatron/data/indexed_dataset.py:222
↓ 1 callers
Function
prefix_check
()
deepspeed/module_inject/load_checkpoint.py:31
↓ 1 callers
Function
prefix_sum_inc
Compute an inclusive prefix sum. Example: >>> prefix_sum_inc([3,4,5]) [3, 7, 12]
deepspeed/runtime/utils.py:528
↓ 1 callers
Function
prep_command_tokens
(tokenlist, token_format=token_format)
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:146
↓ 1 callers
Function
prep_type_tokens
(tokenlist, token_format=token_format)
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:177
↓ 1 callers
Method
print
(self, name)
deepspeed/runtime/config.py:959
↓ 1 callers
Function
print_configuration
(args, name)
deepspeed/utils/logging.py:68
↓ 1 callers
Function
print_device_info
deepspeed/ops/csrc/adam/opencl/adam/vadd.cpp:254
↓ 1 callers
Method
print_forward_breakdown
(self, fwd_time)
deepspeed/runtime/engine.py:1779
↓ 1 callers
Function
print_help
deepspeed/ops/csrc/adam/opencl/adam/main.cpp:12
↓ 1 callers
Method
print_model_aggregated_profile
Prints the names of the top top_modules modules in terms of aggregated time, flops, and parameters at depth module_depth. Args: m
deepspeed/profiling/flops_profiler/profiler.py:378
↓ 1 callers
Function
print_platform_info
deepspeed/ops/csrc/adam/opencl/adam/vadd.cpp:235
↓ 1 callers
Method
print_tuning_results
Print the autotuning results in tabular format.
deepspeed/autotuning/autotuner.py:108
↓ 1 callers
Method
print_user_config
(self)
deepspeed/runtime/config.py:949
↓ 1 callers
Function
process_batch
Process batch and produce inputs for the model.
DeepSpeedExample/tasks/zeroshot_gpt2/evaluate.py:58
↓ 1 callers
Function
process_files
(args)
DeepSpeedExample/tasks/ensemble_classifier.py:9
↓ 1 callers
Method
process_samples_from_single_path
Abstract method that takes a single path / filename and returns a list of dataset samples, each sample being a dict of {'text_a':
DeepSpeedExample/tasks/glue/data.py:64
↓ 1 callers
Function
process_single_datapath
Read in RACE files, combine, clean-up, tokenize, and convert to samples.
DeepSpeedExample/tasks/race/data.py:49
↓ 1 callers
Function
prune_config
Prunes the input configurations Args: configs (dict): A configuration dictionary. ignored_keys (list, optional): the keys of the
deepspeed/autotuning/utils.py:228
↓ 1 callers
Function
prune_configs
Prunes the input list of configurations Args: configs (list): A list of configuration dictionaries. ignored_keys (list, optional
deepspeed/autotuning/utils.py:252
↓ 1 callers
Method
quantize_binary
(self, inputs)
deepspeed/runtime/quantize.py:115
↓ 1 callers
Function
quantize_fn
(child)
deepspeed/module_inject/module_quantize.py:45
↓ 1 callers
Method
quantize_highbit
(self, inputs, num_bits)
deepspeed/runtime/quantize.py:78
↓ 1 callers
Function
quantize_module
(model, orig_class, quantize_fn)
deepspeed/module_inject/module_quantize.py:58
↓ 1 callers
Method
quantize_tenary
(self, inputs)
deepspeed/runtime/quantize.py:102
↓ 1 callers
Method
quantize_training
(self)
deepspeed/runtime/engine.py:653
↓ 1 callers
Method
random_ltd_initialize
(self)
deepspeed/runtime/engine.py:547
↓ 1 callers
Method
range_pop
(self)
deepspeed/accelerator/cpu_accelerator.py:168
↓ 1 callers
Method
range_push
(self, msg)
deepspeed/accelerator/cpu_accelerator.py:163
↓ 1 callers
Method
read_index
(self, path)
DeepSpeedExample/megatron/data/indexed_dataset.py:137
↓ 1 callers
Method
read_index
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:148
↓ 1 callers
Method
read_unswapped_gradients
(self, dest_buffer)
deepspeed/runtime/swap_tensor/optimizer_utils.py:124
↓ 1 callers
Function
read_zero_config_deprecated
(param_dict)
deepspeed/runtime/zero/config.py:46
↓ 1 callers
Method
readable2byte
(self, raw)
setup/nvme_speed_test.py:61
↓ 1 callers
Method
record_parameters
adds sub module to trace
deepspeed/runtime/zero/partitioned_param_coordinator.py:167
↓ 1 callers
Function
recurse
(cl)
deepspeed/runtime/zero/partition_parameters.py:255
↓ 1 callers
Function
recursively_lint_files
Recursively lint all python files in chosen subdirectories of megatron-lm
DeepSpeedExample/tools/linter.py:7
↓ 1 callers
Function
recv_backward
(tensor_shapes, config)
DeepSpeedExample/megatron/core/pipeline_parallel/schedules.py:930
↓ 1 callers
Function
reduce_from_model_parallel_region
(input_)
deepspeed/compression/basic_layer.py:755
↓ 1 callers
Method
reduce_gradients
(self, pipeline_parallel=False)
deepspeed/runtime/zero/stage_1_and_2.py:631
↓ 1 callers
Method
reduce_independent_p_g_buckets_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage3.py:1095
↓ 1 callers
Method
reduce_independent_p_g_buckets_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage_1_and_2.py:833
↓ 1 callers
Method
reduce_ready_partitions_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage3.py:1334
↓ 1 callers
Function
reduce_scatter
(output, input_list, op=ReduceOp.SUM, group=None,
deepspeed/comm/comm.py:430
↓ 1 callers
Function
reduce_scatter_coalesced
simultaneously reduce-scatter a list of tensors - this can be done more efficiently than individual reduce scatter calls TODO. see if PyTorch
deepspeed/runtime/comm/coalesced_collectives.py:29
↓ 1 callers
Function
reduce_scatter_tensor
(output_tensor, tensor, op=ReduceOp.SUM,
deepspeed/comm/comm.py:272
↓ 1 callers
Method
reduce_scatter_tensor
(self, output_tensor, input_tensor, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/torch.py:158
↓ 1 callers
Function
reduce_scatter_to_sequence_parallel_region
(input_)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:278
↓ 1 callers
Method
refresh_fp32_params
(self)
deepspeed/runtime/bf16_optimizer.py:362
↓ 1 callers
Function
register_on_step_begin
Mount on_step_begin to the model. Args: model (`torch.nn.module`) The torch module object to be pruned.
deepspeed/compression/helper.py:283
↓ 1 callers
Function
regular_read
deepspeed/ops/csrc/aio/common/deepspeed_aio_common.cpp:279
↓ 1 callers
Method
release_and_reset_all
release all module parameters
deepspeed/runtime/zero/partitioned_param_coordinator.py:354
↓ 1 callers
Method
release_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:53
↓ 1 callers
Method
release_memory
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:88
↓ 1 callers
Method
release_mlp
Release for MLP parameters (as well as any aliases).
deepspeed/module_inject/containers/features/hybrid_engine.py:119
↓ 1 callers
Method
release_qkv
Release for QKV parameters (as well as any aliases).
deepspeed/module_inject/containers/features/hybrid_engine.py:108
↓ 1 callers
Method
release_reserved_buffers
(self)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:369
↓ 1 callers
Method
release_unswapped_gradients
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:133
↓ 1 callers
Function
remove_dupe_dicts
Removes duplicate dictionaries from a list. Uses list comprehension and the json library to sort and stringify each dictionary and the set data type
deepspeed/autotuning/utils.py:214
↓ 1 callers
Method
remove_mask_prepare_for_bloom
(self)
deepspeed/inference/engine.py:232
↓ 1 callers
Function
replace_transformer_layer
Replace bert-style transformer layers with DeepSpeed's transformer layer Arguments: orig_layer_impl (torch.nn.Module): the original trans
deepspeed/module_inject/replace_module.py:283
↓ 1 callers
Function
replace_wo_policy
(module, all_reduce_linears, prefix="", state_dict=None)
deepspeed/module_inject/replace_module.py:367
↓ 1 callers
Function
report_memory
Simple GPU memory report.
DeepSpeedExample/megatron/utils.py:41
↓ 1 callers
Method
repr
(self)
deepspeed/runtime/config_utils.py:174
↓ 1 callers
Function
req_file
(filename)
DeepSpeedExample/setup.py:44
↓ 1 callers
Function
requires_offset
deepspeed/ops/csrc/includes/quantization.h:20
↓ 1 callers
Method
res_coef_func
(self, inp, async_op)
deepspeed/ops/transformer/inference/moe_inference.py:244
↓ 1 callers
Method
reserve_available_buffers
(self)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:358
↓ 1 callers
Method
reserve_partitioned_swap_space
(self, partition_num_elems)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:381
↓ 1 callers
Method
reserve_slots
(self, slot_request: int)
deepspeed/autotuning/scheduler.py:267
↓ 1 callers
Method
reset
Reset timer.
deepspeed/utils/timer.py:83
↓ 1 callers
Method
reset
Set to the initial state (no tracker).
deepspeed/runtime/activation_checkpointing/checkpointing.py:136
↓ 1 callers
Method
reset_cache
(cls)
deepspeed/model_implementations/transformers/ds_transformer.py:90
↓ 1 callers
Method
reset_mlp
Perform any necessary resets of the model parameters for the MLP components.
deepspeed/module_inject/containers/features/hybrid_engine.py:147
↓ 1 callers
Method
reset_parameters
(self)
DeepSpeedExample/megatron/core/fusions/fused_layer_norm.py:62
↓ 1 callers
Method
reset_parameters
(self)
DeepSpeedExample/megatron/model/fused_layer_norm.py:95
↓ 1 callers
Method
reset_parameters
(self)
deepspeed/runtime/zero/linear.py:163
↓ 1 callers
Method
reset_params
The purpose of reset params is to get the weights from the FP16 training copy of the model and copy to them to contiguous inference v
deepspeed/module_inject/containers/features/hybrid_engine.py:132
↓ 1 callers
Method
reset_partition_gradient_structures
(self)
deepspeed/runtime/zero/stage_1_and_2.py:735
↓ 1 callers
Method
reset_profile
Resets the profiling. Adds or resets the extra attributes.
deepspeed/profiling/flops_profiler/profiler.py:154
↓ 1 callers
Method
reset_qkv
Perform any necessary resets of the model parameters for the QKV components.
deepspeed/module_inject/containers/features/hybrid_engine.py:141
↓ 1 callers
Method
reset_to_init
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:60
↓ 1 callers
Method
reshape
(self, target_3d_desc: model_3d_desc)
deepspeed/checkpoint/zero_checkpoint.py:91
↓ 1 callers
Method
reshuffle_clusters
(self, cidx)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:234
↓ 1 callers
Method
resource_request
(self, exp)
deepspeed/autotuning/scheduler.py:133
↓ 1 callers
Function
rewrite_optimizer_step
Mount on_before/after_optimizer_step to the optimizer. Args: model (`torch.opt.Optimizer`) The torch optimizer object to be ho
deepspeed/compression/helper.py:298
↓ 1 callers
Method
run
deepspeed/ops/csrc/aio/py_lib/deepspeed_aio_thread.cpp:48
↓ 1 callers
Method
run_after_tuning
Launches the training with the optimal DeepSpeed configuration found through the autotuning process. "ds_config_optimal.json" describing
deepspeed/autotuning/autotuner.py:1100
↓ 1 callers
Function
run_autotuning
(args, active_resources)
deepspeed/launcher/runner.py:353
↓ 1 callers
Method
run_job
(self, exp: dict, reservations)
deepspeed/autotuning/scheduler.py:90
↓ 1 callers
Method
run_map_helper
(self, thread_id)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:132
← previous
next →
2,301–2,400 of 4,989, ranked by callers