MCPcopy Create free account

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

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

Methodbackward
(ctx, dout)
based/ops/activations.py:131
Methodbackward
(ctx, grad_output, *args)
based/ops/fused_dense.py:71
Methodbackward
(ctx, grad_output, *args)
based/ops/fused_dense.py:349
Methodbackward
(ctx, dz, *args)
based/ops/layer_norm.py:374
Methodbackward
(ctx, dz, *args)
based/ops/layer_norm.py:483
Methodbackward
(ctx, dz0, dz1, *args)
based/ops/layer_norm.py:605
Methodbackward
(ctx, grad_losses, grad_z_losses)
based/ops/triton/cross_entropy.py:251
Methodbackward
(ctx, grad_output)
based/ops/triton/mlp.py:66
Methodbackward
(ctx, dy, *args)
based/ops/triton/layer_norm.py:799
Methodbackward
(ctx, dout, *args)
based/ops/triton/layer_norm.py:1018
Methodbackward
(ctx, DO)
based/models/triton/kernels/inter_chunk_contribution/chunk_scan_triton_only_gv.py:149
Methodbackward
(ctx, DO)
based/models/triton/kernels/inter_chunk_contribution/chunk_scan_triton_no_decay.py:128
Methodbackward
(ctx, DO)
based/models/triton/kernels/inter_chunk_contribution/chunk_scan_triton_only_gk.py:138
Methodbackward
(ctx, DO)
based/models/triton/kernels/inter_chunk_contribution/chunk_scan_triton_full.py:149
Methodbackward
(ctx, dgv_cumsum, dv_reduce, dgv_cumsum_exp, dgv_last_exp)
based/models/triton/kernels/inter_chunk_contribution/preprocess_cumsum_gv.py:212
Methodbackward
(ctx, dout, *args)
based/models/mixers/mamba/ops/selective_scan_interface.py:55
Methodbackward
(ctx, dout)
based/models/mixers/mamba/ops/selective_scan_interface.py:240
Methodbackward
(ctx, dy, *args)
based/models/mixers/mamba/ops/triton/layernorm.py:425
Methodbackward
(ctx, dout, *args)
based/models/mixers/mamba/ops/triton/layernorm.py:567
Methodbackward
(ctx, dout, *args)
synthetic/zoology/mixers/mamba_ssm/selective_scan_interface.py:50
Methodbackward
(ctx, dout)
synthetic/zoology/mixers/mamba_ssm/selective_scan_interface.py:232
Methodbackward
(ctx, dout, *args)
synthetic/zoology/mixers/mamba_ssm/triton/layernorm.py:569
Methodbackward
(ctx, dy, *args)
train/src/ops/layer_norm.py:799
Methodbackward
(ctx, dout, *args)
train/src/ops/layer_norm.py:1018
Functionbased_update_ref
Compute linear attention with recurrent view
based/models/triton/based_updated.py:148
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:132
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/textsynth.py:81
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:327
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:166
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:418
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/huggingface.py:390
Functionbits_per_byte
(items)
lm-eval-harness/lm_eval/api/metrics.py:47
Functionbits_per_byte_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:198
Functionbleu
The Bilingual Evaluation Understudy Score, or BLEU for short, is a metric for evaluating a generated sentence to a reference sentence. It counts m
lm-eval-harness/lm_eval/api/metrics.py:71
Functionbleu_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:252
Functionblockdiag_to_dense_mlp_bert
(state_dict)
based/utils/checkpoint.py:32
Functionblockdiag_to_dense_mlp_bert
(state_dict)
train/src/utils/checkpoint.py:32
Methodbuild
(self, **kwargs)
synthetic/zoology/config.py:75
Methodbuild
(self, seed: int)
synthetic/zoology/data/non_autoreg.py:106
Functionbuild_blending_indices
train/src/datamodules/neox_utils/helpers.cpp:34
Functionbuild_blocks_mapping
train/src/datamodules/neox_utils/helpers.cpp:715
Functionbuild_blocks_mapping_impl
train/src/datamodules/neox_utils/helpers.cpp:515
Functionbuild_mapping
train/src/datamodules/neox_utils/helpers.cpp:482
Functionbuild_mapping_impl
train/src/datamodules/neox_utils/helpers.cpp:273
Functionbuild_sample_idx_int32
train/src/datamodules/neox_utils/helpers.cpp:91
Functionbuild_sample_idx_int64
train/src/datamodules/neox_utils/helpers.cpp:177
Functionbypass
(items)
lm-eval-harness/lm_eval/api/metrics.py:222
Functionbypass_agg
(arr)
lm-eval-harness/lm_eval/api/metrics.py:20
Functionbyte_perplexity_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:188
Functioncache
A decorator that caches the output DataFrame(s) of the decorated function in a directory. The directory is determined by hashing the argument
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:140
Functioncb_multi_fi
(items)
lm-eval-harness/lm_eval/tasks/super_glue/cb/aggregate.py:5
Functionchrf
chrF++ is a tool for automatic evaluation of machine translation output based on character n-gram precision and recall enhanced with word n-grams.
lm-eval-harness/lm_eval/api/metrics.py:89
Functionchrf_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:262
Functionchunks
Divides an iterable into chunks of specified size or based on a given function. Useful for batching Parameters: - iter: The input it
lm-eval-harness/lm_eval/models/utils.py:25
Methodclean
Clean a string (e.g. a training set) by removing all ngrams previously registered as contaminants. Returns a list of clean chunks, or empty if
lm-eval-harness/lm_eval/decontamination/janitor.py:160
Methodclip_grad_by_norm
Clip gradients by norm.
based/utils/ddp_zero2.py:64
Methodclip_grad_by_norm
Clip gradients by norm.
train/src/utils/ddp_zero2.py:64
Functioncombine_gated_mlp
(state_dicts, state_dict, key)
based/models/transformer/gpt.py:874
Functioncombine_state_dicts_tp
Convert the list of sharded state_dict of a GPT model with tensor parallel to the state_dict of a standard GPT model. This function is meant
based/models/transformer/gpt.py:788
Functioncombined_sample_stderr
(stderrs: List[float], sizes: List[int], metrics=None)
lm-eval-harness/lm_eval/api/metrics.py:449
Methodcommit
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:99
Methodcompute
Compute the Perplexity. Returns: Perplexity
train/src/metrics/perplexity.py:65
Functioncompute_inner
(query, key, value, decay_key)
based/models/triton/kernels/intra_chunk_contribution/fn_only_gk.py:225
Functioncompute_inner_A
(query, key, decay_key)
based/models/triton/kernels/intra_chunk_contribution/fn_only_gk.py:245
Methodcompute_metrics
(samples)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:197
Methodconfig
Returns the TaskConfig associated with this class.
lm-eval-harness/lm_eval/api/task.py:257
Methodconfig
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:299
Methodconfig
(self)
lm-eval-harness/lm_eval/models/huggingface.py:354
Methodconfigure_optimizers
(self)
train/src/tasks/seq.py:145
Methodconfigure_optimizers
(self)
train/src/tasks/seq_hf.py:148
Methodconstruct_requests
( self, doc: dict, ctx: str, **kwargs )
lm-eval-harness/lm_eval/api/task.py:1117
Methodconstruct_requests
(self, doc: dict, ctx: str, **kwargs)
lm-eval-harness/lm_eval/api/task.py:1373
Methodconstruct_requests
(self, doc: dict, ctx: Union[str, None], **kwargs)
lm-eval-harness/lm_eval/api/task.py:1447
Methodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:47
Methodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
lm-eval-harness/lm_eval/tasks/based_fda/task.py:43
Methodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:71
Methodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
lm-eval-harness/lm_eval/tasks/based_swde/task.py:70
Methodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
lm-eval-harness/lm_eval/tasks/based_nq/task.py:52
Methodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
lm-eval-harness/lm_eval/tasks/based_drop/task.py:53
Methodconstruct_requests
(self, doc, ctx, **kwargs)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:240
Methodconstruct_requests
(self, doc, ctx, **kwargs)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:272
Methodconstruct_requests
(self, doc, ctx, **kwargs)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:314
Methodconstruct_requests
(self, doc, ctx, **kwargs)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:393
Functioncosh
(x)
based/ops/triton/k_activations.py:62
Functioncreate_doc_idx
(sizes)
train/src/datamodules/datasets/indexed_dataset.py:128
Methodcreate_from_arg_string
(cls, arg_string, additional_config=None)
lm-eval-harness/lm_eval/models/dummy.py:13
Functioncreate_iterator
Method for creating a (potentially) sliced and limited iterator from a raw document iterator. Used for splitting data among ranks in mult
lm-eval-harness/lm_eval/utils.py:429
Functioncross_entropy_bwd_kernel
( dlogits_ptr, # data ptrs dloss_ptr, logits_ptr, lse_ptr, labels_ptr, smoothing,
based/ops/triton/cross_entropy.py:98
Functioncross_entropy_fwd_kernel
( loss_ptr, # data ptrs lse_ptr, z_loss_ptr, logits_ptr, labels_ptr, smoothing, l
based/ops/triton/cross_entropy.py:26
Functioncross_entropy_loss
Arguments: logits: (batch, vocab_size) labels: (batch,) label_smoothing: float logit_scale: float. Multiply logit
based/ops/triton/cross_entropy.py:284
Methodcustom_enc_dec_encode
( encodings, whole_enc, pad_token_id: int = 220, #50256, enc_
lm-eval-harness/lm_eval/models/huggingface.py:824
Functiondataset_exists
(path, impl)
train/src/datamodules/datasets/indexed_dataset.py:84
Functiondecode
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:99
Functiondecode_speculative
TD: WIP, for my own understanding, lightly tested. Only support batch_size == 1 for now. Speculative decoding, either greedy or with top-k o
based/generation.py:268
Functiondecode_speculative
TD: WIP, for my own understanding, lightly tested. Only support batch_size == 1 for now. Speculative decoding, either greedy or with top-k o
train/src/generation.py:279
Functiondecompress
(fut)
based/distributed/ddp_comm_hooks.py:34
Functiondecompress
(fut)
train/src/distributed/ddp_comm_hooks.py:34
Functiondecorate
(cls)
lm-eval-harness/lm_eval/api/registry.py:17
Functiondecorator
(func: Callable)
lm-eval-harness/lm_eval/models/utils.py:335
Functiondefault
(obj)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:117
← previousnext →1,001–1,100 of 1,739, ranked by callers