Skip to content

vllm.model_executor.models.deepencoder2

Classes:

CustomQwen2Decoder

Bases: PluggableLayer

Qwen2 visual encoder non-causal attention + causal attention token_type_ids :0=non-causal, 1=causal

Methods:

_create_custom_model(config)

Qwen2Model.

forward(inputs_embeds, token_type_ids, attention_mask=None, **kwargs)

Args: inputs_embeds: [batch_size, seq_len, hidden_dim] token_type_ids: [batch_size, seq_len], 0=non-causal, 1=causal attention_mask: [batch_size, seq_len], optional

Qwen2Decoder2Encoder

Bases: Module

Decoder based on Multilingual BART Set the initial weights and configuration with a pretrained multilingual BART model, and modify the detailed configurations as a Nougat decoder