MCPcopy Create free account

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

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

Methodmax_length
(self)
lm-eval-harness/lm_eval/models/vllm_causallms.py:126
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/textsynth.py:72
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:309
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:155
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:409
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/huggingface.py:372
Functionmcc_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:232
Functionmean_3class_f1
(predictions, references)
lm-eval-harness/lm_eval/tasks/super_glue/cb/t5_utils.py:4
Functionmedian
(arr)
lm-eval-harness/lm_eval/api/metrics.py:30
Methodmerge_file_
(self, another_file)
train/src/datamodules/datasets/indexed_dataset.py:310
Methodmerge_file_
(self, another_file)
train/src/datamodules/datasets/indexed_dataset.py:590
Functionmodify_logits_for_top_k_filtering
Set the logits for none top-k values to -inf. Done in-place.
based/models/mixers/mamba/utils/generation.py:39
Methodnum_tokens
(self, index)
train/src/datamodules/datasets/indexed_dataset.py:210
Methodon_before_optimizer_step
(self, trainer: Trainer, *args: Any, **kwargs: Any)
train/src/callbacks/loss_scale_monitor.py:17
Methodon_before_optimizer_step
(self, trainer: Trainer, pl_module, *args: Any, **kwargs: Any)
train/src/callbacks/norm_monitor.py:33
Methodon_exception
(self, trainer: "pl.Trainer", *_: Any, **__: Any)
train/src/callbacks/model_checkpoint.py:14
Methodon_fit_start
(self, trainer: Trainer, pl_module: LightningModule)
train/src/callbacks/params_log.py:23
Methodon_fit_start
(self, trainer: Trainer, pl_module: LightningModule)
train/src/callbacks/flop_count.py:34
Methodon_keyboard_interrupt
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:119
Methodon_load_checkpoint
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", checkpoint: Dict[str, Any]
train/src/callbacks/ema.py:75
Methodon_sanity_check_end
Start executing this callback only after all validation sanity checks end.
train/src/callbacks/wandb_callbacks.py:151
Methodon_sanity_check_end
Start executing this callback only after all validation sanity checks end.
train/src/callbacks/wandb_callbacks.py:209
Methodon_sanity_check_end
Start executing this callback only after all validation sanity checks end.
train/src/callbacks/wandb_callbacks.py:273
Methodon_sanity_check_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:148
Methodon_sanity_check_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:206
Methodon_sanity_check_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:270
Methodon_save_checkpoint
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", checkpoint: Dict[str, Any] )
train/src/callbacks/ema.py:70
Methodon_save_checkpoint
(self, checkpoint)
train/src/tasks/seq.py:178
Methodon_save_checkpoint
(self, checkpoint)
train/src/tasks/seq_hf.py:181
Methodon_test_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:66
Methodon_test_epoch_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:38
Methodon_test_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:61
Methodon_train_batch_end
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", outputs: STEP_
train/src/callbacks/speed_monitor.py:64
Methodon_train_batch_end
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", outputs: STEP_
train/src/callbacks/ema.py:40
Methodon_train_batch_start
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", batch: Any,
train/src/callbacks/speed_monitor.py:42
Methodon_train_epoch_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule",)
train/src/callbacks/speed_monitor.py:89
Methodon_train_epoch_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/causality_monitor.py:32
Methodon_train_epoch_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:30
Methodon_train_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:27
Methodon_train_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:30
Methodon_train_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:45
Methodon_train_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:57
Methodon_train_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:79
Methodon_validation_batch_end
Gather data from single batch.
train/src/callbacks/wandb_callbacks.py:155
Methodon_validation_batch_end
Gather data from single batch.
train/src/callbacks/wandb_callbacks.py:213
Methodon_validation_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:57
Methodon_validation_epoch_end
Generate confusion matrix.
train/src/callbacks/wandb_callbacks.py:163
Methodon_validation_epoch_end
Generate f1, precision and recall heatmap.
train/src/callbacks/wandb_callbacks.py:221
Methodon_validation_epoch_end
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:277
Methodon_validation_epoch_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:35
Methodon_validation_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:51
Methodoptimizer_state
(self, optimizer: Optimizer)
based/utils/ddp_zero1.py:69
Methodoptimizer_state
(self, optimizer: Optimizer)
based/utils/ddp_zero2.py:106
Methodoptimizer_state
(self, optimizer: Optimizer)
train/src/utils/ddp_zero1.py:69
Methodoptimizer_state
(self, optimizer: Optimizer)
train/src/utils/ddp_zero2.py:106
Methodoptimizer_step
( # type: ignore[override] self, model: "pl.LightningModule", optimizer, opti
based/utils/ddp_zero2.py:28
Methodoptimizer_step
( # type: ignore[override] self, model: "pl.LightningModule", optimizer, opti
train/src/utils/ddp_zero2.py:28
Methodoptimizer_zero_grad
(self, epoch, batch_idx, optimizer, optimizer_idx)
train/src/tasks/seq.py:170
Methodoptimizer_zero_grad
(self, epoch, batch_idx, optimizer, optimizer_idx)
train/src/tasks/seq_hf.py:173
Methodorthogonal_square
()
synthetic/zoology/mixers/feature_maps/performer.py:125
Functionpattern_match
(patterns, source_list)
lm-eval-harness/lm_eval/utils.py:101
Functionperplexity
(items)
lm-eval-harness/lm_eval/api/metrics.py:37
Functionperplexity_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:168
Functionpooled_sample_stderr
(stderrs: List[float], sizes: List[int])
lm-eval-harness/lm_eval/api/metrics.py:431
Functionpop_stddev
(arr)
lm-eval-harness/lm_eval/api/metrics.py:202
Functionpositional_deprecated
A decorator to nudge users into passing only keyword args (`kwargs`) to the wrapped function, `fn`.
lm-eval-harness/lm_eval/utils.py:274
Methodprecision_plugin
(self)
based/utils/ddp_zero2.py:92
Methodprecision_plugin
(self)
train/src/utils/ddp_zero2.py:92
Methodpredict_dataloader
The predict dataloader
train/src/datamodules/t5_data.py:109
Methodpredict_dataloader
The predict dataloader
train/src/datamodules/language_modeling_neox.py:111
Methodprefetch
(self, indices)
train/src/datamodules/datasets/indexed_dataset.py:237
Methodprepare_data
(self, stage=None)
train/src/datamodules/language_modeling_neox.py:61
Methodprepare_data
(self)
train/src/datamodules/language_modeling_hf.py:80
Functionprint_config
Prints content of DictConfig using Rich library and its tree structure. Args: config (DictConfig): Configuration composed by Hydra.
based/utils/utils.py:89
Functionprint_config
Prints content of DictConfig using Rich library and its tree structure. Args: config (DictConfig): Configuration composed by Hydra.
train/src/utils/utils.py:89
Functionprint_rank_zero
(*args, **kwargs)
based/utils/utils.py:131
Functionprocess_docs
(dataset)
lm-eval-harness/lm_eval/tasks/super_glue/record/t5_utils.py:28
Functionprocess_results
(doc, results)
lm-eval-harness/lm_eval/tasks/super_glue/record/util.py:24
Functionprocess_results
(docs: dict, resps: List)
lm-eval-harness/lm_eval/tasks/super_glue/wsc/t5_utils.py:85
Methodprocess_results
(self, doc, results)
lm-eval-harness/lm_eval/api/task.py:1176
Methodprocess_results
(self, doc: dict, results: List[Tuple[float, bool]])
lm-eval-harness/lm_eval/api/task.py:1386
Methodprocess_results
(self, doc: dict, results: float)
lm-eval-harness/lm_eval/api/task.py:1458
Methodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:79
Methodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
lm-eval-harness/lm_eval/tasks/based_fda/task.py:65
Methodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:100
Methodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
lm-eval-harness/lm_eval/tasks/based_swde/task.py:92
Methodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
lm-eval-harness/lm_eval/tasks/based_nq/task.py:74
Methodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
lm-eval-harness/lm_eval/tasks/based_drop/task.py:75
Methodprocess_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:226
Methodprocess_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:265
Methodprocess_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:305
Methodprocess_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:390
Functionprofile_deepspeed
(model, input_size=(3, 224, 224), input_dtype=torch.float32, batch_size=1, detailed=Fals
based/utils/flops.py:20
Functionprofile_fvcore
(model, input_size=(3, 224, 224), input_dtype=torch.float32, max_depth=4, batch_size=1, det
based/utils/flops.py:35
Methodrank
(self)
lm-eval-harness/lm_eval/api/model.py:137
Methodrank
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:336
Methodrank
(self)
lm-eval-harness/lm_eval/models/huggingface.py:398
Methodread
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:142
Methodread_and_tell
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:131
Methodread_slow
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:149
← previousnext →1,501–1,600 of 1,739, ranked by callers