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
reset_parameters
(self)
olmo/hf_model/modeling_molmo_point.py:865
Method
reset_parameters
(self)
olmo/nn/llm.py:852
Method
reset_parameters
(self)
olmo/nn/llm.py:880
Method
reset_parameters
(self)
olmo/nn/llm.py:992
Method
reset_parameters
(self)
olmo/nn/llm.py:1653
Method
reset_parameters
(self)
olmo/nn/llm.py:2048
Method
reset_parameters
(self)
olmo/nn/llm.py:2198
Method
reset_parameters
(self)
olmo/nn/llm.py:2350
Method
reset_parameters
(self)
olmo/nn/vision_backbone.py:164
Method
reset_parameters
(self)
olmo/nn/vision_backbone.py:296
Method
reset_parameters
(self)
olmo/nn/temporal_image_vit.py:113
Method
reset_parameters
(self)
olmo/nn/temporal_image_vit.py:157
Method
reset_parameters
(self)
olmo/nn/temporal_image_vit.py:1037
Method
reset_parameters
(self)
olmo/nn/image_vit.py:186
Method
reset_parameters
(self)
olmo/nn/image_vit.py:316
Method
reset_parameters
(self)
olmo/nn/image_vit.py:342
Method
reset_parameters
(self)
olmo/nn/image_vit.py:375
Method
reset_parameters
(self)
olmo/nn/image_vit.py:411
Method
reset_parameters
(self)
olmo/nn/image_vit.py:708
Method
reset_parameters
Re-initialize the weights from scratch
olmo/models/model.py:102
Method
reset_parameters
Re-initialize the weights from scratch
olmo/models/molmo/molmo.py:142
Method
reset_parameters
(self)
olmo/models/molmo_point/modules.py:21
Method
reset_parameters
(self)
olmo/models/molmo_point/molmo_point_connector.py:164
Method
reset_parameters
Re-initialize the weights from scratch
olmo/models/molmo2/molmo2.py:179
Method
reset_with_pretrained_weights
(self)
olmo/nn/vision_backbone.py:300
Method
reset_with_pretrained_weights
(self)
olmo/nn/image_vit.py:463
Method
reset_with_pretrained_weights
(self)
olmo/nn/image_vit.py:573
Method
reset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/model.py:110
Method
reset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/molmo/molmo.py:148
Method
reset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/molmo_point/molmo_point.py:466
Method
reset_with_pretrained_weights
Re-initialize the weights, possibly loading pretrained weights for the LLM and ViT
olmo/models/molmo2/molmo2.py:185
Function
retriable
( max_attempts: int = 3, retriable_errors: Tuple[Type[Exception], ...] = ( requests.exceptions
olmo/io.py:502
Method
rotate_every_two
(self, x: torch.Tensor)
olmo/nn/llm.py:1331
Method
run
( self, model, device, autocast_precision, los
olmo/eval/loss_evaluator.py:158
Method
run
(self, model, device, autocast_precision, is_distributed, pbar=False, logger=None)
olmo/eval/inf_evaluator.py:348
Function
run_single_inference
(*inputs, annotations=None)
scripts/unified_demo.py:103
Function
safe_equal
Check if the prediction is equal to the answer, even if they are of different types
olmo/eval/math_vista_utils.py:106
Method
sample_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
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/nn/beam_search.py:119
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
olmo/nn/beam_search.py:342
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType,
olmo/nn/beam_search.py:445
Method
sample_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
Method
sampled_fps
(self)
olmo/data/video_loader.py:53
Function
save_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
Function
save_images
( pil_images: Iterable[PIL.Image.Image], filenames: List[str], n_procs: int = 1, )
olmo/preprocessing/image_preprocessor.py:110
Function
save_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
Method
scheduler_current
(self)
olmo/train/trainer.py:474
Method
scheduler_max
(self)
olmo/train/trainer.py:483
Method
score
(self, predictions: torch.Tensor, log_probabilities: torch.Tensor, end_index: int)
olmo/nn/beam_search.py:584
Method
score
(self, predictions: torch.Tensor, log_probabilities: torch.Tensor, end_index: int)
olmo/nn/beam_search.py:607
Function
seconds_to_timestamp
(seconds)
olmo/data/molmo2_datasets.py:71
Function
select_or_none
(checkpoint, prefer_unsharded=False)
tests/util_test.py:8
Method
set_decoder
(self, decoder)
olmo/hf_model/modeling_molmo_point.py:1683
Method
set_decoder
(self, decoder)
olmo/hf_model/modeling_molmo2.py:1590
Method
set_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo_point.py:700
Method
set_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo_point.py:1063
Method
set_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo_point.py:1680
Method
set_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo2.py:962
Method
set_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo2.py:1135
Method
set_input_embeddings
(self, value: torch.nn.Module)
olmo/hf_model/modeling_molmo2.py:1587
Method
set_up_storage_reader
(self, metadata: Metadata, is_coordinator: bool)
olmo/train/remote_filesystem.py:446
Method
set_up_storage_writer
(self, is_coordinator: bool)
olmo/train/remote_filesystem.py:221
Method
setup_method
(self)
tests/beam_search_test.py:108
Function
split_dict_of_list
(batch, split_size)
olmo/util.py:464
Function
state_dict_to_safetensors_file
(state_dict: Dict, filename: PathOrStr)
olmo/safetensors_util.py:71
Method
step
( last_predictions: torch.Tensor, state: dict[str, torch.Tensor] )
olmo/models/molmo/molmo.py:613
Method
step
( last_predictions: torch.Tensor, state: Dict[str, torch.Tensor] )
olmo/models/molmo_point/molmo_point.py:1292
Method
step
( last_predictions: torch.Tensor, state: Dict[str, torch.Tensor] )
olmo/models/molmo2/molmo2.py:928
Function
test_at_start
()
tests/data/test_preprocessor.py:120
Method
test_batch_size_of_one
(self)
tests/beam_search_test.py:182
Function
test_bolt_on_warmup_scheduler
()
tests/optim_test.py:18
Method
test_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
Function
test_chat_template
()
tests/preprocessing/test_data_formatter.py:27
Function
test_dataset_start_at
(ns, start_index, world_size, rank)
tests/data/test_data_iterator.py:133
Method
test_different_per_node_beam_size
(self)
tests/beam_search_test.py:280
Function
test_distributed
(world_size, num_workers, device_batch_size)
tests/data/test_data_iterator.py:88
Method
test_early_stopping
Checks case where beam search will reach `max_steps` before finding end tokens.
tests/beam_search_test.py:204
Method
test_empty_sequences
(self)
tests/beam_search_test.py:308
Function
test_extract_multi_image_points
()
tests/preprocessing/test_point_formatter.py:263
Function
test_extract_points
()
tests/preprocessing/test_point_formatter.py:243
Function
test_extract_trajectories
()
tests/preprocessing/test_point_formatter.py:295
Method
test_finished_state
(self)
tests/beam_search_test.py:149
Method
test_greedy_search
(self)
tests/beam_search_test.py:185
Method
test_gumbel_sampler
(self)
tests/beam_search_test.py:457
Function
test_html1_image
()
tests/preprocessing/test_point_formatter.py:102
Function
test_html1_multi_object_track
()
tests/preprocessing/test_point_formatter.py:229
Function
test_html1_single_object_track
()
tests/preprocessing/test_point_formatter.py:131
Function
test_html1_video
()
tests/preprocessing/test_point_formatter.py:116
Function
test_in_message
()
tests/data/test_preprocessor.py:126
Function
test_is_counting_question
()
tests/preprocessing/test_detect_counting_question.py:4
Method
test_k_val
(self, k_val)
tests/beam_search_test.py:375
Function
test_legacy_compact
()
tests/preprocessing/test_point_formatter.py:24
Function
test_legacy_extract_points
()
tests/preprocessing/test_point_formatter.py:66
Function
test_legacy_object_track
()
tests/preprocessing/test_point_formatter.py:48
Method
test_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
Function
test_linear_with_warmup_scheduler
()
tests/optim_test.py:6
Function
test_max_seq_len
()
tests/data/test_preprocessor.py:96
Function
test_max_tokens
()
tests/data/test_preprocessor.py:70
Method
test_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
Function
test_mixture
()
tests/data/test_data_iterator.py:48
← previous
next →
2,101–2,200 of 2,270, ranked by callers