MCPcopy Create free account

hub / github.com/allenai/molmo2 / functions

Functions2,270 in github.com/allenai/molmo2

Methodload
(self)
olmo/data/academic_video_datasets.py:1572
Methodload
(self)
olmo/data/academic_video_datasets.py:1676
Methodload
(self)
olmo/data/academic_video_datasets.py:1895
Methodload
(self)
olmo/data/academic_video_datasets.py:2124
Methodload
(self)
olmo/data/academic_video_datasets.py:2323
Methodload
(self)
olmo/data/academic_video_datasets.py:2527
Methodload
(self)
olmo/data/academic_video_datasets.py:2746
Methodload
(self)
olmo/data/academic_video_datasets.py:2931
Methodload
(self)
olmo/data/academic_video_datasets.py:3373
Methodload
(self)
olmo/data/academic_video_datasets.py:3817
Methodload
(self)
olmo/data/academic_video_datasets.py:3887
Methodload
(self)
olmo/data/academic_video_datasets.py:4030
Methodload
(self)
olmo/data/academic_video_datasets.py:4135
Methodload
(self)
olmo/data/academic_video_datasets.py:4205
Methodload
(self)
olmo/data/academic_video_datasets.py:4299
Methodload
(self)
olmo/data/academic_video_datasets.py:4453
Methodload
(self)
olmo/data/academic_video_datasets.py:4539
Methodload
(self)
olmo/data/academic_video_datasets.py:4623
Methodload
(self)
olmo/data/academic_video_datasets.py:4704
Methodload
(self)
olmo/data/academic_video_datasets.py:4812
Methodload
(self)
olmo/data/academic_video_datasets.py:4935
Methodload
(self)
olmo/data/academic_video_datasets.py:5022
Methodload
(self)
olmo/data/academic_video_datasets.py:5092
Methodload
(self)
olmo/data/academic_video_datasets.py:5291
Methodload
(self)
olmo/data/academic_video_datasets.py:5387
Methodload
(self)
olmo/data/academic_video_datasets.py:5482
Methodload
(self)
olmo/data/academic_video_datasets.py:5622
Methodload
(self)
olmo/data/academic_video_datasets.py:5759
Methodload
(self)
olmo/data/academic_image_datasets.py:242
Methodload
(self)
olmo/data/academic_image_datasets.py:342
Methodload
Load from a YAML file.
olmo/models/model_config.py:89
Methodload
Load from a YAML file.
olmo/train/trainer_config.py:910
Functionload_json
(file)
olmo/util.py:61
Functionload_keys
Load specific keys from a checkpoint. .. warning:: This should only be called in a non-distributed context. Otherwise a :class:`Runt
olmo/train/distributed_checkpointing.py:613
Functionload_pil_image
(image_path: str)
olmo/preprocessing/image_preprocessor.py:37
Functionload_video
Load frames from a video
olmo/data/video_loader.py:375
Functionlocal_rank0_filter
(record: logging.LogRecord)
olmo/util.py:129
Functionlog_record_factory
(*args, **kwargs)
olmo/util.py:101
Methodmax_epochs
(self)
olmo/train/trainer.py:424
Methodmax_frames
(self)
olmo/preprocessing/video_preprocessor.py:101
Methodmax_position_embeddings
(self)
olmo/hf_model/configuration_molmo2.py:384
Methodmax_position_embeddings
(self)
olmo/hf_model/configuration_molmo_point.py:250
Methodmax_sequence_length
(self)
olmo/models/molmo/molmo.py:112
Methodmax_sequence_length
(self)
olmo/models/molmo_point/molmo_point.py:298
Methodmax_sequence_length
(self)
olmo/models/molmo2/molmo2.py:135
Methodmax_steps
(self)
olmo/train/trainer.py:431
Methodmax_tokens
(self)
olmo/train/trainer.py:451
Methodmaybe_enable_async_tp
(self, tp_mesh: DeviceMesh)
olmo/train/trainer_config.py:319
Methodmerge_overlapping_moments
(moments, new_start, new_end, threshold=0.75)
olmo/data/academic_video_datasets.py:3394
Methodmetadata_path
(self)
olmo/train/remote_filesystem.py:318
Functionmlvu_mc
(target: str, prediction: str)
olmo/eval/vqa.py:391
Methodmode
Backward compatibility property for the old 'mode' attribute.
olmo/train/trainer_config.py:370
Methodnew
(cls: Type[C], **kwargs)
olmo/config.py:30
Functionnew_func
(*args, **kwargs)
olmo/io.py:512
Methodnew_step
(last_predictions: torch.Tensor, state: Dict[str, torch.Tensor], time_step: int)
olmo/nn/beam_search.py:1059
Functionnormalize_extracted_answer
Normalize the extracted answer to match the answer type
olmo/eval/math_vista_utils.py:55
Methodnum_attention_heads
(self)
olmo/hf_model/configuration_molmo2.py:360
Methodnum_attention_heads
(self)
olmo/hf_model/configuration_molmo_point.py:226
Methodnum_hidden_layers
(self)
olmo/hf_model/configuration_molmo2.py:372
Methodnum_hidden_layers
(self)
olmo/hf_model/configuration_molmo_point.py:238
Methodnum_key_value_heads
(self)
olmo/hf_model/configuration_molmo2.py:364
Methodnum_key_value_heads
(self)
olmo/hf_model/configuration_molmo_point.py:230
Methodnum_params
Get the total number of parameters.
olmo/models/molmo/molmo.py:270
Methodnum_params
Get the total number of parameters.
olmo/models/molmo_point/molmo_point.py:559
Methodnum_params
Get the total number of parameters.
olmo/models/molmo2/molmo2.py:379
Methodon_trace_ready
(p)
olmo/train/trainer.py:1192
Methodone_file_per_tensor
Use the :data:`UnshardStrategy.one_file_per_tensor` strategy.
olmo/train/distributed_checkpointing.py:442
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1466
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1498
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1504
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1510
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1516
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1526
Methodoutput_multiplier
(self)
olmo/nn/llm.py:1535
Functionpacked_iterator
(it, packer)
olmo/data/dynamic_packer.py:295
Functionparse_multi_choice_response
Parse the prediction from the generated response. Return the predicted index e.g., A, B, C, D.
olmo/eval/mmmu_eval_utils.py:11
Functionparse_open_response
Parse the prediction from the generated response. Return a list of predicted strings or numbers.
olmo/eval/mmmu_eval_utils.py:159
Methodparse_prediction
f""" Parse model prediction text to standardized trajectory format. Supported prediction types: - video_track - video_
olmo/eval/object_tracking_utils.py:97
Methodpoint_count
Point and Count in randomized order to specific object(s) in the images with modified selection logic
olmo/preprocessing/data_formatter.py:906
Methodprepare_global_plan
(self, plans: List[SavePlan])
olmo/train/remote_filesystem.py:230
Methodprepare_global_plan
(self, global_plan: List[dist_cp.LoadPlan])
olmo/train/remote_filesystem.py:454
Methodprepare_inputs_for_generation
( self, input_ids: torch.LongTensor, past_key_values: Optional[list[torch.FloatTensor]
olmo/hf_model/modeling_molmo_point.py:1840
Methodprepare_inputs_for_generation
( self, input_ids: torch.LongTensor, past_key_values: Optional[list[torch.FloatTensor]
olmo/hf_model/modeling_molmo2.py:1691
Methodprepare_local_plan
(self, plan: SavePlan)
olmo/train/remote_filesystem.py:224
Methodprepare_local_plan
(self, plan: dist_cp.LoadPlan)
olmo/train/remote_filesystem.py:451
Methodpreprocess
Args: images (`ImageInput`): Image to preprocess. size (`dict[str, int]`, *optional*, defaults to `se
olmo/hf_model/image_processing_molmo2.py:388
Methodpreprocess
( self, videos: VideoInput, **kwargs: Unpack[Molmo2VideoProcessorKwargs], )
olmo/hf_model/video_processing_molmo2.py:822
Functionprocess_single_video
(video_data)
scripts/extract_ego4d_clips.py:372
Functionrank0_filter
(record: logging.LogRecord)
olmo/util.py:121
Methodrank_by_cnt
Rank images by object count
olmo/preprocessing/data_formatter.py:1077
Methodread_data
(self, plan: dist_cp.LoadPlan, planner: dist_cp.LoadPlanner)
olmo/train/remote_filesystem.py:377
Functionread_json
(path: PathOrStr)
olmo/io.py:123
Functionread_video_decord
Decode a video using the Decord backend. Args: video_path (`str`): Path to the video file. sample_timestamps_fn
olmo/hf_model/video_processing_molmo2.py:239
Functionread_video_pyav
Decode a video using the PyAV backend. Args: video_path (`str`): Path to the video file. sample_timestamps_fn (`
olmo/hf_model/video_processing_molmo2.py:359
Functionread_video_torchcodec
Decode a video using torchcodec decoder. Args: video_path (`str`): Path to the video file. sample_timestamps_fn
olmo/hf_model/video_processing_molmo2.py:293
Functionreduce_masked_mean
r"""Masked mean `reduce_masked_mean(x, mask)` computes the mean of a tensor :attr:`input` over a mask :attr:`mask`, returning .. math::
olmo/eval/point_tracking_utils.py:309
Functionrepl
(match)
olmo/data/academic_multi_image_datasets.py:27
Methodreset
(self, checkpoint_id: Optional[PathOrStr] = None)
olmo/train/remote_filesystem.py:216
Methodreset
(self, checkpoint_id: Optional[PathOrStr] = None)
olmo/train/remote_filesystem.py:371
Methodreset
(self)
olmo/train/trainer.py:191
← previousnext →2,001–2,100 of 2,270, ranked by callers