Files
alexzms af01289b30 [bugfix] registry: infer workload_type from model registration instead of defaulting to T2V
get_model_info() hard-defaulted workload_type to T2V when the caller
didn't pass one. Models registered for a single non-T2V workload (e.g.
Matrix-Game-2.0, registered I2V-only) then failed pipeline resolution:

  ValueError: Pipeline 'MatrixGame2I2VPipeline' is not supported for
  pipeline type 'basic' and workload type 't2v'

This deterministically breaks the Matrix-Game-2.0 SSIM full-suite test.

When workload_type is None, derive it from the model's registered
ConfigInfo.workload_types: use it if the model registers exactly one
workload, otherwise keep the T2V fallback. Behavior is unchanged for
T2V models and for multi/empty registrations; only single-non-T2V
models (the broken case) change. config_info is resolved once, earlier.
2026-05-17 19:34:52 +00:00
..
2026-01-05 15:47:05 -06:00