MCPcopy Create free account

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

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

↓ 1 callersFunction_drop_duplicates_in_input
(untokenized_dataset)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:77
↓ 1 callersFunction_dropout_add_layer_norm_backward
Assume that arguments are contiguous and aligned to 16 bytes dx == None means that it was a post-norm architecture (x = drop(x0) + residual wa
based/ops/layer_norm.py:55
↓ 1 callersFunction_dropout_add_layer_norm_forward
Assume that arguments are contiguous and aligned to 16 bytes
based/ops/layer_norm.py:16
↓ 1 callersFunction_dropout_add_layer_norm_parallel_residual_backward
Assume that arguments are contiguous and aligned to 16 bytes dx == None means that it was a post-norm architecture (x = drop(x0) + residual wa
based/ops/layer_norm.py:257
↓ 1 callersFunction_dropout_add_layer_norm_parallel_residual_forward
Assume that arguments are contiguous and aligned to 16 bytes
based/ops/layer_norm.py:212
↓ 1 callersFunction_dropout_add_layer_norm_subset_backward
Assume that arguments are contiguous and aligned to 16 bytes dx == None means that it was a post-norm architecture (x = drop(x0) + residual wa
based/ops/layer_norm.py:153
↓ 1 callersFunction_dropout_add_layer_norm_subset_forward
Assume that arguments are contiguous and aligned to 16 bytes
based/ops/layer_norm.py:110
↓ 1 callersMethod_encode_pair
( self, context: str, continuation: str )
lm-eval-harness/lm_eval/models/vllm_causallms.py:197
↓ 1 callersMethod_encode_pair
(self, context, continuation)
lm-eval-harness/lm_eval/models/neuron_optimum.py:450
↓ 1 callersMethod_encode_pair
( self, context: str, continuation: str )
lm-eval-harness/lm_eval/models/openai_completions.py:180
↓ 1 callersMethod_encode_pair
( self, context: str, continuation: str, decode_mode="default" )
lm-eval-harness/lm_eval/models/huggingface.py:812
↓ 1 callersFunction_fn
(predictions, references)
lm-eval-harness/lm_eval/tasks/super_glue/cb/t5_utils.py:25
↓ 1 callersFunction_get_accelerate_args
Returns the kwargs needed to apply `accelerate` in `AutoModel.from_pretrained`.
lm-eval-harness/lm_eval/models/huggingface.py:42
↓ 1 callersMethod_get_backend
Helper method during initialization. Determines the backend ("causal" (decoder-only) or "seq2seq" (encoder-decoder)) model ty
lm-eval-harness/lm_eval/models/huggingface.py:405
↓ 1 callersMethod_get_config
( self, pretrained: str, revision: str = "main", trust_remote_code: bool = Fal
lm-eval-harness/lm_eval/models/huggingface.py:457
↓ 1 callersMethod_get_inference_cache
(self, inference_params: InferenceParams)
based/models/mixers/prefix_linear_attention.py:280
↓ 1 callersMethod_get_inference_cache
(self, inference_params: InferenceParams)
based/models/mixers/linear_attention.py:341
↓ 1 callersMethod_get_pointers
(sizes)
train/src/datamodules/datasets/indexed_dataset.py:372
↓ 1 callersMethod_get_prune_text
(self, sample)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:154
↓ 1 callersMethod_get_task_and_group
Creates an dictionary of tasks index with the following metadata, - `type`, that can be either `task`, `python_task`, or `group`.
lm-eval-harness/lm_eval/tasks/__init__.py:265
↓ 1 callersMethod_init_state
Create the state if it doesn't exist, zero it out otherwise. Do this recursively if the layer_idx is a tuple.
based/models/mixers/convolution.py:119
↓ 1 callersFunction_instantiate
Instantiate a single decoder
train/src/tasks/decoders.py:294
↓ 1 callersMethod_load_from_cache
(self, cache_dir)
train/src/datamodules/language_modeling_hf.py:240
↓ 1 callersMethod_load_individual_task_or_group
( self, name_or_config: Union[str, dict] = None, parent_name: str = None,
lm-eval-harness/lm_eval/tasks/__init__.py:132
↓ 1 callersMethod_make_compute_metrics
(self, value)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:196
↓ 1 callersMethod_model_call
get logits for the entire sequence :param input_ids: torch.Tensor A torch tensor of shape [batch, sequence_cont]
lm-eval-harness/lm_eval/models/neuron_optimum.py:389
↓ 1 callersMethod_model_generate
(self, context, max_length, stop, **generation_kwargs)
lm-eval-harness/lm_eval/models/neuron_optimum.py:416
↓ 1 callersMethod_name_is_group
(self, name)
lm-eval-harness/lm_eval/tasks/__init__.py:82
↓ 1 callersMethod_norm
(self, x)
synthetic/zoology/mixers/gla.py:83
↓ 1 callersFunction_normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
lm-eval-harness/lm_eval/tasks/super_glue/record/t5_utils.py:53
↓ 1 callersFunction_num_epochs
Based on number of samples and sequence length, calculate how many epochs will be needed.
train/src/datamodules/language_modeling_neox.py:494
↓ 1 callersFunction_num_tokens
Total number of tokens in the dataset.
train/src/datamodules/language_modeling_neox.py:489
↓ 1 callersMethod_parse_logprobs
Process logprobs and tokens. :param tokens: list Input tokens (potentially left-truncated) :param outputs: RequestOutput
lm-eval-harness/lm_eval/models/vllm_causallms.py:393
↓ 1 callersMethod_post_init
custom init strategy
synthetic/zoology/mixers/gla.py:238
↓ 1 callersMethod_process_alias
(self, config, group=None)
lm-eval-harness/lm_eval/tasks/__init__.py:123
↓ 1 callersMethod_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:377
↓ 1 callersMethod_return_callback
Modify the return value of the collate_fn. Assign a name to each element of the returned tuple beyond the (x, y) pairs See In
train/src/datamodules/base.py:39
↓ 1 callersMethod_save_to_cache
(self, concat_ids, tokenizer, cache_dir)
train/src/datamodules/language_modeling_hf.py:232
↓ 1 callersMethod_select_cont_toks
(self, logits, contlen=None, inplen=None)
lm-eval-harness/lm_eval/models/neuron_optimum.py:440
↓ 1 callersMethod_select_cont_toks
(self, logits, contlen=None, inplen=None)
lm-eval-harness/lm_eval/models/huggingface.py:794
↓ 1 callersFunction_squad_metric
(predictions, references)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:9
↓ 1 callersFunction_squad_metric
(predictions, references)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:11
↓ 1 callersFunction_update_kv_cache
kv: (batch_size, seqlen, 2, nheads, head_dim) or (batch_size, 1, 2, nheads, head_dim)
based/models/mixers/slide_attention.py:255
↓ 1 callersMethod_update_kv_cache
kv: (batch_size, seqlen, 2, nheads, head_dim) or (batch_size, 1, 2, nheads, head_dim)
based/models/mixers/mha.py:506
↓ 1 callersMethod_update_kv_cache
kv: (batch_size, seqlen, 2, nheads, head_dim) or (batch_size, 1, 2, nheads, head_dim)
based/models/mixers/mha.py:860
↓ 1 callersMethod_update_kv_cache
kv: (batch_size, seqlen, 2, nheads, head_dim) or (batch_size, 1, 2, nheads, head_dim)
based/models/mixers/slide_attention.py:385
↓ 1 callersFunction_wsc_inputs
(x)
lm-eval-harness/lm_eval/tasks/super_glue/wsc/t5_utils.py:9
↓ 1 callersMethodaggregation
:returns: {str: [metric_score] -> float} A dictionary where keys are the names of submetrics and values are functions
lm-eval-harness/lm_eval/api/task.py:524
↓ 1 callersFunctionallocate_inference_cache
( max_batch_size, max_seqlen, nheads, headdim, layers: Union[int, Sequence], device,
based/generation.py:582
↓ 1 callersFunctionallocate_inference_cache
( max_batch_size, max_seqlen, nheads, headdim, layers: Union[int, Sequence], device,
train/src/generation.py:665
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/generation.py:560
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mamba.py:177
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/transformer/gpt.py:482
↓ 1 callersMethodallocate_inference_cache
Creates a state tensor of shape (b, d, k)
based/models/mixers/convolution.py:109
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mixers/mamba/modules/mamba_simple.py:254
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mixers/mamba/modules/models/mixer_seq_simple.py:145
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mixers/mamba/utils/generation.py:233
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
train/src/generation.py:570
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
train/src/models/block.py:127
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
train/src/models/gpt.py:640
↓ 1 callersFunctionanthropic_completion
Wrapper function around the Anthropic completion API client with exponential back-off in case of RateLimitError. params: client: anth
lm-eval-harness/lm_eval/models/anthropic_llms.py:14
↓ 1 callersMethodapply_filters
Iterates over FilterEnsembles and applies them to instances
lm-eval-harness/lm_eval/api/task.py:615
↓ 1 callersMethodbackward
(ctx, dy, *args)
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:425
↓ 1 callersFunctionbarrier
Call torch.distributed.barrier() if distritubed is in use
based/utils/distributed.py:39
↓ 1 callersFunctionbarrier
Call torch.distributed.barrier() if distritubed is in use
train/src/utils/distributed.py:39
↓ 1 callersFunctionbias_gelu
(y, bias)
based/ops/activations.py:16
↓ 1 callersFunctionbias_gelu_back
Assume that y has shape (B, D) and bias has shape (D)
based/ops/activations.py:25
↓ 1 callersFunctionbootstrap_stderr
(f, xs, iters)
lm-eval-harness/lm_eval/api/metrics.py:383
↓ 1 callersMethodbuild_all_requests
Build a set of Instances for a task, and store them in task.instances
lm-eval-harness/lm_eval/api/task.py:434
↓ 1 callersFunctionbuild_dataset
Build train/valid/test datasets.
train/src/datamodules/language_modeling_neox.py:183
↓ 1 callersFunctionbuild_datasets
( data_paths: Dict[str, List[str]], num_samples: Dict[str, List[int]], seq_length: int, seed:
train/src/datamodules/language_modeling_neox.py:141
↓ 1 callersFunctioncapture_graph
( model, inference_params, batch_size, max_seqlen, decoding_seqlen=1, mempool=None, n_warmups=2 )
based/generation.py:690
↓ 1 callersFunctioncapture_graph
( model, inference_params, batch_size, max_seqlen, decoding_seqlen=1, mempool=None, n_warmups=2 )
based/models/mixers/mamba/utils/generation.py:327
↓ 1 callersFunctioncapture_graph
( model, inference_params, batch_size, max_seqlen, decoding_seqlen=1, mempool=None, n_warmups=2 )
train/src/generation.py:773
↓ 1 callersMethodclean_cpp
(self, dirty_string: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:200
↓ 1 callersMethodclean_python
(self, dirty_string: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:218
↓ 1 callersFunctioncli_evaluate
(args: Union[argparse.Namespace, None] = None)
lm-eval-harness/lm_eval/__main__.py:234
↓ 1 callersFunctioncollect_results
()
lm-eval-harness/prompt_scripts/collect_results.py:37
↓ 1 callersFunctioncollect_results
()
lm-eval-harness/architecture_scripts/collect_results.py:26
↓ 1 callersMethodcommit
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:43
↓ 1 callersFunctioncompletion
()
lm-eval-harness/lm_eval/models/anthropic_llms.py:61
↓ 1 callersFunctioncompletion
()
lm-eval-harness/lm_eval/models/textsynth.py:43
↓ 1 callersFunctioncompletion
()
lm-eval-harness/lm_eval/models/openai_completions.py:68
↓ 1 callersFunctioncompute_inner
(query, key, value, decay_key, decay_value)
based/models/triton/kernels/intra_chunk_contribution/fn.py:52
↓ 1 callersFunctioncompute_metrics
( preds: torch.Tensor, targets: torch.Tensor, slices: List[dict], ignore_index: int = -100,
synthetic/zoology/train.py:178
↓ 1 callersFunctioncontains_score
(prediction: str, labels: List[str])
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:148
↓ 1 callersFunctioncontains_score
(prediction: str, labels: List[str])
lm-eval-harness/lm_eval/tasks/based_fda/task.py:102
↓ 1 callersFunctioncontains_score
(prediction: str, labels: List[str])
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:165
↓ 1 callersFunctioncontains_score
(prediction: str, labels: List[str])
lm-eval-harness/lm_eval/tasks/based_swde/task.py:130
↓ 1 callersFunctioncontains_score
(prediction: str, labels: List[str])
lm-eval-harness/lm_eval/tasks/based_nq/task.py:112
↓ 1 callersFunctioncontains_score
(prediction: str, labels: List[str])
lm-eval-harness/lm_eval/tasks/based_drop/task.py:113
↓ 1 callersFunctionconvert_to_list
(d)
synthetic/zoology/utils.py:114
↓ 1 callersFunctionconvert_to_list
(d)
synthetic/zoology/analysis/utils.py:82
↓ 1 callersMethodcopy_to
Copy current averaged parameters into given collection of parameters. Args: parameters: Iterable of `torch.nn.Parameter`;
based/utils/ema.py:106
↓ 1 callersMethodcount_bytes
Used for byte-level perplexity metrics in rolling loglikelihood
lm-eval-harness/lm_eval/api/task.py:545
↓ 1 callersMethodcount_bytes
(cls, doc)
lm-eval-harness/lm_eval/api/task.py:1476
↓ 1 callersMethodcount_words
Downstream loglikelihood_rolling perplexity tasks with custom word boundaries should override this!
lm-eval-harness/lm_eval/api/task.py:550
↓ 1 callersMethodcount_words
Downstream tasks with custom word boundaries should override this!
lm-eval-harness/lm_eval/api/task.py:1480
↓ 1 callersFunctioncreate_block
( d_model, ssm_cfg=None, norm_epsilon=1e-5, rms_norm=False, residual_in_fp32=False, fu
based/models/mamba.py:52
↓ 1 callersFunctioncreate_block
(config, layer_idx=None, process_group=None, device=None, dtype=None, multiple_of=256)
based/models/transformer/gpt.py:264
← previousnext →301–400 of 1,739, ranked by callers