MCPcopy Create free account

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

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

Function_int_or_none_list_arg_type
(max_len: int, value: str, split_char: str = ",")
lm-eval-harness/lm_eval/__main__.py:25
Function_layer_norm_bwd_kernel
( X, # pointer to the input W, # pointer to the weights B, # pointer to the biases Y, # po
based/ops/triton/layer_norm.py:407
Function_layer_norm_bwd_kernel
( X, # pointer to the input W, # pointer to the weights B, # pointer to the biases Y, # po
based/models/mixers/mamba/ops/triton/layernorm.py:196
Function_layer_norm_bwd_kernel
( X, # pointer to the input W, # pointer to the weights B, # pointer to the biases Y, # po
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:196
Function_layer_norm_bwd_kernel
( X, # pointer to the input W, # pointer to the weights B, # pointer to the biases Y, # po
train/src/ops/layer_norm.py:407
Function_layer_norm_fwd_1pass_kernel
( X, # pointer to the input Y, # pointer to the output W, # pointer to the weights B, # po
based/ops/triton/layer_norm.py:145
Function_layer_norm_fwd_1pass_kernel
( X, # pointer to the input Y, # pointer to the output W, # pointer to the weights B, # po
based/models/mixers/mamba/ops/triton/layernorm.py:65
Function_layer_norm_fwd_1pass_kernel
( X, # pointer to the input Y, # pointer to the output W, # pointer to the weights B, # po
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:65
Function_layer_norm_fwd_1pass_kernel
( X, # pointer to the input Y, # pointer to the output W, # pointer to the weights B, # po
train/src/ops/layer_norm.py:145
Method_loglikelihood_tokens
(self, requests, disable_tqdm: bool = False)
lm-eval-harness/lm_eval/models/anthropic_llms.py:147
Function_mamba_init_weights
( module, n_layer, initializer_range=0.02, # Now only used for embedding layer. rescale_preno
synthetic/zoology/model.py:102
Method_model_call
(self, inps)
lm-eval-harness/lm_eval/models/anthropic_llms.py:194
Method_model_call
(self, inps)
lm-eval-harness/lm_eval/models/textsynth.py:165
Method_model_call
(self, inps)
lm-eval-harness/lm_eval/models/openai_completions.py:329
Method_model_generate
(self, context, max_length, eos_token_id)
lm-eval-harness/lm_eval/models/anthropic_llms.py:198
Method_model_generate
(self, context, max_length, eos_token_id)
lm-eval-harness/lm_eval/models/textsynth.py:169
Method_model_generate
(self, context, max_length, stop, **generation_kwargs)
lm-eval-harness/lm_eval/models/mamba_lm.py:105
Method_model_generate
(self, context, max_length, eos_token_id)
lm-eval-harness/lm_eval/models/openai_completions.py:333
Method_name_is_python_task
(self, name)
lm-eval-harness/lm_eval/tasks/__init__.py:87
Method_nested_update
(config, args)
synthetic/zoology/config.py:29
Function_num_cpu_cores
()
lm-eval-harness/lm_eval/tasks/scrolls/task.py:98
Method_process_doc
Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data
lm-eval-harness/lm_eval/api/task.py:313
Method_process_doc
Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data
lm-eval-harness/lm_eval/api/task.py:1004
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:255
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:292
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:354
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:411
Method_random_segmentation
Partition a sequence of items randomly into non-empty segments. Args: num_items: an integer scalar > 0 num
train/src/datamodules/t5_data.py:288
Method_return_callback
(cls, return_value, resolution=None)
train/src/datamodules/base.py:123
Method_return_callback
(cls, return_value, resolution=None, img_size=None, channels_last=True)
train/src/datamodules/base.py:154
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:217
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:258
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:302
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:380
Function_selective_scan_update_kernel
( # Pointers to matrices kv_state_ptr, k_state_ptr, x_ptr, B_ptr, C_ptr, out_ptr, # Matrix dimensi
based/models/triton/based_updated.py:19
Function_selective_scan_update_kernel
( # Pointers to matrices state_ptr, x_ptr, dt_ptr, dt_bias_ptr, A_ptr, B_ptr, C_ptr, D_ptr, z_ptr, out
based/models/mixers/mamba/ops/triton/selective_state_update.py:21
Function_selective_scan_update_kernel
( # Pointers to matrices state_ptr, x_ptr, dt_ptr, dt_bias_ptr, A_ptr, B_ptr, C_ptr, D_ptr, z_ptr, out
synthetic/zoology/mixers/mamba_ssm/triton/selective_state_update.py:21
Function_squad_agg
(key, items)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:15
Function_squad_agg
(key, items)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:16
Method_train_dataloader
(self, dataset, train_resolution=None, eval_resolutions=None, **kwargs)
train/src/datamodules/base.py:239
Function_wrapper
(*args, **kwargs)
lm-eval-harness/lm_eval/utils.py:281
Functionacc_all
(items)
lm-eval-harness/lm_eval/api/metrics.py:282
Functionacc_all_stderr
(items)
lm-eval-harness/lm_eval/api/metrics.py:301
Functionacc_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:125
Functionacc_mutual_info_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:145
Functionacc_norm_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:135
Functionactual_decorator
(func)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:147
Methodadd_data
(self, data, meta=None)
lm-eval-harness/lm_eval/decontamination/archiver.py:33
Methodadd_data
(self, data)
lm-eval-harness/lm_eval/decontamination/archiver.py:96
Methodadd_item
(self, np_array)
train/src/datamodules/datasets/indexed_dataset.py:299
Methodadd_item
(self, np_array)
train/src/datamodules/datasets/indexed_dataset.py:582
Functionagg_em
(items)
lm-eval-harness/lm_eval/tasks/super_glue/multirc/t5_utils.py:42
Functionagg_f1
(items)
lm-eval-harness/lm_eval/tasks/super_glue/multirc/t5_utils.py:21
Functionagg_mean_3class_f1
(items)
lm-eval-harness/lm_eval/tasks/super_glue/cb/t5_utils.py:14
Functionaggregate_subtask_metrics
(metrics, sizes, weight_by_size=True)
lm-eval-harness/lm_eval/api/metrics.py:481
Methodaggregation
(self)
lm-eval-harness/lm_eval/api/task.py:1357
Methodaggregation
(self)
lm-eval-harness/lm_eval/api/task.py:1407
Methodaggregation
(self)
lm-eval-harness/lm_eval/api/task.py:1468
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:117
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_fda/task.py:81
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:137
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_swde/task.py:109
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_nq/task.py:90
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_drop/task.py:93
Methodaggregation
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:206
Methodaggregation
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:220
Functionall_reduce_item
All-reduces single scalar value if distributed is in use
based/utils/distributed.py:70
Functionall_reduce_item
All-reduces single scalar value if distributed is in use
train/src/utils/distributed.py:70
Methodall_tasks
(self)
lm-eval-harness/lm_eval/tasks/__init__.py:60
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mamba.py:260
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/transformer/gpt.py:604
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None)
based/models/mixers/mha.py:493
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None)
based/models/mixers/mha.py:847
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None)
based/models/mixers/slide_attention.py:380
Methodallocate_inference_cache
Creates a state tensor of shape ...
based/models/mixers/prefix_linear_attention.py:264
Methodallocate_inference_cache
Creates a state tensor of shape ...
based/models/mixers/linear_attention.py:328
Methodallocate_inference_cache
Creates a state tensor of shape (b, d, k)
based/models/mixers/convolution.py:211
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mixers/mamba/modules/mamba_simple.py:349
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
based/models/mixers/mamba/modules/models/mixer_seq_simple.py:225
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
train/src/models/block.py:389
Methodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
train/src/models/gpt.py:815
Methodapply
Return {"no_contamination", "only_contamination"} keys for the 2 different subsets
lm-eval-harness/lm_eval/filters/decontamination.py:20
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/extraction.py:20
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/extraction.py:49
Methodapply
Assuming each entry of `resps` is a list of model responses, we discard all but the first response.
lm-eval-harness/lm_eval/filters/selection.py:12
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/selection.py:25
Methodapply
Each entry of `resps` is a list of model responses. We select the response that occurs most frequently in each entry of `resps`.
lm-eval-harness/lm_eval/filters/selection.py:41
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/transformation.py:8
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/transformation.py:19
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/transformation.py:48
Methodapply
(self, instances: List[Instance])
lm-eval-harness/lm_eval/api/filter.py:45
Methodapply
(self, doc)
lm-eval-harness/lm_eval/prompts/__init__.py:114
Methodapply_filters
Iterates over FilterEnsembles and applies them to instances
lm-eval-harness/lm_eval/api/task.py:975
Functionapply_rotary
Arguments: x: (batch, seqlen, nheads, headdim) if cu_seqlens is None else (total_seqlen, nheads, headdim). cos: (seql
based/ops/triton/rotary.py:144
Functionapply_template
(template: str, doc: dict)
lm-eval-harness/lm_eval/utils.py:424
Methodargs
Returns (string,) where `string` is the string to calculate loglikelihood over
lm-eval-harness/lm_eval/api/instance.py:32
Methodaverage_parameters
r""" Context manager for validation/inference with averaged parameters. Equivalent to: ema.store() ema.copy_to
based/utils/ema.py:168
Methodaverage_parameters
r""" Context manager for validation/inference with averaged parameters. Equivalent to: ema.store() ema.copy_to
train/src/utils/ema.py:168
Methodbackward
(ctx, grad_output)
based/ops/activations.py:45
Methodbackward
(ctx, grad_output)
based/ops/activations.py:82
← previousnext →901–1,000 of 1,739, ranked by callers