bridge.models.kimi_vl.kimi_k25_vl_builder#

Model builder for Kimi K2.5 VL.

KimiK25VLModelBuilder constructs the existing KimiK25VLModel as the legacy KimiK25VLModelProvider does: the vision tower and the projector first, from the checkpoint’s own code, then the language model from the GPT builder.

Module Contents#

Classes#

KimiK25VLModelBuilder

Combine the Kimi K2 MoE language model with the MoonViT vision tower and the projector.

Data#

API#

class bridge.models.kimi_vl.kimi_k25_vl_builder.KimiK25VLModelBuilder#

Bases: megatron.bridge.models.gpt.gpt_builder.GPTModelBuilder

Combine the Kimi K2 MoE language model with the MoonViT vision tower and the projector.

build_model(
pg_collection: megatron.core.process_groups_config.ProcessGroupCollection,
pre_process: bool | None = None,
post_process: bool | None = None,
vp_stage: int | None = None,
) → megatron.bridge.models.kimi_vl.modeling_kimi_k25_vl.KimiK25VLModel#

Build one Kimi K2.5 VL pipeline stage.

Parameters:
  • pg_collection – Process groups used for distributed construction.

  • pre_process – Whether this stage owns the embeddings, the vision tower and the projector.

  • post_process – Whether this stage owns the language-model output layer.

  • vp_stage – Optional virtual pipeline stage index.

Returns:

A Kimi K2.5 VL model stage.

Raises:

TypeError – If the builder was given another model config.

bridge.models.kimi_vl.kimi_k25_vl_builder.__all__#

[‘KimiK25VLModelBuilder’]