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
↓ 2 callers
Function
shingles
(text, char_ngram=5)
DeepSpeedExample/tools/openwebtext/find_duplicates.py:26
↓ 2 callers
Function
should_log_le
Args: max_log_level_str: maximum log level as a string Returns ``True`` if the current log_level is less or equal to the specified l
deepspeed/utils/logging.py:133
↓ 2 callers
Method
simd_width
(self)
deepspeed/ops/op_builder/builder.py:385
↓ 2 callers
Method
simple_init
(self)
deepspeed/checkpoint/reshape_meg_2d.py:16
↓ 2 callers
Method
sparse_all_gather
(self, value, dp_group)
deepspeed/runtime/engine.py:2375
↓ 2 callers
Method
sparse_allreduce_no_retain
(self, bucket, dp_group)
deepspeed/runtime/engine.py:2335
↓ 2 callers
Function
split_half_float_double_sparse
(tensors)
deepspeed/runtime/engine.py:115
↓ 2 callers
Function
split_params_grads_into_shared_and_expert_params
Split grad of parameters into grads of non-expert params and grads of expert params. This is useful while computing grad-norms for clipping an
deepspeed/moe/utils.py:40
↓ 2 callers
Function
split_s3_path
Split a full s3 path into the bucket name and path.
DeepSpeedExample/megatron/deprecated_data_utils/file_utils.py:117
↓ 2 callers
Function
split_tensor_into_1d_equal_chunks
Break a tensor into equal 1D chunks across tensor parallel ranks. Returns a Tensor or View with this rank's portion of the data. Ar
DeepSpeedExample/megatron/core/tensor_parallel/utils.py:37
↓ 2 callers
Method
start_profile
Starts profiling. Extra attributes are added recursively to all the modules and the profiled torch.nn.functionals are monkey patched.
deepspeed/profiling/flops_profiler/profiler.py:67
↓ 2 callers
Method
state
(self)
DeepSpeedExample/megatron/data/realm_index.py:35
↓ 2 callers
Method
state_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
DeepSpeedExample/megatron/module.py:27
↓ 2 callers
Method
state_dict_for_save_checkpoint
Save dict with state dicts of each of the models.
DeepSpeedExample/megatron/model/realm_model.py:90
↓ 2 callers
Method
step
Set lr for all parameters groups.
DeepSpeedExample/megatron/learning_rates.py:94
↓ 2 callers
Method
step
Not supporting closure.
deepspeed/runtime/zero/stage_1_and_2.py:1642
↓ 2 callers
Method
step
Not supporting closure.
deepspeed/runtime/fp16/fused_optimizer.py:216
↓ 2 callers
Method
step
Not supporting closure.
deepspeed/runtime/fp16/unfused_optimizer.py:195
↓ 2 callers
Method
step_with_fpga
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/adam/cpu_adam.py:233
↓ 2 callers
Method
stop_profile
Stop profiling. All torch.nn.functionals are restored to their originals.
deepspeed/profiling/flops_profiler/profiler.py:125
↓ 2 callers
Function
supported_corpus
checks if corpus name is defined in `corpora.py`
DeepSpeedExample/megatron/deprecated_data_utils/__init__.py:63
↓ 2 callers
Method
swap_out_tensors
(self, tensor_list, path_list)
deepspeed/runtime/swap_tensor/async_swapper.py:67
↓ 2 callers
Method
synchronize_writes
(self)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:193
↓ 2 callers
Method
to_meta
Returns a torch.LongTensor that encodes partitioning information. Can be used along with ``data()`` to serialize a ``PartitionedTensor`` for
deepspeed/runtime/utils.py:694
↓ 2 callers
Method
tokenize
(self, text)
DeepSpeedExample/megatron/deprecated_data_utils/wordpiece.py:107
↓ 2 callers
Method
topk
(self, tensor, top_size)
deepspeed/ops/adam/cpu_adam.py:228
↓ 2 callers
Method
trace_prologue
(self, sub_module: Module)
deepspeed/runtime/zero/partitioned_param_coordinator.py:140
↓ 2 callers
Function
train_step
Single training step.
DeepSpeedExample/megatron/training.py:361
↓ 2 callers
Function
training_log
Log training information such as losses, timing, ....
DeepSpeedExample/megatron/training.py:398
↓ 2 callers
Function
transpose
(data)
deepspeed/module_inject/load_checkpoint.py:40
↓ 2 callers
Method
transpose_attention
(self)
deepspeed/module_inject/containers/base.py:268
↓ 2 callers
Method
transpose_mask_for_sparse
(self, qtype, x, is_key_padding_mask=False)
deepspeed/ops/sparse_attention/sparse_self_attention.py:88
↓ 2 callers
Method
tune
Tunes Zero stages, micro batch size per GPU, and other Zero configurations. Performance metrics of different tuning spaces are recorded in self.recor
deepspeed/autotuning/autotuner.py:404
↓ 2 callers
Method
unfuse_lora_weight
(self)
deepspeed/runtime/hybrid_engine.py:152
↓ 2 callers
Method
unscale_and_clip_grads
(self, grad_groups_flat, total_norm)
deepspeed/runtime/zero/stage_1_and_2.py:1791
↓ 2 callers
Method
unscale_and_clip_grads
(self, grad_groups_flat, total_norm, apply_scale=True)
deepspeed/runtime/fp16/fused_optimizer.py:325
↓ 2 callers
Method
unscale_and_clip_grads
(self, total_norm, apply_scale=True)
deepspeed/runtime/fp16/unfused_optimizer.py:244
↓ 2 callers
Method
update_hp_grads
(self, clear_lp_grads=False)
deepspeed/runtime/bf16_optimizer.py:274
↓ 2 callers
Method
update_master_grads
Copy the ``.grad`` attribute from stored references to fp16 parameters to the ``.grad`` attribute of the fp32 master parameters that
DeepSpeedExample/megatron/fp16/fp16.py:577
↓ 2 callers
Method
update_scale
(self, overflow)
deepspeed/runtime/fp16/loss_scaler.py:58
↓ 2 callers
Method
update_seq
(self, global_steps)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:85
↓ 2 callers
Method
use_node_local_storage
(self)
deepspeed/runtime/engine.py:780
↓ 2 callers
Function
wait
()
deepspeed/runtime/pipe/p2p.py:91
↓ 2 callers
Function
wrapper
(url, *args, **kwargs)
DeepSpeedExample/megatron/deprecated_data_utils/file_utils.py:137
↓ 2 callers
Function
write_file
(lines, path)
DeepSpeedExample/megatron/deprecated_data_utils/scripts/split_json.py:83
↓ 2 callers
Function
write_file
(lines, path)
DeepSpeedExample/megatron/deprecated_data_utils/scripts/split_gpt2_json.py:98
↓ 2 callers
Function
zero2_align
(x)
deepspeed/utils/zero_to_fp32.py:301
↓ 2 callers
Function
zero3_partitioned_param_info
(unpartitioned_numel, world_size)
deepspeed/utils/zero_to_fp32.py:341
↓ 2 callers
Method
zero_allgather_bucket_size
(self)
deepspeed/runtime/engine.py:711
↓ 2 callers
Method
zero_elastic_checkpoint
(self)
deepspeed/runtime/engine.py:726
↓ 2 callers
Method
zero_grad
Zero FP16 parameter grads.
deepspeed/runtime/zero/stage3.py:1508
↓ 2 callers
Method
zero_grad
Zero FP16 parameter grads.
deepspeed/runtime/zero/stage_1_and_2.py:1451
↓ 2 callers
Function
zero_mat
deepspeed/ops/csrc/adam/opencl/adam/util.cpp:40
↓ 2 callers
Method
zero_offload_optimizer
(self)
deepspeed/runtime/engine.py:683
↓ 2 callers
Method
zero_sub_group_size
(self)
deepspeed/runtime/engine.py:699
↓ 1 callers
Function
AdagradCPU
hls_smartInfinity/src/host/host_step_adagrad_topk.cpp:136
↓ 1 callers
Function
AdagradCPU
hls_smartInfinity/src/host/host_step_adagrad.cpp:129
↓ 1 callers
Function
AdamCPU
hls_smartInfinity/src/host/g16_host_step_adam.cpp:131
↓ 1 callers
Function
AdamCPU
hls_smartInfinity/src/host/host_step_adam.cpp:131
↓ 1 callers
Function
AdamCPU
hls_smartInfinity/src/host/host_step_adam_topk.cpp:137
↓ 1 callers
Function
AdamCPU
hls_smartInfinity/src/host/g16_host_step_adam_topk.cpp:137
↓ 1 callers
Function
BN_convert_float
Utility function for network_to_half(). Retained for legacy purposes.
DeepSpeedExample/megatron/fp16/fp16util.py:42
↓ 1 callers
Method
Backward
deepspeed/ops/csrc/transformer/ds_transformer_cuda.cpp:302
↓ 1 callers
Method
DecodeIds
convert Ids to tokens accounting for command and type tokens, tokens are joined and returned as a string.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:356
↓ 1 callers
Method
DecodeTokens
convert tokens to a string accounting for command and type tokens.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:383
↓ 1 callers
Method
EncodeAsIds
Preprocess text and encode as ids. Return a tokenization object with original text, processed text, and id tokenization.
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:445
↓ 1 callers
Method
EncodeAsTokens
encode text as tokens using text tokenizer
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:328
↓ 1 callers
Method
GenWorkSpace
deepspeed/ops/csrc/transformer/inference/includes/inference_context.h:93
↓ 1 callers
Method
GetAttentionUnfusedWorkspace
deepspeed/ops/csrc/transformer/inference/includes/inference_context.h:184
↓ 1 callers
Method
IdToToken
convert Id to token accounting for command and type tokens
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:336
↓ 1 callers
Method
IdToToken
convert Id to sentencpiece token
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:692
↓ 1 callers
Method
SetDim
deepspeed/ops/csrc/includes/dropout.h:23
↓ 1 callers
Method
SetDimension
deepspeed/ops/csrc/includes/dropout.h:76
↓ 1 callers
Method
SetSeed
deepspeed/ops/csrc/transformer/inference/includes/inference_context.h:242
↓ 1 callers
Method
SetTokenizer
(self, tokenizer)
DeepSpeedExample/megatron/deprecated_data_utils/datasets.py:360
↓ 1 callers
Method
SetTrainingMode
deepspeed/ops/csrc/transformer/ds_transformer_cuda.cpp:557
↓ 1 callers
Method
Step_SGD_cpu
deepspeed/ops/csrc/adam/cpu_adam.cpp:1616
↓ 1 callers
Method
Step_cpu
deepspeed/ops/csrc/adagrad/cpu_adagrad.cpp:25
↓ 1 callers
Method
Step_cpu
deepspeed/ops/csrc/adam/cpu_adam.cpp:1657
↓ 1 callers
Method
Step_fpga
deepspeed/ops/csrc/adam/cpu_adam.cpp:1436
↓ 1 callers
Method
Step_fpga_adagrad
deepspeed/ops/csrc/adam/cpu_adam.cpp:1186
↓ 1 callers
Method
Step_fpga_adagrad_comp
deepspeed/ops/csrc/adam/cpu_adam.cpp:1035
↓ 1 callers
Method
Step_fpga_comp
deepspeed/ops/csrc/adam/cpu_adam.cpp:708
↓ 1 callers
Method
Step_fpga_sgd
deepspeed/ops/csrc/adam/cpu_adam.cpp:1308
↓ 1 callers
Method
Step_fpga_sgd_comp
deepspeed/ops/csrc/adam/cpu_adam.cpp:879
↓ 1 callers
Method
Step_gpu
deepspeed/ops/csrc/adam/cpu_adam.cpp:1585
↓ 1 callers
Method
SynchComm
deepspeed/ops/csrc/transformer/inference/includes/inference_context.h:251
↓ 1 callers
Method
TestGemmFP16
deepspeed/ops/csrc/includes/context.h:102
↓ 1 callers
Method
TokenToId
ascii character to index
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:527
↓ 1 callers
Method
TokenToId
(self, token, type_token=False)
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:902
↓ 1 callers
Method
Train
train a tokenizer on a data corpus and save model for future use
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:441
↓ 1 callers
Method
Train
train sentencepiece model on corpus using word frequencies
DeepSpeedExample/megatron/deprecated_data_utils/tokenization.py:649
↓ 1 callers
Function
WARP_SHFL_XOR_NATIVE
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:50
↓ 1 callers
Function
WARP_SHFL_XOR_NATIVE
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.h:50
↓ 1 callers
Method
__add_grad_to_ipg_bucket
(self, param: Parameter)
deepspeed/runtime/zero/stage3.py:1119
↓ 1 callers
Method
__avg_scatter_grads
average gradients and scatter partitions across ranks
deepspeed/runtime/zero/stage3.py:1168
↓ 1 callers
Function
__best_fitting_dtype
(vocab_size=None)
DeepSpeedExample/megatron/data/indexed_dataset.py:24
↓ 1 callers
Function
__best_fitting_dtype
(vocab_size=None)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:33
↓ 1 callers
Method
__fixed_discrete_get_difficulty
(self, global_steps)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:122
↓ 1 callers
Method
__fixed_root_get_value
(self, global_steps, root_degree=None)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:20
← previous
next →
1,101–1,200 of 4,989, ranked by callers