Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/molmo2
/ functions
Functions
2,270 in github.com/allenai/molmo2
⨍
Functions
2,270
◇
Types & classes
480
Method
apply_activation_checkpointing
Enable activation checkpointing
olmo/models/molmo_point/molmo_point.py:484
Method
apply_activation_checkpointing
(self)
olmo/models/molmo_point/molmo_point_connector.py:139
Method
apply_activation_checkpointing
Enable activation checkpointing
olmo/models/molmo2/molmo2.py:191
Method
apply_compile
(self, **kwargs)
olmo/nn/vision_backbone.py:333
Method
apply_compile
Compile the model with `torch.compile`
olmo/models/model.py:118
Method
apply_compile
Compile the model with `torch.compile`
olmo/models/molmo/molmo.py:160
Method
apply_compile
Compile the model with `torch.compile`
olmo/models/molmo_point/molmo_point.py:490
Method
apply_compile
(self, **kwargs)
olmo/models/molmo_point/molmo_point_connector.py:128
Method
apply_compile
Compile the model with `torch.compile`
olmo/models/molmo2/molmo2.py:197
Method
apply_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
Method
apply_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
Method
apply_fsdp2
(self, **kwargs)
olmo/nn/vision_backbone.py:304
Method
apply_fsdp2
(self, *args, **kwargs)
olmo/nn/temporal_image_vit.py:1042
Method
apply_fsdp2
(self, *args, **kwargs)
olmo/nn/image_vit.py:493
Method
apply_fsdp2
(self, *args, **kwargs)
olmo/nn/image_vit.py:635
Method
apply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/model.py:126
Method
apply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/molmo/molmo.py:172
Method
apply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/molmo_point/molmo_point.py:504
Method
apply_fsdp2
Fully shard this model using `fully_shard`
olmo/models/molmo_point/molmo_point_connector.py:144
Function
async_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
Method
autocast_precision
(self)
olmo/eval/model_evaluator.py:213
Method
autocast_precision
(self)
olmo/train/trainer_config.py:879
Method
backward
(ctx: Any, *grad_output: Tensor)
olmo/nn/ulysses.py:264
Method
batch_shard
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], pad_values
olmo/nn/cp_load_balancer.py:114
Method
batch_shard
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], pad_values
olmo/nn/cp_load_balancer.py:266
Method
batch_shard
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], pad_values
olmo/nn/cp_load_balancer.py:343
Method
batch_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
Method
batch_shard_by_document
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], cu_doc_len
olmo/nn/cp_load_balancer.py:159
Method
batch_shard_by_document
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], cu_doc_len
olmo/nn/cp_load_balancer.py:309
Method
batch_shard_by_document
( self, *, inputs: List[torch.Tensor], seq_dims: List[int], cu_doc_len
olmo/nn/cp_load_balancer.py:357
Method
batches_per_epoch
(self)
olmo/train/trainer.py:420
Method
build
(self, pad_tokenizer_to)
olmo/tokenizer.py:181
Method
build
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
Method
build
(cls, args)
olmo/data/data_loader.py:54
Method
build
(cls, config: LlmConfig, size: Optional[int] = None, **kwargs)
olmo/nn/llm.py:971
Method
build
(cls, activation_type, split_inputs=False)
olmo/nn/llm.py:1470
Method
build
(cls, layer_id: int, config: LlmConfig, cache: BufferCache, device=None)
olmo/nn/llm.py:1984
Method
build
(self, llm_config, device)
olmo/nn/vision_backbone.py:115
Method
build
(self, llm_config, device)
olmo/nn/temporal_vision_backbone.py:17
Method
build
(cls, config: TemporalVisionBackboneConfig, output_dim, device=None)
olmo/nn/temporal_vision_backbone.py:23
Method
build
(self, device)
olmo/nn/temporal_image_vit.py:49
Method
build
(self, device)
olmo/nn/image_vit.py:98
Method
build
Build the load balancer.
olmo/nn/cp_load_balancer.py:35
Method
build
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
Method
build
(self, save_overwrite: bool)
olmo/train/checkpointer.py:117
Method
build_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
Method
build_collator
Collators for tensors the preprocessor produces
olmo/models/molmo_point/molmo_point.py:285
Method
build_collator
Collators for tensors from the preprocessor produces
olmo/models/molmo2/molmo2.py:121
Method
build_logit_processor_from_inputs
(self, inputs)
olmo/hf_model/modeling_molmo_point.py:1645
Method
build_model
Build a model that takes batches from the collator as input
olmo/models/model_config.py:78
Method
build_model
(self, device=None)
olmo/models/molmo_point/molmo_point.py:294
Method
build_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
Method
build_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
Method
build_text_preprocessor
(self, tokenizer, max_seq_len)
olmo/preprocessing/text_preprocessor.py:53
Method
build_vit_patch_mapping
(self, original_image_w, original_image_h, max_crops, overlap_margins)
olmo/preprocessing/image_preprocessor.py:404
Function
calculate_ins_level_acc
Calculate the instruction level accuracy for given Subject results
olmo/eval/mmmu_eval_utils.py:285
Function
cast_float_dtype
(t: torch.Tensor, dtype: str)
olmo/eval/model_evaluator.py:69
Method
checkpoint_id
return the checkpoint_id that will be used to save the checkpoint.
olmo/train/remote_filesystem.py:322
Method
checkpoint_id
(self)
olmo/train/remote_filesystem.py:458
Method
chunks
Use the :data:`UnshardStrategy.chunks` strategy.
olmo/train/distributed_checkpointing.py:449
Function
collect_valid
(x, valid)
olmo/torch_util.py:318
Function
compute_iou
(bbox1: list, bbox2: list, verbose: bool=False)
olmo/eval/evaluators.py:1036
Function
compute_stepwise_accuracy
(ground_truth, predictions, target_bbs)
olmo/eval/evaluators.py:414
Method
contains_checkpoint
Check if a directory is a sharded checkpoint directory or contains a child checkpoint directory.
olmo/train/checkpointer.py:146
Function
convert_state_dict_clip
(state_dict, vision_config: VitConfig)
scripts/prepare_pretrained_model.py:87
Function
convert_state_dict_dino
(state_dict, vision_config: VitConfig)
scripts/prepare_pretrained_model.py:241
Function
convert_state_dict_olmo
(state_dict, config: LlmConfig, block_type: BlockType)
scripts/prepare_pretrained_model.py:318
Function
convert_state_dict_qwen3
(state_dict, config: LlmConfig, block_type: BlockType)
scripts/prepare_pretrained_model.py:373
Function
convert_state_dict_siglip
(state_dict, vision_config: VitConfig)
scripts/prepare_pretrained_model.py:168
Function
copy_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
Function
copy_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
Method
create_masks_for_generate
( config: PretrainedConfig, input_embeds: torch.Tensor, attention_mask: Optional[torch
olmo/hf_model/modeling_molmo_point.py:1897
Method
create_masks_for_generate
( config: PretrainedConfig, input_embeds: torch.Tensor, attention_mask: Optional[torch
olmo/hf_model/modeling_molmo2.py:1734
Function
create_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
Function
create_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
Method
dataset
(self)
olmo/train/trainer.py:412
Function
decode
(ids)
olmo/hf_model/modeling_molmo_point.py:49
Function
decorator
(func)
olmo/io.py:510
Method
device
(self)
olmo/hf_model/modeling_molmo_point.py:1073
Method
device
(self)
olmo/hf_model/modeling_molmo2.py:432
Method
device
(self)
olmo/models/molmo/molmo.py:267
Method
device
(self)
olmo/models/molmo_point/molmo_point.py:556
Method
device
(self)
olmo/models/molmo2/molmo2.py:376
Function
dispatch_flash_attn_qkvpacked
( qkv: torch.Tensor, *, cu_seqlens: Optional[torch.Tensor] = None, max_seqlen: Optional[int],
olmo/nn/flash_attention_api.py:82
Function
dispatch_ring_flash_attn_qkvpacked
( qkv: torch.Tensor, *, group: dist.ProcessGroup, strategy: CPLoadBalancerType, cu_seqlens
olmo/nn/flash_attention_api.py:221
Method
download
(cls, n_procs=1, check_sha=False, n_val=1024, cache_only=False)
olmo/data/pixmo_datasets.py:76
Method
download
(cls, n_procs=1, check_sha=True, n_val=2048, cache_only=False, hold_out_pointing_eval=True)
olmo/data/pixmo_datasets.py:126
Method
download
(cls, n_procs=1, check_sha=True, n_val=1024, cache_only=False)
olmo/data/pixmo_datasets.py:243
Method
download
(cls, n_procs=1, check_sha=False, n_val=2048, cache_only=False)
olmo/data/pixmo_datasets.py:299
Method
download
(cls, n_procs=1, check_sha=True, n_val=2048, cache_only=False)
olmo/data/pixmo_datasets.py:422
Method
download
(cls, n_procs=1, check_sha=True, cache_only=False)
olmo/data/pixmo_datasets.py:498
Method
download
(cls, n_procs=1)
olmo/data/pixmo_datasets.py:546
Method
download
(cls, n_procs=1, check_sha=False, cache_only=False)
olmo/data/pixmo_datasets.py:597
Method
download
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:196
Method
download
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:689
Method
download
Download HF configs, resolve video paths, and save preprocessed pickle.
olmo/data/molmo2_datasets.py:756
Method
download
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1047
Method
download
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1138
Method
download
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1205
Method
download
(cls, n_procs=None)
olmo/data/molmo2_datasets.py:1251
← previous
next →
1,501–1,600 of 2,270, ranked by callers