MCPcopy Create free account

hub / github.com/JavisVerse/JavisGPT / functions

Functions412 in github.com/JavisVerse/JavisGPT

Methodforward
(self, x)
interface/javisdit_interface.py:452
Methodforward
( self, audio_feat: torch.Tensor, video_feat: torch.Tensor, audio_pad_mask: torch.Te
javisgpt/model/blocks.py:70
Methodforward
(self, x)
javisgpt/model/blocks.py:205
Methodforward
(self, x: torch.Tensor, embed: torch.Tensor)
javisgpt/model/blocks.py:214
Methodforward
_summary_ Args: x1 (_type_): bs, n_m1, dim x2 (_type_): bs, n_m2, dim attention_mask_1 (_type_, optional)
javisgpt/model/blocks.py:264
Methodforward
(self, x, cond, attn_mask=None)
javisgpt/model/blocks.py:507
Methodforward
(self, hidden_state)
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:131
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:156
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:214
Methodforward
Args: hidden_states (`torch.Tensor` of shape `(seq_len, hidden_size)`): The final hidden states of the model.
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:337
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:591
Methodforward
(self, hidden_state)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:85
Methodforward
(self, hidden_states: torch.Tensor)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:106
Methodforward
(self, seqlen: int)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:121
Methodforward
(self, hidden_states)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:136
Methodforward
(self, x: torch.Tensor)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:158
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:180
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:242
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:291
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:344
Methodforward
Args: hidden_states (`torch.Tensor` of shape `(seq_len, hidden_size)`): The final hidden states of the model.
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:507
Methodforward
(self, x, position_ids)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:604
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:739
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:823
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:925
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1031
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1127
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1725
Methodforward
(self, x, position_ids)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:171
Methodforward
(self, seqlen: int)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:269
Methodforward
(self, hidden_states: torch.Tensor)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:292
Methodforward
(self, x: torch.Tensor)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:312
Methodforward
(self, x)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:324
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb: torch.Tensor = None
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:336
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb: torch.Tensor = None
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:370
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb: torch.Tensor = None
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:393
Methodforward
(self, hidden_states, cu_seqlens, rotary_pos_emb)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:433
Methodforward
(self, hidden_states)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:451
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:534
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:627
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:739
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:853
Methodforward
(self, hidden_states: torch.Tensor, grid_thw: torch.Tensor)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1026
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1079
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1600
Methodforward
(self, embed_id)
javisgpt/model/beats/quantizer.py:106
Methodforward
(self, z)
javisgpt/model/beats/quantizer.py:157
Methodforward
(ctx, x, scale)
javisgpt/model/beats/modules.py:19
Methodforward
(self, x)
javisgpt/model/beats/modules.py:37
Methodforward
(self, x)
javisgpt/model/beats/modules.py:48
Methodforward
(self, x)
javisgpt/model/beats/modules.py:73
Methodforward
(self, x, padding_mask=None, layer=None)
javisgpt/model/beats/backbone.py:102
Methodforward
( self, x: torch.Tensor, self_attn_mask: torch.Tensor = None,
javisgpt/model/beats/backbone.py:217
Methodforward
Input shape: Time x Batch x Channel Args: key_padding_mask (ByteTensor, optional): mask to exclude keys that are
javisgpt/model/beats/backbone.py:435
Functionfreeze_prev_tokens_grad
(grad)
javisgpt/train/train_audio_video.py:792
Functiongelu
(x: torch.Tensor)
javisgpt/model/beats/modules.py:93
Functiongelu_accurate
(x)
javisgpt/model/beats/modules.py:85
Functionget_class_from_dynamic_module
Extracts a class from a module file, present in the local folder or repository of a model. <Tip warning={true}> Calling this function w
assets/src/dynamic_modules_utils.py:365
Methodget_decoder
(self)
javisgpt/model/javisgpt_arch.py:165
Methodget_decoder
(self)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1543
Methodget_decoder
(self)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1446
Methodget_device
(self)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:994
Methodget_input_embeddings
(self)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1121
Methodget_input_embeddings
(self)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1528
Methodget_input_embeddings
(self)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1431
Methodget_output_embeddings
(self)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1534
Methodget_output_embeddings
(self)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1437
Functionget_relative_import_files
Get the list of all files that are needed for a given module. Note that this function recurses through the relative imports (if a imports b a
assets/src/dynamic_modules_utils.py:98
Methodget_train_dataloader
Returns the training [`~torch.utils.data.DataLoader`]. Will use no sampler if `train_dataset` does not implement `__len__`, a random
javisgpt/train/llava_trainer.py:284
Functioninit_bert_params
Initialize the weights specific to the BERT Model. This overrides the default initializations depending on the specified arguments. 1
javisgpt/model/beats/backbone.py:754
Functionmake_inputs_require_grad
(module, input, output)
javisgpt/train/train_audio_video.py:770
Methodmodel_input_names
(self)
javisgpt/model/processing_model.py:194
Methodmodel_input_names
(self)
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:887
Methodmodel_input_names
(self)
javisgpt/model/qwen2_5_vl/processing_qwen2_5_vl.py:212
Methodmodel_input_names
(self)
javisgpt/model/qwen2_vl/processing_qwen2_vl.py:190
Methodpost_process_image_text_to_text
Post-process the output of the model to decode the text. Args: generated_outputs (`torch.Tensor` or `np.ndarray`):
javisgpt/model/processing_model.py:177
Methodpost_process_image_text_to_text
Post-process the output of the model to decode the text. Args: generated_outputs (`torch.Tensor` or `np.ndarray`):
javisgpt/model/qwen2_5_vl/processing_qwen2_5_vl.py:195
Methodpost_process_image_text_to_text
Post-process the output of the model to decode the text. Args: generated_outputs (`torch.Tensor` or `np.ndarray`):
javisgpt/model/qwen2_vl/processing_qwen2_vl.py:173
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
javisgpt/model/javisgpt_arch.py:721
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:773
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1907
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1769
Methodprepare_inputs_labels_for_multimodal
()
javisgpt/model/javisgpt_arch.py:374
Methodpreprocess
Args: images (`ImageInput`): Image to preprocess. Expects a single or batch of images with pixel values ranging f
javisgpt/model/qwen2_vl/image_processing_qwen2_vl.py:317
Functionpreprocess_multimodal
(sources: Sequence[str], data_args: DataArguments)
javisgpt/train/train_audio_video.py:163
Functionpretty_print_semaphore
(semaphore)
javisgpt/utils.py:155
Methodprior_embed_dim
(self)
interface/javisdit_interface.py:286
Methodprior_embed_num
(self)
interface/javisdit_interface.py:290
Functionprocess_video_with_decord
(video_file, data_args, max_length_s=None, start_s=None, end_s=None)
javisgpt/mm_utils.py:90
Functionprocess_video_with_pyav
(video_file, data_args, max_length_s=None, start_s=None, end_s=None)
javisgpt/mm_utils.py:128
Functionprocess_vision_info
( conversations: list[dict] | list[list[dict]], )
javisgpt/model/qwenvl_vision_process.py:321
Functionrank_print
(*args)
javisgpt/utils.py:32
Methodreset_cluster_size
(self, device)
javisgpt/model/beats/quantizer.py:152
Methodreset_image_processor
(self, model_name_or_path)
javisgpt/model/javisgpt_arch.py:77
Methodsave
(self, audio, video, save_path, save_fps=None, audio_fps=None, verbose=True)
interface/javisdit_interface.py:525
Methodset_decoder
(self, decoder)
javisgpt/model/javisgpt_arch.py:162
Methodset_decoder
(self, decoder)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1540
Methodset_decoder
(self, decoder)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1443
Methodset_input_embeddings
(self, value)
javisgpt/model/javisgpt_arch.py:153
Methodset_input_embeddings
(self, value)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1124
← previousnext →301–400 of 412, ranked by callers