bridge.models.kimi_vl.kimi_k25_vl_config#

Builder-backed model config for Kimi K2.5 VL.

The language half is Kimi K2’s MoE decoder with Multi-Latent Attention, configured with the fields of BridgeGPTMLAModelConfig. The vision-language settings, the provider fields of the same names, live on the outer config. KimiK25VLModelBuilder combines the decoder with the MoonViT vision tower and the projector, which KimiK25VLModel loads from the checkpoint’s own code.

Module Contents#

Classes#

KimiK25VLModelConfig

Builder config for Kimi K2.5 VL, the builder counterpart of KimiK25VLModelProvider.

Data#

API#

class bridge.models.kimi_vl.kimi_k25_vl_config.KimiK25VLModelConfig#

Bases: megatron.bridge.models.gpt.model_config.BridgeGPTMLAModelConfig

Builder config for Kimi K2.5 VL, the builder counterpart of KimiK25VLModelProvider.

KimiK25VLModel merges image features into the language embeddings before it scatters them for sequence parallelism, so the language model’s embedding does not scatter them.

builder: ClassVar[str]#

‘megatron.bridge.models.kimi_vl.kimi_k25_vl_builder.KimiK25VLModelBuilder’

scatter_embedding_sequence_parallel: bool#

False

vision_config: Any#

None

Hugging Face KimiK25VisionConfig. The model reloads it from hf_model_path when it builds the vision tower.

hf_model_path: str | None#

None

Hugging Face checkpoint whose code defines the vision tower and the projector.

trust_remote_code: bool#

False

Whether the model may load the vision tower and the projector from the code in hf_model_path.

bos_token_id: int#

163584

eos_token_id: int#

163585

image_token_id: int#

163605

media_placeholder_token_id: int#

163605

pad_token_id: int#

163839

ignore_index: int#

None

freeze_language_model: bool#

False

freeze_vision_model: bool#

False

freeze_vision_projection: bool#

False

as_dict() → dict[str, Any]#

Serialize the config, with the Hugging Face vision config in the form provider checkpoints use.

Field-by-field serialization keeps only the declared fields of a Hugging Face config, and the remote KimiK25VisionConfig sets the vision tower’s shape as undeclared attributes.

classmethod from_dict(
data: dict[str, Any],
) → bridge.models.kimi_vl.kimi_k25_vl_config.KimiK25VLModelConfig#

Deserialize a config, restoring the Hugging Face vision config with its own from_dict().

Raises:

TypeError – If the serialized vision config does not name a Hugging Face config class.

bridge.models.kimi_vl.kimi_k25_vl_config.__all__#

[‘KimiK25VLModelConfig’]