MCPcopy Create free account

hub / github.com/allenai/OLMo / functions

Functions3,821 in github.com/allenai/OLMo

↓ 1 callersMethodprocess_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
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:480
↓ 1 callersMethodprovide_offline_configs
(self, offline_data_path: str, offline_output_file: str, limit: int = -1)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/stdio_wrapper.py:109
↓ 1 callersMethodprovide_offline_configs
(self, offline_data_path: str, offline_output_file: str, limit: int = -1)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/stdio_wrapper.py:109
↓ 1 callersFunctionquant_matmul_inference_only_248
(input, qweight, scales, qzeros, g_idx, bits, maxq)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/triton_utils/kernels.py:369
↓ 1 callersFunctionquery_openai_chat_model
Query OpenAI chat model and save the results to output_path. `instances` is a list of dictionaries, each dictionary contains a key "prompt" a
inference/eval/utils.py:200
↓ 1 callersFunctionread_json
(path)
scripts/list_evals_from_oe_eval.py:66
↓ 1 callersMethodread_tqdm
(self, update_frequency=10000)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:98
↓ 1 callersMethodread_tqdm
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:153
↓ 1 callersMethodread_tqdm
(self, update_frequency=10000)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:98
↓ 1 callersMethodread_tqdm
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:153
↓ 1 callersMethodregister_contaminant_cpp
(self, dirt_string)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:186
↓ 1 callersMethodregister_contaminant_cpp
(self, dirt_string)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:186
↓ 1 callersMethodregister_contaminant_python
(self, dirt_string)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:202
↓ 1 callersMethodregister_contaminant_python
(self, dirt_string)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:202
↓ 1 callersFunctionremove_articles
(text)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:49
↓ 1 callersFunctionremove_articles
(text)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:49
↓ 1 callersMethodremove_checkpoint
(self, idx: int = 0, checkpoint_type: CheckpointType = CheckpointType.sharded)
olmo/train.py:647
↓ 1 callersMethodremove_metrics
( self, predictions: Sequence[Dict[str, Any]], additional_fields: Optional[Sequence[str]] = None )
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:325
↓ 1 callersMethodremove_metrics
( self, predictions: Sequence[Dict[str, Any]], additional_fields: Optional[Sequence[str]] = None )
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:317
↓ 1 callersFunctionremove_punc
(text)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:55
↓ 1 callersFunctionremove_punc
(text)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:55
↓ 1 callersMethodremove_right_units
(self, string)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/hendrycks_math.py:191
↓ 1 callersMethodremove_right_units
(self, string)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/hendrycks_math.py:191
↓ 1 callersMethodremove_sharded_checkpoint
(self, idx: int = 0)
olmo/train.py:532
↓ 1 callersMethodremove_unsharded_checkpoint
(self, idx: int = 0)
olmo/train.py:567
↓ 1 callersMethodrender_message
(self, *, record: logging.LogRecord, message: str)
olmo/util.py:261
↓ 1 callersMethodrestore_checkpoint
( self, load_path: PathOrStr, dist_model: nn.Module, optim: Optimizer,
olmo/checkpoint.py:1634
↓ 1 callersMethodrestore_rng_state
(self, rng_state: Dict[str, Any])
olmo/train.py:429
↓ 1 callersMethodrestore_sharded_checkpoint
( self, load_path: PathOrStr, local_cache: Optional[PathOrStr] = None, *,
olmo/train.py:538
↓ 1 callersMethodrestore_unsharded_checkpoint
( self, load_path: PathOrStr, local_cache: Optional[PathOrStr] = None, *,
olmo/train.py:577
↓ 1 callersFunctionrotate_every_two
(x)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/fused_gptj_attn.py:23
↓ 1 callersMethodrotate_half
(self, x: torch.Tensor)
olmo/model.py:294
↓ 1 callersMethodrouge
Returns `t5` style ROUGE scores. See the related implementation: https://github.com/google-research/text-to-text-transfer-transformer
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/truthfulqa.py:366
↓ 1 callersMethodrouge
Returns `t5` style ROUGE scores. See the related implementation: https://github.com/google-research/text-to-text-transfer-transformer
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/truthfulqa.py:366
↓ 1 callersFunctionroundrobin
Call the given iterables in a round-robin fashion. For example: ``roundrobin('ABC', 'D', 'EF') --> A D E B F C``
olmo/util.py:825
↓ 1 callersFunctionrun
(outdir: str)
scripts/add_code_eval.py:24
↓ 1 callersMethodrun
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:139
↓ 1 callersMethodrun
(self, metrics: Dict[str, Dict[str, float]], format: str = "text")
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:278
↓ 1 callersMethodrun
(self, predictions: Sequence[Dict[str, Any]])
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:308
↓ 1 callersMethodrun
(self, metrics: Dict[str, Dict[str, float]], format: str = "text")
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:270
↓ 1 callersMethodrun
(self, predictions: Sequence[Dict[str, Any]])
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:300
↓ 1 callersMethodrun
(self, *args, **kwargs)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/triton_utils/custom_autotune.py:79
↓ 1 callersMethodrun
(self, **predict_kwargs)
inference/compression/dependencies/AutoGPTQ/auto_gptq/eval_tasks/_base.py:54
↓ 1 callersMethodrun_offline
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:163
↓ 1 callersMethodrun_offline
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:157
↓ 1 callersMethodrun_online
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:146
↓ 1 callersMethodrun_online
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:141
↓ 1 callersFunctionrun_task_tests
Find the package root and run the tests for the given tasks
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/utils.py:185
↓ 1 callersFunctionrun_task_tests
Find the package root and run the tests for the given tasks
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/utils.py:185
↓ 1 callersFunctions3_unshard_to_hf
(args)
scripts/s3_unshard_to_hf.py:91
↓ 1 callersFunctionsafetensors_file_to_state_dict
(filename: PathOrStr, map_location: Optional[str] = None)
olmo/safetensors_util.py:76
↓ 1 callersMethodsample_beams
Returns the beams with the highest perturbed log probabilities.
olmo/beam_search.py:356
↓ 1 callersMethodsample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/beam_search.py:89
↓ 1 callersMethodsample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/beam_search.py:135
↓ 1 callersMethodsample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/beam_search.py:171
↓ 1 callersMethodsave
(self, obj, save_persistent_id=True)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tango_utils/det_hash.py:115
↓ 1 callersMethodsave_checkpoint
( self, dir: PathOrStr, dist_model: nn.Module, optim: Optimizer, train
olmo/checkpoint.py:1579
↓ 1 callersMethodsave_ephemeral_checkpoint
(self)
olmo/train.py:516
↓ 1 callersFunctionsave_fsdp_model_and_optim_state
Use this to save a state dict for an FSDP model and its optimizer via :module:`torch.distributed.checkpoint` functions. This should be used d
olmo/checkpoint.py:98
↓ 1 callersMethodsave_instances_to_json
(self, instances: List[EfficiencyBenchmarkInstance], path: str)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tasks/efficiency_benchmark.py:62
↓ 1 callersMethodsave_instances_to_json
(self, instances: List[EfficiencyBenchmarkInstance], path: str)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/tasks/efficiency_benchmark.py:62
↓ 1 callersMethodsave_sharded_checkpoint
(self)
olmo/train.py:510
↓ 1 callersMethodsave_unsharded_checkpoint
(self)
olmo/train.py:561
↓ 1 callersMethodset_cache_hook
(self, cache_hook)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:121
↓ 1 callersMethodset_cache_hook
(self, cache_hook)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:121
↓ 1 callersFunctionset_env_variables
()
olmo/util.py:200
↓ 1 callersFunctionsetup_logging
:param rank0_only: INFO and below messages will only be emitted on the rank0 process.
olmo/util.py:84
↓ 1 callersMethodshould_decontaminate
Whether this task supports decontamination against model training set.
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:396
↓ 1 callersMethodshould_decontaminate
Whether this task supports decontamination against model training set.
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:396
↓ 1 callersMethodshould_log_optim_metrics_this_step
(self)
olmo/train.py:979
↓ 1 callersMethodshould_log_this_step
(self)
olmo/train.py:991
↓ 1 callersFunctionsilu
(x)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/triton_utils/kernels.py:282
↓ 1 callersFunctionsimple_parse_args_string
Parses something like args1=val1,arg2=val2 Into a dictionary
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/utils.py:22
↓ 1 callersFunctionsize_for_model
(model_config: Union[ModelConfig, str])
scripts/ladder.py:328
↓ 1 callersMethodsplit_batch
(self, batch: Dict[str, Any])
olmo/train.py:922
↓ 1 callersFunctionsplit_gzip_file
(input_file, output_base, size_limit=size_limit, output_ext=output_ext)
scripts/split_gz.py:26
↓ 1 callersFunctionsplit_indices
Splits a string on whitespaces and records the indices of each in the original string. @:return generator((word, (start_idx, end_idx)), ...)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:71
↓ 1 callersFunctionsplit_indices
Splits a string on whitespaces and records the indices of each in the original string. @:return generator((word, (start_idx, end_idx)), ...)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:71
↓ 1 callersFunctionstdio_predictor_wrapper
Wrap a predictor in a loop that reads from stdin and writes to stdout. The predictor implements `predict` function that takes a single string
inference/efficiency/run_efficiency_benchmark.py:58
↓ 1 callersFunctionstdio_predictor_wrapper
Wrap a predictor in a loop that reads from stdin and writes to stdout. The predictor implements `predict` function that takes a single string
inference/efficiency/dependencies/previous_version/olmo_efficiency.py:15
↓ 1 callersMethodstep
(self, closure=None)
olmo/optim.py:433
↓ 1 callersMethodstop
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/efficiency/power_monitor.py:21
↓ 1 callersMethodstop
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/efficiency/power_monitor.py:21
↓ 1 callersFunctionstores_f
(nu, tu, gs=False)
inference/compression/dependencies/AutoGPTQ/autogptq_extension/qigen/generate.py:427
↓ 1 callersFunctionsynchronize_flag
(flag: bool, device: torch.device)
olmo/torch_util.py:138
↓ 1 callersMethodtabulate_efficiency_metrics
( self, metrics: Dict[str, Any], output_file: Optional[str] = None, )
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:109
↓ 1 callersMethodtabulate_efficiency_metrics
( self, metrics: Dict[str, Any], output_file: Optional[str] = None, )
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:105
↓ 1 callersMethodtest_docs
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/wsc273.py:65
↓ 1 callersMethodtest_docs
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/wsc273.py:65
↓ 1 callersFunctionthreaded_generator
(g, maxsize: int = 16, thread_name: Optional[str] = None)
olmo/util.py:800
↓ 1 callersMethodto_dict
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tasks/efficiency_benchmark.py:26
↓ 1 callersMethodto_dict
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/tasks/efficiency_benchmark.py:26
↓ 1 callersMethodtok_decode
(self, tokens: Iterable[int])
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:156
↓ 1 callersMethodtok_decode
(self, tokens: Iterable[int])
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:156
↓ 1 callersFunctiontoken_f1_score
Taken from the official evaluation script for v1.1 of the SQuAD dataset.
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:88
↓ 1 callersFunctiontoken_f1_score
Taken from the official evaluation script for v1.1 of the SQuAD dataset.
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:88
↓ 1 callersFunctiontokenize_file
Tokenize a file of documents using the provided tokenizer; file is expected to be a gzipped JSON lines file, each containing a field named `text`.
scripts/prepare_memmap_dataset.py:73
↓ 1 callersMethodtrain_batch
(self, batch: Dict[str, Any])
olmo/train.py:771
↓ 1 callersMethodtrain_micro_batch
( self, micro_batch: Dict[str, Any], batch_size_in_tokens: int )
olmo/train.py:748
↓ 1 callersMethodtrain_step
(self, batch: Dict[str, Any], reduce_global_loss: bool = True)
olmo/train.py:820
← previousnext →1,001–1,100 of 3,821, ranked by callers