MCPcopy Create free account

hub / github.com/allenai/molmo2 / functions

Functions2,270 in github.com/allenai/molmo2

Functionextract_clip
(row, videos_root, clips_root)
scripts/extract_epic_kitchens_clips.py:16
Methodextract_image_points
(self, output_text, pooling, subpatch_mapping, image_sizes)
olmo/hf_model/modeling_molmo_point.py:1662
Methodextract_multi_image_points
(cls, text, video_w, video_h)
olmo/preprocessing/point_formatter.py:557
Methodextract_points
(self, text: str, image_w: float, image_h: float)
olmo/preprocessing/point_formatter.py:159
Methodextract_points
(cls, text, image_w, image_h)
olmo/preprocessing/point_formatter.py:590
Methodextract_segment_static
(moment_start, moment_end, video_dur, seg_length)
olmo/data/academic_video_datasets.py:3170
Functionextract_single_clip
(clip_info)
scripts/extract_ego4d_clips.py:156
Methodextract_tracks
(self, text, width, height, video_fps, format=None)
olmo/preprocessing/point_formatter.py:182
Methodextract_tracks
(cls, text, width, height, video_fps, format=None)
olmo/preprocessing/point_formatter.py:682
Methodextract_video_points
(self, output_text, pooling, subpatch_mapping, timestamps, video_size)
olmo/hf_model/modeling_molmo_point.py:1667
Methodfind_correction_dim
Inverse dimension formula to find the dimension based on the number of rotations
olmo/nn/llm.py:1143
Methodfind_correction_range
Find dimension range bounds based on rotations
olmo/nn/llm.py:1147
Methodfinish
(self, metadata: Metadata, results: List[List[WriteResult]])
olmo/train/remote_filesystem.py:290
Methodflatten_past_key_values
( past_key_values: List[Tuple[torch.Tensor, torch.Tensor]], )
olmo/models/molmo/molmo.py:594
Methodflatten_past_key_values
( past_key_values: List[Tuple[torch.Tensor, torch.Tensor]], )
olmo/models/molmo_point/molmo_point.py:1273
Methodflatten_past_key_values
( past_key_values: List[Tuple[torch.Tensor, torch.Tensor]], )
olmo/models/molmo2/molmo2.py:909
Methodformat_float
(value: float)
olmo/train/trainer.py:946
Methodformat_image_points
Build singe image pointing output text
olmo/preprocessing/point_formatter.py:233
Methodformat_multi_image_points
Build multi-image pointing output text image_indices: List of image indices/timestamps (one per image) Format: List[float
olmo/preprocessing/point_formatter.py:242
Methodformat_output_timestamp
Format output timestamp as text For output timestamps, the model should always use a consistent format
olmo/models/molmo_point/molmo_point_data_formatter.py:850
Functionformat_single_point_track_output
Format single_point_track_per_frame output from list of points and times. Expected format matches data_formatter.py: "[x, y, time],
olmo/eval/pointing_e2e_utils.py:93
Methodformat_video_input_points
(self, initial_points, scale)
olmo/models/molmo_point/molmo_point_data_formatter.py:430
Methodformat_video_point_track_points
Format video points for tracking points across frames Input: example: dict with keys: style, points (list of dicts with
olmo/preprocessing/data_formatter.py:1479
Methodformat_video_point_track_points
Format video points for tracking points across frames Input: example: dict with keys: style, points (list of dicts with
olmo/models/molmo_point/molmo_point_data_formatter.py:636
Methodformat_video_points
Format video points
olmo/preprocessing/point_formatter.py:35
Methodformat_video_points
Build video pointing output text
olmo/preprocessing/point_formatter.py:225
Methodformat_video_tracks
Build video tracking output text
olmo/preprocessing/point_formatter.py:204
Methodforward
(self, x, position_ids: torch.Tensor)
olmo/hf_model/modeling_molmo_point.py:185
Methodforward
( self, inputs_q: torch.Tensor, inputs_kv: Optional[torch.Tensor] = None, attn
olmo/hf_model/modeling_molmo_point.py:264
Methodforward
( self, x, token_pooling, is_image_token, is_patch, is_subpatc
olmo/hf_model/modeling_molmo_point.py:384
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
olmo/hf_model/modeling_molmo_point.py:704
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo_point.py:868
Methodforward
(self, input: torch.Tensor)
olmo/hf_model/modeling_molmo_point.py:879
Methodforward
last_point_patch_id: The patch id the last generated point pointed to
olmo/hf_model/modeling_molmo_point.py:1359
Methodforward
r""" ```python >>> from PIL import Image >>> import requests >>> from transformers import AutoProcessor, MolmoPointFor
olmo/hf_model/modeling_molmo_point.py:1699
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:93
Methodforward
( self, inputs_q: torch.Tensor, inputs_kv: Optional[torch.Tensor] = None, attn
olmo/hf_model/modeling_molmo2.py:156
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:260
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:275
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/hf_model/modeling_molmo2.py:328
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:362
Methodforward
( self, images: torch.Tensor, pooled_patches_idx: torch.Tensor, )
olmo/hf_model/modeling_molmo2.py:435
Methodforward
(self, x, position_ids: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:540
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:566
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
olmo/hf_model/modeling_molmo2.py:671
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:743
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
olmo/hf_model/modeling_molmo2.py:771
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
olmo/hf_model/modeling_molmo2.py:818
Methodforward
(self, x: torch.Tensor)
olmo/hf_model/modeling_molmo2.py:879
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
olmo/hf_model/modeling_molmo2.py:966
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, pixel_values: Optional[torch.Flo
olmo/hf_model/modeling_molmo2.py:1455
Methodforward
r""" ```python >>> from PIL import Image >>> import requests >>> from transformers import AutoProcessor, Molmo2ForCond
olmo/hf_model/modeling_molmo2.py:1606
Methodforward
(self, x: torch.Tensor, logits=False, logits_with_new_embedding=False)
olmo/nn/llm.py:856
Methodforward
(self, x: torch.Tensor, logits=False)
olmo/nn/llm.py:884
Methodforward
:param input: A tensor of shape `(batch_size, seq_len, embed_dim)` :param drop_mask: A tensor of shape `(batch_size, seq_len)` with v
olmo/nn/llm.py:904
Methodforward
(self, x: torch.Tensor)
olmo/nn/llm.py:967
Methodforward
(self, x: torch.Tensor)
olmo/nn/llm.py:1015
Methodforward
(self, x: torch.Tensor)
olmo/nn/llm.py:1045
Methodforward
Apply RoPE to query (``q``) and key (``k``) matrices. :param q: The query matrix of shape ``(batch_size, num_heads, seq_len, head_si
olmo/nn/llm.py:1341
Methodforward
(self, x: torch.Tensor)
olmo/nn/llm.py:1461
Methodforward
(self, x: torch.Tensor)
olmo/nn/llm.py:1494
Methodforward
(self, x: torch.Tensor)
olmo/nn/llm.py:1521
Methodforward
(self, x1: torch.Tensor, x2: torch.Tensor)
olmo/nn/llm.py:1531
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.FloatTensor] = None, p
olmo/nn/llm.py:1972
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.Tensor] = None, positi
olmo/nn/llm.py:2081
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.Tensor] = None, positi
olmo/nn/llm.py:2210
Methodforward
( self, x: torch.Tensor, attention_bias: Optional[torch.Tensor] = None, positi
olmo/nn/llm.py:2425
Methodforward
(self, x: torch.Tensor)
olmo/nn/vision_backbone.py:169
Methodforward
(self, x: torch.Tensor)
olmo/nn/vision_backbone.py:183
Methodforward
(self, images: torch.Tensor, image_masks: torch.Tensor, pool
olmo/nn/vision_backbone.py:533
Methodforward
(self, images: torch.Tensor, image_masks: torch.Tensor, pooled
olmo/nn/temporal_vision_backbone.py:58
Methodforward
(self, x: torch.Tensor)
olmo/nn/temporal_image_vit.py:95
Methodforward
(self, x: torch.Tensor, pooled_patches_idx: torch.Tensor)
olmo/nn/temporal_image_vit.py:117
Methodforward
(self, x: torch.Tensor, pooled_patches_idx: torch.Tensor = None, num_images=None, multimodal_type=None)
olmo/nn/temporal_image_vit.py:163
Methodforward
(self, x: torch.Tensor, attn_mask=None)
olmo/nn/temporal_image_vit.py:1020
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/nn/temporal_image_vit.py:1049
Methodforward
(self, inputs_q: torch.Tensor, inputs_kv: Optional[torch.Tensor] = None, attn_mask=None)
olmo/nn/image_vit.py:205
Methodforward
(self, x: torch.Tensor)
olmo/nn/image_vit.py:299
Methodforward
(self, x: torch.Tensor)
olmo/nn/image_vit.py:320
Methodforward
(self, x: torch.Tensor)
olmo/nn/image_vit.py:346
Methodforward
(self, x: torch.Tensor)
olmo/nn/image_vit.py:381
Methodforward
(self, x: torch.Tensor)
olmo/nn/image_vit.py:419
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/nn/image_vit.py:525
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/nn/image_vit.py:662
Methodforward
: param x: (batch_size, num_patch, n_pixels)
olmo/nn/image_vit.py:742
Methodforward
( ctx: Any, group: dist.ProcessGroup, input: Tensor, scatter_idx: int,
olmo/nn/ulysses.py:123
Methodforward
( ctx: Any, group: dist.ProcessGroup, input: Tensor, scatter_idx: int = 3,
olmo/nn/ulysses.py:247
Methodforward
forward Arguments: query (Tensor): query input to the layer key (Tensor): key input to the layer value (T
olmo/nn/ulysses.py:344
Methodforward
(self, *args, **kwargs)
olmo/models/model.py:161
Methodforward
:param input_ids: A tensor of shape `(batch_size, seq_len)`. :param input_embeddings: A tensor of shape `(batch_size, seq_len, d_mode
olmo/models/molmo/molmo.py:289
Methodforward
( self, input_ids: torch.LongTensor, input_embeddings: Optional[torch.FloatTensor] = N
olmo/models/molmo_point/molmo_point.py:578
Methodforward
(self, x: torch.Tensor)
olmo/models/molmo_point/modules.py:24
Methodforward
( self, q: torch.Tensor, pos_ids: torch.Tensor, max_len: int )
olmo/models/molmo_point/modules.py:109
Methodforward
(self, input: torch.Tensor)
olmo/models/molmo_point/molmo_point_connector.py:96
Methodforward
:param input_ids: A tensor of shape `(batch_size, seq_len)`. :param input_embeddings: A tensor of shape `(batch_size, seq_len, d_mode
olmo/models/molmo2/molmo2.py:546
Methodforward_heuristic_easy
(self, x: torch.Tensor, pooled_patches_idx: torch.Tensor, num_images=None, multimodal_type=None)
olmo/nn/temporal_image_vit.py:184
Methodforward_random
(self, x: torch.Tensor, pooled_patches_idx: torch.Tensor, num_images=None, multimodal_type=None)
olmo/nn/temporal_image_vit.py:181
Methodforward_with_scorer
After layer `self.config.prune_at`, use attention biasing to scale down pruned tokens found with `prune_with_scorer`. After layer `self.config
olmo/nn/temporal_image_vit.py:273
Functionframe_pad
(x, axis, lpad, rpad)
olmo/torch_util.py:38
Methodfrom_pt
(cls, dtype: torch.dtype)
olmo/config.py:106
← previousnext →1,701–1,800 of 2,270, ranked by callers