Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fugaku-LLM/DeepSpeedFugaku
/ types & classes
Types & classes
129 in github.com/Fugaku-LLM/DeepSpeedFugaku
⨍
Functions
1,158
◇
Types & classes
129
↓ 25 callers
Class
SubPolicy
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 callers
Class
BlendableDataset
megatron/data/blendable_dataset.py:27
↓ 4 callers
Class
GPTModel
GPT-2 Language model.
megatron/model/gpt_model.py:67
↓ 3 callers
Class
DeepSpeedCheckpoint
tools/convert_checkpoint/deepspeed_checkpoint.py:25
↓ 3 callers
Class
OpenRetreivalDataStore
Serializable data structure for holding data for blocks -- embeddings and necessary metadata for Retriever
megatron/data/realm_index.py:17
↓ 3 callers
Class
ParallelTransformer
Transformer class.
megatron/model/transformer.py:686
↓ 3 callers
Class
PretrainedBertModel
BERT-based encoder for queries or contexts used for learned information retrieval.
megatron/model/biencoder_model.py:215
↓ 3 callers
Class
RaceDataset
tasks/race/data.py:19
↓ 2 callers
Class
ICTDataset
Dataset containing sentences and their blocks for an inverse cloze task.
megatron/data/ict_dataset.py:48
↓ 2 callers
Class
IREncoderBertModel
BERT-based encoder for queries or blocks used for learned information retrieval.
megatron/model/realm_model.py:147
↓ 2 callers
Class
IdentityLayer
megatron/mpu/tests/commons.py:27
↓ 2 callers
Class
IdentityLayer2D
megatron/mpu/tests/test_layers.py:176
↓ 2 callers
Class
IdentityLayer3D
megatron/mpu/tests/test_layers.py:318
↓ 2 callers
Class
IndexedDataset
Loader for IndexedDataset
megatron/data/indexed_dataset.py:132
↓ 2 callers
Class
MMapIndexedDataset
megatron/data/indexed_dataset.py:375
↓ 2 callers
Class
MegatronPretrainingSampler
megatron/data/data_samplers.py:57
↓ 2 callers
Class
ParallelAttention
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 callers
Class
ParallelMLP
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 callers
Class
VitModel
Vision Transformer Model.
megatron/model/vit_model.py:123
↓ 2 callers
Class
_BertWordPieceTokenizer
Original BERT wordpiece tokenizer.
megatron/tokenizer/tokenizer.py:134
↓ 1 callers
Class
AllGatherCoalescedHandle
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:484
↓ 1 callers
Class
AllGatherHandle
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:471
↓ 1 callers
Class
AnnealingLR
Anneals the learning rate.
megatron/learning_rates.py:22
↓ 1 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
megatron/tokenizer/bert_tokenization.py:188
↓ 1 callers
Class
BertDataset
megatron/data/bert_dataset.py:36
↓ 1 callers
Class
BertLMHead
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 callers
Class
BertModel
Bert Language model.
megatron/model/bert_model.py:125
↓ 1 callers
Class
BiEncoderModel
Bert-based module for Biencoder model.
megatron/model/biencoder_model.py:43
↓ 1 callers
Class
BlockSampleData
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 callers
Class
BlockSampleData
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 callers
Class
BlockSamplesMapping
megatron/data/realm_dataset_utils.py:95
↓ 1 callers
Class
BlockSamplesMapping
megatron/data/biencoder_dataset_utils.py:105
↓ 1 callers
Class
Classification
megatron/model/classification.py:31
↓ 1 callers
Class
ConstantGradScaler
megatron/optimizer/grad_scaler.py:54
↓ 1 callers
Class
ConstantNumMicroBatches
megatron/microbatches.py:88
↓ 1 callers
Class
CpusRNGStatesTracker
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 callers
Class
CudaRNGStatesTracker
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 callers
Class
CustomDataLoader
tasks/orqa/natural_questions/nq.py:55
↓ 1 callers
Class
CustomLanguageVars
tools/preprocess_data.py:42
↓ 1 callers
Class
DynamicGradScaler
megatron/optimizer/grad_scaler.py:67
↓ 1 callers
Class
Embedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
megatron/model/language_model.py:108
↓ 1 callers
Class
Encoder
tools/preprocess_data.py:59
↓ 1 callers
Class
FP32Optimizer
megatron/optimizer/optimizer.py:480
↓ 1 callers
Class
FaissMIPSIndex
Wrapper object for a BlockData which similarity search via FAISS under the hood
megatron/data/realm_index.py:118
↓ 1 callers
Class
Float16Module
megatron/model/module.py:150
↓ 1 callers
Class
Float16OptimizerWithFloat16Params
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 callers
Class
FusedScaleMaskSoftmax
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 callers
Class
GPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level BPE
megatron/tokenizer/gpt2_tokenization.py:92
↓ 1 callers
Class
GPTDataset
megatron/data/gpt_dataset.py:149
↓ 1 callers
Class
GPTModelPipe
GPT-2 Language model.
megatron/model/gpt_model.py:191
↓ 1 callers
Class
ICTBertModel
Bert-based module for Inverse Cloze task.
megatron/model/realm_model.py:38
↓ 1 callers
Class
IdentitySplitter
tools/preprocess_data.py:54
↓ 1 callers
Class
ImageNetPolicy
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 callers
Class
IndexBuilder
Object for taking one pass over a dataset and creating a BlockData of its embeddings
megatron/indexer.py:16
↓ 1 callers
Class
IndexedCachedDataset
megatron/data/indexed_dataset.py:216
↓ 1 callers
Class
IndexedDatasetBuilder
megatron/data/indexed_dataset.py:269
↓ 1 callers
Class
MMapIndexedDatasetBuilder
megatron/data/indexed_dataset.py:592
↓ 1 callers
Class
MegatronPretrainingRandomSampler
megatron/data/data_samplers.py:106
↓ 1 callers
Class
MemoryBuffer
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 callers
Class
MemoryBuffer
megatron/model/distributed.py:28
↓ 1 callers
Class
MultipleChoice
megatron/model/multiple_choice.py:31
↓ 1 callers
Class
NQDataset
Open Retrieval Question Answering evaluation using Google NQ dataset.
tasks/orqa/natural_questions/nq.py:174
↓ 1 callers
Class
ORQAEvaluator
tasks/orqa/evaluate_utils.py:29
↓ 1 callers
Class
OpenRetrievalEvidenceDataset
Open Retrieval Evidence dataset class.
megatron/data/orqa_wiki_dataset.py:134
↓ 1 callers
Class
ParallelTransformerLayer
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 callers
Class
Pooler
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 callers
Class
RampupBatchsizeNumMicroBatches
megatron/microbatches.py:105
↓ 1 callers
Class
T5Dataset
megatron/data/t5_dataset.py:29
↓ 1 callers
Class
T5LMHead
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 callers
Class
T5Model
T5 Language model.
megatron/model/t5_model.py:86
↓ 1 callers
Class
Timers
Group of timers.
megatron/global_vars.py:298
↓ 1 callers
Class
TransformerLanguageModel
Transformer language model. Arguments: transformer_hparams: transformer hyperparameters vocab_size: vocabulary size max_s
megatron/model/language_model.py:296
↓ 1 callers
Class
VitMlpHead
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 callers
Class
WordpieceTokenizer
Runs WordPiece tokenziation.
megatron/tokenizer/bert_tokenization.py:303
↓ 1 callers
Class
_GPT2BPETokenizer
Original GPT2 BPE tokenizer.
megatron/tokenizer/tokenizer.py:265
↓ 1 callers
Class
_JapaneseSentencePiece
megatron/tokenizer/tokenizer.py:299
↓ 1 callers
Class
_LMDataset
tasks/zeroshot_gpt/datasets.py:42
↓ 1 callers
Class
_LambadaDataset
tasks/zeroshot_gpt/datasets.py:81
↓ 1 callers
Class
_Timer
Timer.
megatron/global_vars.py:251
↓ 1 callers
Class
_Writer
megatron/data/indexed_dataset.py:381
Class
AbstractTokenizer
Abstract class for tokenizer.
megatron/tokenizer/tokenizer.py:76
Class
Add
megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:72
Class
Add
megatron/fused_kernels/scaled_masked_softmax.h:57
Class
AllgatherFromDataParallelRegion
pretrain_ict.py:52
Class
AttnMaskType
megatron/enums.py:26
Class
AttnMaskType
megatron/model/enums.py:26
Class
AttnType
megatron/enums.py:22
Class
AttnType
megatron/model/enums.py:22
Class
CheckpointFunction
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
Class
ColumnParallelLinear
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
Class
DistributedDataParallel
DDP with contiguous buffers options to storre and accumulate gradients. This class: - has the potential to reduce memory fragmentation.
megatron/model/distributed.py:89
Class
DistributedDataParallelBase
Abstract class for DDP.
megatron/model/distributed.py:56
Class
DynamicLossScaler
megatron/fp16_deprecated/loss_scaler.py:22
Class
EmbeddingPipe
megatron/model/language_model.py:262
Class
FullTokenizer
Runs end-to-end tokenziation.
megatron/tokenizer/bert_tokenization.py:161
Class
FusedLayerNormAffineFunction
megatron/model/fused_layer_norm.py:31
Class
GLUEAbstractDataset
GLUE base dataset class.
tasks/glue/data.py:28
Class
GatheredParameters
DeepSpeed/deepspeed/runtime/zero/partition_parameters.py:1513
Class
GeLUFunction
megatron/model/fused_bias_gelu.py:52
Class
Index
megatron/data/indexed_dataset.py:376
next →
1–100 of 129, ranked by callers