MCPcopy Create free account

hub / github.com/showlab/Show-o / functions

Functions766 in github.com/showlab/Show-o

Functiondisable_progress_bar
Disable tqdm progress bar.
show-o2/models/my_logging.py:335
Functiondisable_progress_bar
Disable tqdm progress bar.
models/logging.py:335
Functiondisable_propagation
Disable propagation of the library log outputs. Note that log propagation is disabled by default.
show-o2/models/my_logging.py:219
Functiondisable_propagation
Disable propagation of the library log outputs. Note that log propagation is disabled by default.
models/logging.py:219
Functiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
llava/llava/utils.py:93
Methoddisable_xformers_memory_efficient_attention
r""" Disable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/).
show-o2/models/modeling_utils.py:264
Methoddisable_xformers_memory_efficient_attention
r""" Disable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/).
models/modeling_utils.py:264
Methoddo_update_step
( self, epoch: int, global_step: int, on_load_weights: bool = False )
models/modeling_magvitv2.py:11
Methoddo_update_step_end
(self, epoch: int, global_step: int)
models/modeling_magvitv2.py:27
Methoddtype
`torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
show-o2/models/modeling_utils.py:1016
Methoddtype
`torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
models/modeling_utils.py:1018
Methoddtype
(self)
models/clip_encoder.py:58
Methoddummy_feature
(self)
models/clip_encoder.py:54
Methodempty_fn
(*args, **kwargs)
show-o2/models/my_logging.py:291
Methodempty_fn
(*args, **kwargs)
models/logging.py:291
Functionenable_default_handler
Enable the default handler of the HuggingFace muse' root logger.
show-o2/models/my_logging.py:192
Functionenable_default_handler
Enable the default handler of the HuggingFace muse' root logger.
models/logging.py:192
Functionenable_explicit_format
Enable explicit formatting for every HuggingFace muse' logger. The explicit formatter is as follows: ``` [LEVELNAME|FILENAME|LINE NUM
show-o2/models/my_logging.py:238
Functionenable_explicit_format
Enable explicit formatting for every HuggingFace muse' logger. The explicit formatter is as follows: ``` [LEVELNAME|FILENAME|LINE NUM
models/logging.py:238
Functionenable_full_determinism
Helper function for reproducible behavior during distributed training. See - https://pytorch.org/docs/stable/notes/randomness.html for pytorc
models/training_utils.py:27
Methodenable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
show-o2/models/modeling_utils.py:164
Methodenable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
models/modeling_utils.py:164
Methodenable_npu_flash_attention
r""" Enable npu flash attention from torch_npu
show-o2/models/modeling_utils.py:197
Methodenable_npu_flash_attention
r""" Enable npu flash attention from torch_npu
models/modeling_utils.py:197
Functionenable_progress_bar
Enable tqdm progress bar.
show-o2/models/my_logging.py:329
Functionenable_progress_bar
Enable tqdm progress bar.
models/logging.py:329
Functionenable_propagation
Enable propagation of the library log outputs. Please disable the HuggingFace muse' default handler to prevent double logging if the root log
show-o2/models/my_logging.py:228
Functionenable_propagation
Enable propagation of the library log outputs. Please disable the HuggingFace muse' default handler to prevent double logging if the root log
models/logging.py:228
Methodenable_xformers_memory_efficient_attention
r""" Enable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/). When this option is enabled, yo
show-o2/models/modeling_utils.py:228
Methodenable_xformers_memory_efficient_attention
r""" Enable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/). When this option is enabled, yo
models/modeling_utils.py:228
Methodencode
(self, pixel_values, return_loss=False)
models/modeling_magvitv2.py:416
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
llava/llava/conversation.py:115
Methodextra_repr
(self)
show-o2/models/qwen2.py:89
Methodextra_repr
(self)
show-o2/models/modules.py:596
Functionfind_tensor_attributes
(module: torch.nn.Module)
show-o2/models/modeling_utils.py:89
Functionfind_tensor_attributes
(module: torch.nn.Module)
models/modeling_utils.py:89
Methodflush
(self)
llava/llava/utils.py:87
Methodfn_recursive_set_mem_eff
(module: torch.nn.Module)
show-o2/models/modeling_utils.py:217
Methodfn_recursive_set_mem_eff
(module: torch.nn.Module)
models/modeling_utils.py:217
Methodfn_recursive_set_npu_flash_attention
(module: torch.nn.Module)
show-o2/models/modeling_utils.py:186
Methodfn_recursive_set_npu_flash_attention
(module: torch.nn.Module)
models/modeling_utils.py:186
Methodforward
(self, hidden_states)
show-o2/models/qwen2.py:82
Methodforward
(self, x, position_ids)
show-o2/models/qwen2.py:158
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/qwen2.py:284
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/qwen2.py:370
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/qwen2.py:479
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
show-o2/models/qwen2.py:596
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
show-o2/models/qwen2.py:820
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
show-o2/models/qwen2.py:1123
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
show-o2/models/qwen2.py:1243
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
show-o2/models/qwen2.py:1371
Methodforward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
show-o2/models/qwen2.py:1450
Methodforward
(self, x)
show-o2/models/misc.py:148
Methodforward
(self, t, dtype)
show-o2/models/misc.py:191
Methodforward
(self, x, adaln_input)
show-o2/models/misc.py:211
Methodforward
(self, x: torch.Tensor)
show-o2/models/misc.py:225
Methodforward
(self, x: torch.Tensor)
show-o2/models/misc.py:249
Methodforward
Forward pass to extract features from the penultimate layer. Args: x: Input image tensor (pixel values). Return
show-o2/models/misc.py:292
Methodforward
( self, text_tokens=None, image_latents=None, t=None,
show-o2/models/modeling_showo2_qwen2_5.py:255
Methodforward
( self, image_latents=None, clip_features=None, device='cuda:0
show-o2/models/modeling_semantic_layers.py:72
Methodforward
(self, pixel_values: torch.FloatTensor, interpolate_pos_encoding=False)
show-o2/models/modeling_siglip.py:325
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, position_ids: Optional[torch.Lon
show-o2/models/modeling_siglip.py:352
Methodforward
Input shape: Batch x Time x Channel
show-o2/models/modeling_siglip.py:395
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
show-o2/models/modeling_siglip.py:467
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/modeling_siglip.py:552
Methodforward
(self, hidden_states: torch.Tensor)
show-o2/models/modeling_siglip.py:624
Methodforward
Args: hidden_states (`torch.FloatTensor`): Input to the layer of shape `(batch, seq_len, embed_dim)`.
show-o2/models/modeling_siglip.py:641
Methodforward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
show-o2/models/modeling_siglip.py:868
Methodforward
r""" Returns:
show-o2/models/modeling_siglip.py:954
Methodforward
r""" Returns: Examples: ```python >>> from transformers import AutoTokenizer, SiglipTextModel >>> model = S
show-o2/models/modeling_siglip.py:1034
Methodforward
r""" Returns:
show-o2/models/modeling_siglip.py:1088
Methodforward
(self, hidden_state)
show-o2/models/modeling_siglip.py:1141
Methodforward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
show-o2/models/modeling_siglip.py:1175
Methodforward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
show-o2/models/modeling_siglip.py:1355
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the image classification/regression lo
show-o2/models/modeling_siglip.py:1488
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
show-o2/models/modules.py:131
Methodforward
(self, x, position_ids)
show-o2/models/modules.py:319
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor
show-o2/models/modules.py:391
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor
show-o2/models/modules.py:479
Methodforward
(self, hidden_states)
show-o2/models/modules.py:589
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
show-o2/models/modules.py:634
Methodforward
(self, x)
show-o2/models/modules.py:729
Methodforward
(self, t, dtype)
show-o2/models/modules.py:772
Methodforward
(self, x, adaln_input, modality_positions)
show-o2/models/modules.py:792
Methodforward
(self, x: torch.Tensor)
show-o2/models/modules.py:816
Methodforward
(self, x: torch.Tensor)
show-o2/models/modules.py:840
Methodforward
Forward pass to extract features from the penultimate layer. Args: x: Input image tensor (pixel values). Return
show-o2/models/modules.py:883
Methodforward
(self, x, cache_x=None)
show-o2/models/wan21_vae.py:28
Methodforward
(self, x)
show-o2/models/wan21_vae.py:51
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
show-o2/models/wan21_vae.py:59
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:101
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:202
Methodforward
(self, x)
show-o2/models/wan21_vae.py:240
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:318
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:423
Methodforward
( self, input_ids, input_embeddings=None, attention_mask=None,
models/modeling_showo.py:59
Methodforward
(self, x, seq_len=None)
models/phi.py:104
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
models/phi.py:302
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
models/phi.py:416
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
models/phi.py:629
← previousnext →501–600 of 766, ranked by callers