MCPcopy Create free account

hub / github.com/OpenSparseLLMs/MoM / functions

Functions861 in github.com/OpenSparseLLMs/MoM

Method_init_weights
( self, module: nn.Module, rescale_prenorm_residual: bool = True, num_residual
mom_naive/models/mom_gated_deltanet/modeling_mom_gated_deltanet.py:170
Method_init_weights
( self, module: nn.Module, rescale_prenorm_residual: bool = True, num_residual
mom_naive/models/mom_gsa/modeling_mom_gsa.py:167
Method_init_weights
( self, module: nn.Module, rescale_prenorm_residual: bool = True, num_residual
mom_naive/models/mom_gla/modeling_mom_gla.py:146
Method_initialize_weights
(self, module: nn.Module)
mom/layers/mom.py:416
Method_initialize_weights
(self, module: nn.Module)
mom_naive/layers/mom_gla.py:332
Method_initialize_weights
(self, module: nn.Module)
mom_naive/layers/mom_gsa.py:287
Method_initialize_weights
(self, module: nn.Module)
mom_naive/layers/mom_linear_attn.py:286
Method_initialize_weights
(self, module: nn.Module)
mom_naive/layers/mom_gated_deltanet.py:358
Function_int_or_none_list_arg_type
(max_len: int, value: str, split_char: str = ",")
lm-eval-harness/lm_eval/__main__.py:25
Method_loglikelihood_tokens
(self, requests, disable_tqdm: bool = False)
lm-eval-harness/lm_eval/models/anthropic_llms.py:147
Method_model_call
(self, inps)
lm-eval-harness/lm_eval/models/anthropic_llms.py:194
Method_model_call
(self, inps)
lm-eval-harness/lm_eval/models/textsynth.py:165
Method_model_call
(self, inps)
lm-eval-harness/lm_eval/models/openai_completions.py:329
Method_model_generate
(self, context, max_length, eos_token_id)
lm-eval-harness/lm_eval/models/anthropic_llms.py:198
Method_model_generate
(self, context, max_length, eos_token_id)
lm-eval-harness/lm_eval/models/textsynth.py:169
Method_model_generate
(self, context, max_length, stop, **generation_kwargs)
lm-eval-harness/lm_eval/models/mamba_lm.py:105
Method_model_generate
(self, context, max_length, eos_token_id)
lm-eval-harness/lm_eval/models/openai_completions.py:333
Method_name_is_python_task
(self, name)
lm-eval-harness/lm_eval/tasks/__init__.py:87
Function_num_cpu_cores
()
lm-eval-harness/lm_eval/tasks/scrolls/task.py:98
Method_process_doc
Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data
lm-eval-harness/lm_eval/api/task.py:313
Method_process_doc
Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data
lm-eval-harness/lm_eval/api/task.py:1004
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:255
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:292
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:354
Method_process_doc
(self, doc)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:411
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:217
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:258
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:302
Method_scrolls_metrics
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:380
Function_squad_agg
(key, items)
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:15
Function_squad_agg
(key, items)
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:16
Function_wrapper
(*args, **kwargs)
lm-eval-harness/lm_eval/utils.py:281
Functionacc_all
(items)
lm-eval-harness/lm_eval/api/metrics.py:282
Functionacc_all_stderr
(items)
lm-eval-harness/lm_eval/api/metrics.py:301
Functionacc_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:125
Functionacc_mutual_info_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:145
Functionacc_norm_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:135
Functionactual_decorator
(func)
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:147
Methodadd_data
(self, data, meta=None)
lm-eval-harness/lm_eval/decontamination/archiver.py:33
Methodadd_data
(self, data)
lm-eval-harness/lm_eval/decontamination/archiver.py:96
Functionagg_em
(items)
lm-eval-harness/lm_eval/tasks/super_glue/multirc/t5_utils.py:42
Functionagg_f1
(items)
lm-eval-harness/lm_eval/tasks/super_glue/multirc/t5_utils.py:21
Functionagg_mean_3class_f1
(items)
lm-eval-harness/lm_eval/tasks/super_glue/cb/t5_utils.py:14
Functionaggregate_subtask_metrics
(metrics, sizes, weight_by_size=True)
lm-eval-harness/lm_eval/api/metrics.py:481
Methodaggregation
(self)
lm-eval-harness/lm_eval/api/task.py:1357
Methodaggregation
(self)
lm-eval-harness/lm_eval/api/task.py:1407
Methodaggregation
(self)
lm-eval-harness/lm_eval/api/task.py:1468
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:117
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_fda/task.py:81
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_triviaqa/task.py:137
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_swde/task.py:109
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_nq/task.py:90
Methodaggregation
:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that a
lm-eval-harness/lm_eval/tasks/based_drop/task.py:93
Methodaggregation
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:206
Methodaggregation
(self)
lm-eval-harness/lm_eval/tasks/scrolls/task.py:220
Methodall_tasks
(self)
lm-eval-harness/lm_eval/tasks/__init__.py:60
Functionamp_wrapper
(*inputs, **kwinputs)
benchmarks/ops/benchmark.py:15
Methodapply
Return {"no_contamination", "only_contamination"} keys for the 2 different subsets
lm-eval-harness/lm_eval/filters/decontamination.py:20
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/extraction.py:20
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/extraction.py:49
Methodapply
Assuming each entry of `resps` is a list of model responses, we discard all but the first response.
lm-eval-harness/lm_eval/filters/selection.py:12
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/selection.py:25
Methodapply
Each entry of `resps` is a list of model responses. We select the response that occurs most frequently in each entry of `resps`.
lm-eval-harness/lm_eval/filters/selection.py:41
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/transformation.py:8
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/transformation.py:19
Methodapply
(self, resps, docs)
lm-eval-harness/lm_eval/filters/transformation.py:48
Methodapply
(self, instances: List[Instance])
lm-eval-harness/lm_eval/api/filter.py:45
Methodapply
(self, doc)
lm-eval-harness/lm_eval/prompts/__init__.py:114
Methodapply_filters
Iterates over FilterEnsembles and applies them to instances
lm-eval-harness/lm_eval/api/task.py:975
Functionapply_template
(template: str, doc: dict)
lm-eval-harness/lm_eval/utils.py:424
Methodargs
Returns (string,) where `string` is the string to calculate loglikelihood over
lm-eval-harness/lm_eval/api/instance.py:32
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/anthropic_llms.py:132
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/textsynth.py:81
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/neuron_optimum.py:327
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:166
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/openai_completions.py:418
Methodbatch_size
(self)
lm-eval-harness/lm_eval/models/huggingface.py:392
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_abc.py:39
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_hgrn.py:29
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_fla.py:40
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_simple_gla_vs_mamba2.py:37
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_retention.py:42
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_gsa.py:41
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_based.py:40
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_rwkv6.py:39
Functionbenchmark
(T, provider)
benchmarks/ops/benchmark_gla.py:35
Functionbenchmark
(T, provider)
benchmarks/modules/benchmark_cross_entropy.py:32
Functionbenchmark
(T, provider)
benchmarks/modules/benchmark_layernorm.py:33
Functionbenchmark_all
Use Pytorch Benchmark on the forward+backward pass of an arbitrary function.
benchmarks/ops/benchmark.py:154
Functionbenchmark_fwd_bwd
Use Pytorch Benchmark on the forward+backward pass of an arbitrary function.
benchmarks/ops/benchmark.py:117
Functionbenchmark_memory
(fn, *inputs, desc="", verbose=True, **kwinputs)
benchmarks/ops/benchmark.py:258
Functionbits_per_byte
(items)
lm-eval-harness/lm_eval/api/metrics.py:47
Functionbits_per_byte_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:198
Functionbleu
The Bilingual Evaluation Understudy Score, or BLEU for short, is a metric for evaluating a generated sentence to a reference sentence. It counts m
lm-eval-harness/lm_eval/api/metrics.py:71
Functionbleu_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:252
Functionbypass
(items)
lm-eval-harness/lm_eval/api/metrics.py:222
Functionbypass_agg
(arr)
lm-eval-harness/lm_eval/api/metrics.py:20
Functionbyte_perplexity_fn
(items)
lm-eval-harness/lm_eval/api/metrics.py:188
Functioncache
A decorator that caches the output DataFrame(s) of the decorated function in a directory. The directory is determined by hashing the argument
lm-eval-harness/lm_eval/models/local_utils/jrt_utils.py:140
Functioncb_multi_fi
(items)
lm-eval-harness/lm_eval/tasks/super_glue/cb/aggregate.py:5
← previousnext →401–500 of 861, ranked by callers