lingbot_video ¶
Native LingBot-Video Qwen3-VL language model for text-only conditioning.
Classes¶
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLAttention ¶
LingBotVideoQwen3VLAttention(config: Qwen3TextConfig, hidden_size: int, num_heads: int, num_kv_heads: int, rope_theta: float = 1000000.0, rope_scaling: dict[str, Any] | None = None, max_position_embeddings: int = 40960, quant_config: QuantizationConfig | None = None, bias: bool = False, prefix: str = '')
Bases: Qwen3Attention
Qwen3-VL attention with the official masked repeat-K/V SDPA path.
Source code in fastvideo/models/encoders/qwen3.py
Methods:¶
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLAttention.forward ¶
Apply fused projections, QK norm, RoPE, and causal grouped attention.
Source code in fastvideo/models/encoders/lingbot_video.py
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLDecoderLayer ¶
Bases: Qwen3DecoderLayer
Qwen3-VL decoder layer with explicit official residual rounding order.
Build the final Qwen3-VL attention once to avoid orphan parameters.
Source code in fastvideo/models/encoders/lingbot_video.py
Methods:¶
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLDecoderLayer.forward ¶
Run attention and MLP with each residual sum rounded before normalization.
Source code in fastvideo/models/encoders/lingbot_video.py
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLTextModel ¶
Bases: Qwen3ForCausalLM
Load the Qwen3-VL language-model subset without its vision tower or LM head.
Construct the exact Qwen3-VL module graph without replacing base layers.
Source code in fastvideo/models/encoders/lingbot_video.py
Methods:¶
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLTextModel.forward ¶
forward(input_ids: Tensor | None = None, position_ids: Tensor | None = None, attention_mask: Tensor | None = None, inputs_embeds: Tensor | None = None, output_hidden_states: bool | None = None, **kwargs: Any) -> BaseEncoderOutput
Run explicit Qwen3-VL layers and return the requested hidden-state tuple.
Source code in fastvideo/models/encoders/lingbot_video.py
fastvideo.models.encoders.lingbot_video.LingBotVideoQwen3VLTextModel.load_weights ¶
Accept either official compound keys or converted native keys.