MCPcopy Create free account

hub / github.com/allenai/molmo2 / functions

Functions2,270 in github.com/allenai/molmo2

Methodapply_activation_checkpointing
Enable activation checkpointing
olmo/models/molmo_point/molmo_point.py:484
Methodapply_activation_checkpointing
(self)
olmo/models/molmo_point/molmo_point_connector.py:139
Methodapply_activation_checkpointing
Enable activation checkpointing
olmo/models/molmo2/molmo2.py:191
Methodapply_compile
(self, **kwargs)
olmo/nn/vision_backbone.py:333
Methodapply_compile
Compile the model with `torch.compile`
olmo/models/model.py:118
Methodapply_compile
Compile the model with `torch.compile`
olmo/models/molmo/molmo.py:160
Methodapply_compile
Compile the model with `torch.compile`
olmo/models/molmo_point/molmo_point.py:490
Methodapply_compile
(self, **kwargs)
olmo/models/molmo_point/molmo_point_connector.py:128
Methodapply_compile
Compile the model with `torch.compile`
olmo/models/molmo2/molmo2.py:197
Methodapply_cp
Prepare the model for context-parallelism (CP). : param cp_mesh: The device mesh to use for context parallelism : param load
olmo/nn/vision_backbone.py:694
Methodapply_cp
Prepare the model for context-parallelism (CP). :param cp_mesh: The CP device mesh. :param load_balancer: The load balancing
olmo/models/molmo2/molmo2.py:398
Methodapply_fsdp2
(self, **kwargs)
olmo/nn/vision_backbone.py:304
Methodapply_fsdp2
(self, *args, **kwargs)
olmo/nn/temporal_image_vit.py:1042
Methodapply_fsdp2
(self, *args, **kwargs)
olmo/nn/image_vit.py:493
Methodapply_fsdp2
(self, *args, **kwargs)
olmo/nn/image_vit.py:635
Methodapply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/model.py:126
Methodapply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/molmo/molmo.py:172
Methodapply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/molmo_point/molmo_point.py:504
Methodapply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/molmo_point/molmo_point_connector.py:144
Functionasync_save_model_and_optim_state
An async version of :func:`save_model_and_optim_state()`. This code first de-stages the state dict on the CPU, then writes it in a separate
olmo/train/distributed_checkpointing.py:152
Methodautocast_precision
(self)
olmo/eval/model_evaluator.py:213
Methodautocast_precision
(self)
olmo/train/trainer_config.py:879
Methodbackward
(ctx: Any, *grad_output: Tensor)
olmo/nn/ulysses.py:264
Methodbatch_shard
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], pad_values
olmo/nn/cp_load_balancer.py:114
Methodbatch_shard
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], pad_values
olmo/nn/cp_load_balancer.py:266
Methodbatch_shard
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], pad_values
olmo/nn/cp_load_balancer.py:343
Methodbatch_shard_by_document
Same as :meth:`batch_shard` but for strategies that support intra-document masking. :returns: The local shards of the inputs and any
olmo/nn/cp_load_balancer.py:87
Methodbatch_shard_by_document
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], cu_doc_len
olmo/nn/cp_load_balancer.py:159
Methodbatch_shard_by_document
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], cu_doc_len
olmo/nn/cp_load_balancer.py:309
Methodbatch_shard_by_document
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], cu_doc_len
olmo/nn/cp_load_balancer.py:357
Methodbatches_per_epoch
(self)
olmo/train/trainer.py:420
Methodbuild
(self, pad_tokenizer_to)
olmo/tokenizer.py:181
Methodbuild
Build a `MultimodalPreprocessor` with max_sequence_length defaulting to `text_len` + max number of multi-modal vision tokens if text_
olmo/preprocessing/multimodal_preprocessor.py:34
Methodbuild
(cls, args)
olmo/data/data_loader.py:54
Methodbuild
(cls, config: LlmConfig, size: Optional[int] = None, **kwargs)
olmo/nn/llm.py:971
Methodbuild
(cls, activation_type, split_inputs=False)
olmo/nn/llm.py:1470
Methodbuild
(cls, layer_id: int, config: LlmConfig, cache: BufferCache, device=None)
olmo/nn/llm.py:1984
Methodbuild
(self, llm_config, device)
olmo/nn/vision_backbone.py:115
Methodbuild
(self, llm_config, device)
olmo/nn/temporal_vision_backbone.py:17
Methodbuild
(cls, config: TemporalVisionBackboneConfig, output_dim, device=None)
olmo/nn/temporal_vision_backbone.py:23
Methodbuild
(self, device)
olmo/nn/temporal_image_vit.py:49
Methodbuild
(self, device)
olmo/nn/image_vit.py:98
Methodbuild
Build the load balancer.
olmo/nn/cp_load_balancer.py:35
Methodbuild
Build a `MolmoPointExamplePreprocessor` with max_sequence_length defaulting to `text_len` + max number of multi-modal vision tokens i
olmo/models/molmo_point/molmo_point_example_preprocessor.py:257
Methodbuild
(self, save_overwrite: bool)
olmo/train/checkpointer.py:117
Methodbuild_collator
Build a collator to build batches from preprocessed examples, :param shapes_to_pad_to: :param pad_mode: How to truncate/pad
olmo/models/model_config.py:62
Methodbuild_collator
Collators for tensors the preprocessor produces
olmo/models/molmo_point/molmo_point.py:285
Methodbuild_collator
Collators for tensors from the preprocessor produces
olmo/models/molmo2/molmo2.py:121
Methodbuild_logit_processor_from_inputs
(self, inputs)
olmo/hf_model/modeling_molmo_point.py:1645
Methodbuild_model
Build a model that takes batches from the collator as input
olmo/models/model_config.py:78
Methodbuild_model
(self, device=None)
olmo/models/molmo_point/molmo_point.py:294
Methodbuild_preprocessor
Build a preprocessor that processes individual examples :param for_inference: If the examples will be used for inference :pa
olmo/models/model_config.py:47
Methodbuild_preprocessor
Build a preprocessor that converts 'raw' image/text data from various tasks into tensors inputs/targets that can be passed to the mod
olmo/models/molmo2/molmo2.py:96
Methodbuild_text_preprocessor
(self, tokenizer, max_seq_len)
olmo/preprocessing/text_preprocessor.py:53
Methodbuild_vit_patch_mapping
(self, original_image_w, original_image_h, max_crops, overlap_margins)
olmo/preprocessing/image_preprocessor.py:404
Functioncalculate_ins_level_acc
Calculate the instruction level accuracy for given Subject results
olmo/eval/mmmu_eval_utils.py:285
Functioncast_float_dtype
(t: torch.Tensor, dtype: str)
olmo/eval/model_evaluator.py:69
Methodcheckpoint_id
return the checkpoint_id that will be used to save the checkpoint.
olmo/train/remote_filesystem.py:322
Methodcheckpoint_id
(self)
olmo/train/remote_filesystem.py:458
Methodchunks
Use the :data:`UnshardStrategy.chunks` strategy.
olmo/train/distributed_checkpointing.py:449
Functioncollect_valid
(x, valid)
olmo/torch_util.py:318
Functioncompute_iou
(bbox1: list, bbox2: list, verbose: bool=False)
olmo/eval/evaluators.py:1036
Functioncompute_stepwise_accuracy
(ground_truth, predictions, target_bbs)
olmo/eval/evaluators.py:414
Methodcontains_checkpoint
Check if a directory is a sharded checkpoint directory or contains a child checkpoint directory.
olmo/train/checkpointer.py:146
Functionconvert_state_dict_clip
(state_dict, vision_config: VitConfig)
scripts/prepare_pretrained_model.py:87
Functionconvert_state_dict_dino
(state_dict, vision_config: VitConfig)
scripts/prepare_pretrained_model.py:241
Functionconvert_state_dict_olmo
(state_dict, config: LlmConfig, block_type: BlockType)
scripts/prepare_pretrained_model.py:318
Functionconvert_state_dict_qwen3
(state_dict, config: LlmConfig, block_type: BlockType)
scripts/prepare_pretrained_model.py:373
Functionconvert_state_dict_siglip
(state_dict, vision_config: VitConfig)
scripts/prepare_pretrained_model.py:168
Functioncopy_dir
Copy a directory from ``source`` to ``target``. :param source: The path/URL to the source file. :param target: The path/URL to the targe
olmo/io.py:275
Functioncopy_file
Copy a file from ``source`` to ``target``. :param source: The path/URL to the source file. :param target: The path/URL to the target loc
olmo/io.py:243
Methodcreate_masks_for_generate
( config: PretrainedConfig, input_embeds: torch.Tensor, attention_mask: Optional[torch
olmo/hf_model/modeling_molmo_point.py:1897
Methodcreate_masks_for_generate
( config: PretrainedConfig, input_embeds: torch.Tensor, attention_mask: Optional[torch
olmo/hf_model/modeling_molmo2.py:1734
Functioncreate_pred_tracks_and_occlusions
Convert list of PointTrajectoryEntry to numpy arrays for evaluation. Args: trajectory_data: List of PointTrajectoryEntry dicts
olmo/eval/point_tracking_utils.py:136
Functioncreate_single_point_tracking_examples
Create synthetic examples for single_point_track_per_frame evaluation. For each grounded object, create a tracking prompt starting from
olmo/eval/pointing_e2e_utils.py:125
Methoddataset
(self)
olmo/train/trainer.py:412
Functiondecode
(ids)
olmo/hf_model/modeling_molmo_point.py:49
Functiondecorator
(func)
olmo/io.py:510
Methoddevice
(self)
olmo/hf_model/modeling_molmo_point.py:1073
Methoddevice
(self)
olmo/hf_model/modeling_molmo2.py:432
Methoddevice
(self)
olmo/models/molmo/molmo.py:267
Methoddevice
(self)
olmo/models/molmo_point/molmo_point.py:556
Methoddevice
(self)
olmo/models/molmo2/molmo2.py:376
Functiondispatch_flash_attn_qkvpacked
( qkv: torch.Tensor, *, cu_seqlens: Optional[torch.Tensor] = None, max_seqlen: Optional[int],
olmo/nn/flash_attention_api.py:82
Functiondispatch_ring_flash_attn_qkvpacked
( qkv: torch.Tensor, *, group: dist.ProcessGroup, strategy: CPLoadBalancerType, cu_seqlens
olmo/nn/flash_attention_api.py:221
Methoddownload
(cls, n_procs=1, check_sha=False, n_val=1024, cache_only=False)
olmo/data/pixmo_datasets.py:76
Methoddownload
(cls, n_procs=1, check_sha=True, n_val=2048, cache_only=False, hold_out_pointing_eval=True)
olmo/data/pixmo_datasets.py:126
Methoddownload
(cls, n_procs=1, check_sha=True, n_val=1024, cache_only=False)
olmo/data/pixmo_datasets.py:243
Methoddownload
(cls, n_procs=1, check_sha=False, n_val=2048, cache_only=False)
olmo/data/pixmo_datasets.py:299
Methoddownload
(cls, n_procs=1, check_sha=True, n_val=2048, cache_only=False)
olmo/data/pixmo_datasets.py:422
Methoddownload
(cls, n_procs=1, check_sha=True, cache_only=False)
olmo/data/pixmo_datasets.py:498
Methoddownload
(cls, n_procs=1)
olmo/data/pixmo_datasets.py:546
Methoddownload
(cls, n_procs=1, check_sha=False, cache_only=False)
olmo/data/pixmo_datasets.py:597
Methoddownload
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:196
Methoddownload
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:689
Methoddownload
Download HF configs, resolve video paths, and save preprocessed pickle.
olmo/data/molmo2_datasets.py:756
Methoddownload
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1047
Methoddownload
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1138
Methoddownload
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1205
Methoddownload
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1251
← previousnext →1,501–1,600 of 2,270, ranked by callers