MCPcopy Create free account

hub / github.com/OpenSparseLLMs/MoM / functions

Functions861 in github.com/OpenSparseLLMs/MoM

Functionjson_serial
JSON serializer for objects not serializable by default json code
lm-eval-harness/lm_eval/decontamination/archiver.py:14
Methodload_contamination_ngrams
(self, filename: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:143
Functionload_prompt_list
( use_prompt: str, dataset_name=None, subset_name=None, yaml_path=None, **kwargs )
lm-eval-harness/lm_eval/prompts/__init__.py:69
Functionload_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
Methodload_task
(config, task, group=None, yaml_path=None)
lm-eval-harness/lm_eval/tasks/__init__.py:139
Functionload_yaml_config
(yaml_path=None, yaml_config=None, yaml_dir=None, mode="full")
lm-eval-harness/lm_eval/utils.py:369
Functionlog_table
( df: pd.DataFrame, name: str, )
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:202
Methodloglikelihood
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
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:202
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:73
Methodloglikelihood
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:212
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:98
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:465
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:16
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:193
Methodloglikelihood
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:500
Methodloglikelihood
(self, requests: List[Instance], decode_mode="default")
lm-eval-harness/lm_eval/models/huggingface.py:864
Methodloglikelihood_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
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/anthropic_llms.py:205
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/gguf.py:125
Methodloglikelihood_rolling
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/vllm_causallms.py:228
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/textsynth.py:122
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/neuron_optimum.py:481
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/dummy.py:33
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:337
Methodloglikelihood_rolling
(self, requests)
lm-eval-harness/lm_eval/models/openai_completions.py:503
Methodloglikelihood_rolling
(self, requests: List[Instance])
lm-eval-harness/lm_eval/models/huggingface.py:881
Functionmake_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
Functionmatthews_corrcoef
(items)
lm-eval-harness/lm_eval/api/metrics.py:62
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:128
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/vllm_causallms.py:143
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/textsynth.py:77
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:323
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:162
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:414
Methodmax_gen_toks
(self)
lm-eval-harness/lm_eval/models/huggingface.py:388
Methodmax_length
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:124
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:374
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
Methodon_log
( self, args: TrainingArguments, state: TrainerState, control: TrainerControl,
training/flame/logging.py:71
Methodon_train_begin
r""" Event called at the beginning of training.
training/flame/logging.py:41
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
Methodprepare_inputs_for_generation
( self, input_ids: torch.LongTensor = None, past_key_values: Optional[Union[Cache, Lis
mom/models/mom/modeling_mom.py:408
Methodprepare_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
Methodprepare_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
Methodprepare_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
Methodprepare_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
Methodpreprocess
Preprocess text data
evals/ppl.py:36
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
Functionpytorch_profiler
Wrap benchmark functions in Pytorch profiler to see CUDA information.
benchmarks/ops/benchmark.py:202
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:400
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
Functionregex_replace
Implements the `re.sub` function as a custom Jinja filter.
lm-eval-harness/lm_eval/utils.py:415
Functionregister_aggregation
(name: str)
lm-eval-harness/lm_eval/api/registry.py:139
Methodregister_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
Functionregister_group
(name)
lm-eval-harness/lm_eval/api/registry.py:62
Functionregister_metric
(**args)
lm-eval-harness/lm_eval/api/registry.py:92
Functionregister_model
(*names)
lm-eval-harness/lm_eval/api/registry.py:13
Functionregister_task
(name)
lm-eval-harness/lm_eval/api/registry.py:48
Functionremove_prefix
(text: str, prefix: str)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:23
Functionresolve_user_path
(path: str)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:11
Functionretry_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
Functionrun_inference_one_model
( model_args: dict, sampling_params, requests: List[List[int]] )
lm-eval-harness/lm_eval/models/vllm_causallms.py:30
Methodsameuntil_chunks
(xs, size)
lm-eval-harness/lm_eval/models/openai_completions.py:275
Methodsample
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
Methodsample
lm-eval-harness/lm_eval/api/samplers.py:97
Methodsave_contamination_ngrams
(self, filename: str)
lm-eval-harness/lm_eval/decontamination/janitor.py:139
Methodselect_majority
(resp)
lm-eval-harness/lm_eval/filters/selection.py:47
Methodset_decoder
(self, decoder)
mom/models/mom/modeling_mom.py:387
← previousnext →701–800 of 861, ranked by callers