---
title: lingbotworld2_t5
---

<div class="python-reference">

<a id="fastvideo.configs.models.encoders.lingbotworld2_t5"></a>

<h2 id="fastvideo.configs.models.encoders.lingbotworld2_t5.TextEncoderArchConfig"><code>fastvideo.configs.models.encoders.lingbotworld2_t5.TextEncoderArchConfig</code></h2>
<pre class="doc-signature"><code>TextEncoderArchConfig(stacked_params_mapping: list&#91;tuple&#91;str, str, str&#93;&#93; = list(), architectures: list&#91;str&#93; = (lambda: &#91;&#93;)(), _supported_attention_backends: tuple&#91;AttentionBackendEnum, ...&#93; = (AttentionBackendEnum.FLASH_ATTN, AttentionBackendEnum.TORCH_SDPA), output_hidden_states: bool = False, use_return_dict: bool = True, vocab_size: int = 0, hidden_size: int = 0, num_hidden_layers: int = 0, num_attention_heads: int = 0, pad_token_id: int = 0, eos_token_id: int = 0, text_len: int = 0, hidden_state_skip_layer: int = 0, decoder_start_token_id: int = 0, output_past: bool = True, scalable_attention: bool = True, tie_word_embeddings: bool = False, tokenizer_kwargs: dict&#91;str, Any&#93; = dict(), _fsdp_shard_conditions: list = (lambda: &#91;&#93;)(), require_processor: bool = False)</code></pre>


<h2 id="fastvideo.configs.models.encoders.lingbotworld2_t5.TextEncoderConfig"><code>fastvideo.configs.models.encoders.lingbotworld2_t5.TextEncoderConfig</code></h2>
<pre class="doc-signature"><code>TextEncoderConfig(arch_config: ArchConfig = TextEncoderArchConfig(), prefix: str = &#x27;&#x27;, quant_config: QuantizationConfig | None = None, lora_config: Any | None = None, is_chat_model: bool = False, treat_empty_as_dot: bool = False, *, _resolved_attention_backend: AttentionBackendEnum | None = None, chat_template_enable_thinking: bool = False)</code></pre>


<h2 id="fastvideo.configs.models.encoders.lingbotworld2_t5.LingBotWorld2UMT5ArchConfig"><code>fastvideo.configs.models.encoders.lingbotworld2_t5.LingBotWorld2UMT5ArchConfig</code></h2>
<pre class="doc-signature"><code>LingBotWorld2UMT5ArchConfig(stacked_params_mapping: list&#91;tuple&#91;str, str, str&#93;&#93; = list(), architectures: list&#91;str&#93; = (lambda: &#91;&#x27;LingBotWorld2T5EncoderModel&#x27;&#93;)(), _supported_attention_backends: tuple&#91;AttentionBackendEnum, ...&#93; = (AttentionBackendEnum.FLASH_ATTN, AttentionBackendEnum.TORCH_SDPA), output_hidden_states: bool = False, use_return_dict: bool = True, vocab_size: int = 256384, hidden_size: int = 4096, num_hidden_layers: int = 0, num_attention_heads: int = 0, pad_token_id: int = 0, eos_token_id: int = 0, text_len: int = 512, hidden_state_skip_layer: int = 0, decoder_start_token_id: int = 0, output_past: bool = True, scalable_attention: bool = True, tie_word_embeddings: bool = False, tokenizer_kwargs: dict&#91;str, Any&#93; = dict(), _fsdp_shard_conditions: list = (lambda: &#91;&#93;)(), require_processor: bool = False, dim: int = 4096, dim_attn: int = 4096, dim_ffn: int = 10240, num_heads: int = 64, num_layers: int = 24, num_buckets: int = 32, dropout: float = 0.1)</code></pre>


<details><summary>Source</summary><pre><code>@dataclass
class LingBotWorld2UMT5ArchConfig(TextEncoderArchConfig):
    architectures: list&#91;str&#93; = field(default_factory=lambda: &#91;&quot;LingBotWorld2T5EncoderModel&quot;&#93;)
    vocab_size: int = 256384
    dim: int = 4096
    dim_attn: int = 4096
    dim_ffn: int = 10240
    num_heads: int = 64
    num_layers: int = 24
    num_buckets: int = 32
    text_len: int = 512
    hidden_size: int = 4096
    dropout: float = 0.1

    def __post_init__(self) -&gt; None:
        super().__post_init__()
        self.tokenizer_kwargs = &#123;
            &quot;padding&quot;: &quot;max_length&quot;,
            &quot;truncation&quot;: True,
            &quot;max_length&quot;: self.text_len,
            &quot;add_special_tokens&quot;: True,
            &quot;return_attention_mask&quot;: True,
            &quot;return_tensors&quot;: &quot;pt&quot;,
        &#125;</code></pre></details>
<h2 id="fastvideo.configs.models.encoders.lingbotworld2_t5.LingBotWorld2UMT5Config"><code>fastvideo.configs.models.encoders.lingbotworld2_t5.LingBotWorld2UMT5Config</code></h2>
<pre class="doc-signature"><code>LingBotWorld2UMT5Config(arch_config: TextEncoderArchConfig = LingBotWorld2UMT5ArchConfig(), prefix: str = &#x27;text_encoder&#x27;, quant_config: QuantizationConfig | None = None, lora_config: Any | None = None, is_chat_model: bool = False, treat_empty_as_dot: bool = False, *, _resolved_attention_backend: AttentionBackendEnum | None = None, chat_template_enable_thinking: bool = False)</code></pre>


<details><summary>Source</summary><pre><code>@dataclass
class LingBotWorld2UMT5Config(TextEncoderConfig):
    arch_config: TextEncoderArchConfig = field(default_factory=LingBotWorld2UMT5ArchConfig)

    prefix: str = &quot;text_encoder&quot;</code></pre></details>
</div>
