MCPcopy Create free account

hub / github.com/baaivision/Emu3 / functions

Functions136 in github.com/baaivision/Emu3

Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
emu3/mllm/modeling_emu3.py:765
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
emu3/mllm/modeling_emu3.py:977
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
emu3/mllm/modeling_emu3.py:1140
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:49
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:67
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:103
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:161
Methodforward
(self, x: torch.Tensor, zq: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:225
Methodforward
(self, x: torch.Tensor, zq: Optional[torch.Tensor] = None)
emu3/tokenizer/modeling_emu3visionvq.py:299
Methodforward
(self, x: torch.Tensor, zq: Optional[torch.Tensor] = None)
emu3/tokenizer/modeling_emu3visionvq.py:367
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:412
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:442
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:454
Methodforward
(self, x: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:559
Methodforward
(self, z: torch.Tensor, zq: torch.Tensor)
emu3/tokenizer/modeling_emu3visionvq.py:684
Methodget_decoder
(self)
emu3/mllm/modeling_emu3.py:1135
Methodget_input_embeddings
(self)
emu3/mllm/modeling_emu3.py:970
Methodget_input_embeddings
(self)
emu3/mllm/modeling_emu3.py:1120
Methodget_output_embeddings
(self)
emu3/mllm/modeling_emu3.py:1126
Methodget_vocab
(self)
emu3/mllm/tokenization_emu3.py:149
Methodmodel_input_names
(self)
emu3/mllm/processing_emu3.py:236
Methodpredict
Run a single prediction on the model
replicate_demo/predict_gen.py:96
Methodpredict
Run a single prediction on the model
replicate_demo/predict_chat.py:80
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
emu3/mllm/modeling_emu3.py:1280
Methodpreprocess
Args: images (`ImageInput`): Image to preprocess. Expects a single or batch of images with pixel values ranging f
emu3/tokenizer/image_processing_emu3visionvq.py:245
Methodsave_vocabulary
Save only the vocabulary of the tokenizer (vocabulary). Returns: `Tuple(str)`: Paths to the files saved.
emu3/mllm/tokenization_emu3.py:184
Methodset_decoder
(self, decoder)
emu3/mllm/modeling_emu3.py:1132
Methodset_input_embeddings
(self, value)
emu3/mllm/modeling_emu3.py:973
Methodset_input_embeddings
(self, value)
emu3/mllm/modeling_emu3.py:1123
Methodset_output_embeddings
(self, new_embeddings)
emu3/mllm/modeling_emu3.py:1129
Methodsetup
Load the model into memory to make running multiple predictions efficient
replicate_demo/predict_gen.py:51
Methodsetup
Load the model into memory to make running multiple predictions efficient
replicate_demo/predict_chat.py:46
Methodtokenize
Converts a string in a sequence of tokens. Args: text (`str`): The sequence to be encoded. a
emu3/mllm/tokenization_emu3.py:206
Methodvision_decode
(self, *args, **kwargs)
emu3/mllm/processing_emu3.py:206
Methodvision_encode
(self, *args, **kwargs)
emu3/mllm/processing_emu3.py:202
Methodvocab_size
(self)
emu3/mllm/tokenization_emu3.py:264
← previous101–136 of 136, ranked by callers