bridge.models.minicpmo.config_validation#

Checkpoint identity and understanding-stage configuration validation.

Module Contents#

Functions#

validate_minicpmo_config

Copy and validate a MiniCPM-o 4.5 checkpoint without changing its caller.

API#

bridge.models.minicpmo.config_validation.validate_minicpmo_config(
config: dict[str, Any],
) → dict[str, Any]#

Copy and validate a MiniCPM-o 4.5 checkpoint without changing its caller.

Parameters:

config – Serialized Hugging Face configuration.

Returns:

An independent configuration for non-streaming understanding.

Raises:

ValueError – If the checkpoint identifies another architecture/version or omits a required enabled perception configuration.