Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EleutherAI/gpt-neox
/ functions
Functions
652 in github.com/EleutherAI/gpt-neox
⨍
Functions
652
◇
Types & classes
103
Method
forward
( ctx, qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale,
megatron/model/flash_attention.py:110
Method
forward
(ctx, input, bias)
megatron/model/activations.py:85
Method
forward
(self, x, bias=None)
megatron/model/activations.py:130
Method
forward
(self, hidden_states)
megatron/model/transformer.py:116
Method
forward
(self, hidden_states)
megatron/model/transformer.py:175
Method
forward
(self, hidden_states, attention_mask, layer_past=None)
megatron/model/transformer.py:487
Method
forward
(self, x, attention_mask, layer_past=None)
megatron/model/transformer.py:663
Method
forward
(self, args)
megatron/model/transformer.py:751
Method
forward
(self, args)
megatron/model/transformer.py:763
Method
forward
(self, x, attention_mask)
megatron/model/gmlp.py:43
Method
forward
(self, x, attention_mask)
megatron/model/gmlp.py:70
Method
forward
(self, args)
megatron/model/gmlp.py:133
Method
forward
(self, input_)
megatron/mpu/layers.py:181
Method
forward
(self, q_len, k_len)
megatron/mpu/layers.py:346
Method
forward
(self, input_)
megatron/mpu/layers.py:539
Method
forward
(self, input_)
megatron/mpu/layers.py:723
Method
forward
(ctx, vocab_parallel_logits, target)
megatron/mpu/cross_entropy.py:29
Method
forward
(ctx, input_)
megatron/mpu/mappings.py:118
Method
forward
(ctx, input_)
megatron/mpu/mappings.py:134
Method
forward
(ctx, input_)
megatron/mpu/mappings.py:150
Method
forward
(ctx, input_)
megatron/mpu/mappings.py:166
Method
ftfy
Use ftfy (https://github.com/LuminosoInsight/python-ftfy) to fix text encodings
tools/corpora.py:112
Function
gen
()
megatron/training.py:129
Function
get_batch_pipe
A modification of get_batch() to work with the latest batch instead of an iterator.
megatron/training.py:305
Function
get_data_parallel_rank
Return my rank for the data parallel group.
megatron/mpu/initialize.py:244
Function
get_data_parallel_src_rank
Calculate the global rank corresponding to a local rank zero in the data parallel group.
megatron/mpu/initialize.py:223
Function
get_data_parallel_world_size
Return world size for the data parallel group.
megatron/mpu/initialize.py:239
Method
get_doc_idx
(self)
megatron/data/indexed_dataset.py:545
Function
get_io_parallel_group
Get the IO parallel group the caller rank belongs to.
megatron/mpu/initialize.py:181
Function
get_mp_merge_args
Provide extra arguments required for merging.
tools/merge_mp_partitions.py:171
Function
get_pipe_parallel_rank
Return my rank for the pipe parallel group.
megatron/mpu/initialize.py:259
Function
get_pipe_parallel_world_size
Return world size for the pipe parallel group.
megatron/mpu/initialize.py:264
Method
get_slopes_power_of_2
(n)
megatron/model/positional_embeddings.py:119
Function
gpt2_attention_mask_func
(attention_scores, ltor_mask)
megatron/model/gpt2_model.py:47
Method
greedy_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
Method
inference_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
Function
init_
(tensor, use_mup=use_mup_outer)
megatron/model/init_functions.py:27
Function
initialize_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
Method
inv_vocab
Dictionary from vocab id token to text token.
megatron/tokenizer/tokenizer.py:106
Method
inv_vocab
(self)
megatron/tokenizer/tokenizer.py:171
Method
inv_vocab
(self)
megatron/tokenizer/tokenizer.py:207
Method
inv_vocab
(self)
megatron/tokenizer/tokenizer.py:244
Method
inv_vocab
(self)
megatron/tokenizer/tokenizer.py:289
Method
inv_vocab
(self)
megatron/tokenizer/tokenizer.py:330
Method
inv_vocab
(self)
megatron/tokenizer/tokenizer.py:378
Function
is_bnb_available
True if bitsandbytes optimizers are available
megatron/utils.py:123
Function
is_unitialized
Useful for code segments that may be accessed with or without mpu initialization
megatron/mpu/initialize.py:48
Function
make_builder
(out_file, impl, vocab_size=None)
megatron/data/indexed_dataset.py:53
Function
make_dataset
(path, impl, skip_warmup=False)
megatron/data/indexed_dataset.py:62
Method
make_sparse
(values)
megatron/optimizers.py:91
Method
mask
(self)
megatron/tokenizer/tokenizer.py:144
Method
max_gen_toks
(self)
eval_tasks/eval_adapter.py:115
Method
max_length
(self)
eval_tasks/eval_adapter.py:111
Method
megatron_config
returns variables within megatron args
megatron/neox_arguments/arguments.py:564
Method
merge_file
Merge file for tokenizer
tools/corpora.py:92
Method
merge_file_
(self, another_file)
megatron/data/indexed_dataset.py:301
Method
merge_file_
(self, another_file)
megatron/data/indexed_dataset.py:581
Function
mish
(x)
megatron/model/activations.py:118
Function
model_parallel_is_initialized
Check if model and data parallel groups are initialized.
megatron/mpu/initialize.py:162
Method
mup_reinitialize_weights
(self, neox_args)
megatron/mpu/layers.py:164
Method
mup_reinitialize_weights
(self, neox_args)
megatron/mpu/layers.py:292
Method
mup_reinitialize_weights
(self, neox_args)
megatron/mpu/layers.py:515
Method
name
name of dataset
tools/corpora.py:76
Method
num_docs
Number of documents in the dataset (if known)
tools/corpora.py:107
Method
num_samples
(self)
megatron/data/samplers.py:62
Method
num_tokens
(self, index)
megatron/data/indexed_dataset.py:201
Method
num_workers
Number of workers to use in preprocessing
tools/corpora.py:102
Method
pad
(self)
megatron/tokenizer/tokenizer.py:396
Method
params_dtype
returns the datatype on the basis of configured precision
megatron/neox_arguments/arguments.py:597
Method
pattern_match
(patterns, source_list)
eval_tasks/eval_adapter.py:394
Method
prefetch
(self, indices)
megatron/data/indexed_dataset.py:228
Function
run_func_decorator
Entry point for @distributed_test().
tests/common.py:216
Method
save_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
megatron/tokenizer/gpt2_tokenization.py:321
Method
sep
(self)
megatron/tokenizer/tokenizer.py:126
Function
set_cuda_visibile
()
tests/common.py:74
Method
set_doc_idx
(self, doc_idx_)
megatron/data/indexed_dataset.py:548
Method
set_epoch
(self, epoch)
megatron/data/samplers.py:84
Method
set_parallel_output
(self, value: bool)
megatron/mpu/layers.py:533
Method
sizes
(self)
megatron/data/indexed_dataset.py:449
Method
sizes
(self)
megatron/data/indexed_dataset.py:538
Method
step
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
megatron/optimizers.py:301
Method
supports_flat_params
(self)
megatron/optimizers.py:298
Method
supports_memory_efficient_fp16
(self)
megatron/optimizers.py:294
Method
supports_prefetch
(self)
megatron/data/indexed_dataset.py:214
Method
supports_prefetch
(self)
megatron/data/indexed_dataset.py:225
Method
supports_prefetch
(self)
megatron/data/indexed_dataset.py:552
Function
swish
(x, beta: float = 1.0)
megatron/model/activations.py:113
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:114
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:130
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:146
Method
symbolic
(graph, input_)
megatron/mpu/mappings.py:162
Function
test_fused_softmax
()
tests/model/test_fused_kernels.py:44
Function
test_fused_upper_triangle_mask_softmax
()
tests/model/test_fused_kernels.py:145
Function
test_instantiate
(param_dict)
tests/model/test_model_instantiation.py:73
Function
test_instantiate_optimizers
(param_dict)
tests/model/test_model_instantiation.py:97
Function
test_layer_norm
()
megatron/fused_kernels/tests/test_fused_kernels.py:220
Function
test_load_fused_kernels
()
tests/model/test_fused_kernels.py:32
Function
test_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
Function
test_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
Function
test_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
← previous
next →
501–600 of 652, ranked by callers