Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HazyResearch/prefix-linear-attention
/ functions
Functions
1,739 in github.com/HazyResearch/prefix-linear-attention
⨍
Functions
1,739
◇
Types & classes
329
↳
Endpoints
21
Method
max_length
(self)
lm-eval-harness/lm_eval/models/vllm_causallms.py:126
Method
max_length
(self)
lm-eval-harness/lm_eval/models/textsynth.py:72
Method
max_length
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:309
Method
max_length
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:155
Method
max_length
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:409
Method
max_length
(self)
lm-eval-harness/lm_eval/models/huggingface.py:372
Function
mcc_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:232
Function
mean_3class_f1
(predictions, references)
lm-eval-harness/lm_eval/tasks/super_glue/cb/t5_utils.py:4
Function
median
(arr)
lm-eval-harness/lm_eval/api/metrics.py:30
Method
merge_file_
(self, another_file)
train/src/datamodules/datasets/indexed_dataset.py:310
Method
merge_file_
(self, another_file)
train/src/datamodules/datasets/indexed_dataset.py:590
Function
modify_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
Method
num_tokens
(self, index)
train/src/datamodules/datasets/indexed_dataset.py:210
Method
on_before_optimizer_step
(self, trainer: Trainer, *args: Any, **kwargs: Any)
train/src/callbacks/loss_scale_monitor.py:17
Method
on_before_optimizer_step
(self, trainer: Trainer, pl_module, *args: Any, **kwargs: Any)
train/src/callbacks/norm_monitor.py:33
Method
on_exception
(self, trainer: "pl.Trainer", *_: Any, **__: Any)
train/src/callbacks/model_checkpoint.py:14
Method
on_fit_start
(self, trainer: Trainer, pl_module: LightningModule)
train/src/callbacks/params_log.py:23
Method
on_fit_start
(self, trainer: Trainer, pl_module: LightningModule)
train/src/callbacks/flop_count.py:34
Method
on_keyboard_interrupt
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:119
Method
on_load_checkpoint
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", checkpoint: Dict[str, Any]
train/src/callbacks/ema.py:75
Method
on_sanity_check_end
Start executing this callback only after all validation sanity checks end.
train/src/callbacks/wandb_callbacks.py:151
Method
on_sanity_check_end
Start executing this callback only after all validation sanity checks end.
train/src/callbacks/wandb_callbacks.py:209
Method
on_sanity_check_end
Start executing this callback only after all validation sanity checks end.
train/src/callbacks/wandb_callbacks.py:273
Method
on_sanity_check_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:148
Method
on_sanity_check_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:206
Method
on_sanity_check_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:270
Method
on_save_checkpoint
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", checkpoint: Dict[str, Any] )
train/src/callbacks/ema.py:70
Method
on_save_checkpoint
(self, checkpoint)
train/src/tasks/seq.py:178
Method
on_save_checkpoint
(self, checkpoint)
train/src/tasks/seq_hf.py:181
Method
on_test_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:66
Method
on_test_epoch_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:38
Method
on_test_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:61
Method
on_train_batch_end
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", outputs: STEP_
train/src/callbacks/speed_monitor.py:64
Method
on_train_batch_end
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", outputs: STEP_
train/src/callbacks/ema.py:40
Method
on_train_batch_start
( self, trainer: "pl.Trainer", pl_module: "pl.LightningModule", batch: Any,
train/src/callbacks/speed_monitor.py:42
Method
on_train_epoch_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule",)
train/src/callbacks/speed_monitor.py:89
Method
on_train_epoch_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/causality_monitor.py:32
Method
on_train_epoch_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:30
Method
on_train_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:27
Method
on_train_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:30
Method
on_train_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:45
Method
on_train_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:57
Method
on_train_start
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:79
Method
on_validation_batch_end
Gather data from single batch.
train/src/callbacks/wandb_callbacks.py:155
Method
on_validation_batch_end
Gather data from single batch.
train/src/callbacks/wandb_callbacks.py:213
Method
on_validation_end
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:57
Method
on_validation_epoch_end
Generate confusion matrix.
train/src/callbacks/wandb_callbacks.py:163
Method
on_validation_epoch_end
Generate f1, precision and recall heatmap.
train/src/callbacks/wandb_callbacks.py:221
Method
on_validation_epoch_end
(self, trainer, pl_module)
train/src/callbacks/wandb_callbacks.py:277
Method
on_validation_epoch_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/speed_monitor.py:35
Method
on_validation_start
(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule")
train/src/callbacks/ema.py:51
Method
optimizer_state
(self, optimizer: Optimizer)
based/utils/ddp_zero1.py:69
Method
optimizer_state
(self, optimizer: Optimizer)
based/utils/ddp_zero2.py:106
Method
optimizer_state
(self, optimizer: Optimizer)
train/src/utils/ddp_zero1.py:69
Method
optimizer_state
(self, optimizer: Optimizer)
train/src/utils/ddp_zero2.py:106
Method
optimizer_step
( # type: ignore[override] self, model: "pl.LightningModule", optimizer, opti
based/utils/ddp_zero2.py:28
Method
optimizer_step
( # type: ignore[override] self, model: "pl.LightningModule", optimizer, opti
train/src/utils/ddp_zero2.py:28
Method
optimizer_zero_grad
(self, epoch, batch_idx, optimizer, optimizer_idx)
train/src/tasks/seq.py:170
Method
optimizer_zero_grad
(self, epoch, batch_idx, optimizer, optimizer_idx)
train/src/tasks/seq_hf.py:173
Method
orthogonal_square
()
synthetic/zoology/mixers/feature_maps/performer.py:125
Function
pattern_match
(patterns, source_list)
lm-eval-harness/lm_eval/utils.py:101
Function
perplexity
(items)
lm-eval-harness/lm_eval/api/metrics.py:37
Function
perplexity_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:168
Function
pooled_sample_stderr
(stderrs: List[float], sizes: List[int])
lm-eval-harness/lm_eval/api/metrics.py:431
Function
pop_stddev
(arr)
lm-eval-harness/lm_eval/api/metrics.py:202
Function
positional_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
Method
precision_plugin
(self)
based/utils/ddp_zero2.py:92
Method
precision_plugin
(self)
train/src/utils/ddp_zero2.py:92
Method
predict_dataloader
The predict dataloader
train/src/datamodules/t5_data.py:109
Method
predict_dataloader
The predict dataloader
train/src/datamodules/language_modeling_neox.py:111
Method
prefetch
(self, indices)
train/src/datamodules/datasets/indexed_dataset.py:237
Method
prepare_data
(self, stage=None)
train/src/datamodules/language_modeling_neox.py:61
Method
prepare_data
(self)
train/src/datamodules/language_modeling_hf.py:80
Function
print_config
Prints content of DictConfig using Rich library and its tree structure. Args: config (DictConfig): Configuration composed by Hydra.
based/utils/utils.py:89
Function
print_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
Function
print_rank_zero
(*args, **kwargs)
based/utils/utils.py:131
Function
process_docs
(dataset)
lm-eval-harness/lm_eval/tasks/super_glue/record/t5_utils.py:28
Function
process_results
(doc, results)
lm-eval-harness/lm_eval/tasks/super_glue/record/util.py:24
Function
process_results
(docs: dict, resps: List)
lm-eval-harness/lm_eval/tasks/super_glue/wsc/t5_utils.py:85
Method
process_results
(self, doc, results)
lm-eval-harness/lm_eval/api/task.py:1176
Method
process_results
(self, doc: dict, results: List[Tuple[float, bool]])
lm-eval-harness/lm_eval/api/task.py:1386
Method
process_results
(self, doc: dict, results: float)
lm-eval-harness/lm_eval/api/task.py:1458
Method
process_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
Method
process_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
Method
process_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
Method
process_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
Method
process_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
Method
process_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
Method
process_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:226
Method
process_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:265
Method
process_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:305
Method
process_results
(self, doc, results)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:390
Function
profile_deepspeed
(model, input_size=(3, 224, 224), input_dtype=torch.float32, batch_size=1, detailed=Fals
based/utils/flops.py:20
Function
profile_fvcore
(model, input_size=(3, 224, 224), input_dtype=torch.float32, max_depth=4, batch_size=1, det
based/utils/flops.py:35
Method
rank
(self)
lm-eval-harness/lm_eval/api/model.py:137
Method
rank
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:336
Method
rank
(self)
lm-eval-harness/lm_eval/models/huggingface.py:398
Method
read
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:142
Method
read_and_tell
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:131
Method
read_slow
(self)
lm-eval-harness/lm_eval/decontamination/archiver.py:149
← previous
next →
1,501–1,600 of 1,739, ranked by callers