MCPcopy Create free account

hub / github.com/EleutherAI/gpt-neox / functions

Functions652 in github.com/EleutherAI/gpt-neox

Method__init__
( self, model, batch_size_small, n_batches=10, beta=0.99, cpu_
megatron/gradient_noise_scale/gradient_noise_scale.py:58
Method__init__
( self, vocab_file, merges_file, errors="replace", special_tokens=None
megatron/tokenizer/gpt2_tokenization.py:179
Method__init__
(self, name)
megatron/tokenizer/tokenizer.py:89
Method__init__
(self, vocab_file, merge_file)
megatron/tokenizer/tokenizer.py:153
Method__init__
(self, vocab_file)
megatron/tokenizer/tokenizer.py:188
Method__init__
(self, vocab_file=None, fast=True)
megatron/tokenizer/tokenizer.py:264
Method__init__
(self, vocab_size)
megatron/tokenizer/tokenizer.py:311
Method__init__
(self, vocab_file)
megatron/tokenizer/tokenizer.py:361
Method__init__
( self, neox_args, num_embeddings, embedding_dim, init_method=init.xavier_normal_ )
megatron/mpu/layers.py:106
Method__init__
( self, neox_args, scale, causal=True, num_buckets=32, max_dis
megatron/mpu/layers.py:224
Method__init__
( self, neox_args, input_size, output_size, bias=True, gather_
megatron/mpu/layers.py:399
Method__init__
(self, model, forward_step_fn, neox_args, batch_size=None)
eval_tasks/eval_adapter.py:58
Method__iter__
(self)
megatron/utils.py:470
Method__iter__
(self)
megatron/data/samplers.py:68
Method__iter__
(self)
megatron/data/samplers.py:127
Method__len__
(self)
megatron/data/gpt2_dataset.py:70
Method__len__
(self)
megatron/data/samplers.py:81
Method__len__
(self)
megatron/data/blendable_dataset.py:69
Method__len__
(self)
megatron/data/indexed_dataset.py:198
Method__len__
(self)
megatron/data/indexed_dataset.py:460
Method__len__
(self)
megatron/data/indexed_dataset.py:497
Method__len__
(self)
megatron/tokenizer/gpt2_tokenization.py:207
Method__next__
(self)
megatron/utils.py:473
Method__post_init__
after initialization of default or loaded values a number of functions are performed in order to calculate values, assert con
megatron/neox_arguments/arguments.py:118
Method__setstate__
(self, state)
megatron/data/indexed_dataset.py:475
Function_bias_dropout_add
(x, bias, residual, prob)
megatron/model/fused_bias_dropout.py:38
Function_build_sample_idx
Sample index mapping is a 2D array with sizes [number-of-samples + 1, 2] where [..., 0] contains the index into `doc_idx` and [..., 1] is the
megatron/data/gpt2_dataset.py:248
Method_collate
(x)
eval_tasks/eval_adapter.py:146
Function_download_file
(*args, **kwargs)
eval_tasks/eval_adapter.py:22
Function_init_autoresume
Set autoresume start time.
megatron/initialize.py:195
Method_logits_helper
Just a wrapper to massage inputs/outputs from pipeline.
megatron/model/gpt2_model.py:265
Method_loglikelihood_tokens
In this method, the model doesn't do any generation, but just returns log likelihoods for the next token, which eval harness uses to
eval_tasks/eval_adapter.py:176
Method_model_generate
(self, context, max_length, eos_token_id)
eval_tasks/eval_adapter.py:359
Function_post_transformer_block
(args)
megatron/model/gpt2_model.py:80
Function_pre_transformer_block
(args)
megatron/model/gpt2_model.py:73
Method_rescale_parameters
Rescale parameters to convert SP initialization to μP initialization. Warning: This method is NOT idempotent and should be called only once
megatron/mpu/layers.py:497
Methodadd_item
(self, np_array)
megatron/data/indexed_dataset.py:573
Methodadd_tokentype_embeddings
Add token-type embedding. This function is provided so we can add token-type embeddings in case the pretrained model does not have it.
megatron/model/word_embeddings.py:116
Methodall_config
returns variables of all args
megatron/neox_arguments/arguments.py:571
Functionapply_rotary_pos_emb
(q, k, cos, sin, offset: int = 0)
megatron/model/positional_embeddings.py:77
Functionapply_rotary_pos_emb_torch
( q, k, cos, sin, offset: int = 0 )
megatron/model/positional_embeddings.py:85
Methodbackward
(ctx, output_grads)
megatron/model/fused_softmax.py:45
Methodbackward
(ctx, dout, *args)
megatron/model/flash_attention.py:146
Methodbackward
(ctx, grad_output)
megatron/mpu/cross_entropy.py:94
Methodbackward
(ctx, grad_output)
megatron/mpu/mappings.py:122
Methodbackward
(ctx, grad_output)
megatron/mpu/mappings.py:138
Methodbackward
(ctx, grad_output)
megatron/mpu/mappings.py:154
Methodbackward
(ctx, grad_output)
megatron/mpu/mappings.py:170
Methodbase_dir
base data directory
tools/corpora.py:70
Methodbatch_size
(self)
eval_tasks/eval_adapter.py:119
Functionbias_dropout_add_fused_inference
( x: Tensor, bias: Tensor, residual: Optional[Tensor], prob: float )
megatron/model/fused_bias_dropout.py:52
Functionbias_dropout_add_fused_train
( x: Tensor, bias: Tensor, residual: Optional[Tensor], prob: float )
megatron/model/fused_bias_dropout.py:45
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
megatron/mpu/data.py:79
Methodcls
(self)
megatron/tokenizer/tokenizer.py:120
Methodconvert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
megatron/tokenizer/gpt2_tokenization.py:300
Functioncreate_doc_idx
(sizes)
megatron/data/indexed_dataset.py:125
Functiondataset_exists
(path, impl)
megatron/data/indexed_dataset.py:81
Functionddb
Distributed Debugger that will insert a py debugger on rank `rank` and pause all other distributed processes until debugging is complete.
megatron/utils.py:210
Methoddecode_token
(self, token: int)
megatron/tokenizer/tokenizer.py:333
Methoddeepspeed_config
returns a dict containing variables within deepspeed config
megatron/neox_arguments/arguments.py:547
Methoddeepspeed_runner
returns variables within deepspeed runner
megatron/neox_arguments/arguments.py:557
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:114
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:177
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:216
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:300
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:345
Methoddetokenize
(self, token_ids)
megatron/tokenizer/tokenizer.py:388
Functiondist_init
Initialize torch.distributed and execute the user function.
tests/common.py:150
Functiondist_wrap
Second-level decorator for dist_test. This actually wraps the function.
tests/common.py:147
Functiondistributed_test
A decorator for executing a function (e.g., a unit test) in a distributed manner. This decorator manages the spawning and joining of processes, in
tests/common.py:128
Methoddoc_idx
(self)
megatron/data/indexed_dataset.py:453
Methoddoc_idx
(self)
megatron/data/indexed_dataset.py:542
Methoddtype
(self)
megatron/data/indexed_dataset.py:570
Methodend_document
(self)
megatron/data/indexed_dataset.py:578
Methodeod
(self)
megatron/tokenizer/tokenizer.py:138
Methodeod
(self)
megatron/tokenizer/tokenizer.py:181
Methodeod
(self)
megatron/tokenizer/tokenizer.py:220
Methodeod
(self)
megatron/tokenizer/tokenizer.py:257
Methodeod
(self)
megatron/tokenizer/tokenizer.py:304
Methodeod
(self)
megatron/tokenizer/tokenizer.py:349
Methodeod
(self)
megatron/tokenizer/tokenizer.py:392
Methodeot_token_id
(self)
eval_tasks/eval_adapter.py:106
Functionerf_gelu
(x)
megatron/model/activations.py:101
Methodexec_func
(*inputs)
megatron/model/utils.py:156
Methodexec_range_func
Helper function to be used with checkpoint() Adapted from torch.utils.checkpoint:checkpoint_sequential()
megatron/model/utils.py:151
Methodexists
(path)
megatron/data/indexed_dataset.py:556
Methodfinalize
(self, index_file)
megatron/data/indexed_dataset.py:593
Functionflash_attn_unpadded_qkvpacked_func
( qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale=None, causal=False, return
megatron/model/flash_attention.py:175
Methodflush
(self)
megatron/logging.py:57
Methodforward
(self, x, seq_dim=1)
megatron/model/positional_embeddings.py:26
Methodforward
(self, x, seq_dim=1, seq_len=None)
megatron/model/positional_embeddings.py:48
Methodforward
(self, x)
megatron/model/positional_embeddings.py:135
Methodforward
(ctx, inputs, scale)
megatron/model/fused_softmax.py:33
Methodforward
(self, input, mask)
megatron/model/fused_softmax.py:140
Methodforward
(self, x)
megatron/model/utils.py:78
Methodforward
( self, forward_input, curriculum_seqlen=None, labels=None, neox_args=None )
megatron/model/utils.py:124
Methodforward
(self, args)
megatron/model/word_embeddings.py:173
Methodforward
(self, args: tuple)
megatron/model/word_embeddings.py:220
Methodforward
(self, x)
megatron/model/norms.py:58
Methodforward
(self, x)
megatron/model/norms.py:84
← previousnext →401–500 of 652, ranked by callers