CheckpointVariant#
- class openstef_foundation_models.models.catalog.CheckpointVariant(*values)[source]
Bases:
StrEnumA published ONNX variant of a model’s weights.
- DYNAMIC = 'dynamic'
- STATIC = 'static'
- property filename_suffix: str
The suffix this variant adds to the model slug in the weights filename.
- Returns:
'_static'for the static-shape variant,''for the dynamic one.
- classmethod recommended() CheckpointVariant[source]
The variant to prefer on the host running this code.
Returns
STATICon macOS, where frozen shapes let the CoreML provider engage in the default fallback chain, andDYNAMICeverywhere else. The choice is by platform only — it never imports the inference runtime — so static is recommended on macOS even when CoreML is absent, where it simply runs on CPU like the dynamic build.- Return type:
- Returns:
The recommended variant for this host.