MCPcopy Create free account

hub / github.com/Fugaku-LLM/DeepSpeedFugaku / types & classes

Types & classes129 in github.com/Fugaku-LLM/DeepSpeedFugaku

↓ 25 callersClassSubPolicy
Definition of a SubPolicy. A SubPolicy consists of two augmentation operations, each of those parametrized as operation, probability, magnitu
megatron/data/autoaugment.py:113
↓ 6 callersClassBlendableDataset
megatron/data/blendable_dataset.py:27
↓ 4 callersClassGPTModel
GPT-2 Language model.
megatron/model/gpt_model.py:67
↓ 3 callersClassDeepSpeedCheckpoint
tools/convert_checkpoint/deepspeed_checkpoint.py:25
↓ 3 callersClassOpenRetreivalDataStore
Serializable data structure for holding data for blocks -- embeddings and necessary metadata for Retriever
megatron/data/realm_index.py:17
↓ 3 callersClassParallelTransformer
Transformer class.
megatron/model/transformer.py:686
↓ 3 callersClassPretrainedBertModel
BERT-based encoder for queries or contexts used for learned information retrieval.
megatron/model/biencoder_model.py:215
↓ 3 callersClassRaceDataset
tasks/race/data.py:19
↓ 2 callersClassICTDataset
Dataset containing sentences and their blocks for an inverse cloze task.
megatron/data/ict_dataset.py:48
↓ 2 callersClassIREncoderBertModel
BERT-based encoder for queries or blocks used for learned information retrieval.
megatron/model/realm_model.py:147
↓ 2 callersClassIdentityLayer
megatron/mpu/tests/commons.py:27
↓ 2 callersClassIdentityLayer2D
megatron/mpu/tests/test_layers.py:176
↓ 2 callersClassIdentityLayer3D
megatron/mpu/tests/test_layers.py:318
↓ 2 callersClassIndexedDataset
Loader for IndexedDataset
megatron/data/indexed_dataset.py:132
↓ 2 callersClassMMapIndexedDataset
megatron/data/indexed_dataset.py:375
↓ 2 callersClassMegatronPretrainingSampler
megatron/data/data_samplers.py:57
↓ 2 callersClassParallelAttention
Parallel self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same size.
megatron/model/transformer.py:131
↓ 2 callersClassParallelMLP
MLP. MLP will take the input with h hidden state, project it to 4*h hidden dimension, perform nonlinear transformation, and project the s
megatron/model/transformer.py:60
↓ 2 callersClassVitModel
Vision Transformer Model.
megatron/model/vit_model.py:123
↓ 2 callersClass_BertWordPieceTokenizer
Original BERT wordpiece tokenizer.
megatron/tokenizer/tokenizer.py:134
↓ 1 callersClassAllGatherCoalescedHandle
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:484
↓ 1 callersClassAllGatherHandle
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:471
↓ 1 callersClassAnnealingLR
Anneals the learning rate.
megatron/learning_rates.py:22
↓ 1 callersClassBasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
megatron/tokenizer/bert_tokenization.py:188
↓ 1 callersClassBertDataset
megatron/data/bert_dataset.py:36
↓ 1 callersClassBertLMHead
Masked LM head for Bert Arguments: mpu_vocab_size: model parallel size of vocabulary. hidden_size: hidden size init_metho
megatron/model/bert_model.py:59
↓ 1 callersClassBertModel
Bert Language model.
megatron/model/bert_model.py:125
↓ 1 callersClassBiEncoderModel
Bert-based module for Biencoder model.
megatron/model/biencoder_model.py:43
↓ 1 callersClassBlockSampleData
A struct for fully describing a fixed-size block of data as used in REALM :param start_idx: for first sentence of the block :param end_idx: f
megatron/data/realm_dataset_utils.py:74
↓ 1 callersClassBlockSampleData
A struct for fully describing a fixed-size block of data as used in REALM :param start_idx: for first sentence of the block :param end_idx: f
megatron/data/biencoder_dataset_utils.py:84
↓ 1 callersClassBlockSamplesMapping
megatron/data/realm_dataset_utils.py:95
↓ 1 callersClassBlockSamplesMapping
megatron/data/biencoder_dataset_utils.py:105
↓ 1 callersClassClassification
megatron/model/classification.py:31
↓ 1 callersClassConstantGradScaler
megatron/optimizer/grad_scaler.py:54
↓ 1 callersClassConstantNumMicroBatches
megatron/microbatches.py:88
↓ 1 callersClassCpusRNGStatesTracker
Tracker for the cpus RNG states. Using the `add` method, a cpu rng state is initialized based on the input `seed` and is assigned to `name`.
megatron/mpu/random.py:207
↓ 1 callersClassCudaRNGStatesTracker
Tracker for the cuda RNG states. Using the `add` method, a cuda rng state is initialized based on the input `seed` and is assigned to `name`.
megatron/mpu/random.py:136
↓ 1 callersClassCustomDataLoader
tasks/orqa/natural_questions/nq.py:55
↓ 1 callersClassCustomLanguageVars
tools/preprocess_data.py:42
↓ 1 callersClassDynamicGradScaler
megatron/optimizer/grad_scaler.py:67
↓ 1 callersClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
megatron/model/language_model.py:108
↓ 1 callersClassEncoder
tools/preprocess_data.py:59
↓ 1 callersClassFP32Optimizer
megatron/optimizer/optimizer.py:480
↓ 1 callersClassFaissMIPSIndex
Wrapper object for a BlockData which similarity search via FAISS under the hood
megatron/data/realm_index.py:118
↓ 1 callersClassFloat16Module
megatron/model/module.py:150
↓ 1 callersClassFloat16OptimizerWithFloat16Params
Float16 optimizer for fp16 and bf16 data types. Arguments: optimizer: base optimizer such as Adam or SGD clip_grad: clip gradeint
megatron/optimizer/optimizer.py:178
↓ 1 callersClassFusedScaleMaskSoftmax
fused operation: scaling + mask + softmax Arguments: input_in_fp16: flag to indicate if input in fp16 data format. attn_mask_
megatron/model/fused_softmax.py:84
↓ 1 callersClassGPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level BPE
megatron/tokenizer/gpt2_tokenization.py:92
↓ 1 callersClassGPTDataset
megatron/data/gpt_dataset.py:149
↓ 1 callersClassGPTModelPipe
GPT-2 Language model.
megatron/model/gpt_model.py:191
↓ 1 callersClassICTBertModel
Bert-based module for Inverse Cloze task.
megatron/model/realm_model.py:38
↓ 1 callersClassIdentitySplitter
tools/preprocess_data.py:54
↓ 1 callersClassImageNetPolicy
Definition of an ImageNetPolicy. Implements a fixed AutoAugment data augmentation policy targeted at ImageNet training by randomly applying a
megatron/data/autoaugment.py:49
↓ 1 callersClassIndexBuilder
Object for taking one pass over a dataset and creating a BlockData of its embeddings
megatron/indexer.py:16
↓ 1 callersClassIndexedCachedDataset
megatron/data/indexed_dataset.py:216
↓ 1 callersClassIndexedDatasetBuilder
megatron/data/indexed_dataset.py:269
↓ 1 callersClassMMapIndexedDatasetBuilder
megatron/data/indexed_dataset.py:592
↓ 1 callersClassMegatronPretrainingRandomSampler
megatron/data/data_samplers.py:106
↓ 1 callersClassMemoryBuffer
Contiguous memory buffer. Allocate a contiguous memory of type `dtype` and size `numel`. It is used to reduce memory fragmentation. Usage
megatron/memory.py:37
↓ 1 callersClassMemoryBuffer
megatron/model/distributed.py:28
↓ 1 callersClassMultipleChoice
megatron/model/multiple_choice.py:31
↓ 1 callersClassNQDataset
Open Retrieval Question Answering evaluation using Google NQ dataset.
tasks/orqa/natural_questions/nq.py:174
↓ 1 callersClassORQAEvaluator
tasks/orqa/evaluate_utils.py:29
↓ 1 callersClassOpenRetrievalEvidenceDataset
Open Retrieval Evidence dataset class.
megatron/data/orqa_wiki_dataset.py:134
↓ 1 callersClassParallelTransformerLayer
A single transformer layer. Transformer layer takes input with size [b, s, h] and returns an output of the same size.
megatron/model/transformer.py:461
↓ 1 callersClassPooler
Pooler layer. Pool hidden states of a specific token (for example start of the sequence) and add a linear transformation followed by a tanh.
megatron/model/language_model.py:83
↓ 1 callersClassRampupBatchsizeNumMicroBatches
megatron/microbatches.py:105
↓ 1 callersClassT5Dataset
megatron/data/t5_dataset.py:29
↓ 1 callersClassT5LMHead
Masked LM head for T5 Arguments: mpu_vocab_size: model parallel size of vocabulary. hidden_size: hidden size init_method:
megatron/model/t5_model.py:56
↓ 1 callersClassT5Model
T5 Language model.
megatron/model/t5_model.py:86
↓ 1 callersClassTimers
Group of timers.
megatron/global_vars.py:298
↓ 1 callersClassTransformerLanguageModel
Transformer language model. Arguments: transformer_hparams: transformer hyperparameters vocab_size: vocabulary size max_s
megatron/model/language_model.py:296
↓ 1 callersClassVitMlpHead
Pooler layer. Pool hidden states of a specific token (for example start of the sequence) and add a linear transformation followed by a tanh.
megatron/model/vit_model.py:33
↓ 1 callersClassWordpieceTokenizer
Runs WordPiece tokenziation.
megatron/tokenizer/bert_tokenization.py:303
↓ 1 callersClass_GPT2BPETokenizer
Original GPT2 BPE tokenizer.
megatron/tokenizer/tokenizer.py:265
↓ 1 callersClass_JapaneseSentencePiece
megatron/tokenizer/tokenizer.py:299
↓ 1 callersClass_LMDataset
tasks/zeroshot_gpt/datasets.py:42
↓ 1 callersClass_LambadaDataset
tasks/zeroshot_gpt/datasets.py:81
↓ 1 callersClass_Timer
Timer.
megatron/global_vars.py:251
↓ 1 callersClass_Writer
megatron/data/indexed_dataset.py:381
ClassAbstractTokenizer
Abstract class for tokenizer.
megatron/tokenizer/tokenizer.py:76
ClassAdd
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:72
ClassAdd
megatron/fused_kernels/scaled_masked_softmax.h:57
ClassAllgatherFromDataParallelRegion
pretrain_ict.py:52
ClassAttnMaskType
megatron/enums.py:26
ClassAttnMaskType
megatron/model/enums.py:26
ClassAttnType
megatron/enums.py:22
ClassAttnType
megatron/model/enums.py:22
ClassCheckpointFunction
This function is adapted from torch.utils.checkpoint with two main changes: 1) torch.cuda.set_rng_state is replaced with `_set_cuda_
megatron/mpu/random.py:364
ClassColumnParallelLinear
Linear layer with column parallelism. The linear layer is defined as Y = XA + b. A is parallelized along its second dimension as A = [A_1, ..
megatron/mpu/layers.py:210
ClassDistributedDataParallel
DDP with contiguous buffers options to storre and accumulate gradients. This class: - has the potential to reduce memory fragmentation.
megatron/model/distributed.py:89
ClassDistributedDataParallelBase
Abstract class for DDP.
megatron/model/distributed.py:56
ClassDynamicLossScaler
megatron/fp16_deprecated/loss_scaler.py:22
ClassEmbeddingPipe
megatron/model/language_model.py:262
ClassFullTokenizer
Runs end-to-end tokenziation.
megatron/tokenizer/bert_tokenization.py:161
ClassFusedLayerNormAffineFunction
megatron/model/fused_layer_norm.py:31
ClassGLUEAbstractDataset
GLUE base dataset class.
tasks/glue/data.py:28
ClassGatheredParameters
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1513
ClassGeLUFunction
megatron/model/fused_bias_gelu.py:52
ClassIndex
megatron/data/indexed_dataset.py:376
next →1–100 of 129, ranked by callers