bridge.models.qwen_vl.qwen35_vl_builder#

Model builder for Qwen3.5 and Qwen3.6 vision-language models.

Module Contents#

Classes#

Qwen35VLModelBuilder

Combine the Qwen3.5 HybridModel language decoder with the Qwen3-VL vision encoder.

Data#

API#

class bridge.models.qwen_vl.qwen35_vl_builder.Qwen35VLModelBuilder#

Bases: megatron.bridge.models.hybrid.hybrid_builder.BridgeHybridModelBuilder

Combine the Qwen3.5 HybridModel language decoder with the Qwen3-VL vision encoder.

Text and VL configs both count Hybrid mixer and feed-forward positions.

model_class: type[megatron.bridge.models.qwen_vl.modeling_qwen35.hybrid_model.Qwen35VLHybridModel] | None#

None

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.qwen_vl.modeling_qwen35.hybrid_model.Qwen35VLHybridModel#

Build one Qwen3.5-VL pipeline stage.

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

  • pre_process – Whether this stage owns the embeddings and the vision encoder.

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

  • vp_stage – Optional virtual pipeline stage index.

Returns:

A Qwen3-VL model stage built around the Qwen3.5 HybridModel decoder.

Raises:
  • TypeError – If the builder was given another model config.

  • ValueError – If vision_config is unset or transformer_layer_spec is set.

bridge.models.qwen_vl.qwen35_vl_builder.__all__#

[‘Qwen35VLModelBuilder’]