MCPcopy Create free account

hub / github.com/allenai/OLMo / functions

Functions3,821 in github.com/allenai/OLMo

↓ 1 callersMethod__init__
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/hendrycks_test.py:98
↓ 1 callersMethod__init__
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/translation.py:88
↓ 1 callersMethod__init__
( self, model: PreTrainedModel, quantized: bool, quantize_config: BaseQuantize
inference/compression/dependencies/AutoGPTQ/auto_gptq/modeling/_base.py:129
↓ 1 callersMethod__init__
(self, resource: str)
olmo/util.py:855
↓ 1 callersFunction_add_cached_path_s3_client
()
scripts/storage_cleaner.py:1282
↓ 1 callersFunction_add_delete_subparser
(subparsers: _SubParsersAction)
scripts/storage_cleaner.py:1377
↓ 1 callersFunction_add_move_subparser
(subparsers: _SubParsersAction)
scripts/storage_cleaner.py:1441
↓ 1 callersFunction_add_training_config_to_checkpoint
(local_checkpoint_dir: str, run_dir: str)
scripts/storage_cleaner.py:827
↓ 1 callersFunction_add_unsharding_subparser
(subparsers: _SubParsersAction)
scripts/storage_cleaner.py:1410
↓ 1 callersMethod_align_bags
Takes gold and predicted answer sets and first finds the optimal 1-1 alignment between them and gets maximum metric values over all t
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:188
↓ 1 callersMethod_align_bags
Takes gold and predicted answer sets and first finds the optimal 1-1 alignment between them and gets maximum metric values over all t
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:188
↓ 1 callersFunction_are_equal_configs
(wandb_config: TrainConfig, train_config: TrainConfig)
scripts/storage_cleaner.py:1050
↓ 1 callersMethod_attn
( self, query, key, value, attention_mask=None, head_mask=None
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/fused_gptj_attn.py:105
↓ 1 callersMethod_bench
(self, *args, config, **meta)
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/triton_utils/custom_autotune.py:54
↓ 1 callersMethod_cast_attn_bias
(cls, bias: torch.Tensor, input_dtype: torch.dtype)
olmo/model.py:513
↓ 1 callersMethod_compute_batch_logits
Computes the logits for a batch of tokens. Parameters ---------- tokens : torch.Tensor The tokenized tex
inference/compression/dependencies/AutoGPTQ/auto_gptq/utils/perplexity_utils.py:199
↓ 1 callersMethod_compute_f1
(self, predicted_bag, gold_bag)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:205
↓ 1 callersMethod_compute_f1
(self, predicted_bag, gold_bag)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:205
↓ 1 callersFunction_contains_checkpoint_dir
(dir_entries: List[str])
scripts/storage_cleaner.py:639
↓ 1 callersFunction_contains_nontrivial_checkpoint_dir
(dir_entries: List[str])
scripts/storage_cleaner.py:643
↓ 1 callersMethod_convert_instances
(self, instances: Sequence[Dict[str, Any]], instance_format)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/tasks/efficiency_benchmark.py:56
↓ 1 callersMethod_convert_instances
(self, instances: Sequence[Dict[str, Any]], instance_format)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/tasks/efficiency_benchmark.py:56
↓ 1 callersFunction_copy
Copies the entry at `src_path` to `dest_path`. The destination path can be a directory that does not exist (creating directories without a co
scripts/storage_cleaner.py:1110
↓ 1 callersMethod_copy_sharded_tensor_to_shared_mem
( self, sharded_tensor: ShardedTensor, world_size: int, rank: int, key: Tuple )
olmo/checkpoint.py:1101
↓ 1 callersMethod_copy_sharded_tensors_to_shared_mem
(self, state: Dict, world_size: int, rank: int, key: Tuple)
olmo/checkpoint.py:1068
↓ 1 callersMethod_copy_state
Copies the `state` . This method copies the data in `state` using `copy.deepcopy()`. If this is not appropriate for your constraint,
olmo/beam_search.py:551
↓ 1 callersFunction_delete_if_bad_run
(storage: StorageAdapter, run_path: str, config: DeleteBadRunsConfig)
scripts/storage_cleaner.py:743
↓ 1 callersMethod_do_adaptive_clipping
Do adaptive gradient clipping on a param group. If ``collect_param_metrics`` is ``True`` this will return the total number of gradie
olmo/optim.py:255
↓ 1 callersMethod_do_global_fixed_clipping
Do global fixed gradient clipping on a param group. If ``collect_param_metrics`` is ``True`` this will return the total number of gr
olmo/optim.py:323
↓ 1 callersFunction_factors
(n: int)
scripts/ladder.py:309
↓ 1 callersMethod_fill_banned_mask
( input_ids: torch.LongTensor, banned_mask: torch.Tensor, len2words_ids: Dict[int, List[List[int]]]
inference/compression/dependencies/AutoGPTQ/examples/benchmark/generation_speed.py:51
↓ 1 callersMethod_fix_number
(self, text)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:251
↓ 1 callersMethod_fix_number
(self, text)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:251
↓ 1 callersMethod_gather
(self, shards: List[ShardedTensor], device: torch.device)
olmo/checkpoint.py:1379
↓ 1 callersFunction_gcs_file_size
(bucket_name: str, key: str)
olmo/util.py:443
↓ 1 callersFunction_gcs_find_latest_checkpoint
(bucket_name: str, prefix: str)
olmo/util.py:476
↓ 1 callersFunction_gcs_get_bytes_range
(bucket_name: str, key: str, bytes_start: int, num_bytes: int)
olmo/util.py:457
↓ 1 callersFunction_gcs_upload
(source: Path, bucket_name: str, key: str, save_overwrite: bool = False)
olmo/util.py:434
↓ 1 callersMethod_get_bytes
(self, relative_path: str, offset: int, length: int)
olmo/checkpoint.py:427
↓ 1 callersFunction_get_checkpoint_dirs
(run_dir: str, run_dir_storage: StorageAdapter)
scripts/storage_cleaner.py:787
↓ 1 callersFunction_get_checkpoint_number
(checkpoint_dir: str)
scripts/storage_cleaner.py:777
↓ 1 callersMethod_get_directory_entries
( self, bucket_name: str, key: str, include_files: bool = True, max_fi
scripts/storage_cleaner.py:286
↓ 1 callersMethod_get_directory_entries
( self, bucket_name: str, key: str, include_files: bool = True, max_fi
scripts/storage_cleaner.py:435
↓ 1 callersMethod_get_flat_param_state_to_save
(self, fsdp_model: FSDP)
olmo/checkpoint.py:1527
↓ 1 callersFunction_get_matching_wandb_runs
(wandb_runs, checkpoint_dir: str)
scripts/storage_cleaner.py:1064
↓ 1 callersMethod_get_path
(bucket_name: str, key: str)
scripts/storage_cleaner.py:257
↓ 1 callersFunction_get_s3_endpoint_url
(scheme: str)
olmo/util.py:544
↓ 1 callersFunction_get_s3_profile_name
(scheme: str)
olmo/util.py:520
↓ 1 callersFunction_get_sharded_checkpoint_dirs
( run_dir_storage: StorageAdapter, run_dir: str, run_dir_or_archive: str, latest_checkpoint_on
scripts/storage_cleaner.py:793
↓ 1 callersMethod_get_size
(self, bucket_name: str, key: str)
scripts/storage_cleaner.py:278
↓ 1 callersMethod_get_size
(self, bucket_name: str, key: str)
scripts/storage_cleaner.py:426
↓ 1 callersFunction_get_src_dest_pairs_for_copy
( src_storage: StorageAdapter, run_dir_or_archive: str, dest_dir: str, config: MoveRunConfig )
scripts/storage_cleaner.py:1160
↓ 1 callersFunction_get_wandb_config
(wandb_run)
scripts/storage_cleaner.py:1054
↓ 1 callersFunction_get_wandb_runs_from_train_config
(config: TrainConfig)
scripts/storage_cleaner.py:1034
↓ 1 callersFunction_get_wandb_runs_from_wandb_dir
(storage: StorageAdapter, wandb_dir: str, run_config: TrainConfig)
scripts/storage_cleaner.py:1007
↓ 1 callersFunction_http_file_size
(scheme: str, host_name: str, path: str)
olmo/util.py:697
↓ 1 callersFunction_http_get_bytes_range
(scheme: str, host_name: str, path: str, bytes_start: int, num_bytes: int)
olmo/util.py:704
↓ 1 callersFunction_init_torch_optim
This matches the decay/no-decay param group split without the gradient clipping. We clip the gradients separately for test.
tests/grad_norm_test.py:24
↓ 1 callersMethod_instance_predictions_map_list
( cls, instances, predictions, keep_instance_fields: Optional[List] = None,
evaluation/steps/run_catwalk.py:232
↓ 1 callersMethod_is_correct
(self, completion, answer)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/gsm8k.py:94
↓ 1 callersMethod_is_correct
(self, completion, answer)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/gsm8k.py:94
↓ 1 callersFunction_is_run
This method is best effort. It may mark run paths as not (false negatives) or mark non-run paths as runs (false positives). We prioritize min
scripts/storage_cleaner.py:647
↓ 1 callersMethod_is_url
(path: str)
scripts/storage_cleaner.py:109
↓ 1 callersMethod_iter_flat_param_shards
( self, model_state: Dict[str, Any] )
olmo/checkpoint.py:1687
↓ 1 callersMethod_load_flat_param_state
Load the state produced from `self._get_flat_param_state_to_save()`.
olmo/checkpoint.py:1546
↓ 1 callersMethod_make_optim_state_dict_compatible
( self, optim_state_dict: Dict[str, Any], og_keys_to_new: Dict[str, Set[str]] )
olmo/checkpoint.py:822
↓ 1 callersMethod_match_numbers_if_present
(self, gold_bag, predicted_bag)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:218
↓ 1 callersMethod_match_numbers_if_present
(self, gold_bag, predicted_bag)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:218
↓ 1 callersMethod_merge_heads
Merges attn_head_size dim and num_attn_heads dim into hidden dim
inference/compression/dependencies/AutoGPTQ/auto_gptq/nn_modules/fused_gptj_attn.py:92
↓ 1 callersMethod_metric
(self, pred: List[Any], label: List[Any])
inference/compression/dependencies/AutoGPTQ/auto_gptq/eval_tasks/_base.py:51
↓ 1 callersMethod_model_call
inps: a torch tensor of shape [batch, sequence] the size of sequence may vary from call to call returns: a torch tensor of s
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:164
↓ 1 callersMethod_model_call
inps: a torch tensor of shape [batch, sequence] the size of sequence may vary from call to call returns: a torch tensor of s
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:164
↓ 1 callersMethod_model_generate
(self, context, max_length, eos_token_id)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:160
↓ 1 callersMethod_model_generate
(self, context, max_length, eos_token_id)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:160
↓ 1 callersFunction_move_run
(src_storage: StorageAdapter, run_dir_or_archive: str, dest_dir: str, config: MoveRunConfig)
scripts/storage_cleaner.py:1235
↓ 1 callersFunction_naive_train_loop
Naive torch training loop.
tests/grad_norm_test.py:142
↓ 1 callersMethod_normalize
(self, answer)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:257
↓ 1 callersMethod_normalize
(self, answer)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/drop.py:257
↓ 1 callersMethod_objects_are_equal
(self, a: Any, b: Any)
olmo/checkpoint.py:1443
↓ 1 callersMethod_parse_labels
(self, label_ids: torch.LongTensor)
inference/compression/dependencies/AutoGPTQ/auto_gptq/eval_tasks/_base.py:47
↓ 1 callersFunction_patch_config
(cfg, max_norm)
tests/grad_norm_test.py:85
↓ 1 callersMethod_predict
(self, batch_data: Dict[str, Any], **kwargs)
inference/compression/dependencies/AutoGPTQ/auto_gptq/eval_tasks/_base.py:43
↓ 1 callersMethod_prepare_data
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:57
↓ 1 callersMethod_prepare_data
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:53
↓ 1 callersMethod_prepare_data
Prepares the dataset by loading and formatting. Returns ------- str The formatted dataset as a single st
inference/compression/dependencies/AutoGPTQ/auto_gptq/utils/perplexity_utils.py:55
↓ 1 callersMethod_prepare_examples_for_quantization
( self, examples: List[Dict[str, Union[List[int], torch.LongTensor]]], batch_size: int
inference/compression/dependencies/AutoGPTQ/auto_gptq/modeling/_base.py:168
↓ 1 callersMethod_process_batch
Processes each batch of tokens. Parameters ---------- i : int The batch index. n_ctx : int
inference/compression/dependencies/AutoGPTQ/auto_gptq/utils/perplexity_utils.py:130
↓ 1 callersMethod_process_doc
Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/base.py:436
↓ 1 callersMethod_process_doc
Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/base.py:436
↓ 1 callersMethod_profile_gpu
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/efficiency/profiler.py:67
↓ 1 callersMethod_profile_gpu
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/efficiency/profiler.py:67
↓ 1 callersMethod_question2id
Returns an identifier for the question in the given document.
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/dependencies/lm_eval/tasks/mc_taco.py:101
↓ 1 callersMethod_question2id
Returns an identifier for the question in the given document.
inference/efficiency/dependencies/previous_version/efficiency_benchmark/dependencies/lm_eval/tasks/mc_taco.py:101
↓ 1 callersMethod_read_batch
(self)
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/stdio_wrapper.py:67
↓ 1 callersMethod_read_batch
(self)
inference/efficiency/dependencies/previous_version/efficiency_benchmark/stdio_wrapper.py:67
↓ 1 callersFunction_read_path_comments
(yaml_file)
scripts/microanneal_config_maker.py:502
↓ 1 callersFunction_read_path_comments
(yaml_file)
scripts/peteish7_config_maker.py:487
↓ 1 callersMethod_reconstruct_sequences
(predictions, backpointers)
olmo/beam_search.py:722
↓ 1 callersMethod_recursive_tolist
From catwalk. https://github.com/allenai/catwalk/blob/main/catwalk/model.py
inference/efficiency/dependencies/efficiency-pentathlon/efficiency_benchmark/steps.py:248
↓ 1 callersMethod_recursive_tolist
From catwalk. https://github.com/allenai/catwalk/blob/main/catwalk/model.py
inference/efficiency/dependencies/previous_version/efficiency_benchmark/steps.py:240
← previousnext →501–600 of 3,821, ranked by callers