bridge.models.stepfun.step37_builder#

Model builder for Step-3.7-Flash.

Module Contents#

Classes#

Step37ModelBuilder

Combine the Step-3.5 language decoder with the Step-3.7 Perception-Encoder vision tower.

Data#

API#

class bridge.models.stepfun.step37_builder.Step37ModelBuilder#

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

Combine the Step-3.5 language decoder with the Step-3.7 Perception-Encoder vision tower.

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.stepfun.modelling_step37.model.Step37Model#

Build one Step-3.7 pipeline stage.

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

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

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

  • vp_stage – Optional virtual pipeline stage index.

Returns:

A Step-3.7 model stage.

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

  • ValueError – If vision_config is unset.

bridge.models.stepfun.step37_builder.__all__#

[‘Step37ModelBuilder’]