Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fugaku-LLM/DeepSpeedFugaku
/ functions
Functions
1,158 in github.com/Fugaku-LLM/DeepSpeedFugaku
⨍
Functions
1,158
◇
Types & classes
129
↓ 1 callers
Function
build_sample
Convert to numpy and return a sample consumed by the batch producer.
megatron/data/orqa_wiki_dataset.py:117
↓ 1 callers
Function
build_sample
Convert to numpy and return a sample consumed by the batch producer.
tasks/orqa/natural_questions/nq.py:154
↓ 1 callers
Function
build_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed.
megatron/data/orqa_wiki_dataset.py:80
↓ 1 callers
Function
build_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed. TODO: Design modular interface to reuse this function. This is getting
tasks/orqa/natural_questions/nq.py:114
↓ 1 callers
Function
build_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
megatron/data/orqa_wiki_dataset.py:63
↓ 1 callers
Function
build_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/data_utils.py:48
↓ 1 callers
Function
build_tokens_types_paddings_from_text
Build token types and paddings, trim if needed, and pad if needed.
tasks/orqa/natural_questions/nq.py:102
↓ 1 callers
Function
build_train_valid_test_datasets
Build train, valid, and test datasets. Args: data_prefix (list[str] | str): paths to dataset (ex: ['dataset/ja_wiki_text', 'd
megatron/data/gpt_dataset.py:34
↓ 1 callers
Function
build_training_sample
Build training sample. Arguments: sample: A list of sentences in which each sentence is a list token ids. target_seq_length: Desi
megatron/data/t5_dataset.py:94
↓ 1 callers
Function
build_training_sample
Biuld training sample. Arguments: sample: A list of sentences in which each sentence is a list token ids. target_seq_length: Desi
megatron/data/bert_dataset.py:98
↓ 1 callers
Function
bytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
megatron/tokenizer/gpt2_tokenization.py:55
↓ 1 callers
Function
calc_params_l2_norm
Calculate l2 norm of parameters
megatron/utils.py:57
↓ 1 callers
Function
calc_threshold
(p, l)
tasks/ensemble_classifier.py:48
↓ 1 callers
Function
calculate_correct_answers
Calculate correct over total answers
tasks/vision/eval_utils.py:67
↓ 1 callers
Function
calculate_mos_loss
(args, stu_output, teacher_model, tokens, position_ids, attention_mask)
pretrain_gpt.py:265
↓ 1 callers
Function
check_checkpoint_args
Ensure fixed arguments for a model are the same for the input arguments and the one retrieved from checkpoint.
megatron/checkpointing.py:48
↓ 1 callers
Function
checkpoint_throughput_calculator
(model, latency_second)
megatron/utils.py:271
↓ 1 callers
Function
classification
()
tasks/vision/classification.py:26
↓ 1 callers
Function
clean_ngrams_below_threshold
(args, ngrams_below_threshold, dedup_file, \ dedup_key)
tools/openwebtext/filter_ngrams.py:342
↓ 1 callers
Function
clip_grad_norm_fp32
Clips gradient norm of an iterable of parameters whose gradients are in fp32. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm
megatron/optimizer/clip_grads.py:40
↓ 1 callers
Function
collect_active_timers
(timers: Timers)
megatron/timer/timer.py:74
↓ 1 callers
Function
command_exists
(cmd)
pretrain_gpt.py:361
↓ 1 callers
Function
compile_helper
Compile helper function ar runtime. Make sure this is invoked on a single process.
megatron/data/dataset_utils.py:77
↓ 1 callers
Function
compute_n1_n2
megatron/fused_kernels/layer_norm_cuda.cpp:28
↓ 1 callers
Function
compute_tasks_ngrams
(args, ngrams)
tools/openwebtext/filter_ngrams.py:273
↓ 1 callers
Function
copy_to_tensor_model_parallel_region
(input_)
megatron/mpu/mappings.py:144
↓ 1 callers
Function
count_zeros_fp32
(parameters)
megatron/optimizer/clip_grads.py:137
↓ 1 callers
Function
create_tokens_and_tokentypes
Merge segments A and B, add [CLS] and [SEP] and build tokentypes.
megatron/data/dataset_utils.py:142
↓ 1 callers
Function
debug_rank0
(msg: str)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:59
↓ 1 callers
Function
domain_is_in_blacklist
(url)
tools/openwebtext/blacklist_urls.py:138
↓ 1 callers
Function
ds_inference
(model, args)
tools/generate_samples_gpt.py:154
↓ 1 callers
Function
dump_data
(datum, name_list=[])
tools/convert_checkpoint/inspect_checkpoint.py:7
↓ 1 callers
Method
embed_block
Embed a batch of tokens using the block model
megatron/model/realm_model.py:81
↓ 1 callers
Method
embed_query
Embed a batch of tokens using the query model
megatron/model/realm_model.py:72
↓ 1 callers
Method
end_document
(self)
megatron/data/indexed_dataset.py:296
↓ 1 callers
Function
ensemble_predictions
(args)
tasks/ensemble_classifier.py:120
↓ 1 callers
Function
ensure_directory_exists
Build filename's path if it does not already exists.
megatron/checkpointing.py:81
↓ 1 callers
Function
evaluate
Evaluation.
megatron/training.py:1425
↓ 1 callers
Function
evaluate
Evaluation.
tasks/zeroshot_gpt/evaluate.py:128
↓ 1 callers
Function
evaluate_and_print_results
Evaluate and print results on screen.
tasks/zeroshot_gpt/evaluate.py:154
↓ 1 callers
Function
exscan_from_cumsum_
(arr)
megatron/data/indexed_dataset.py:343
↓ 1 callers
Function
extention_is_in_blacklist
(url)
tools/openwebtext/blacklist_urls.py:214
↓ 1 callers
Function
external_parameters
(self)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:74
↓ 1 callers
Method
faiss_wrapper
(self)
tasks/orqa/evaluate_utils.py:67
↓ 1 callers
Function
filter_corpus
(filename, out_filename, print_interval=10000)
tools/openwebtext/cleanup_dataset.py:45
↓ 1 callers
Function
find_pair_urls_parallel
(args, lshcache, url_doc)
tools/openwebtext/find_duplicates.py:132
↓ 1 callers
Function
find_pair_urls_sequential
(args, lshcache, url_doc)
tools/openwebtext/find_duplicates.py:163
↓ 1 callers
Function
finish_mpu_init
()
megatron/initialize.py:60
↓ 1 callers
Function
float16_to_fp32
Convert fp16/bf16 `val` to fp32
megatron/model/module.py:137
↓ 1 callers
Method
forward
(ctx, inputs, mask, scale)
megatron/model/fused_softmax.py:61
↓ 1 callers
Method
forward
(self, hidden_states, sequence_index=0)
megatron/model/language_model.py:99
↓ 1 callers
Function
forward_step
Forward step.
tasks/zeroshot_gpt/evaluate.py:85
↓ 1 callers
Function
gather_MNLI_results
(result_path)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:21
↓ 1 callers
Function
gather_QQP_results
(result_path)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:55
↓ 1 callers
Function
gather_finetune_results
(result_path)
examples/data_efficiency/bert/finetune/ds_finetune_gather_result.py:102
↓ 1 callers
Function
gather_from_tensor_model_parallel_region
(input_)
megatron/mpu/mappings.py:156
↓ 1 callers
Function
gather_split_1d_tensor
Opposite of above function, gather values from model parallel ranks.
megatron/mpu/random.py:121
↓ 1 callers
Function
gelu_impl
OpenAI's gelu implementation.
megatron/model/utils.py:65
↓ 1 callers
Function
generate_and_write_samples_unconditional
(model, latencies=[], single_token_latency=[], model_latencies=[])
megatron/text_generation_utils.py:372
↓ 1 callers
Method
generate_query_vectors
(self, qa_data, split)
tasks/orqa/evaluate_utils.py:84
↓ 1 callers
Function
generate_samples_input_from_file
(model)
megatron/text_generation_utils.py:87
↓ 1 callers
Function
generate_samples_interactive
(model, print_frequency=24)
megatron/text_generation_utils.py:224
↓ 1 callers
Function
generate_samples_unconditional
(model, latencies=[], model_latencies=[], single_token_latency=[])
megatron/text_generation_utils.py:325
↓ 1 callers
Method
get
(self)
megatron/microbatches.py:77
↓ 1 callers
Function
get_a_and_b_segments
Divide sample into a and b segments.
megatron/data/dataset_utils.py:90
↓ 1 callers
Function
get_args
()
tools/preprocess_data.py:98
↓ 1 callers
Function
get_batch
Build the batch.
pretrain_bert.py:53
↓ 1 callers
Function
get_batch
Build the batch.
pretrain_t5.py:44
↓ 1 callers
Function
get_batch
Generate a batch
pretrain_gpt.py:94
↓ 1 callers
Function
get_batch
Build the batch.
pretrain_vit.py:35
↓ 1 callers
Function
get_batch
Generate batch from context tokens.
megatron/text_generation_utils.py:36
↓ 1 callers
Function
get_bias_dropout_add
(training)
megatron/model/transformer.py:443
↓ 1 callers
Function
get_block_samples_mapping
Get samples mapping for a dataset over fixed size blocks. This function also requires a dataset of the titles for the source documents since their
megatron/data/realm_dataset_utils.py:110
↓ 1 callers
Function
get_current_global_batch_size
()
megatron/global_vars.py:58
↓ 1 callers
Method
get_current_global_batch_size
(self)
megatron/microbatches.py:80
↓ 1 callers
Function
get_detokenizer
(path)
tasks/zeroshot_gpt/detokenizer.py:77
↓ 1 callers
Method
get_doc_idx
(self)
megatron/data/indexed_dataset.py:571
↓ 1 callers
Method
get_evidence_dataset
(self)
tasks/orqa/evaluate_utils.py:64
↓ 1 callers
Method
get_evidence_embedding
(self)
tasks/orqa/evaluate_utils.py:60
↓ 1 callers
Function
get_ict_batch
(data_iterator)
megatron/data/biencoder_dataset_utils.py:49
↓ 1 callers
Function
get_indexed_dataset_
Build indexed dataset.
megatron/data/gpt_dataset.py:133
↓ 1 callers
Function
get_learning_rate_scheduler
Build the learning rate scheduler.
megatron/training.py:413
↓ 1 callers
Method
get_loss_scale
The output should be a cuda tensor of size 1.
megatron/optimizer/optimizer.py:110
↓ 1 callers
Method
get_lr
Learning rate decay functions from: https://openreview.net/pdf?id=BJYwwY9ll pg. 4
megatron/learning_rates.py:62
↓ 1 callers
Function
get_megatron_optimizer
(model)
megatron/optimizer/__init__.py:57
↓ 1 callers
Function
get_model_provider
Based on evaluation metric set the parallel-output flag and return the model provider.
tasks/zeroshot_gpt/evaluate.py:40
↓ 1 callers
Function
get_new_tensor_fn_for_dtype
(dtype: torch.dtype)
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:204
↓ 1 callers
Function
get_ngrams_below_threshold
(args, ngrams, ngrams_below_threshold, \ dedup_file, dedup_key, ngrams_freq_sorted)
tools/openwebtext/filter_ngrams.py:299
↓ 1 callers
Function
get_nq_dataset
(qa_data, split)
tasks/orqa/natural_questions/nq.py:33
↓ 1 callers
Function
get_one_epoch_dataloader
Specifically one epoch to be used in an indexing job.
megatron/data/biencoder_dataset_utils.py:23
↓ 1 callers
Function
get_one_epoch_nq_dataloader
Data loader. Note that batch-size is the local (per GPU) batch-size. NOTE: This dataloader is not distributed !!!
tasks/orqa/natural_questions/nq.py:78
↓ 1 callers
Function
get_open_retrieval_batch
(data_iterator)
megatron/data/orqa_wiki_dataset.py:40
↓ 1 callers
Function
get_parallel_checkpoint_name
(path)
tools/merge_mp_partitions.py:134
↓ 1 callers
Function
get_pointers_with_total
Return a numpy array of type np.dtype giving the byte offsets. Multiplies values in the sizes array by elemsize (bytes), and then computes an
megatron/data/indexed_dataset.py:353
↓ 1 callers
Function
get_rank
()
megatron/arguments.py:27
↓ 1 callers
Function
get_threshold
(all_predictions, all_labels, one_threshold=False)
tasks/ensemble_classifier.py:36
↓ 1 callers
Method
get_tokens
(self, text)
tasks/zeroshot_gpt/datasets.py:99
↓ 1 callers
Function
git_ds_info
()
pretrain_gpt.py:366
↓ 1 callers
Function
infer_dataset_impl
(path)
megatron/data/indexed_dataset.py:40
↓ 1 callers
Method
init_state_dict_from_bert
Initialize the state from a pretrained BERT model on iteration zero of ICT pretraining
megatron/model/realm_model.py:117
← previous
next →
401–500 of 1,158, ranked by callers