{"record":{"id":"9acb0a398209b567","repo":"sgl-project/sglang","slug":"unsupported-packing-format-packing-format-curr","errorCode":null,"errorMessage":"Unsupported packing_format: {packing_format}, currently only support  {self.SUPPORTED_FORMATS}","messagePattern":"Unsupported packing_format: (.+?), currently only support  (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/srt/layers/quantization/auto_round.py","lineNumber":84,"sourceCode":"        dynamic: Optional[dict[str, dict[str, Union[int, bool]]]] = None,\n        checkpoint_format: str = \"\",\n        true_sequential: bool = False,\n        static_groups: bool = False,\n        gptq_defaulted_config_keys: Optional[tuple[str, ...]] = None,\n    ) -> None:\n        super().__init__()\n        if weight_bits not in self.SUPPORTED_BITS:\n            raise ValueError(\n                f\"Unsupported weight_bits: {weight_bits}, \"\n                f\"currently only support  {self.SUPPORTED_BITS}\"\n            )\n        if data_type not in self.SUPPORTED_DTYPES:\n            raise ValueError(\n                f\"Unsupported data_type: {data_type},\"\n                f\" currently only support  {self.SUPPORTED_DTYPES}\"\n            )\n        if packing_format not in self.SUPPORTED_FORMATS:\n            raise ValueError(\n                f\"Unsupported packing_format: {packing_format}, \"\n                f\"currently only support  {self.SUPPORTED_FORMATS}\"\n            )\n        if backend not in self.SUPPORTED_BACKENDS:\n            raise ValueError(\n                f\"Unsupported backend: {backend},  \"\n                f\"currently only support  {self.SUPPORTED_BACKENDS}\"\n            )\n\n        self.weight_bits = weight_bits\n        self.group_size = group_size\n        self.sym = sym\n        self.packing_format = packing_format\n        self.block_name_to_quantize = (\n            block_name_to_quantize.split(\",\")\n            if isinstance(block_name_to_quantize, str)\n            else block_name_to_quantize\n        )","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/srt/layers/quantization/auto_round.py#L66-L102","documentation":"AutoRoundConfig validates the weight packing format string against SUPPORTED_FORMATS (e.g. 'auto', 'ipex', 'gptq', 'awq' style packs). An unknown packing_format raises during config parsing/loading.","triggerScenarios":"A checkpoint quantization_config carrying a packing format not in SUPPORTED_FORMATS, or explicitly passing packing_format when building AutoRoundConfig.","commonSituations":"Mixing exporters (AutoRound tool versions) that emit newer format names, or forcing a GPU packing format for a CPU deployment.","solutions":["Set packing_format to 'auto' (or another listed format) in the checkpoint config or constructor","Upgrade SGLang to a version supporting the new packing name","Re-export the checkpoint with a standard packing"],"exampleFix":"// before\n\"quantization_config\": {\"packing_format\": \"custom_pack\", ...}\n// after\n\"quantization_config\": {\"packing_format\": \"auto\", ...}","handlingStrategy":"validation","validationCode":"fmt = quant_cfg.get(\"packing_format\", \"auto\")\nassert fmt in AutoRoundConfig.SUPPORTED_FORMATS or fmt == \"auto\"","typeGuard":"def is_supported_packing(fmt: str) -> bool:\n    return fmt in AutoRoundConfig.SUPPORTED_FORMATS","tryCatchPattern":null,"preventionTips":["Prefer packing_format='auto' in exports","Smoke-test a new exporter's checkpoints before fleet rollout"],"tags":["quantization","auto-round","packing"],"backgroundTag":"invalid-configuration-value","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}