MCPcopy Create free account

hub / github.com/allenai/molmo2 / functions

Functions2,270 in github.com/allenai/molmo2

Functiontest_multi_message
()
tests/data/test_preprocessor.py:140
Functiontest_multi_message_in_middle
()
tests/data/test_preprocessor.py:148
Methodtest_multinomial_sampler
(self)
tests/beam_search_test.py:417
Methodtest_p_val
(self, p_val)
tests/beam_search_test.py:342
Functiontest_parse_timestamp
()
tests/preprocessing/test_point_formatter.py:16
Methodtest_repeated_ngram_blocking_constraint_apply
(self)
tests/beam_search_test.py:533
Methodtest_repeated_ngram_blocking_constraint_init_state
(self)
tests/beam_search_test.py:519
Methodtest_repeated_ngram_blocking_constraint_update_state
(self)
tests/beam_search_test.py:562
Methodtest_repeated_ngram_blocking_end_indices
Ensures that the ngram blocking does not mess up when one sequence is shorter than another, which would result in repeated "end" symb
tests/beam_search_test.py:715
Methodtest_repeated_ngram_blocking_end_to_end_bigrams
(self)
tests/beam_search_test.py:685
Methodtest_repeated_ngram_blocking_end_to_end_trigrams
(self)
tests/beam_search_test.py:700
Methodtest_repeated_ngram_blocking_end_to_end_unigrams
(self)
tests/beam_search_test.py:660
Functiontest_restore_packing_global
(world_size, num_workers, checkpoint_at)
tests/data/test_data_iterator.py:215
Functiontest_restore_packing_simple
()
tests/data/test_data_iterator.py:184
Methodtest_search
(self, step_function)
tests/beam_search_test.py:146
Functiontest_seconds_to_timestamp
()
tests/preprocessing/test_point_formatter.py:7
Functiontest_select_checkpoint
()
tests/util_test.py:15
Functiontest_single_dataset
()
tests/data/test_data_iterator.py:38
Methodtest_single_step
(self)
tests/beam_search_test.py:195
Methodtest_stochastic_beam_search
(self)
tests/beam_search_test.py:386
Functiontest_stratify
()
tests/data/test_data_iterator.py:269
Methodtest_take_repeated_ngram_step
Tests to ensure the top-k from the `repeated_ngram_transition_probabilities_0` transition matrix is expected. The transitions are:
tests/beam_search_test.py:594
Methodtest_take_short_sequence_step
Tests to ensure the top-k from the short_sequence_transition_probabilities transition matrix is expected
tests/beam_search_test.py:217
Functiontest_text_only
()
tests/data/test_preprocessor.py:65
Functiontest_time_sampling_basic
()
tests/preprocessing/test_frame_sampling.py:6
Functiontest_time_sampling_max_1fps
()
tests/preprocessing/test_frame_sampling.py:12
Functiontest_time_sampling_max_2fps
()
tests/preprocessing/test_frame_sampling.py:27
Methodtest_top_k_sampler
(self)
tests/beam_search_test.py:427
Methodtest_top_k_search
(self)
tests/beam_search_test.py:353
Methodtest_top_p_sampler
(self)
tests/beam_search_test.py:438
Methodtest_top_p_search
(self)
tests/beam_search_test.py:320
Functiontest_track_sorting_chaos
Chaotic scenario: - Frame 0: 3 points appear - Frame 1: 2 new points appear, one existing disappears - Frame 2: disappeared point ret
tests/preprocessing/test_point_formatter.py:168
Functiontest_track_sorting_small
()
tests/preprocessing/test_point_formatter.py:158
Methodtest_warn_for_bad_log_probs
(self)
tests/beam_search_test.py:299
Methodthreshold_cnt
Find images with count above threshold
olmo/preprocessing/data_formatter.py:1179
Methodtie_weights
(self)
olmo/hf_model/modeling_molmo_point.py:1672
Methodtoken_ids_to_coordinates
Extract points from the model's output text: str output of the model, used to extract example ids targets: [N, 3] or [N, 2] token ind
olmo/models/molmo_point/molmo_point_example_preprocessor.py:152
Methodtokenizer
(self)
olmo/models/molmo_point/molmo_point_example_preprocessor.py:253
Methodtokens_per_batch
(self)
olmo/train/trainer.py:416
Functiontranspose_dict_of_lists
(data: Dict[Any, List])
olmo/util.py:493
Methodunflatten_past_key_values
( past_key_values: Dict[str, torch.Tensor], )
olmo/models/molmo/molmo.py:603
Methodunflatten_past_key_values
( past_key_values: Dict[str, torch.Tensor], )
olmo/models/molmo_point/molmo_point.py:1282
Methodunflatten_past_key_values
( past_key_values: Dict[str, torch.Tensor], )
olmo/models/molmo2/molmo2.py:918
Methodunnormalize_image
(self, image: np.ndarray)
olmo/preprocessing/image_preprocessor.py:340
Functionunshard_checkpoint
Convert a checkpoint saved via :func:`save_model_and_optim_state()` into unsharded model and optimizer checkpoint files that can be loaded di
olmo/train/distributed_checkpointing.py:456
Methodupdate_legacy_settings
(cls, config: D)
olmo/eval/loss_evaluator.py:283
Methodupdate_legacy_settings
Remove deprecated keys from old checkpoints.
olmo/nn/llm.py:683
Methodupdate_legacy_settings
(cls, config: D)
olmo/nn/vision_backbone.py:119
Methodupdate_legacy_settings
(cls, config: D)
olmo/nn/image_vit.py:88
Methodupdate_legacy_settings
(cls, config: D)
olmo/models/molmo_point/molmo_point.py:112
Methodupdate_legacy_settings
(cls, config)
olmo/models/molmo_point/molmo_point_connector.py:57
Methodupdate_legacy_settings
(cls, config: D)
olmo/models/molmo2/molmo2_preprocessor.py:19
Methodupdate_legacy_settings
(cls, config: D)
olmo/models/molmo2/molmo2.py:77
Methodupdate_legacy_settings
Handle backward compatibility for renamed attributes.
olmo/train/trainer_config.py:407
Methoduses_3d_pos_ids
(cls)
olmo/models/molmo_point/molmo_point.py:95
Methodvalidate_checkpoint_id
(cls, checkpoint_id: PathOrStr)
olmo/train/remote_filesystem.py:329
Methodvalidate_checkpoint_id
(cls, checkpoint_id: PathOrStr)
olmo/train/remote_filesystem.py:462
Methodversion
(self)
olmo/data/iterable_dataset_mixture.py:38
Methodvision_backbone
(self)
olmo/hf_model/modeling_molmo_point.py:1695
Methodvocab_size
(self)
olmo/tokenizer.py:97
Methodvocab_size
(self)
olmo/hf_model/configuration_molmo2.py:380
Methodvocab_size
(self)
olmo/hf_model/configuration_molmo_point.py:246
Methodwarmup_cache
Pre-fill the buffer-cache
olmo/models/model.py:122
Methodwarmup_cache
Pre-fill the buffer-cache
olmo/models/molmo/molmo.py:165
Methodwarmup_cache
Pre-fill the buffer-cache
olmo/models/molmo_point/molmo_point.py:497
Methodwarmup_cache
(self, device, cp_enabled: bool = False)
olmo/models/molmo_point/modules.py:43
Methodwarmup_cache
Pre-fill the buffer-cache
olmo/models/molmo2/molmo2.py:202
Methodwrite_data
( self, plan: dist_cp.SavePlan, planner: dist_cp.SavePlanner, )
olmo/train/remote_filesystem.py:237
Methodwrite_items
(buckets: List[List[WriteItem]])
olmo/train/remote_filesystem.py:255
Methodzig_zag
(cls, degree: int, head_stride: int = 1)
olmo/train/trainer_config.py:389
← previous2,201–2,270 of 2,270, ranked by callers