MCPcopy Create free account

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

Functions652 in github.com/EleutherAI/gpt-neox

Methodforward
( ctx, qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale,
megatron/model/flash_attention.py:110
Methodforward
(ctx, input, bias)
megatron/model/activations.py:85
Methodforward
(self, x, bias=None)
megatron/model/activations.py:130
Methodforward
(self, hidden_states)
megatron/model/transformer.py:116
Methodforward
(self, hidden_states)
megatron/model/transformer.py:175
Methodforward
(self, hidden_states, attention_mask, layer_past=None)
megatron/model/transformer.py:487
Methodforward
(self, x, attention_mask, layer_past=None)
megatron/model/transformer.py:663
Methodforward
(self, args)
megatron/model/transformer.py:751
Methodforward
(self, args)
megatron/model/transformer.py:763
Methodforward
(self, x, attention_mask)
megatron/model/gmlp.py:43
Methodforward
(self, x, attention_mask)
megatron/model/gmlp.py:70
Methodforward
(self, args)
megatron/model/gmlp.py:133
Methodforward
(self, input_)
megatron/mpu/layers.py:181
Methodforward
(self, q_len, k_len)
megatron/mpu/layers.py:346
Methodforward
(self, input_)
megatron/mpu/layers.py:539
Methodforward
(self, input_)
megatron/mpu/layers.py:723
Methodforward
(ctx, vocab_parallel_logits, target)
megatron/mpu/cross_entropy.py:29
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:118
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:134
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:150
Methodforward
(ctx, input_)
megatron/mpu/mappings.py:166
Methodftfy
Use ftfy (https://github.com/LuminosoInsight/python-ftfy) to fix text encodings
tools/corpora.py:112
Functiongen
()
megatron/training.py:129
Functionget_batch_pipe
A modification of get_batch() to work with the latest batch instead of an iterator.
megatron/training.py:305
Functionget_data_parallel_rank
Return my rank for the data parallel group.
megatron/mpu/initialize.py:244
Functionget_data_parallel_src_rank
Calculate the global rank corresponding to a local rank zero in the data parallel group.
megatron/mpu/initialize.py:223
Functionget_data_parallel_world_size
Return world size for the data parallel group.
megatron/mpu/initialize.py:239
Methodget_doc_idx
(self)
megatron/data/indexed_dataset.py:545
Functionget_io_parallel_group
Get the IO parallel group the caller rank belongs to.
megatron/mpu/initialize.py:181
Functionget_mp_merge_args
Provide extra arguments required for merging.
tools/merge_mp_partitions.py:171
Functionget_pipe_parallel_rank
Return my rank for the pipe parallel group.
megatron/mpu/initialize.py:259
Functionget_pipe_parallel_world_size
Return world size for the pipe parallel group.
megatron/mpu/initialize.py:264
Methodget_slopes_power_of_2
(n)
megatron/model/positional_embeddings.py:119
Functiongpt2_attention_mask_func
(attention_scores, ltor_mask)
megatron/model/gpt2_model.py:47
Methodgreedy_until
Greedy until is lm_eval harness' way to say "do greedy generation" - necessary for some tasks. the eval harness dispatches requests t
eval_tasks/eval_adapter.py:132
Methodinference_mode
Sets up the model for inference by turning on k/v caching (if specified) and setting `parallel output` of the final layer to false, s
megatron/model/gpt2_model.py:310
Functioninit_
(tensor, use_mup=use_mup_outer)
megatron/model/init_functions.py:27
Functioninitialize_model_parallel
Initialize model data parallel groups. Arguments: model_parallel_size: number of GPUs used to parallelize model. Let's say we h
megatron/mpu/initialize.py:53
Methodinv_vocab
Dictionary from vocab id token to text token.
megatron/tokenizer/tokenizer.py:106
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:171
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:207
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:244
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:289
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:330
Methodinv_vocab
(self)
megatron/tokenizer/tokenizer.py:378
Functionis_bnb_available
True if bitsandbytes optimizers are available
megatron/utils.py:123
Functionis_unitialized
Useful for code segments that may be accessed with or without mpu initialization
megatron/mpu/initialize.py:48
Functionmake_builder
(out_file, impl, vocab_size=None)
megatron/data/indexed_dataset.py:53
Functionmake_dataset
(path, impl, skip_warmup=False)
megatron/data/indexed_dataset.py:62
Methodmake_sparse
(values)
megatron/optimizers.py:91
Methodmask
(self)
megatron/tokenizer/tokenizer.py:144
Methodmax_gen_toks
(self)
eval_tasks/eval_adapter.py:115
Methodmax_length
(self)
eval_tasks/eval_adapter.py:111
Methodmegatron_config
returns variables within megatron args
megatron/neox_arguments/arguments.py:564
Methodmerge_file
Merge file for tokenizer
tools/corpora.py:92
Methodmerge_file_
(self, another_file)
megatron/data/indexed_dataset.py:301
Methodmerge_file_
(self, another_file)
megatron/data/indexed_dataset.py:581
Functionmish
(x)
megatron/model/activations.py:118
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
megatron/mpu/initialize.py:162
Methodmup_reinitialize_weights
(self, neox_args)
megatron/mpu/layers.py:164
Methodmup_reinitialize_weights
(self, neox_args)
megatron/mpu/layers.py:292
Methodmup_reinitialize_weights
(self, neox_args)
megatron/mpu/layers.py:515
Methodname
name of dataset
tools/corpora.py:76
Methodnum_docs
Number of documents in the dataset (if known)
tools/corpora.py:107
Methodnum_samples
(self)
megatron/data/samplers.py:62
Methodnum_tokens
(self, index)
megatron/data/indexed_dataset.py:201
Methodnum_workers
Number of workers to use in preprocessing
tools/corpora.py:102
Methodpad
(self)
megatron/tokenizer/tokenizer.py:396
Methodparams_dtype
returns the datatype on the basis of configured precision
megatron/neox_arguments/arguments.py:597
Methodpattern_match
(patterns, source_list)
eval_tasks/eval_adapter.py:394
Methodprefetch
(self, indices)
megatron/data/indexed_dataset.py:228
Functionrun_func_decorator
Entry point for @distributed_test().
tests/common.py:216
Methodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
megatron/tokenizer/gpt2_tokenization.py:321
Methodsep
(self)
megatron/tokenizer/tokenizer.py:126
Functionset_cuda_visibile
()
tests/common.py:74
Methodset_doc_idx
(self, doc_idx_)
megatron/data/indexed_dataset.py:548
Methodset_epoch
(self, epoch)
megatron/data/samplers.py:84
Methodset_parallel_output
(self, value: bool)
megatron/mpu/layers.py:533
Methodsizes
(self)
megatron/data/indexed_dataset.py:449
Methodsizes
(self)
megatron/data/indexed_dataset.py:538
Methodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
megatron/optimizers.py:301
Methodsupports_flat_params
(self)
megatron/optimizers.py:298
Methodsupports_memory_efficient_fp16
(self)
megatron/optimizers.py:294
Methodsupports_prefetch
(self)
megatron/data/indexed_dataset.py:214
Methodsupports_prefetch
(self)
megatron/data/indexed_dataset.py:225
Methodsupports_prefetch
(self)
megatron/data/indexed_dataset.py:552
Functionswish
(x, beta: float = 1.0)
megatron/model/activations.py:113
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:114
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:130
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:146
Methodsymbolic
(graph, input_)
megatron/mpu/mappings.py:162
Functiontest_fused_softmax
()
tests/model/test_fused_kernels.py:44
Functiontest_fused_upper_triangle_mask_softmax
()
tests/model/test_fused_kernels.py:145
Functiontest_instantiate
(param_dict)
tests/model/test_model_instantiation.py:73
Functiontest_instantiate_optimizers
(param_dict)
tests/model/test_model_instantiation.py:97
Functiontest_layer_norm
()
megatron/fused_kernels/tests/test_fused_kernels.py:220
Functiontest_load_fused_kernels
()
tests/model/test_fused_kernels.py:32
Functiontest_neoxargs_consume_deepy_args_with_config_dir
verify consume_deepy_args processes command line arguments without config dir
tests/neox_args/test_neoxargs_commandline.py:26
Functiontest_neoxargs_consume_deepy_args_with_hostfile_param
Verify consume_deepy_args processes command line arguments without yaml suffix. Also test the hostfile CLI arg
tests/neox_args/test_neoxargs_commandline.py:82
Functiontest_neoxargs_consume_deepy_args_without_yml_suffix
verify consume_deepy_args processes command line arguments without yaml suffix
tests/neox_args/test_neoxargs_commandline.py:54
← previousnext →501–600 of 652, ranked by callers