{"record":{"id":"12caf533f1431177","repo":"sgl-project/sglang","slug":"model-index-json-minimax-h3-partition-must-be-one","errorCode":null,"errorMessage":"model_index.json._minimax_h3.partition must be one of fl2va, ref2va","messagePattern":"model_index\\.json\\._minimax_h3\\.partition must be one of fl2va, ref2va","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"critical","filePath":"python/sglang/multimodal_gen/runtime/pipelines_core/stages/model_specific_stages/minimax_h3/release_metadata.py","lineNumber":65,"sourceCode":"    schema_version: int\n    partition: str\n    tasks: tuple[str, ...]\n    task_aliases: Mapping[str, str]\n    video_sigma_shift: float\n    audio_sigma_shift: float\n\n    @classmethod\n    def from_model_index(\n        cls, model_index: Mapping[str, Any]\n    ) -> MiniMaxH3ReleaseMetadata:\n        raw = model_index.get(\"_minimax_h3\")\n        if not isinstance(raw, Mapping):\n            raise ValueError(\"model_index.json._minimax_h3 must be an object\")\n        if raw.get(\"schema_version\") != 1:\n            raise ValueError(\"model_index.json._minimax_h3.schema_version must be 1\")\n        partition = raw.get(\"partition\")\n        if partition not in {\"fl2va\", \"ref2va\"}:\n            raise ValueError(\n                \"model_index.json._minimax_h3.partition must be one of \" \"fl2va, ref2va\"\n            )\n        tasks = _string_list(raw.get(\"tasks\"), \"model_index.json._minimax_h3.tasks\")\n        aliases = raw.get(\"task_aliases\", {})\n        if not isinstance(aliases, Mapping) or any(\n            not isinstance(key, str)\n            or not key\n            or not isinstance(value, str)\n            or not value\n            for key, value in aliases.items()\n        ):\n            raise ValueError(\n                \"model_index.json._minimax_h3.task_aliases must map strings to strings\"\n            )\n        scales = raw.get(\"sigma_shift_scales\")\n        if not isinstance(scales, Mapping):\n            raise ValueError(\n                \"model_index.json._minimax_h3.sigma_shift_scales must be an object\"","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/multimodal_gen/runtime/pipelines_core/stages/model_specific_stages/minimax_h3/release_metadata.py#L47-L83","documentation":"The _minimax_h3.partition field in model_index.json must be exactly 'fl2va' or 'ref2va'. The partition determines which task family and conditioning paths the checkpoint serves, so an unknown value is rejected at config load.","triggerScenarios":"partition misspelled ('ref2VA', 'fl2v'), set to another string, or missing (None) in model_index.json.","commonSituations":"Hand-edited metadata, a checkpoint repackaged by a third party with renamed fields, or case differences introduced by JSON tooling.","solutions":["Set partition to exactly \"fl2va\" or \"ref2va\" (lowercase) in _minimax_h3","Pick the partition matching the checkpoint's trained task family","Re-download the official release files if the metadata was mangled"],"exampleFix":"// before\n\"_minimax_h3\": {\"schema_version\": 1, \"partition\": \"Ref2VA\", ...}\n\n// after\n\"_minimax_h3\": {\"schema_version\": 1, \"partition\": \"ref2va\", ...}","handlingStrategy":"validation","validationCode":"def partition_ok(idx) -> bool:\n    return idx.get(\"_minimax_h3\", {}).get(\"partition\") in {\"fl2va\", \"ref2va\"}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use exact lowercase partition strings","Copy the partition field verbatim from the official release metadata"],"tags":["minimax-h3","model-index","partition","config-validation"],"backgroundTag":"config-schema-validation-failed","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}