Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JavisVerse/JavisGPT
/ functions
Functions
412 in github.com/JavisVerse/JavisGPT
⨍
Functions
412
◇
Types & classes
115
↳
Endpoints
2
Method
__init__
(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs)
javisgpt/model/javisgpt_arch.py:74
Method
__init__
(self, config: JavisConfig)
javisgpt/model/javisgpt_arch.py:85
Method
__init__
(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs)
javisgpt/model/processing_model.py:63
Method
__init__
( self, depth=32, hidden_size=3584, hidden_act="silu", intermediate_si
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:82
Method
__init__
(self, dim: int, context_dim: int, spatial_merge_size: int = 2)
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:144
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:150
Method
__init__
(self, config, attn_implementation: str = "sdpa")
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:205
Method
__init__
(self, config, *inputs, **kwargs)
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:239
Method
__init__
(self, config)
javisgpt/model/qwen2_5_vl/modular_qwen2_5_vl.py:410
Method
__init__
(self, config, bias: bool = False)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:76
Method
__init__
( self, patch_size: int = 14, temporal_patch_size: int = 2, in_channels: int =
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:90
Method
__init__
(self, dim: int, theta: float = 10000.0)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:116
Method
__init__
Qwen2RMSNorm is equivalent to T5LayerNorm
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:128
Method
__init__
(self, dim: int, context_dim: int, spatial_merge_size: int = 2)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:148
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:174
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:235
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:285
Method
__init__
(self, config, attn_implementation: str = "sdpa")
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:335
Method
__init__
(self, config, *inputs, **kwargs)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:409
Method
__init__
(self, config: Qwen2_5_VLConfig, device=None)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:568
Method
__init__
(self, config: Qwen2_5_VLConfig, layer_idx: Optional[int] = None)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:707
Method
__init__
(self, *args, **kwargs)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:815
Method
__init__
(self, config: Qwen2_5_VLConfig, layer_idx: int)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1016
Method
__init__
(self, config: Qwen2_5_VLConfig)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1104
Method
__init__
(self, config)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:1517
Method
__init__
( self, depth=32, hidden_size=3584, hidden_act="silu", intermediate_si
javisgpt/model/qwen2_5_vl/configuration_qwen2_5_vl.py:34
Method
__init__
(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs)
javisgpt/model/qwen2_5_vl/processing_qwen2_5_vl.py:68
Method
__init__
( self, do_resize: bool = True, resample: PILImageResampling = PILImageResampling.BICU
javisgpt/model/qwen2_vl/image_processing_qwen2_vl.py:165
Method
__init__
(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs)
javisgpt/model/qwen2_vl/processing_qwen2_vl.py:63
Method
__init__
( self, depth=32, embed_dim=1280, hidden_size=3584, hidden_act="quick_
javisgpt/model/qwen2_vl/configuration_qwen2_vl.py:29
Method
__init__
( self, dim=None, max_position_embeddings=2048, base=10000, device=Non
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:108
Method
__init__
(self, dim: int, theta: float = 10000.0)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:264
Method
__init__
( self, patch_size: int = 14, temporal_patch_size: int = 2, in_channels: int =
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:276
Method
__init__
(self, dim: int, context_dim: int, spatial_merge_size: int = 2)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:302
Method
__init__
(self, dim: int, hidden_dim: int, hidden_act: str)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:318
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:329
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:364
Method
__init__
(self, dim: int, num_heads: int = 16)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:387
Method
__init__
(self, config, attn_implementation: str = "sdpa")
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:422
Method
__init__
Qwen2RMSNorm is equivalent to T5LayerNorm
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:443
Method
__init__
(self, config: Qwen2VLConfig, layer_idx: Optional[int] = None)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:496
Method
__init__
(self, *args, **kwargs)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:619
Method
__init__
(self, config: Qwen2VLConfig, layer_idx: int)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:838
Method
__init__
(self, config)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:969
Method
__init__
(self, config: Qwen2VLConfig)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1056
Method
__init__
(self, config)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:1420
Method
__init__
(self, n_embed, embedding_dim, beta, decay=0.99, eps=1e-5, statistic_code_usage=True, kmeans_
javisgpt/model/beats/quantizer.py:132
Method
__init__
(self, cfg=None)
javisgpt/model/beats/Tokenizers.py:30
Method
__init__
( self, cfg: TokenizersConfig, )
javisgpt/model/beats/Tokenizers.py:73
Method
__init__
(self, kernel_size, causal=False)
javisgpt/model/beats/modules.py:30
Method
__init__
(self, input_dim, output_dim, glu_type="sigmoid", bias_in_glu=True)
javisgpt/model/beats/modules.py:53
Method
__init__
(self, cfg=None)
javisgpt/model/beats/BEATs.py:25
Method
__init__
( self, cfg: BEATsConfig, )
javisgpt/model/beats/BEATs.py:70
Method
__init__
( self, embedding_dim: float = 768, ffn_embedding_dim: float = 3072,
javisgpt/model/beats/backbone.py:157
Method
__init__
( self, embed_dim, num_heads, kdim=None, vdim=None
javisgpt/model/beats/backbone.py:287
Method
__init__
(self, questions, tokenizer, data_args)
javisgpt/eval/dataset.py:28
Method
__init__
(self, questions, tokenizer, data_args)
javisgpt/eval/dataset.py:76
Method
__init__
(self, questions, tokenizer, data_args)
javisgpt/eval/dataset.py:197
Method
__init__
(self, meta_file: str, tokenizer: AutoTokenizer, data_args, **kwargs)
javisgpt/eval/dataset.py:325
Method
__init__
( self, batch_size: int, world_size: int, lengths: Optional[List[int]] = None,
javisgpt/train/llava_trainer.py:202
Method
__init__
(self, data_path: str, tokenizer: transformers.PreTrainedTokenizer, data_args: DataArguments)
javisgpt/train/train_audio_video.py:321
Method
__iter__
(self)
javisgpt/train/llava_trainer.py:226
Method
__len__
(self)
javisgpt/eval/dataset.py:33
Method
__len__
(self)
javisgpt/eval/dataset.py:81
Method
__len__
(self)
javisgpt/eval/dataset.py:202
Method
__len__
(self)
javisgpt/eval/dataset.py:330
Method
__len__
(self)
javisgpt/train/llava_trainer.py:223
Method
__len__
(self)
javisgpt/train/train_audio_video.py:348
Method
_expand_dict_for_generation
(dict_to_expand)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:2083
Method
_expand_dict_for_generation_visual
(dict_to_expand)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:2035
Method
_expand_inputs_for_generation
( self, expand_size: int = 1, is_encoder_decoder: bool = False, input_ids: Opt
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:2018
Function
_forward_pre_hook
(mod, input)
javisgpt/model/beats/modules.py:169
Method
_init_weights
(self, module)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:393
Method
_init_weights
(self, module)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:953
Function
_read_video_decord
read video using decord.VideoReader Args: ele (dict): a dict contains the configuration of video. support keys: - vid
javisgpt/model/qwenvl_vision_process.py:207
Function
_read_video_torchvision
read video using torchvision.io.read_video Args: ele (dict): a dict contains the configuration of video. support keys:
javisgpt/model/qwenvl_vision_process.py:165
Method
_repeat_interleave_samples
(x, lengths, repeat_times)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:2040
Method
_save_checkpoint
(self, model, trial, metrics=None)
javisgpt/train/llava_trainer.py:401
Method
append_message
(self, role, message)
javisgpt/conversation.py:180
Function
auto_upgrade
(config)
javisgpt/model/utils.py:4
Method
backward
(ctx, grad)
javisgpt/model/beats/modules.py:25
Function
build_logger
(logger_name, logger_filename)
javisgpt/utils.py:39
Function
calc_mc_accuracy
(predicts: List[str], answers: List[str], **kwargs)
javisgpt/eval/eval_und.py:19
Function
calc_oe_accuracy
(predicts: List[str], answers: List[str], model, **kwargs)
javisgpt/eval/eval_und.py:40
Function
calc_qa_accuracy
(predicts: List[str], answers: List[str], **kwargs)
javisgpt/eval/eval_und.py:31
Method
cluster_size_ema_update
(self, new_cluster_size)
javisgpt/model/beats/quantizer.py:109
Method
cond_embed_num
(self)
interface/javisdit_interface.py:294
Method
create_accelerator_and_postprocess
(self)
javisgpt/train/llava_trainer.py:242
Method
create_optimizer
Setup the optimizer. We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
javisgpt/train/llava_trainer.py:322
Method
decode
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
javisgpt/model/qwen2_5_vl/processing_qwen2_5_vl.py:188
Method
decode
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
javisgpt/model/qwen2_vl/processing_qwen2_vl.py:166
Method
dict
(self)
javisgpt/conversation.py:293
Method
eager_attention
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attn_mask: torch.Tensor=None,
javisgpt/model/blocks.py:534
Method
embed_avg_ema_update
(self, new_embed_avg)
javisgpt/model/beats/quantizer.py:112
Method
expand2square
(pil_img, background_color=(122, 116, 104))
javisgpt/conversation.py:186
Method
extra_repr
(self)
javisgpt/model/qwen2_5_vl/modeling_qwen2_5_vl.py:143
Method
extra_repr
(self)
javisgpt/model/qwen2_vl/modeling_qwen2_vl.py:458
Method
extract_labels
( self, source: torch.Tensor, padding_mask: Optional[torch.Tensor] = None,
javisgpt/model/beats/Tokenizers.py:138
Method
flash_attention_2
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attn_mask: torch.Tensor=None,
javisgpt/model/blocks.py:551
Method
forward
(self, x)
interface/javisdit_interface.py:170
← previous
next →
201–300 of 412, ranked by callers