MCPcopy Create free account

hub / github.com/allenai/molmo / functions

Functions893 in github.com/allenai/molmo

Method_split_generators
(self, dl_manager: datasets.DownloadManager)
olmo/hf_datasets/plot_qa.py:29
Method_split_generators
(self, dl_manager: datasets.DownloadManager)
olmo/hf_datasets/figure_qa.py:34
Function_step_function_with_timestep
( last_predictions: torch.Tensor, state: dict[str, torch.Tensor], timestep: int, )
tests/beam_search_test.py:87
Method_update_state
( self, state: ConstraintStateType, last_prediction: torch.Tensor, )
olmo/beam_search.py:624
Methodautocast_precision
(self)
olmo/config.py:1758
Methodautocast_precision
(self)
olmo/config.py:1878
Methodbatches_per_epoch
(self)
olmo/train.py:306
Methodbuild
(cls, config: ModelConfig, size: Optional[int] = None, **kwargs)
olmo/model.py:243
Methodbuild
(cls, config: ModelConfig)
olmo/model.py:444
Methodbuild
(cls, config: ModelConfig)
olmo/model.py:1435
Functioncalculate_ins_level_acc
Calculate the instruction level accuracy for given Subject results
olmo/eval/mmmu_eval_utils.py:253
Functioncast_float_dtype
(t: torch.Tensor, dtype: str)
scripts/mm_eval.py:58
Functioncheck_install
(cuda: bool = False)
olmo/__init__.py:5
Functioncompute_hash
Computes the hash of a string.
olmo/util.py:48
Methodcompute_metrics
(self)
olmo/eval/loss_evaluator.py:28
Functionconvert_cli
()
olmo/hf_molmo.py:92
Functionconvert_state_dict_clip
(state_dict, vision_config: VisionBackboneConfig)
scripts/convert_hf_to_molmo.py:54
Functionconvert_state_dict_dino
(state_dict, vision_config: VisionBackboneConfig)
scripts/convert_hf_to_molmo.py:208
Functionconvert_state_dict_olmo_1024_preview
(state_dict, config: ModelConfig, block_type: BlockType)
scripts/convert_hf_to_molmo.py:350
Functionconvert_state_dict_olmoe
(state_dict, config: ModelConfig, block_type: BlockType)
scripts/convert_hf_to_molmo.py:285
Functionconvert_state_dict_qwen2
(state_dict, config: ModelConfig, block_type: BlockType)
scripts/convert_hf_to_molmo.py:405
Functionconvert_state_dict_siglip
(state_dict, vision_config: VisionBackboneConfig)
scripts/convert_hf_to_molmo.py:135
Methoddataset
(self)
olmo/train.py:298
Methoddownload
(cls, n_procs=1, check_sha=False, n_val=1024, cache_only=False)
olmo/data/pixmo_datasets.py:75
Methoddownload
(cls, n_procs=1)
olmo/data/pixmo_datasets.py:122
Methoddownload
(cls, n_procs=1, check_sha=True, n_val=2048, cache_only=False, hold_out_pointing_eval=True)
olmo/data/pixmo_datasets.py:158
Methoddownload
(cls, n_procs=1, check_sha=True, n_val=1024, cache_only=False)
olmo/data/pixmo_datasets.py:224
Methoddownload
(cls, n_procs=1, check_sha=False, n_val=2048, cache_only=False)
olmo/data/pixmo_datasets.py:280
Methoddownload
(cls, n_procs=1, check_sha=False, n_val=2048, cache_only=False, sample=None)
olmo/data/pixmo_datasets.py:324
Methoddownload
(cls, n_procs=1, check_sha=True, n_val=2048, cache_only=False)
olmo/data/pixmo_datasets.py:378
Methoddownload
(cls, n_procs=1, check_sha=True, cache_only=False)
olmo/data/pixmo_datasets.py:426
Methoddownload
(cls, n_procs=None)
olmo/data/dataset.py:96
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:92
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:136
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:199
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:253
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:278
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:309
Methoddownload
(self, n_procs=1)
olmo/data/academic_datasets.py:365
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:395
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:472
Methoddownload
(self, n_procs=1)
olmo/data/academic_datasets.py:518
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:544
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:573
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:595
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:616
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:677
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:780
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets.py:819
Methoddownload
(self, n_procs=1)
olmo/data/academic_datasets_manual.py:223
Methoddownload
(cls, n_procs=1)
olmo/data/academic_datasets_manual.py:291
Functiondownload_file
(url, filename)
olmo/hf_datasets/vqa_v2.py:61
Functiondummy_init_fn
(module: torch.nn.Module)
scripts/train.py:204
Methoddummy_init_fn
(module: torch.nn.Module)
scripts/mm_eval.py:173
Methodeffective_n_kv_heads
(self)
olmo/config.py:876
Methodemit
(self, record: logging.LogRecord)
olmo/util.py:246
Functionevaluate
Batch evaluation for multiple choice and open questions.
olmo/eval/mmmu_eval_utils.py:226
Functionexcepthook
Used to patch `sys.excepthook` in order to log exceptions.
olmo/util.py:163
Functionextract_answer
(pid, response, question_type, answer_type, choices, query, openai_api_key, quick_extract=False)
olmo/eval/math_vista_utils.py:126
Functionfile_size
Get the size of a local or remote file in bytes.
olmo/util.py:337
Functionfill_queue
()
olmo/util.py:678
Methodflatten_past_key_values
( past_key_values: List[Tuple[torch.Tensor, torch.Tensor]], )
olmo/model.py:2262
Methodformat_float
(value: float)
olmo/train.py:1107
Methodforward
(self, inputs_q: torch.Tensor, inputs_kv: Optional[torch.Tensor] = None)
olmo/image_vit.py:98
Methodforward
(self, x: torch.Tensor)
olmo/image_vit.py:179
Methodforward
(self, x: torch.Tensor)
olmo/image_vit.py:203
Methodforward
(self, x: torch.Tensor)
olmo/image_vit.py:231
Methodforward
(self, x: torch.Tensor)
olmo/image_vit.py:268
Methodforward
(self, x: torch.Tensor)
olmo/image_vit.py:308
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/image_vit.py:381
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/image_vit.py:457
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/image_vit.py:534
Methodforward
(self, x: torch.Tensor)
olmo/model.py:161
Methodforward
:param input: A tensor of shape `(batch_size, seq_len, embed_dim)` :param drop_mask: A tensor of shape `(batch_size, seq_len)` with v
olmo/model.py:177
Methodforward
(self, x: torch.Tensor)
olmo/model.py:239
Methodforward
(self, x: torch.Tensor)
olmo/model.py:287
Methodforward
(self, x: torch.Tensor)
olmo/model.py:317
Methodforward
( self, q: torch.Tensor, k: torch.Tensor, position_ids: Optional[torch.Tensor]
olmo/model.py:391
Methodforward
(self, x: torch.Tensor)
olmo/model.py:435
Methodforward
(self, x: torch.Tensor)
olmo/model.py:464
Methodforward
(self, x1: torch.Tensor, x2: torch.Tensor)
olmo/model.py:491
Methodforward
(self, x: torch.Tensor)
olmo/model.py:500
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.FloatTensor] = None, p
olmo/model.py:756
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.Tensor] = None, positi
olmo/model.py:847
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.Tensor] = None, positi
olmo/model.py:978
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.Tensor] = None, positi
olmo/model.py:1171
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.FloatTensor] = None, p
olmo/model.py:1266
Methodforward
(self, x: torch.Tensor)
olmo/model.py:1340
Methodforward
(self, x: torch.Tensor)
olmo/model.py:1354
Methodforward
(self, images: torch.Tensor, image_masks: torch.Tensor)
olmo/model.py:1509
Methodforward
:param input_ids: A tensor of shape `(batch_size, seq_len)`. :param input_embeddings: A tensor of shape `(batch_size, seq_len, d_mode
olmo/model.py:1801
Methodfsdp_precision
(self)
olmo/config.py:1769
Methodfsdp_wrap_fn
(module, recurse: bool = True, nonwrapped_numel: int = 0)
olmo/model.py:2072
Methodfused_loss_fn
( logits, labels, ignore_index: int = -100, reduction: str = "mean", compute_z_loss: bool = Fa
olmo/train.py:249
Methodget
(self, item, epoch=0)
tests/data/test_data_iterator.py:34
Methodget
(self, item, rng)
olmo/data/pixmo_datasets.py:96
Methodget
(self, item, rng)
olmo/data/pixmo_datasets.py:137
Methodget
(self, item, rng)
olmo/data/pixmo_datasets.py:202
Methodget
(self, item, rng)
olmo/data/pixmo_datasets.py:274
Methodget
(self, item, rng)
olmo/data/pixmo_datasets.py:300
← previousnext →601–700 of 893, ranked by callers