bridge.models.stepfun.step37_config#

Builder-backed model config for Step-3.7-Flash.

The language half is the Step-3.5 decoder, configured with the fields of Step35ModelConfig. The vision-language settings live on the outer config; Step37ModelBuilder combines the decoder with the Perception-Encoder vision tower.

Module Contents#

Classes#

Step37ModelConfig

Builder config for Step-3.7-Flash.

Data#

API#

class bridge.models.stepfun.step37_config.Step37ModelConfig#

Bases: megatron.bridge.models.stepfun.step35_config.Step35ModelConfig

Builder config for Step-3.7-Flash.

vision_config holds the Hugging Face vision config, as on the provider. The token ID, projector and freeze settings are the provider fields of the same names.

builder: ClassVar[str]#

‘megatron.bridge.models.stepfun.step37_builder.Step37ModelBuilder’

position_embedding_type: Literal[learned_absolute, rope, mrope, yarn, none]#

‘rope’

vision_config: Any#

None

Hugging Face Perception-Encoder config (Step37VisionConfig or the checkpoint’s own class).

image_token_id: int#

128001

understand_projector_stride: int#

2

projector_bias: bool#

False

language_max_sequence_length: int#

262144

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.

Megatron Core serializes a nested dataclass field by field. Hugging Face configs are dataclasses, but the Step-3.7 vision configs set their shape attributes in __init__ without declaring them as fields, so that form would drop them.

classmethod from_dict(
data: dict[str, Any],
) → bridge.models.stepfun.step37_config.Step37ModelConfig#

Deserialize a config, rebuilding the vision config from every saved value as provider reloads do.

bridge.models.stepfun.step37_config.__all__#

[‘Step37ModelConfig’]