MCPcopy Create free account

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

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

Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_nq/task.py:19
Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_drop/task.py:19
Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:126
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/api/task.py:533
Methodhigher_is_better
(self)
lm-eval-harness/lm_eval/api/task.py:1360
Methodhigher_is_better
(self)
lm-eval-harness/lm_eval/api/task.py:1401
Methodhigher_is_better
(self)
lm-eval-harness/lm_eval/api/task.py:1431
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:135
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/tasks/based_fda/task.py:91
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:153
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/tasks/based_swde/task.py:119
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/tasks/based_nq/task.py:101
Methodhigher_is_better
:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of th
lm-eval-harness/lm_eval/tasks/based_drop/task.py:103
Methodhigher_is_better
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:189
Methodhigher_is_better
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:223
Functionignore_constructor
(loader, node)
lm-eval-harness/lm_eval/utils.py:348
Functionimport_function
(loader, node)
lm-eval-harness/lm_eval/utils.py:352
Methodinit_defaults
(self)
train/src/datamodules/base.py:171
Functioninit_distributed
Initializes distributed backend. :param cuda: (bool) if True initializes nccl backend, if False initializes gloo backend
based/utils/distributed.py:23
Functioninit_distributed
Initializes distributed backend. :param cuda: (bool) if True initializes nccl backend, if False initializes gloo backend
train/src/utils/distributed.py:23
Functioninit_to_zero
(name)
based/ops/triton/linear.py:22
Methodinit_weights
(self)
based/models/modules/seq_common.py:276
Methodinit_weights
(self)
train/src/models/modules/seq_common.py:276
Methodinstances
After calling `task.build_all_requests()`, tasks maintain a list of the dataset instances which will be evaluated.
lm-eval-harness/lm_eval/api/task.py:325
Functioninstantiate
Instantiate a full decoder config, e.g. handle list of configs Note that arguments are added in reverse order compared to encoder (model first, th
train/src/tasks/decoders.py:314
Methodinstantiate
(self)
synthetic/zoology/config.py:57
Functioninter_chunk_onc
(query, key, value, gk, gv, normalizer_gk=16, normalizer_gv=16, clam_min=-3)
based/models/triton/kernels/inter_chunk_contribution/fn.py:8
Functioninterpolate_pos_embedding
(state_dict, out_seqlen, pos_embedding_name='model.pos_encoder.pe', interleave=False)
based/utils/checkpoint.py:41
Functioninterpolate_pos_embedding
(state_dict, out_seqlen, pos_embedding_name='model.pos_encoder.pe', interleave=False)
train/src/utils/checkpoint.py:41
Functionjoin_iters
(iters)
lm-eval-harness/lm_eval/utils.py:85
Functionjson_serial
JSON serializer for objects not serializable by default json code
lm-eval-harness/lm_eval/decontamination/archiver.py:14
Functionkernel_bwd
Kernel for computing Out = activation(A x W + C) - Input has shape (M, K) - Weight has shape (K, N) - Output has shape (M, N) - A
based/ops/triton/linear.py:428
Functionkernel_fwd
Kernel for computing Out = activation(A x W + C) - Input has shape (M, K) - Weight has shape (K, N) - Bias has shape (N,) - Outpu
based/ops/triton/linear.py:131
Functionl2_promote
()
train/src/callbacks/gpu_affinity.py:10
Functionlayer_norm
(x, weight, bias, epsilon)
based/ops/layer_norm.py:657
Functionlayer_norm_fn
( x, weight, bias, residual=None, eps=1e-6, prenorm=False, residual_in_fp32=False,
based/models/mixers/mamba/ops/triton/layernorm.py:464
Functionlayer_norm_fn
( x, weight, bias, residual=None, eps=1e-6, prenorm=False, residual_in_fp32=False,
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:464
Functionlayer_norm_fn
( x, weight, bias, residual=None, x1=None, weight1=None, bias1=None, eps=1e-6,
train/src/ops/layer_norm.py:859
Functionlayer_norm_linear_fn
( x, norm_weight, norm_bias, linear_weight, linear_bias, residual=None, eps=1e-6,
based/ops/triton/layer_norm.py:1063
Functionlayer_norm_linear_fn
( x, norm_weight, norm_bias, linear_weight, linear_bias, residual=None, eps=1e-6,
based/models/mixers/mamba/ops/triton/layernorm.py:612
Functionlayer_norm_linear_fn
( x, norm_weight, norm_bias, linear_weight, linear_bias, residual=None, eps=1e-6,
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:614
Functionlayer_norm_linear_fn
( x, norm_weight, norm_bias, linear_weight, linear_bias, residual=None, eps=1e-6,
train/src/ops/layer_norm.py:1063
Functionlayer_norm_ref
( x, weight, bias, residual=None, x1=None, weight1=None, bias1=None, eps=1e-6,
based/ops/triton/layer_norm.py:19
Functionlayer_norm_ref
(x, weight, bias, residual=None, eps=1e-6, prenorm=False, upcast=False)
based/models/mixers/mamba/ops/triton/layernorm.py:19
Functionlayer_norm_ref
(x, weight, bias, residual=None, eps=1e-6, prenorm=False, upcast=False)
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:19
Functionlayer_norm_ref
( x, weight, bias, residual=None, x1=None, weight1=None, bias1=None, eps=1e-6,
train/src/ops/layer_norm.py:19
Functionleaky_relu
LeakyReLU_ activation .. _LeakyReLU: https://pytorch.org/docs/stable/generated/torch.nn.LeakyReLU.html
based/ops/triton/k_activations.py:110
Functionleaky_relu_grad
(x)
based/ops/triton/k_activations.py:122
Functionload_checkpoint
(path, device='cpu')
based/utils/checkpoint.py:8
Methodload_checkpoint
(self, checkpoint_path: _PATH)
based/utils/ddp_zero1.py:96
Methodload_checkpoint
(self, checkpoint_path: _PATH)
based/utils/ddp_zero2.py:133
Methodload_checkpoint
(self, checkpoint_path: _PATH)
train/src/utils/ddp_zero1.py:96
Methodload_checkpoint
(self, checkpoint_path: _PATH)
train/src/utils/ddp_zero2.py:133
Methodload_contamination_ngrams
(self, filename: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:143
Functionload_prompt_list
( use_prompt: str, dataset_name=None, subset_name=None, yaml_path=None, **kwargs )
lm-eval-harness/lm_eval/prompts/__init__.py:69
Methodload_state_dict
r"""Loads the ExponentialMovingAverage state. Args: state_dict (dict): EMA state. Should be an object returned fro
based/utils/ema.py:228
Methodload_state_dict
r"""Loads the ExponentialMovingAverage state. Args: state_dict (dict): EMA state. Should be an object returned fro
train/src/utils/ema.py:228
Methodload_state_dict
(self, checkpoint)
train/src/datamodules/t5_data.py:129
Methodload_state_dict
(self, checkpoint)
train/src/datamodules/language_modeling_neox.py:132
Methodload_state_dict
(self, state_dict)
train/src/datamodules/fault_tolerant_sampler.py:29
Methodload_state_dict
(self, state_dict)
train/src/datamodules/fault_tolerant_sampler.py:75
Functionload_state_dict_hf
(model_name, device=None, dtype=None)
based/utils/hf.py:13
Functionload_table
Fetch a table from wandb based on the artifact ID. Args: artifact_id (str): You can find this on the Artifacts tab in the column "Na
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:215
Methodload_task
(config, task, group=None, yaml_path=None)
lm-eval-harness/lm_eval/tasks/__init__.py:139
Functionload_yaml_config
(yaml_path=None, yaml_config=None, yaml_dir=None, mode="full")
lm-eval-harness/lm_eval/utils.py:369
Functionlog_table
( df: pd.DataFrame, name: str, )
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:202
Methodloglikelihood
Compute log-likelihood of generating a continuation from a context. Downstream tasks should attempt to use loglikelihood instead of other
lm-eval-harness/lm_eval/api/model.py:32
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:202
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:73
Methodloglikelihood
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:212
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:98
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:465
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:16
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:193
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:500
Methodloglikelihood
(self, requests: List[Instance], decode_mode="default")
lm-eval-harness/lm_eval/models/huggingface.py:862
Methodloglikelihood_rolling
Compute full log-likelihood of a string, with no truncation, for perplexity computation - We will use the full max context length of the model
lm-eval-harness/lm_eval/api/model.py:57
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:205
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:125
Methodloglikelihood_rolling
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:228
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:122
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:481
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:33
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:337
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:503
Methodloglikelihood_rolling
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/huggingface.py:879
Functionmake_builder
(out_file, impl, vocab_size=None)
train/src/datamodules/datasets/indexed_dataset.py:53
Functionmake_dataset
(path, impl, skip_warmup=False)
train/src/datamodules/datasets/indexed_dataset.py:62
Functionmake_disjoint_window
Takes output from get_rolling_token_windows and makes the context not overlap with the continuation
lm-eval-harness/lm_eval/utils.py:163
Functionmamba_inner_ref
( xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight, out_proj_weight, out_proj_bias,
based/models/mixers/mamba/ops/selective_scan_interface.py:322
Functionmamba_inner_ref
( xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight, out_proj_weight, out_proj_bias,
synthetic/zoology/mixers/mamba_ssm/selective_scan_interface.py:311
Functionmatthews_corrcoef
(items)
lm-eval-harness/lm_eval/api/metrics.py:62
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:128
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/vllm_causallms.py:143
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/textsynth.py:77
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:323
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:162
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:414
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/huggingface.py:386
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:124
← previousnext →1,401–1,500 of 1,739, ranked by callers