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
tok_encode
(self, string: str)
lm-eval-harness/lm_eval/models/anthropic_llms.py:141
Method
tok_encode
(self, string: str)
lm-eval-harness/lm_eval/models/textsynth.py:90
Method
tokenize_concat
(examples)
train/src/datamodules/language_modeling_hf.py:155
Function
tokenize_function
(examples, tokenizer, in_length)
train/src/datamodules/t5_data.py:372
Method
train_dataloader
The train dataloader
train/src/datamodules/t5_data.py:93
Method
train_dataloader
(self, **kwargs)
train/src/datamodules/base.py:215
Method
train_dataloader
The train dataloader
train/src/datamodules/language_modeling_neox.py:93
Method
train_dataloader
The train dataloader
train/src/datamodules/language_modeling_hf.py:253
Method
training_docs
(self)
lm-eval-harness/lm_eval/api/task.py:903
Method
training_docs
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:132
Method
training_step
(self, batch: Any, batch_idx: int)
train/src/tasks/seq.py:136
Method
training_step
(self, batch: Any, batch_idx: int)
train/src/tasks/seq_hf.py:139
Function
unflatten
Takes a flat dictionary with '/' separated keys, and returns it as a nested dictionary. Parameters: d (dict): The flat dictionary t
synthetic/zoology/utils.py:84
Function
unflatten
Takes a flat dictionary with '/' separated keys, and returns it as a nested dictionary. Parameters: d (dict): The flat dictionary t
synthetic/zoology/analysis/utils.py:52
Method
update
Compute and store intermediate statistics for Perplexity. Args: preds: Probabilities assigned to each token in a s
train/src/metrics/perplexity.py:51
Method
update
(self, preds: Tensor, target: Tensor)
train/src/metrics/accuracy.py:10
Method
val_dataloader
The val dataloader
train/src/datamodules/t5_data.py:99
Method
val_dataloader
The val dataloader
train/src/datamodules/language_modeling_neox.py:99
Method
val_dataloader
The val dataloader
train/src/datamodules/language_modeling_hf.py:272
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:37
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_fda/task.py:25
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:43
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_swde/task.py:28
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_nq/task.py:25
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/based_drop/task.py:25
Method
validation_docs
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:136
Method
validation_step
(self, batch: Any, batch_idx: int)
train/src/tasks/seq.py:139
Method
validation_step
(self, batch: Any, batch_idx: int)
train/src/tasks/seq_hf.py:142
Function
weighted_perplexity
(items)
lm-eval-harness/lm_eval/api/metrics.py:42
Function
wikitext_detokenize
Wikitext is whitespace tokenized and we remove these whitespaces. Taken from https://github.com/NVIDIA/Megatron-LM/blob/main/tasks/zeroshot_g
train/src/datamodules/datasets/detokenizer.py:10
Function
word_perplexity_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:178
Method
world_size
(self)
lm-eval-harness/lm_eval/api/model.py:144
Method
world_size
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:340
Method
world_size
(self)
lm-eval-harness/lm_eval/models/huggingface.py:402
Function
wrap_constant_batch_size
(func)
lm-eval-harness/lm_eval/models/neuron_optimum.py:50
Function
wrapper
(*args, **kwargs)
lm-eval-harness/lm_eval/models/utils.py:337
Function
wrapper
(*args, **kwargs)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:149
Method
write_ids_to_disk
(example, filename)
train/src/datamodules/language_modeling_hf.py:199
Method
write_ids_to_shm
(example, shm_name, array_len)
train/src/datamodules/language_modeling_hf.py:170
← previous
1,701–1,739 of 1,739, ranked by callers