MCPcopy Create free account

hub / github.com/HazyResearch/prefix-linear-attention / functions

Functions1,739 in github.com/HazyResearch/prefix-linear-attention

↓ 1 callersFunctioncreate_block
( d_model, ssm_cfg=None, norm_epsilon=1e-5, rms_norm=False, residual_in_fp32=False, fu
based/models/mixers/mamba/modules/models/mixer_seq_simple.py:24
↓ 1 callersFunctioncreate_block
(config, layer_idx=None, process_group=None, device=None, dtype=None, **kwargs)
train/src/models/gpt.py:370
↓ 1 callersMethodcreate_from_arg_string
Creates an instance of the LM class using the given argument string and additional config. Parameters: - arg_string: A strin
lm-eval-harness/lm_eval/api/model.py:118
↓ 1 callersFunctioncreate_input
()
lm-eval-harness/lm_eval/tasks/super_glue/wsc/t5_utils.py:19
↓ 1 callersFunctioncreate_mha_cls
(config, layer_idx=None, process_group=None, device=None, dtype=None)
train/src/models/gpt.py:164
↓ 1 callersFunctioncreate_mixer_cls
(config, layer_idx=None, process_group=None, device=None, dtype=None)
based/models/transformer/gpt.py:62
↓ 1 callersFunctioncreate_mixer_cls
(config, layer_idx=None, process_group=None, device=None, dtype=None)
train/src/models/gpt.py:75
↓ 1 callersFunctioncreate_mlp_cls
(config, layer_idx=None, process_group=None, device=None, dtype=None, multiple_of=256)
based/models/transformer/gpt.py:123
↓ 1 callersFunctioncreate_mlp_cls
(config, layer_idx=None, process_group=None, device=None, dtype=None, return_residual=False)
train/src/models/gpt.py:222
↓ 1 callersFunctiondecode
Decoding, either greedy or with top-k or top-p sampling. If top-k = 0, don't limit the number of candidates (pure sampling). Top-k and top-p c
based/generation.py:94
↓ 1 callersFunctiondecode
Decoding, either greedy or with top-k or top-p sampling. If top-k = 0, don't limit the number of candidates (pure sampling). Top-k and top-p c
based/models/mixers/mamba/utils/generation.py:107
↓ 1 callersFunctiondecode_naive
Decoding, either greedy or with top-k or top-p sampling. If top-k = 0, don't limit the number of candidates (pure sampling). Top-k and top-p c
based/generation.py:744
↓ 1 callersFunctiondecode_naive
Decoding, either greedy or with top-k or top-p sampling. If top-k = 0, don't limit the number of candidates (pure sampling). Top-k and top-p c
train/src/generation.py:827
↓ 1 callersFunctiondictconfig_filter_key
Only keep keys where fn(key) is True. Support nested DictConfig.
train/run.py:23
↓ 1 callersFunctiondisjoint_sets
( vocab_size: int, num_examples: int, short_length: int, long_length: int, seed: int,
synthetic/zoology/data/non_autoreg.py:109
↓ 1 callersFunctiondivide
Divide the elements from *iterable* into *n* parts, maintaining order. >>> group_1, group_2 = divide([1, 2, 3, 4, 5, 6], 2) >>> l
lm-eval-harness/lm_eval/models/utils.py:264
↓ 1 callersFunctiondoc_to_choice
(doc)
lm-eval-harness/lm_eval/tasks/super_glue/copa/utils.py:20
↓ 1 callersFunctiondoc_to_target
(doc)
lm-eval-harness/lm_eval/tasks/super_glue/copa/utils.py:14
↓ 1 callersFunctiondoc_to_text
(doc)
lm-eval-harness/lm_eval/tasks/super_glue/copa/utils.py:5
↓ 1 callersMethoddoc_to_text
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:186
↓ 1 callersMethoddownload
(self, dataset_kwargs=None)
lm-eval-harness/lm_eval/api/task.py:877
↓ 1 callersFunctiondropout_add_layer_norm
residual_in_fp32 only has an effect if residual is None. Otherwise residual dtype is residual.dtype.
based/ops/layer_norm.py:661
↓ 1 callersFunctiondropout_add_rms_norm
residual_in_fp32 only has an effect if residual is None. Otherwise residual dtype is residual.dtype.
based/ops/rms_norm.py:20
↓ 1 callersMethoddump_config
Returns the config as a dictionary.
lm-eval-harness/lm_eval/api/task.py:624
↓ 1 callersFunctionevaluate
Instantiate and evaluate a model on a list of tasks. :param lm: obj Language Model :param task_dict: dict[str, Task] Dictiona
lm-eval-harness/lm_eval/evaluator.py:255
↓ 1 callersFunctionevaluate
Example of inference with trained model. It loads trained image classification model from checkpoint. Then it loads example image and predicts
train/src/eval.py:47
↓ 1 callersFunctionexecute_config
( model: str, task: str, batch_size: int, limit: int, output_dir: str, context_length:
lm-eval-harness/launch_hf.py:19
↓ 1 callersFunctionexecute_config
( model: str, task: str, batch_size: int, limit: int, output_dir: str, num_fewshot: in
lm-eval-harness/launch_local.py:20
↓ 1 callersFunctionexecute_config
( model: str, task: str, batch_size: int, limit: int, output_dir: str, num_fewshot: in
lm-eval-harness/launch.py:19
↓ 1 callersFunctionexecute_config
( model: str, task: str, batch_size: int, limit: int, output_dir: str, num_fewshot: in
lm-eval-harness/launch_jrt.py:19
↓ 1 callersFunctionf1_score
(items)
lm-eval-harness/lm_eval/api/metrics.py:52
↓ 1 callersMethodfewshot_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
lm-eval-harness/lm_eval/api/task.py:297
↓ 1 callersMethodfewshot_examples
(self, k, rnd)
lm-eval-harness/lm_eval/api/task.py:331
↓ 1 callersFunctionfftconv_ref
(u, k, D, dropout_mask, gelu=True, k_rev=None)
synthetic/zoology/mixers/hyena.py:29
↓ 1 callersMethodfilter
(self, l: int, *args, **kwargs)
synthetic/zoology/mixers/convolution.py:229
↓ 1 callersFunctionfind_test_root
Search upward in the directory tree to a maximum of three layers to find and return the package root (containing the 'tests' folder)
lm-eval-harness/lm_eval/utils.py:294
↓ 1 callersMethodfn
(requests)
lm-eval-harness/lm_eval/api/model.py:198
↓ 1 callersFunctionformat_answer
(query, entity)
lm-eval-harness/lm_eval/tasks/super_glue/record/util.py:15
↓ 1 callersMethodforward
Arguments: x: (batch, seqlen, hidden_dim) (where hidden_dim = num heads * head dim) if cu_seqlens is None and max
based/models/mixers/mha.py:583
↓ 1 callersMethodforward
x: (batch, length, dim) input tensor state: additional state from the model backbone *args, **kwargs: additional info from th
train/src/tasks/decoders.py:19
↓ 1 callersMethodforward
(self, x)
train/src/models/mlp.py:47
↓ 1 callersMethodfrom_cli
(cls)
synthetic/zoology/config.py:14
↓ 1 callersMethodfrom_pretrained
(cls, pretrained_model_name, device=None, dtype=None, **kwargs)
based/models/mixers/mamba/modules/models/mixer_seq_simple.py:241
↓ 1 callersMethodgated_linear_attention
(self, q, k, v, gk, normalizer=16, hidden_states=None)
synthetic/zoology/mixers/gla.py:59
↓ 1 callersFunctiongelu
Gaussian Error Linear Unit (GELU)
based/ops/triton/k_activations.py:133
↓ 1 callersFunctiongelu_approx
GeLU_ activation - Gaussian error linear unit, with tanh approximation .. _GeLU: https://arxiv.org/pdf/1606.08415.pdf
based/ops/triton/k_activations.py:146
↓ 1 callersFunctiongelu_approx_grad
(x)
based/ops/triton/k_activations.py:156
↓ 1 callersFunctiongelu_bwd
(g, x)
based/ops/activations.py:65
↓ 1 callersFunctiongelu_fwd
(x)
based/ops/activations.py:57
↓ 1 callersFunctiongelu_grad
(x)
based/ops/triton/k_activations.py:139
↓ 1 callersFunctiongeneral_detokenize
(string)
lm-eval-harness/lm_eval/utils.py:112
↓ 1 callersMethodgenerate
( self, input_ids, max_length, top_k=1, top_p=0.0, temperature
based/models/mixers/mamba/utils/generation.py:236
↓ 1 callersMethodget_act_fun
(self, act_fun = 'relu')
synthetic/zoology/mixers/feature_maps/cosformer.py:31
↓ 1 callersFunctionget_aggregation
(name: str)
lm-eval-harness/lm_eval/api/registry.py:151
↓ 1 callersMethodget_cache_hook
(self)
lm-eval-harness/lm_eval/api/model.py:248
↓ 1 callersMethodget_context
(self, doc, num_fewshot)
lm-eval-harness/lm_eval/api/samplers.py:20
↓ 1 callersFunctionget_filter
(filter_name: str)
lm-eval-harness/lm_eval/filters/__init__.py:26
↓ 1 callersFunctionget_git_commit_hash
Gets the git commit hash of your current repo (if it exists). Source: https://github.com/EleutherAI/gpt-neox/blob/b608043be541602170bfcfb8ec9
lm-eval-harness/lm_eval/utils.py:334
↓ 1 callersMethodget_index
(self, seq_len)
synthetic/zoology/mixers/feature_maps/cosformer.py:26
↓ 1 callersFunctionget_logger
Initializes multi-GPU-friendly python logger.
based/utils/utils.py:37
↓ 1 callersFunctionget_logits
(input_ids, inference_params)
based/models/mixers/mamba/utils/generation.py:160
↓ 1 callersFunctionget_nc_count
Returns the number of neuron cores on the current instance.
lm-eval-harness/lm_eval/models/neuron_optimum.py:36
↓ 1 callersFunctionget_prompt
(prompt_id: str, dataset_name: str = None, subset_name: str = None)
lm-eval-harness/lm_eval/prompts/__init__.py:20
↓ 1 callersFunctionget_rank
Gets distributed rank or returns zero if distributed is not initialized.
based/utils/distributed.py:47
↓ 1 callersFunctionget_rank
Gets distributed rank or returns zero if distributed is not initialized.
train/src/utils/distributed.py:47
↓ 1 callersFunctionget_result
(logprobs, context_length)
lm-eval-harness/lm_eval/models/gguf.py:15
↓ 1 callersFunctionget_result
Process results from OpenAI API response. :param response: dict OpenAI API Response :param ctxlen: int Length of context (so
lm-eval-harness/lm_eval/models/openai_completions.py:17
↓ 1 callersFunctionget_rolling_token_windows
- context_len allows for a rolling window context, allowing each prediction window to potentially condition on some context :param tok
lm-eval-harness/lm_eval/utils.py:122
↓ 1 callersFunctionget_task_dict
Creates a dictionary of task objects from either a name of task, config, or prepared Task object. :param task_name_list: List[Union[str, Dict, Ta
lm-eval-harness/lm_eval/tasks/__init__.py:385
↓ 1 callersFunctionget_task_name_from_object
(task_object)
lm-eval-harness/lm_eval/tasks/__init__.py:373
↓ 1 callersFunctionget_world_size
Gets total number of distributed workers or returns one if distributed is not initialized.
based/utils/distributed.py:58
↓ 1 callersFunctionget_world_size
Gets total number of distributed workers or returns one if distributed is not initialized.
train/src/utils/distributed.py:58
↓ 1 callersFunctionget_zero_optimizer_state_dict_local
(optimizer, global_rank)
based/utils/ddp_zero1.py:24
↓ 1 callersFunctionget_zero_optimizer_state_dict_local
(optimizer, global_rank)
train/src/utils/ddp_zero1.py:24
↓ 1 callersFunctiongroup
(arr, fn)
lm-eval-harness/lm_eval/utils.py:90
↓ 1 callersMethodgroup_by_index
(self)
lm-eval-harness/lm_eval/models/utils.py:378
↓ 1 callersMethodh
Adjust to get softmax (from RBF)
synthetic/zoology/mixers/feature_maps/performer.py:114
↓ 1 callersFunctionhandle_arg_string
(arg)
lm-eval-harness/lm_eval/utils.py:56
↓ 1 callersMethodhas_training_docs
(self)
lm-eval-harness/lm_eval/api/task.py:885
↓ 1 callersFunctionhash_args
(*args, **kwargs)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:129
↓ 1 callersMethodiid_gaussian
Generate IID Gaussian random features
synthetic/zoology/mixers/feature_maps/performer.py:119
↓ 1 callersFunctionimport_object
Import an object from a string. Parameters: - name (str): The name of the object to import. Returns: - object: The imported
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:97
↓ 1 callersFunctioninclude_path
(task_dir)
lm-eval-harness/lm_eval/tasks/__init__.py:346
↓ 1 callersFunctioninfer_dataset_impl
(path)
train/src/datamodules/datasets/indexed_dataset.py:35
↓ 1 callersFunctioninit_feature_map
Initialize query and key mapping for linear attention
synthetic/zoology/mixers/based.py:31
↓ 1 callersFunctioninit_feature_map
Initialize query and key mapping for linear attention
synthetic/zoology/mixers/jrt_based.py:30
↓ 1 callersFunctioninitialize_tasks
(verbosity="INFO")
lm-eval-harness/lm_eval/tasks/__init__.py:355
↓ 1 callersMethodinitialize_tasks
Creates an dictionary of tasks index. :param include_path: str = None An additional path to be searched for tasks :retur
lm-eval-harness/lm_eval/tasks/__init__.py:37
↓ 1 callersMethodinstantiate_datamodule
(self)
train/src/tasks/seq.py:48
↓ 1 callersMethodinstantiate_datamodule
(self)
train/src/tasks/seq_hf.py:51
↓ 1 callersMethodinstantiate_loss
(self)
train/src/tasks/seq.py:77
↓ 1 callersMethodinstantiate_loss
(self)
train/src/tasks/seq_hf.py:80
↓ 1 callersMethodinstantiate_metrics
(self)
train/src/tasks/seq.py:85
↓ 1 callersMethodinstantiate_metrics
(self)
train/src/tasks/seq_hf.py:88
↓ 1 callersMethodinstantiate_model
(self)
train/src/tasks/seq.py:57
↓ 1 callersMethodinstantiate_model
(self)
train/src/tasks/seq_hf.py:60
↓ 1 callersFunctionintra_chunk_onc
(q, k, v, gk, gv)
based/models/triton/kernels/intra_chunk_contribution/fn.py:18
↓ 1 callersFunctionkey_mapping
(key)
based/utils/checkpoint.py:25
↓ 1 callersFunctionkey_mapping
(key)
train/src/utils/checkpoint.py:25
↓ 1 callersFunctionkey_mapping_transformer
(key)
based/models/transformer/gpt.py:962
← previousnext →401–500 of 1,739, ranked by callers