MCPcopy Create free account

hub / github.com/allenai/molmo2 / functions

Functions2,270 in github.com/allenai/molmo2

Methodreset_parameters
(self)
olmo/hf_model/modeling_molmo_point.py:865
Methodreset_parameters
(self)
olmo/nn/llm.py:852
Methodreset_parameters
(self)
olmo/nn/llm.py:880
Methodreset_parameters
(self)
olmo/nn/llm.py:992
Methodreset_parameters
(self)
olmo/nn/llm.py:1653
Methodreset_parameters
(self)
olmo/nn/llm.py:2048
Methodreset_parameters
(self)
olmo/nn/llm.py:2198
Methodreset_parameters
(self)
olmo/nn/llm.py:2350
Methodreset_parameters
(self)
olmo/nn/vision_backbone.py:164
Methodreset_parameters
(self)
olmo/nn/vision_backbone.py:296
Methodreset_parameters
(self)
olmo/nn/temporal_image_vit.py:113
Methodreset_parameters
(self)
olmo/nn/temporal_image_vit.py:157
Methodreset_parameters
(self)
olmo/nn/temporal_image_vit.py:1037
Methodreset_parameters
(self)
olmo/nn/image_vit.py:186
Methodreset_parameters
(self)
olmo/nn/image_vit.py:316
Methodreset_parameters
(self)
olmo/nn/image_vit.py:342
Methodreset_parameters
(self)
olmo/nn/image_vit.py:375
Methodreset_parameters
(self)
olmo/nn/image_vit.py:411
Methodreset_parameters
(self)
olmo/nn/image_vit.py:708
Methodreset_parameters
Re-initialize the weights from scratch
olmo/models/model.py:102
Methodreset_parameters
Re-initialize the weights from scratch
olmo/models/molmo/molmo.py:142
Methodreset_parameters
(self)
olmo/models/molmo_point/modules.py:21
Methodreset_parameters
(self)
olmo/models/molmo_point/molmo_point_connector.py:164
Methodreset_parameters
Re-initialize the weights from scratch
olmo/models/molmo2/molmo2.py:179
Methodreset_with_pretrained_weights
(self)
olmo/nn/vision_backbone.py:300
Methodreset_with_pretrained_weights
(self)
olmo/nn/image_vit.py:463
Methodreset_with_pretrained_weights
(self)
olmo/nn/image_vit.py:573
Methodreset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/model.py:110
Methodreset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/molmo/molmo.py:148
Methodreset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/molmo_point/molmo_point.py:466
Methodreset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/molmo2/molmo2.py:185
Functionretriable
( max_attempts: int = 3, retriable_errors: Tuple[Type[Exception], ...] = ( requests.exceptions
olmo/io.py:502
Methodrotate_every_two
(self, x: torch.Tensor)
olmo/nn/llm.py:1331
Methodrun
( self, model, device, autocast_precision, los
olmo/eval/loss_evaluator.py:158
Methodrun
(self, model, device, autocast_precision, is_distributed, pbar=False, logger=None)
olmo/eval/inf_evaluator.py:348
Functionrun_single_inference
(*inputs, annotations=None)
scripts/unified_demo.py:103
Functionsafe_equal
Check if the prediction is equal to the answer, even if they are of different types
olmo/eval/math_vista_utils.py:106
Methodsample_frames
Frame-based sampling if an array video is passed Args: metadata (`VideoMetadata`): Metadata of the video
olmo/hf_model/video_processing_molmo2.py:656
Methodsample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/nn/beam_search.py:119
Methodsample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/nn/beam_search.py:342
Methodsample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType,
olmo/nn/beam_search.py:445
Methodsample_times
Time-based sampling if an array video is passed Args: metadata (`VideoMetadata`): Metadata of the video c
olmo/hf_model/video_processing_molmo2.py:597
Methodsampled_fps
(self)
olmo/data/video_loader.py:53
Functionsave_debug_batch
Save a batch to disk for debugging purposes (e.g., when NaN/Inf loss is detected). :param batch: The batch dictionary containing tensors
olmo/torch_util.py:284
Functionsave_images
( pil_images: Iterable[PIL.Image.Image], filenames: List[str], n_procs: int = 1, )
olmo/preprocessing/image_preprocessor.py:110
Functionsave_state_dict
Save an arbitrary state dictionary to a distributed format that can loaded again with a different distributed topology. .. important::
olmo/train/distributed_checkpointing.py:59
Methodscheduler_current
(self)
olmo/train/trainer.py:474
Methodscheduler_max
(self)
olmo/train/trainer.py:483
Methodscore
(self, predictions: torch.Tensor, log_probabilities: torch.Tensor, end_index: int)
olmo/nn/beam_search.py:584
Methodscore
(self, predictions: torch.Tensor, log_probabilities: torch.Tensor, end_index: int)
olmo/nn/beam_search.py:607
Functionseconds_to_timestamp
(seconds)
olmo/data/molmo2_datasets.py:71
Functionselect_or_none
(checkpoint, prefer_unsharded=False)
tests/util_test.py:8
Methodset_decoder
(self, decoder)
olmo/hf_model/modeling_molmo_point.py:1683
Methodset_decoder
(self, decoder)
olmo/hf_model/modeling_molmo2.py:1590
Methodset_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo_point.py:700
Methodset_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo_point.py:1063
Methodset_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo_point.py:1680
Methodset_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo2.py:962
Methodset_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo2.py:1135
Methodset_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo2.py:1587
Methodset_up_storage_reader
(self, metadata: Metadata, is_coordinator: bool)
olmo/train/remote_filesystem.py:446
Methodset_up_storage_writer
(self, is_coordinator: bool)
olmo/train/remote_filesystem.py:221
Methodsetup_method
(self)
tests/beam_search_test.py:108
Functionsplit_dict_of_list
(batch, split_size)
olmo/util.py:464
Functionstate_dict_to_safetensors_file
(state_dict: Dict, filename: PathOrStr)
olmo/safetensors_util.py:71
Methodstep
( last_predictions: torch.Tensor, state: dict[str, torch.Tensor] )
olmo/models/molmo/molmo.py:613
Methodstep
( last_predictions: torch.Tensor, state: Dict[str, torch.Tensor] )
olmo/models/molmo_point/molmo_point.py:1292
Methodstep
( last_predictions: torch.Tensor, state: Dict[str, torch.Tensor] )
olmo/models/molmo2/molmo2.py:928
Functiontest_at_start
()
tests/data/test_preprocessor.py:120
Methodtest_batch_size_of_one
(self)
tests/beam_search_test.py:182
Functiontest_bolt_on_warmup_scheduler
()
tests/optim_test.py:18
Methodtest_catch_bad_config
If `per_node_beam_size` (which defaults to `beam_size`) is larger than the size of the target vocabulary, `BeamSearch.search` should
tests/beam_search_test.py:289
Functiontest_chat_template
()
tests/preprocessing/test_data_formatter.py:27
Functiontest_dataset_start_at
(ns, start_index, world_size, rank)
tests/data/test_data_iterator.py:133
Methodtest_different_per_node_beam_size
(self)
tests/beam_search_test.py:280
Functiontest_distributed
(world_size, num_workers, device_batch_size)
tests/data/test_data_iterator.py:88
Methodtest_early_stopping
Checks case where beam search will reach `max_steps` before finding end tokens.
tests/beam_search_test.py:204
Methodtest_empty_sequences
(self)
tests/beam_search_test.py:308
Functiontest_extract_multi_image_points
()
tests/preprocessing/test_point_formatter.py:263
Functiontest_extract_points
()
tests/preprocessing/test_point_formatter.py:243
Functiontest_extract_trajectories
()
tests/preprocessing/test_point_formatter.py:295
Methodtest_finished_state
(self)
tests/beam_search_test.py:149
Methodtest_greedy_search
(self)
tests/beam_search_test.py:185
Methodtest_gumbel_sampler
(self)
tests/beam_search_test.py:457
Functiontest_html1_image
()
tests/preprocessing/test_point_formatter.py:102
Functiontest_html1_multi_object_track
()
tests/preprocessing/test_point_formatter.py:229
Functiontest_html1_single_object_track
()
tests/preprocessing/test_point_formatter.py:131
Functiontest_html1_video
()
tests/preprocessing/test_point_formatter.py:116
Functiontest_in_message
()
tests/data/test_preprocessor.py:126
Functiontest_is_counting_question
()
tests/preprocessing/test_detect_counting_question.py:4
Methodtest_k_val
(self, k_val)
tests/beam_search_test.py:375
Functiontest_legacy_compact
()
tests/preprocessing/test_point_formatter.py:24
Functiontest_legacy_extract_points
()
tests/preprocessing/test_point_formatter.py:66
Functiontest_legacy_object_track
()
tests/preprocessing/test_point_formatter.py:48
Methodtest_length_normalized_sequence_log_prob_scorer
Tests to ensure the sequences are normalized by the correct values. The end token is included in the length. The start token is not.
tests/beam_search_test.py:474
Functiontest_linear_with_warmup_scheduler
()
tests/optim_test.py:6
Functiontest_max_seq_len
()
tests/data/test_preprocessor.py:96
Functiontest_max_tokens
()
tests/data/test_preprocessor.py:70
Methodtest_min_steps
Tests to ensure all output sequences are greater than a specified minimum length. It uses the `take_short_sequence_step` step functio
tests/beam_search_test.py:233
Functiontest_mixture
()
tests/data/test_data_iterator.py:48
← previousnext →2,101–2,200 of 2,270, ranked by callers