MCPcopy Create free account

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

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

Methodforward
( ctx, x, norm_weight, norm_bias, linear_weight, linear_bias,
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:509
Methodforward
Assume x.shape is (b, h, l, d)
synthetic/zoology/mixers/feature_maps/performer.py:95
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/all_poly.py:43
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/all_poly.py:63
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/cosformer.py:37
Methodforward
Assume x.shape is (batch_size, n_heads, seq_len, head_dim)
synthetic/zoology/mixers/feature_maps/base.py:25
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/base.py:37
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/base.py:41
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/base.py:46
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/base.py:50
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/taylor.py:21
Methodforward
(self, x: torch.Tensor, fmap: Callable = None)
synthetic/zoology/mixers/feature_maps/exp_dim.py:26
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/exp_dim.py:43
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/exp_dim.py:48
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/exp_dim.py:58
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/exp_dim.py:67
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/exp_dim.py:83
Methodforward
(self, x: torch.Tensor)
synthetic/zoology/mixers/feature_maps/exp_dim.py:100
Methodforward
( ctx, x, weight, bias, residual=None, x1=None, weight
train/src/ops/layer_norm.py:701
Methodforward
(self, x, residual=None, prenorm=False, residual_in_fp32=False)
train/src/ops/layer_norm.py:943
Methodforward
( ctx, x, norm_weight, norm_bias, linear_weight, linear_bias,
train/src/ops/layer_norm.py:959
Methodforward
x: (n_batch, l_seq, d_model) Returns: (n_batch, l_output, d_output)
train/src/tasks/decoders.py:63
Methodforward
x: (n_batch, l_seq, d_model) Returns: (n_batch, l_output, d_output)
train/src/tasks/decoders.py:156
Methodforward
(self, x, state=None)
train/src/tasks/decoders.py:176
Methodforward
x: (2*batch, dim)
train/src/tasks/decoders.py:209
Methodforward
(self, x, state=None, **kwargs)
train/src/tasks/decoders.py:248
Methodforward
(self, x, state=None)
train/src/tasks/decoders.py:255
Methodforward
r"""Pass the input through the encoder layer. Args: hidden_states: the sequence to the encoder layer (required). resi
train/src/models/block.py:130
Methodforward
r"""Pass the input through the encoder layer. Args: hidden_states1: the output of the previous attention (mixer) or embedding lay
train/src/models/block.py:392
Methodforward
(self, x)
train/src/models/mlp.py:92
Methodforward
(self, x)
train/src/models/mlp.py:140
Methodforward
(self, x)
train/src/models/mlp.py:207
Methodforward
(self)
train/src/models/gpt.py:523
Methodforward
(self, input_ids, position_ids=None, inference_params=None, attention_mask=None, stream=None, **kwargs)
train/src/models/gpt.py:646
Methodforward
input_ids: (batch, seqlen) int tensor inference_params: for generation. Adapted from Megatron-LM (and Apex) https://github.co
train/src/models/gpt.py:820
Methodforward
hidden_states: (B, S, D) if batch_first else (S, B, D)
train/src/models/modules/seq_common.py:60
Methodforward
hidden_states: (B, S, D) if batch_first else (S, B, D)
train/src/models/modules/seq_common.py:84
Methodforward
hidden_states: (B, S, D) if batch_first else (S, B, D)
train/src/models/modules/seq_common.py:114
Methodforward
hidden_states: (B, S, D) if batch_first else (S, B, D)
train/src/models/modules/seq_common.py:140
Methodforward
r"""Inputs of forward function Args: x: the sequence fed to the positional encoder model (required). Shape: x:
train/src/models/modules/seq_common.py:192
Methodforward
(self, x)
train/src/models/modules/seq_common.py:227
Methodforward
(self, x)
train/src/models/modules/seq_common.py:259
Methodforward
(self, x)
train/src/models/modules/seq_common.py:282
Methodforward
(self, x)
train/src/models/modules/seq_common.py:311
Methodforward
(self, x)
train/src/models/modules/seq_common.py:335
Methodforward_batch
(batch_size)
lm-eval-harness/lm_eval/models/huggingface.py:632
Methodforward_mem_save
Compute f(x) s.t. f(x)^T f(x') = 1 + x^Tx' + (x^Tx')^2 / 2 -> Assume x.shape is (batch_size, n_heads, seq_len, head_dim)
synthetic/zoology/mixers/feature_maps/taylor.py:27
Functionfp16_compress_hook
This DDP communication hook implements a simple gradient compression approach that casts ``GradBucket`` tensor to half-precision floating-poi
based/distributed/ddp_comm_hooks.py:9
Functionfp16_compress_hook
This DDP communication hook implements a simple gradient compression approach that casts ``GradBucket`` tensor to half-precision floating-poi
train/src/distributed/ddp_comm_hooks.py:9
Methodfrom_pretrained_hf
(cls, pretrained_model_name, device=None, **kwargs)
based/models/transformer/gpt.py:333
Methodfrom_pretrained_hf
(cls, pretrained_model_name, device=None, **kwargs)
train/src/models/gpt.py:471
Methodgenerate
( self, input_ids, max_length, top_k=1, top_p=0.0, temperature
based/generation.py:563
Methodgenerate
( self, input_ids, max_length, answer_length=None, top_k=1, to
train/src/generation.py:614
Methodgenerate_naive
( self, input_ids: torch.Tensor, max_length, top_k=1, top_p=0.0,
based/generation.py:824
Methodgenerate_naive
( self, input_ids: torch.Tensor, max_length, top_k=1, top_p=0.0,
train/src/generation.py:906
Methodgenerate_until
Generate greedily until a stopping sequence :param requests: list[Instance] A list of Instance objects with property `args` which
lm-eval-harness/lm_eval/api/model.py:100
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:150
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:100
Methodgenerate_until
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:257
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:132
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:650
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:24
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:263
Methodgenerate_until
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:427
Methodgenerate_until
(self, requests: List[Instance], decode_mode='default')
lm-eval-harness/lm_eval/models/huggingface.py:1154
MethodgetName
(self)
based/utils/gpu_affinity.py:28
MethodgetName
(self)
train/src/utils/gpu_affinity.py:28
Methodget_auxiliary_loss
(module)
synthetic/zoology/train.py:68
Methodget_config
(self, key: str)
lm-eval-harness/lm_eval/api/task.py:1363
Functionget_configs_io_bound
()
based/ops/triton/linear.py:26
Methodget_doc_idx
(self)
train/src/datamodules/datasets/indexed_dataset.py:554
Methodget_input_embeddings
(self)
synthetic/zoology/mixers/gla.py:244
Functionget_model
(model_name)
lm-eval-harness/lm_eval/api/registry.py:33
Methodget_output_embeddings
(self)
synthetic/zoology/mixers/gla.py:250
Functionget_sampler
(name)
lm-eval-harness/lm_eval/api/samplers.py:108
Functionget_task_name_from_config
(task_config: Dict[str, str])
lm-eval-harness/lm_eval/tasks/__init__.py:365
Functionget_train_overlap
(docs_by_task_set: dict, ngrams_path: str, limit: int)
lm-eval-harness/lm_eval/decontamination/decontaminate.py:37
Functionget_train_overlap_stub
(docs: dict, ngrams_path: str, ngrams_n_size: str)
lm-eval-harness/lm_eval/decontamination/decontaminate.py:14
Functionget_triton_activation_bwd_kernel
(activation: Optional[Activation])
based/ops/triton/k_activations.py:41
Functionget_triton_activation_kernel
(activation: Optional[Activation])
based/ops/triton/k_activations.py:27
Methodgroup_return_dict
(arr, fn)
lm-eval-harness/lm_eval/models/utils.py:94
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:34
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/based_fda/task.py:22
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:35
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/based_swde/task.py:25
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/based_nq/task.py:22
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/based_drop/task.py:22
Methodhas_test_docs
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:129
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/api/task.py:1417
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:28
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/based_fda/task.py:16
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:29
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/based_swde/task.py:19
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/based_nq/task.py:16
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/based_drop/task.py:16
Methodhas_training_docs
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:123
Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:31
Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_fda/task.py:19
Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:32
Methodhas_validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_swde/task.py:22
← previousnext →1,301–1,400 of 1,739, ranked by callers