Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/OLMo
/ functions
Functions
3,821 in github.com/allenai/OLMo
⨍
Functions
3,821
◇
Types & classes
799
↳
Endpoints
9
↓ 1 callers
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
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:480
↓ 1 callers
Method
provide_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 callers
Method
provide_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 callers
Function
quant_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 callers
Function
query_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 callers
Function
read_json
(path)
scripts/list_evals_from_oe_eval.py:66
↓ 1 callers
Method
read_tqdm
(self, update_frequency=10000)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:98
↓ 1 callers
Method
read_tqdm
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:153
↓ 1 callers
Method
read_tqdm
(self, update_frequency=10000)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:98
↓ 1 callers
Method
read_tqdm
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/archiver.py:153
↓ 1 callers
Method
register_contaminant_cpp
(self, dirt_string)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:186
↓ 1 callers
Method
register_contaminant_cpp
(self, dirt_string)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:186
↓ 1 callers
Method
register_contaminant_python
(self, dirt_string)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:202
↓ 1 callers
Method
register_contaminant_python
(self, dirt_string)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/decontamination/janitor.py:202
↓ 1 callers
Function
remove_articles
(text)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:49
↓ 1 callers
Function
remove_articles
(text)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:49
↓ 1 callers
Method
remove_checkpoint
(self, idx: int = 0, checkpoint_type: CheckpointType = CheckpointType.sharded)
olmo/train.py:647
↓ 1 callers
Method
remove_metrics
( self, predictions: Sequence[Dict[str, Any]], additional_fields: Optional[Sequence[str]] = None )
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:325
↓ 1 callers
Method
remove_metrics
( self, predictions: Sequence[Dict[str, Any]], additional_fields: Optional[Sequence[str]] = None )
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:317
↓ 1 callers
Function
remove_punc
(text)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:55
↓ 1 callers
Function
remove_punc
(text)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/qasper.py:55
↓ 1 callers
Method
remove_right_units
(self, string)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/hendrycks_math.py:191
↓ 1 callers
Method
remove_right_units
(self, string)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/hendrycks_math.py:191
↓ 1 callers
Method
remove_sharded_checkpoint
(self, idx: int = 0)
olmo/train.py:532
↓ 1 callers
Method
remove_unsharded_checkpoint
(self, idx: int = 0)
olmo/train.py:567
↓ 1 callers
Method
render_message
(self, *, record: logging.LogRecord, message: str)
olmo/util.py:261
↓ 1 callers
Method
restore_checkpoint
( self, load_path: PathOrStr, dist_model: nn.Module, optim: Optimizer,
olmo/checkpoint.py:1634
↓ 1 callers
Method
restore_rng_state
(self, rng_state: Dict[str, Any])
olmo/train.py:429
↓ 1 callers
Method
restore_sharded_checkpoint
( self, load_path: PathOrStr, local_cache: Optional[PathOrStr] = None, *,
olmo/train.py:538
↓ 1 callers
Method
restore_unsharded_checkpoint
( self, load_path: PathOrStr, local_cache: Optional[PathOrStr] = None, *,
olmo/train.py:577
↓ 1 callers
Function
rotate_every_two
(x)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/fused_gptj_attn.py:23
↓ 1 callers
Method
rotate_half
(self, x: torch.Tensor)
olmo/model.py:294
↓ 1 callers
Method
rouge
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 callers
Method
rouge
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 callers
Function
roundrobin
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 callers
Function
run
(outdir: str)
scripts/add_code_eval.py:24
↓ 1 callers
Method
run
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:139
↓ 1 callers
Method
run
(self, metrics: Dict[str, Dict[str, float]], format: str = "text")
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:278
↓ 1 callers
Method
run
(self, predictions: Sequence[Dict[str, Any]])
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:308
↓ 1 callers
Method
run
(self, metrics: Dict[str, Dict[str, float]], format: str = "text")
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:270
↓ 1 callers
Method
run
(self, predictions: Sequence[Dict[str, Any]])
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:300
↓ 1 callers
Method
run
(self, *args, **kwargs)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/triton_utils/custom_autotune.py:79
↓ 1 callers
Method
run
(self, **predict_kwargs)
inference/compression/dependencies/AutoGPTQ/auto_gptq/eval_tasks/_base.py:54
↓ 1 callers
Method
run_offline
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:163
↓ 1 callers
Method
run_offline
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:157
↓ 1 callers
Method
run_online
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:146
↓ 1 callers
Method
run_online
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:141
↓ 1 callers
Function
run_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 callers
Function
run_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 callers
Function
s3_unshard_to_hf
(args)
scripts/s3_unshard_to_hf.py:91
↓ 1 callers
Function
safetensors_file_to_state_dict
(filename: PathOrStr, map_location: Optional[str] = None)
olmo/safetensors_util.py:76
↓ 1 callers
Method
sample_beams
Returns the beams with the highest perturbed log probabilities.
olmo/beam_search.py:356
↓ 1 callers
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/beam_search.py:89
↓ 1 callers
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/beam_search.py:135
↓ 1 callers
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/beam_search.py:171
↓ 1 callers
Method
save
(self, obj, save_persistent_id=True)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tango_utils/det_hash.py:115
↓ 1 callers
Method
save_checkpoint
( self, dir: PathOrStr, dist_model: nn.Module, optim: Optimizer, train
olmo/checkpoint.py:1579
↓ 1 callers
Method
save_ephemeral_checkpoint
(self)
olmo/train.py:516
↓ 1 callers
Function
save_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 callers
Method
save_instances_to_json
(self, instances: List[EfficiencyBenchmarkInstance], path: str)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tasks/efficiency_benchmark.py:62
↓ 1 callers
Method
save_instances_to_json
(self, instances: List[EfficiencyBenchmarkInstance], path: str)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/tasks/efficiency_benchmark.py:62
↓ 1 callers
Method
save_sharded_checkpoint
(self)
olmo/train.py:510
↓ 1 callers
Method
save_unsharded_checkpoint
(self)
olmo/train.py:561
↓ 1 callers
Method
set_cache_hook
(self, cache_hook)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:121
↓ 1 callers
Method
set_cache_hook
(self, cache_hook)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:121
↓ 1 callers
Function
set_env_variables
()
olmo/util.py:200
↓ 1 callers
Function
setup_logging
:param rank0_only: INFO and below messages will only be emitted on the rank0 process.
olmo/util.py:84
↓ 1 callers
Method
should_decontaminate
Whether this task supports decontamination against model training set.
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:396
↓ 1 callers
Method
should_decontaminate
Whether this task supports decontamination against model training set.
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:396
↓ 1 callers
Method
should_log_optim_metrics_this_step
(self)
olmo/train.py:979
↓ 1 callers
Method
should_log_this_step
(self)
olmo/train.py:991
↓ 1 callers
Function
silu
(x)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/triton_utils/kernels.py:282
↓ 1 callers
Function
simple_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 callers
Function
size_for_model
(model_config: Union[ModelConfig, str])
scripts/ladder.py:328
↓ 1 callers
Method
split_batch
(self, batch: Dict[str, Any])
olmo/train.py:922
↓ 1 callers
Function
split_gzip_file
(input_file, output_base, size_limit=size_limit, output_ext=output_ext)
scripts/split_gz.py:26
↓ 1 callers
Function
split_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 callers
Function
split_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 callers
Function
stdio_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 callers
Function
stdio_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 callers
Method
step
(self, closure=None)
olmo/optim.py:433
↓ 1 callers
Method
stop
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/efficiency/power_monitor.py:21
↓ 1 callers
Method
stop
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/efficiency/power_monitor.py:21
↓ 1 callers
Function
stores_f
(nu, tu, gs=False)
inference/compression/dependencies/AutoGPTQ/autogptq_extension/qigen/generate.py:427
↓ 1 callers
Function
synchronize_flag
(flag: bool, device: torch.device)
olmo/torch_util.py:138
↓ 1 callers
Method
tabulate_efficiency_metrics
( self, metrics: Dict[str, Any], output_file: Optional[str] = None, )
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:109
↓ 1 callers
Method
tabulate_efficiency_metrics
( self, metrics: Dict[str, Any], output_file: Optional[str] = None, )
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:105
↓ 1 callers
Method
test_docs
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/wsc273.py:65
↓ 1 callers
Method
test_docs
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/wsc273.py:65
↓ 1 callers
Function
threaded_generator
(g, maxsize: int = 16, thread_name: Optional[str] = None)
olmo/util.py:800
↓ 1 callers
Method
to_dict
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tasks/efficiency_benchmark.py:26
↓ 1 callers
Method
to_dict
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/tasks/efficiency_benchmark.py:26
↓ 1 callers
Method
tok_decode
(self, tokens: Iterable[int])
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:156
↓ 1 callers
Method
tok_decode
(self, tokens: Iterable[int])
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:156
↓ 1 callers
Function
token_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 callers
Function
token_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 callers
Function
tokenize_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 callers
Method
train_batch
(self, batch: Dict[str, Any])
olmo/train.py:771
↓ 1 callers
Method
train_micro_batch
( self, micro_batch: Dict[str, Any], batch_size_in_tokens: int )
olmo/train.py:748
↓ 1 callers
Method
train_step
(self, batch: Dict[str, Any], reduce_global_loss: bool = True)
olmo/train.py:820
← previous
next →
1,001–1,100 of 3,821, ranked by callers