Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BAAI-DCAI/SpatialBot
/ functions
Functions
594 in github.com/BAAI-DCAI/SpatialBot
⨍
Functions
594
◇
Types & classes
135
↳
Endpoints
13
Function
flag_last_response
(state, model_selector, request: gr.Request)
bunny/serve/gradio_web_server.py:106
Function
forward
(model, input, scales=None, img_sizes=None, max_split_size=None, resize_output_to_idx=0, num_prefix_token=0,
bunny/util/s2wrapper/core.py:14
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch
bunny/model/language_model/bunny_qwen2.py:40
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch
bunny/model/language_model/bunny_phi3.py:40
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch
bunny/model/language_model/bunny_llama.py:40
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch
bunny/model/language_model/bunny_phi.py:40
Method
forward
(self, hidden_states)
bunny/model/language_model/qwen2/modeling_qwen2.py:90
Method
forward
(self, x, seq_len=None)
bunny/model/language_model/qwen2/modeling_qwen2.py:124
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/qwen2/modeling_qwen2.py:244
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/qwen2/modeling_qwen2.py:344
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/qwen2/modeling_qwen2.py:637
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/qwen2/modeling_qwen2.py:739
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
bunny/model/language_model/qwen2/modeling_qwen2.py:948
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
bunny/model/language_model/qwen2/modeling_qwen2.py:1127
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
bunny/model/language_model/qwen2/modeling_qwen2.py:1315
Method
forward
(self, x, seq_len=None)
bunny/model/language_model/phi/modeling_phi.py:107
Method
forward
(self, hidden_states: torch.Tensor)
bunny/model/language_model/phi/modeling_phi.py:211
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/phi/modeling_phi.py:305
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
bunny/model/language_model/phi/modeling_phi.py:419
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)`
bunny/model/language_model/phi/modeling_phi.py:634
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
bunny/model/language_model/phi/modeling_phi.py:837
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
bunny/model/language_model/phi/modeling_phi.py:1000
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
bunny/model/language_model/phi/modeling_phi.py:1195
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
bunny/model/language_model/phi/modeling_phi.py:1318
Method
forward
(self, hidden_states)
bunny/model/language_model/llama/modeling_llama.py:361
Method
forward
(self, x, position_ids)
bunny/model/language_model/llama/modeling_llama.py:408
Method
forward
(self, x, position_ids)
bunny/model/language_model/llama/modeling_llama.py:427
Method
forward
(self, x, position_ids)
bunny/model/language_model/llama/modeling_llama.py:437
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/llama/modeling_llama.py:596
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
bunny/model/language_model/llama/modeling_llama.py:696
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/llama/modeling_llama.py:884
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
bunny/model/language_model/llama/modeling_llama.py:982
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
bunny/model/language_model/llama/modeling_llama.py:1218
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
bunny/model/language_model/llama/modeling_llama.py:1438
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
bunny/model/language_model/llama/modeling_llama.py:1657
Method
forward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
bunny/model/language_model/llama/modeling_llama.py:1774
Method
forward
(self, hidden_states)
bunny/model/language_model/phi3/modeling_phi3.py:79
Method
forward
(self, x, position_ids, seq_len=None)
bunny/model/language_model/phi3/modeling_phi3.py:111
Method
forward
(self, x, position_ids, seq_len=None)
bunny/model/language_model/phi3/modeling_phi3.py:140
Method
forward
(self, x, position_ids, seq_len=None)
bunny/model/language_model/phi3/modeling_phi3.py:181
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/phi3/modeling_phi3.py:334
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
bunny/model/language_model/phi3/modeling_phi3.py:432
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/phi3/modeling_phi3.py:735
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
bunny/model/language_model/phi3/modeling_phi3.py:837
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
bunny/model/language_model/phi3/modeling_phi3.py:1052
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
bunny/model/language_model/phi3/modeling_phi3.py:1229
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
bunny/model/language_model/phi3/modeling_phi3.py:1419
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
bunny/model/language_model/phi3/modeling_phi3.py:1542
Method
forward
(self, x, *args, **kwargs)
bunny/model/multimodal_projector/builder.py:14
Method
forward
(self, x)
bunny/model/multimodal_projector/builder.py:28
Method
forward
(self, x)
bunny/model/multimodal_projector/builder.py:44
Method
forward
(self, x)
bunny/model/multimodal_projector/builder.py:74
Method
forward
(self, x)
bunny/model/multimodal_projector/builder.py:90
Method
forward
(self, x)
bunny/model/multimodal_projector/builder.py:110
Method
forward
(self, images)
bunny/model/multimodal_encoder/clip/clip_encoder.py:36
Method
forward
(self, pixel_values: torch.FloatTensor)
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:172
Method
forward
Input shape: Batch x Time x Channel
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:203
Method
forward
(self, hidden_states: torch.Tensor)
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:265
Method
forward
Args: hidden_states (`torch.FloatTensor`): Input to the layer of shape `(batch, seq_len, embed_dim)`.
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:283
Method
forward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:354
Method
forward
r""" Returns:
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:437
Method
forward
(self, hidden_state)
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:490
Method
forward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:519
Method
forward
(self, images)
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:589
Method
forward
(self, images)
bunny/model/multimodal_encoder/eva_clip/eva_clip_encoder.py:30
Method
forward
(self, t, patch_indices_keep=None)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:79
Method
forward
(self, x: torch.Tensor)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:101
Method
forward
(self, x)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:119
Method
forward
(self, x)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:184
Method
forward
(self, x)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:214
Method
forward
(self, x)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:242
Method
forward
(self, x, rel_pos_bias=None, attn_mask=None)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:320
Method
forward
(self, x, rel_pos_bias=None, attn_mask=None)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:434
Method
forward
(self, x, **kwargs)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:470
Method
forward
(self)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:508
Method
forward
(self, x, return_all_features=False)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:679
Method
forward
(self, image, **kwargs)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:841
Function
generate_stream
(request: Request)
bunny/serve/model_worker.py:230
Method
get_cast_dtype
(self)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:605
Method
get_classifier
(self)
bunny/model/multimodal_encoder/eva_clip/eva_vit.py:633
Method
get_decoder
(self)
bunny/model/language_model/qwen2/modeling_qwen2.py:1122
Method
get_decoder
(self)
bunny/model/language_model/phi/modeling_phi.py:995
Method
get_decoder
(self)
bunny/model/language_model/llama/modeling_llama.py:1433
Method
get_decoder
(self)
bunny/model/language_model/phi3/modeling_phi3.py:1223
Method
get_input_embeddings
(self)
bunny/model/language_model/qwen2/modeling_qwen2.py:941
Method
get_input_embeddings
(self)
bunny/model/language_model/qwen2/modeling_qwen2.py:1107
Method
get_input_embeddings
(self)
bunny/model/language_model/qwen2/modeling_qwen2.py:1308
Method
get_input_embeddings
(self)
bunny/model/language_model/phi/modeling_phi.py:975
Method
get_input_embeddings
(self)
bunny/model/language_model/phi/modeling_phi.py:1188
Method
get_input_embeddings
(self)
bunny/model/language_model/llama/modeling_llama.py:1211
Method
get_input_embeddings
(self)
bunny/model/language_model/llama/modeling_llama.py:1418
Method
get_input_embeddings
(self)
bunny/model/language_model/llama/modeling_llama.py:1650
Method
get_input_embeddings
(self)
bunny/model/language_model/llama/modeling_llama.py:1767
Method
get_input_embeddings
(self)
bunny/model/language_model/phi3/modeling_phi3.py:1045
Method
get_input_embeddings
(self)
bunny/model/language_model/phi3/modeling_phi3.py:1203
Method
get_input_embeddings
(self)
bunny/model/language_model/phi3/modeling_phi3.py:1412
Method
get_input_embeddings
(self)
bunny/model/multimodal_encoder/siglip/siglip_encoder.py:516
Method
get_model
(self)
bunny/model/language_model/bunny_qwen2.py:37
Method
get_model
(self)
bunny/model/language_model/bunny_phi3.py:37
Method
get_model
(self)
bunny/model/language_model/bunny_llama.py:37
← previous
next →
401–500 of 594, ranked by callers