MCPcopy Index your code

hub / github.com/EleutherAI/gpt-neox / types & classes

Types & classes103 in github.com/EleutherAI/gpt-neox

↓ 10 callersClassFusedScaleMaskSoftmax
fused operation: scaling + mask + softmax Arguments: input_in_fp16: flag to indicate if input in fp16 data format. input_in_b
megatron/model/fused_softmax.py:92
↓ 3 callersClassBlendableDataset
megatron/data/blendable_dataset.py:29
↓ 3 callersClassGPT2ModelPipe
GPT2Model adapted for pipeline parallelism. The largest change is flattening the GPTModel class so we can express it as a sequence of layers
megatron/model/gpt2_model.py:88
↓ 2 callersClassGPT2Dataset
megatron/data/gpt2_dataset.py:29
↓ 2 callersClassIndexedDataset
Loader for IndexedDataset
megatron/data/indexed_dataset.py:133
↓ 2 callersClassLambda
megatron/model/utils.py:73
↓ 2 callersClassTee
Duplicate output to both stdout/err and file
megatron/logging.py:27
↓ 2 callersClassTimers
Group of timers.
megatron/utils.py:269
↓ 1 callersClassAliBi
megatron/model/positional_embeddings.py:95
↓ 1 callersClassAnnealingLR
Anneals the learning rate.
megatron/learning_rates.py:25
↓ 1 callersClassCharCounter
Wraps the data_iterator to count the number of characters in a batch
megatron/utils.py:454
↓ 1 callersClassCharLevelTokenizer
Character Level Tokenizer
megatron/tokenizer/tokenizer.py:308
↓ 1 callersClassDistributedBatchSampler
Similar to normal implementation of distributed sampler, except implementation is at the batch sampler level, instead of just the sampler leve
megatron/data/samplers.py:88
↓ 1 callersClassEncoder
tools/preprocess_data.py:41
↓ 1 callersClassEvalHarnessAdapter
An adapter to run NeoX models on LM Evaluation Harness (https://github.com/EleutherAI/lm-evaluation-harness) tasks. Args: model: A N
eval_tasks/eval_adapter.py:47
↓ 1 callersClassGEGLU
megatron/model/activations.py:122
↓ 1 callersClassGPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level BPE
megatron/tokenizer/gpt2_tokenization.py:90
↓ 1 callersClassGradientNoiseScale
A class to measure the gradient noise scale of a model while training (cf. https://arxiv.org/abs/1812.06162). The core thesis of the paper i
megatron/gradient_noise_scale/gradient_noise_scale.py:26
↓ 1 callersClassHFGPT2Tokenizer
Designed to Integrate the pretrained OpenAI GPT2 Tokenizers from HF
megatron/tokenizer/tokenizer.py:261
↓ 1 callersClassHFTokenizer
Designed to Integrate HF's Tokenizer library.
megatron/tokenizer/tokenizer.py:224
↓ 1 callersClassIndexedCachedDataset
megatron/data/indexed_dataset.py:218
↓ 1 callersClassIndexedDatasetBuilder
megatron/data/indexed_dataset.py:270
↓ 1 callersClassMMapIndexedDataset
megatron/data/indexed_dataset.py:342
↓ 1 callersClassMMapIndexedDatasetBuilder
megatron/data/indexed_dataset.py:562
↓ 1 callersClassNeoXArgs
data class containing all configurations NeoXArgs inherits from a number of small configuration classes
megatron/neox_arguments/arguments.py:108
↓ 1 callersClassNeoXArgsDeepspeedRunner
Args for deepspeed runner (deepspeed.launcher.runner). Every argument included here will be passed as command line argument to deepspeed.laun
megatron/neox_arguments/deepspeed_args.py:148
↓ 1 callersClassOverflowMonitor
Checks if the past n iterations have been skipped due to overflow, and exits training if that happens.
megatron/utils.py:341
↓ 1 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:71
↓ 1 callersClassParallelRelativePositionBias
T5 Relative Position Bias parallelized in the heads dimension Based on https://github.com/lucidrains/x-transformers/blob/6b93c21be0d0a679da6f7b96
megatron/mpu/layers.py:210
↓ 1 callersClassParallelSelfAttention
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:179
↓ 1 callersClassRotaryEmbedding
megatron/model/positional_embeddings.py:38
↓ 1 callersClassSM3
Implements SM3 algorithm. It has been proposed in `Memory-Efficient Adaptive Optimization`_. Arguments: params (iterable): iterable of
megatron/optimizers.py:20
↓ 1 callersClassSentencePieceTokenizer
Designed to Integrate SP's Tokenizer.
megatron/tokenizer/tokenizer.py:185
↓ 1 callersClassSequentialWrapper
Used to convert a deepspeed PipelineModule to an nn.Sequential like model whilst retaining activation checkpointing.
megatron/model/utils.py:82
↓ 1 callersClassSinusoidalPositionalEmbedding
megatron/model/positional_embeddings.py:19
↓ 1 callersClassSoftEmbedding
megatron/model/word_embeddings.py:185
↓ 1 callersClassSpatialGatingUnit
megatron/model/gmlp.py:53
↓ 1 callersClassTiktokenTokenizer
Tokenizer from OpenAI's tiktoken implementation
megatron/tokenizer/tokenizer.py:353
↓ 1 callersClassTimer
Timer.
megatron/utils.py:224
↓ 1 callersClassTinyAttention
megatron/model/gmlp.py:28
↓ 1 callersClassTokenizerArgs
tools/convert_to_hf.py:80
↓ 1 callersClass_GPT2BPETokenizer
Original GPT2 BPE tokenizer.
megatron/tokenizer/tokenizer.py:150
↓ 1 callersClass_Writer
megatron/data/indexed_dataset.py:348
↓ 1 callersClassmadgrad_wd
MADGRAD_: A Momentumized, Adaptive, Dual Averaged Gradient Method for Stochastic Optimization. .. _MADGRAD: https://arxiv.org/abs/2101.1
megatron/optimizers.py:242
ClassAbstractTokenizer
Abstract class for tokenizer.
megatron/tokenizer/tokenizer.py:86
ClassArXiv
tools/corpora.py:183
ClassBooks1
tools/corpora.py:218
ClassBooks3
tools/corpora.py:225
ClassC4
tools/corpora.py:267
ClassC4OpenWebText
tools/corpora.py:275
ClassCOLORS
tools/inspect_checkpoints.py:27
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:375
ClassDataDownloader
Dataset registry class to automatically download / extract datasets
tools/corpora.py:35
ClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum si
megatron/model/word_embeddings.py:24
ClassEmbeddingPipe
Extends Embedding to forward attention_mask through the pipeline.
megatron/model/word_embeddings.py:165
ClassEnron
tools/corpora.py:159
ClassEnwik8
tools/corpora.py:283
ClassEuroParl
tools/corpora.py:190
ClassFlashAttnQKVPackedFunc
megatron/model/flash_attention.py:108
ClassFreeLaw
tools/corpora.py:197
ClassGMLPBlock
megatron/model/gmlp.py:91
ClassGeLUFunction
megatron/model/activations.py:82
ClassGithub
tools/corpora.py:178
ClassHackerNews
tools/corpora.py:232
ClassIndex
megatron/data/indexed_dataset.py:343
ClassNeoXArgsDeepspeedConfig
Args for deepspeed config Every argument included here will be included in deepspeed config json #TODO this list is not complete as compa
megatron/neox_arguments/deepspeed_args.py:29
ClassNeoXArgsLRScheduler
LR Scheduler Arguments
megatron/neox_arguments/neox_args.py:415
ClassNeoXArgsLogging
Logging Arguments
megatron/neox_arguments/neox_args.py:452
ClassNeoXArgsModel
Model Arguments
megatron/neox_arguments/neox_args.py:88
ClassNeoXArgsOptimizer
Optimizer Arguments
megatron/neox_arguments/neox_args.py:365
ClassNeoXArgsOther
Misc. Arguments
megatron/neox_arguments/neox_args.py:537
ClassNeoXArgsParallelism
Parallelism Arguments
megatron/neox_arguments/neox_args.py:53
ClassNeoXArgsTemplate
megatron/neox_arguments/template.py:20
ClassNeoXArgsTextgen
Text Generation arguments
megatron/neox_arguments/neox_args.py:1035
ClassNeoXArgsTokenizer
Tokenizer Arguments
megatron/neox_arguments/neox_args.py:652
ClassNeoXArgsTraining
Training Arguments
megatron/neox_arguments/neox_args.py:682
ClassNiH
tools/corpora.py:204
ClassNormPipe
Just a helper class to pass presents through to the output when doing inference with a Pipe Parallel model
megatron/model/transformer.py:772
ClassOpenWebText2
tools/corpora.py:238
ClassParallelLinear
A Parallel Linear Layer transforming the transformer outputs from hidden_size -> vocab_size
megatron/model/transformer.py:137
ClassParallelLinearPipe
Another helper class to pass presents through to the output when doing inference with a Pipe Parallel model
megatron/model/transformer.py:760
ClassParallelTransformerLayer
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:588
ClassParallelTransformerLayerPipe
Extends ParallelTransformerLayer to forward attention_mask through the pipeline.
megatron/model/transformer.py:748
ClassPile
tools/corpora.py:170
ClassPileSubset
tools/corpora.py:165
ClassPubMed
tools/corpora.py:211
ClassRMSNorm
megatron/model/norms.py:34
ClassRandomSampler
Based off of pytorch RandomSampler and DistributedSampler. Essentially a RandomSampler, but this class lets the user set an epoch like Distrib
megatron/data/samplers.py:24
ClassRowParallelLinear
Linear layer with row parallelism. The linear layer is defined as Y = XA + b. A is parallelized along its first dimension and X along its sec
megatron/mpu/layers.py:557
ClassScaleNorm
megatron/model/norms.py:78
ClassScaledMaskedSoftmax
Fused operation which performs following three operations in sequence 1. Scale the tensor. 2. Apply the mask. 3. Perform softmax.
megatron/model/fused_softmax.py:56
ClassScaledUpperTriangMaskedSoftmax
Fused operation which performs following three operations in sequence 1. Scale the tensor. 2. Apply upper triangular mask (typically used
megatron/model/fused_softmax.py:24
ClassSoftmaxFusionTypes
megatron/model/fused_softmax.py:86
ClassStackExchange
tools/corpora.py:246
ClassUbuntuIRC
tools/corpora.py:253
ClassVocabParallelEmbedding
Embedding parallelized in the vocabulary dimension. This is mainly adapted from torch.nn.Embedding and all the default values are kept. A
megatron/mpu/layers.py:95
ClassVocabUtility
Split the vocabulary into `world_size` chunks amd return the first and last index of the vocabulary belonging to the `rank` partition: Note th
megatron/mpu/utils.py:56
ClassYoutubeSubtitles
tools/corpora.py:260
Class_CopyToModelParallelRegion
Pass the input to the model parallel region.
megatron/mpu/mappings.py:110
Class_GatherFromModelParallelRegion
Gather the input from model parallel region and concatinate.
megatron/mpu/mappings.py:158
next →1–100 of 103, ranked by callers