Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSparseLLMs/MoM
/ functions
Functions
861 in github.com/OpenSparseLLMs/MoM
⨍
Functions
861
◇
Types & classes
129
↳
Endpoints
19
Function
json_serial
JSON serializer for objects not serializable by default json code
lm-eval-harness/lm_eval/decontamination/archiver.py:14
Method
load_contamination_ngrams
(self, filename: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:143
Function
load_prompt_list
( use_prompt: str, dataset_name=None, subset_name=None, yaml_path=None, **kwargs )
lm-eval-harness/lm_eval/prompts/__init__.py:69
Function
load_table
Fetch a table from wandb based on the artifact ID. Args: artifact_id (str): You can find this on the Artifacts tab in the column "Na
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:215
Method
load_task
(config, task, group=None, yaml_path=None)
lm-eval-harness/lm_eval/tasks/__init__.py:139
Function
load_yaml_config
(yaml_path=None, yaml_config=None, yaml_dir=None, mode="full")
lm-eval-harness/lm_eval/utils.py:369
Function
log_table
( df: pd.DataFrame, name: str, )
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:202
Method
loglikelihood
Compute log-likelihood of generating a continuation from a context. Downstream tasks should attempt to use loglikelihood instead of other
lm-eval-harness/lm_eval/api/model.py:32
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:202
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:73
Method
loglikelihood
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:212
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:98
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:465
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:16
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:193
Method
loglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:500
Method
loglikelihood
(self, requests: List[Instance], decode_mode="default")
lm-eval-harness/lm_eval/models/huggingface.py:864
Method
loglikelihood_rolling
Compute full log-likelihood of a string, with no truncation, for perplexity computation - We will use the full max context length of the model
lm-eval-harness/lm_eval/api/model.py:57
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:205
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:125
Method
loglikelihood_rolling
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:228
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:122
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:481
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:33
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:337
Method
loglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:503
Method
loglikelihood_rolling
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/huggingface.py:881
Function
make_disjoint_window
Takes output from get_rolling_token_windows and makes the context not overlap with the continuation
lm-eval-harness/lm_eval/utils.py:163
Function
matthews_corrcoef
(items)
lm-eval-harness/lm_eval/api/metrics.py:62
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:128
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/vllm_causallms.py:143
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/textsynth.py:77
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:323
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:162
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:414
Method
max_gen_toks
(self)
lm-eval-harness/lm_eval/models/huggingface.py:388
Method
max_length
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:124
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:374
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
on_log
( self, args: TrainingArguments, state: TrainerState, control: TrainerControl,
training/flame/logging.py:71
Method
on_train_begin
r""" Event called at the beginning of training.
training/flame/logging.py:41
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
prepare_inputs_for_generation
( self, input_ids: torch.LongTensor = None, past_key_values: Optional[Union[Cache, Lis
mom/models/mom/modeling_mom.py:408
Method
prepare_inputs_for_generation
( self, input_ids: torch.LongTensor = None, past_key_values: Optional[Union[Cache, Lis
mom_naive/models/mom_linear_attn/modeling_mom_linear_attn.py:353
Method
prepare_inputs_for_generation
( self, input_ids: torch.LongTensor = None, past_key_values: Optional[Union[Cache, Lis
mom_naive/models/mom_gated_deltanet/modeling_mom_gated_deltanet.py:369
Method
prepare_inputs_for_generation
( self, input_ids: torch.LongTensor = None, past_key_values: Optional[Union[Cache, Lis
mom_naive/models/mom_gsa/modeling_mom_gsa.py:362
Method
prepare_inputs_for_generation
( self, input_ids: torch.LongTensor = None, past_key_values: Optional[Union[Cache, Lis
mom_naive/models/mom_gla/modeling_mom_gla.py:340
Method
preprocess
Preprocess text data
evals/ppl.py:36
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
pytorch_profiler
Wrap benchmark functions in Pytorch profiler to see CUDA information.
benchmarks/ops/benchmark.py:202
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:400
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
Function
regex_replace
Implements the `re.sub` function as a custom Jinja filter.
lm-eval-harness/lm_eval/utils.py:415
Function
register_aggregation
(name: str)
lm-eval-harness/lm_eval/api/registry.py:139
Method
register_contaminant
Register a string as contamination to be removed, e.g. a test set This breaks the dirt_string into ngrams to store for future cleaning
lm-eval-harness/lm_eval/decontamination/janitor.py:151
Function
register_group
(name)
lm-eval-harness/lm_eval/api/registry.py:62
Function
register_metric
(**args)
lm-eval-harness/lm_eval/api/registry.py:92
Function
register_model
(*names)
lm-eval-harness/lm_eval/api/registry.py:13
Function
register_task
(name)
lm-eval-harness/lm_eval/api/registry.py:48
Function
remove_prefix
(text: str, prefix: str)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:23
Function
resolve_user_path
(path: str)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:11
Function
retry_on_specific_exceptions
Retry on an LLM Provider's rate limit error with exponential backoff For example, to use for OpenAI, do the following: ``` from openai imp
lm-eval-harness/lm_eval/models/utils.py:315
Function
run_inference_one_model
( model_args: dict, sampling_params, requests: List[List[int]] )
lm-eval-harness/lm_eval/models/vllm_causallms.py:30
Method
sameuntil_chunks
(xs, size)
lm-eval-harness/lm_eval/models/openai_completions.py:275
Method
sample
TODO: this should return approximately class-balanced samples from our fewshot examples. TODO: what order should they be in? maybe ra
lm-eval-harness/lm_eval/api/samplers.py:87
Method
sample
lm-eval-harness/lm_eval/api/samplers.py:97
Method
save_contamination_ngrams
(self, filename: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:139
Method
select_majority
(resp)
lm-eval-harness/lm_eval/filters/selection.py:47
Method
set_decoder
(self, decoder)
mom/models/mom/modeling_mom.py:387
← previous
next →
701–800 of 861, ranked by callers