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
step
(self)
deepspeed/runtime/quantize.py:75
↓ 1 callers
Method
step
Not supporting closure.
deepspeed/runtime/zero/stage3.py:1866
↓ 1 callers
Method
step_fused_adam
Not supporting closure.
deepspeed/runtime/fp16/fused_optimizer.py:143
↓ 1 callers
Method
step_fused_lamb
Not supporting closure.
deepspeed/runtime/fp16/unfused_optimizer.py:130
↓ 1 callers
Method
steps
Yield a list of :class:`PipeInstruction` for each step in the schedule. .. note:: Schedules must implement ``steps()`` to define
deepspeed/runtime/pipe/schedule.py:58
↓ 1 callers
Method
stop
Stop the timer.
deepspeed/utils/timer.py:60
↓ 1 callers
Function
student_initialization
Given a student model and a teacher model, select the Args: student_model (`torch.nn.Module`) The model we will update we
deepspeed/compression/compress.py:192
↓ 1 callers
Method
supported
(model)
deepspeed/module_inject/auto_tp.py:34
↓ 1 callers
Method
swap_in_optimizer_state
(self, parameter, async_parameter)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:97
↓ 1 callers
Method
swap_into_buffer
(self, param, dest_buffer)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:315
↓ 1 callers
Method
swap_out_and_release
(self, params, async_op=False, force_buffer_release=False)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:263
↓ 1 callers
Method
swap_out_gradients
(self, parameter, gradient_offsets, gradient_tensors)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:149
↓ 1 callers
Method
swap_out_optimizer_state
(self, parameter, async_swap)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:124
↓ 1 callers
Method
swap_out_partitioned_params
(self, dst_fp16_params, src_fp32_params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:387
↓ 1 callers
Function
switch
(val1, val2, boolean)
DeepSpeedExample/megatron/text_generation_utils.py:319
↓ 1 callers
Method
sync_thread
(self)
deepspeed/ops/adam/cpu_adam.py:225
↓ 1 callers
Function
terminate_process_tree
(pid)
deepspeed/launcher/launch.py:118
↓ 1 callers
Function
test1
()
deepspeed/runtime/zero/test.py:10
↓ 1 callers
Function
test2
()
deepspeed/runtime/zero/test.py:44
↓ 1 callers
Function
test_boradcast_data
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_data.py:27
↓ 1 callers
Function
test_column_parallel_linear
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_layers.py:186
↓ 1 callers
Function
test_cross_entropy
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_cross_entropy.py:58
↓ 1 callers
Function
test_cuda_rng_tracker
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_random.py:86
↓ 1 callers
Function
test_get_model_parallel_src_rank
(model_parallel_size_)
DeepSpeedExample/megatron/mpu/tests/test_initialize.py:62
↓ 1 callers
Function
test_indexed_dataset_get
(args)
DeepSpeedExample/megatron/data/test/test_indexed_dataset.py:43
↓ 1 callers
Function
test_initialize_affine_weight
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_layers.py:107
↓ 1 callers
Function
test_initialize_model_parallel
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_initialize.py:24
↓ 1 callers
Function
test_model_parallel_cuda_manual_seed
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_random.py:157
↓ 1 callers
Function
test_parallel_embedding
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_layers.py:29
↓ 1 callers
Function
test_parallel_self_attention
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_layers.py:361
↓ 1 callers
Function
test_parallel_transformer_layer
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_layers.py:449
↓ 1 callers
Function
test_row_parallel_linear
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_layers.py:253
↓ 1 callers
Function
test_set_cuda_rng_state
(model_parallel_size)
DeepSpeedExample/megatron/mpu/tests/test_random.py:24
↓ 1 callers
Function
threshold_predictions
(all_predictions, threshold)
DeepSpeedExample/tasks/ensemble_classifier.py:69
↓ 1 callers
Function
timer_init
deepspeed/ops/csrc/adam/opencl/adam/util.cpp:13
↓ 1 callers
Function
timer_start
deepspeed/ops/csrc/adam/opencl/adam/util.cpp:21
↓ 1 callers
Function
timer_stop
deepspeed/ops/csrc/adam/opencl/adam/util.cpp:23
↓ 1 callers
Method
to_coo_tensor
(self)
deepspeed/runtime/sparse_tensor.py:34
↓ 1 callers
Method
to_dense
(self)
deepspeed/runtime/sparse_tensor.py:41
↓ 1 callers
Method
tokenize
Tokenize a string.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization_gpt2.py:234
↓ 1 callers
Method
tokenize
Tokenize a string.
DeepSpeedExample/megatron/tokenizer/gpt2_tokenization.py:236
↓ 1 callers
Method
tokenizer
(self)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:276
↓ 1 callers
Function
top1gating
Implements Top1Gating on logits.
deepspeed/moe/sharded_moe.py:179
↓ 1 callers
Function
top2gating
Implements Top2Gating on logits.
deepspeed/moe/sharded_moe.py:277
↓ 1 callers
Function
top_k_logits
This function has been mostly taken from huggingface conversational ai code at https://medium.com/huggingface/how-to-build-a-state-of-t
DeepSpeedExample/megatron/text_generation_utils.py:50
↓ 1 callers
Function
torch_cross_entropy
(batch_size, seq_length, vocab_size, logits_scale, seed)
DeepSpeedExample/megatron/mpu/tests/test_cross_entropy.py:29
↓ 1 callers
Method
total_memory
(self, device_index=None)
deepspeed/accelerator/cpu_accelerator.py:153
↓ 1 callers
Method
tp_parser
(model)
deepspeed/module_inject/auto_tp.py:84
↓ 1 callers
Method
track_and_report_progress
Utility function for tracking progress
DeepSpeedExample/megatron/indexer.py:44
↓ 1 callers
Function
train
Train the model function.
DeepSpeedExample/megatron/training.py:496
↓ 1 callers
Function
train_valid_datasets_provider
Provide train and validation datasets.
DeepSpeedExample/tasks/race/finetune.py:27
↓ 1 callers
Method
transform_for_inference
If the views on certain parameters are largely incompatible, it may be necessary to do more substantial transformations to the parame
deepspeed/module_inject/containers/features/hybrid_engine.py:41
↓ 1 callers
Method
transform_for_training
If the views on certain parameters are largely incompatible, it may be necessary to do more substantial transformations to the parame
deepspeed/module_inject/containers/features/hybrid_engine.py:33
↓ 1 callers
Method
transpose_key_for_scores
(self, x, L)
deepspeed/ops/sparse_attention/sparse_self_attention.py:82
↓ 1 callers
Method
transpose_mlp
(self)
deepspeed/module_inject/containers/base.py:273
↓ 1 callers
Method
transpose_mlp
(self)
deepspeed/module_inject/containers/base_moe.py:83
↓ 1 callers
Method
transpose_residual
(self)
deepspeed/module_inject/containers/base_moe.py:87
↓ 1 callers
Function
truncate_segments
Truncates a pair of sequences to a maximum sequence length.
DeepSpeedExample/megatron/data/dataset_utils.py:79
↓ 1 callers
Method
truncate_seq_pair
Truncate sequence pair according to original BERT implementation: https://github.com/google-research/bert/blob/master/create_pretrain
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:787
↓ 1 callers
Function
unflatten_dp_dimension
(meg_2d_map, dp_degree)
deepspeed/checkpoint/reshape_3d_utils.py:100
↓ 1 callers
Method
unfuse_lora_weight_non_pinned
(self)
deepspeed/runtime/hybrid_engine.py:156
↓ 1 callers
Function
unregister_external_parameter
Reverses the effects of :meth:`register_external_parameter`. Args: module (``torch.nn.Module``): The module to affect. parameter
deepspeed/runtime/zero/partition_parameters.py:173
↓ 1 callers
Method
update
Updated the running absmax used to calculate params. Function Arguments : val : The __half2 value to update the running min and max with.
deepspeed/ops/csrc/includes/quantization_utils.h:176
↓ 1 callers
Method
update_fp16_ratio
(self)
deepspeed/runtime/quantize.py:175
↓ 1 callers
Method
update_lp_params
(self)
deepspeed/runtime/bf16_optimizer.py:317
↓ 1 callers
Method
update_metric_results
(self, data, metric_types, metric_functions, metric_results)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:87
↓ 1 callers
Function
update_mp_params
(child)
deepspeed/module_inject/replace_module.py:426
↓ 1 callers
Method
update_overflow_tracker_for_param_grad
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1023
↓ 1 callers
Method
update_policy_list
(policy_list, new_module, new_gems)
deepspeed/module_inject/auto_tp.py:58
↓ 1 callers
Method
update_scale
(self, overflow)
DeepSpeedExample/megatron/fp16/loss_scaler.py:56
↓ 1 callers
Method
update_state
(self, global_step)
deepspeed/runtime/progressive_layer_drop.py:35
↓ 1 callers
Function
url_is_malformed
(url)
DeepSpeedExample/tools/openwebtext/blacklist_urls.py:229
↓ 1 callers
Function
url_to_filename
Convert `url` into a hashed filename in a repeatable way. If `etag` is specified, append its hash to the url's, delimited by a period.
DeepSpeedExample/megatron/deprecated_data_utils/file_utils.py:43
↓ 1 callers
Method
validate_args
Validate self.args
deepspeed/launcher/multinode_runner.py:47
↓ 1 callers
Method
validate_torch_op_version
(torch_info)
deepspeed/ops/op_builder/builder.py:143
↓ 1 callers
Method
validate_torch_version
(torch_info)
deepspeed/ops/op_builder/builder.py:132
↓ 1 callers
Function
vocab_parallel_cross_entropy
Helper function for the cross entropy.
DeepSpeedExample/megatron/mpu/cross_entropy.py:108
↓ 1 callers
Method
vocab_range_from_global_vocab_size
(global_vocab_size: int, rank: int, world_size: int)
DeepSpeedExample/megatron/core/tensor_parallel/utils.py:110
↓ 1 callers
Method
vocab_range_from_global_vocab_size
(global_vocab_size, rank, world_size)
DeepSpeedExample/megatron/mpu/utils.py:67
↓ 1 callers
Method
vocab_range_from_per_partition_vocab_size
( per_partition_vocab_size: int, rank, world_size: int )
DeepSpeedExample/megatron/core/tensor_parallel/utils.py:102
↓ 1 callers
Method
vocab_range_from_per_partition_vocab_size
(per_partition_vocab_size, rank, world_size)
DeepSpeedExample/megatron/mpu/utils.py:60
↓ 1 callers
Method
vocab_size
(self)
DeepSpeedExample/megatron/tokenizer/tokenizer.py:78
↓ 1 callers
Function
was_interruptted
(filename)
deepspeed/autotuning/utils.py:29
↓ 1 callers
Method
word_embeddings_weight
(self)
DeepSpeedExample/megatron/model/module.py:53
↓ 1 callers
Method
world_size
(self)
deepspeed/checkpoint/reshape_3d_utils.py:42
↓ 1 callers
Function
write_experiments
(exps: list, exps_dir: str)
deepspeed/autotuning/utils.py:403
↓ 1 callers
Function
write_files
(lines, mappings, filepaths)
DeepSpeedExample/megatron/deprecated_data_utils/scripts/split_json.py:77
↓ 1 callers
Function
write_files
(lines, mappings, filepaths)
DeepSpeedExample/megatron/deprecated_data_utils/scripts/split_gpt2_json.py:92
↓ 1 callers
Function
write_mapping_file
(m, path)
DeepSpeedExample/megatron/deprecated_data_utils/scripts/split_json.py:90
↓ 1 callers
Function
write_mapping_file
(m, path)
DeepSpeedExample/megatron/deprecated_data_utils/scripts/split_gpt2_json.py:105
↓ 1 callers
Method
write_optimal_config
(self)
deepspeed/autotuning/autotuner.py:1072
↓ 1 callers
Function
write_predictions
(all_predictions, all_labels, all_uid, args)
DeepSpeedExample/tasks/ensemble_classifier.py:93
↓ 1 callers
Method
zero_allow_untested_optimizer
(self)
deepspeed/runtime/engine.py:671
↓ 1 callers
Method
zero_cpu_offload
(self)
deepspeed/runtime/engine.py:694
↓ 1 callers
Method
zero_force_ds_cpu_optimizer
(self)
deepspeed/runtime/engine.py:674
↓ 1 callers
Method
zero_gather_16bit_weights_on_model_save
(self)
deepspeed/runtime/engine.py:744
↓ 1 callers
Method
zero_grad
Zero fp32 and fp16 parameter grads.
DeepSpeedExample/megatron/fp16/fp16.py:268
↓ 1 callers
Method
zero_ignore_unused_parameters
(self)
deepspeed/runtime/engine.py:753
↓ 1 callers
Method
zero_legacy_stage1
(self)
deepspeed/runtime/engine.py:750
↓ 1 callers
Method
zero_load_from_fp32_weights
(self)
deepspeed/runtime/engine.py:723
← previous
next →
2,501–2,600 of 4,989, ranked by callers