{"record":{"id":"ec776f2a2f9d1f24","repo":"sgl-project/sglang","slug":"muse-glimmer-mlx-format-self-muse-glimmer-mlx-for","errorCode":null,"errorMessage":"muse_glimmer_mlx_format {self.muse_glimmer_mlx_format} is not supported by this model file (expected {MUSE_GLIMMER_MLX_FORMAT_VERSION}); regenerate the artifact with a matching packager","messagePattern":"muse_glimmer_mlx_format (.+?) is not supported by this model file \\(expected (.+?)\\); regenerate the artifact with a matching packager","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/srt/hardware_backend/mlx/models/muse_glimmer_mlx.py","lineNumber":326,"sourceCode":"                )\n            if self.layer_types != derived_layer_types:\n                mismatches = [\n                    i\n                    for i, (got, want) in enumerate(\n                        zip(self.layer_types, derived_layer_types)\n                    )\n                    if got != want\n                ]\n                raise ValueError(\n                    \"layer_types disagrees with no_rope_layers (NoPE layers \"\n                    \"must be the full_attention layers) at layer indices \"\n                    f\"{mismatches}\"\n                )\n\n        if self.muse_glimmer_mlx_format is not None and (\n            self.muse_glimmer_mlx_format != MUSE_GLIMMER_MLX_FORMAT_VERSION\n        ):\n            raise ValueError(\n                f\"muse_glimmer_mlx_format {self.muse_glimmer_mlx_format} is not supported by \"\n                f\"this model file (expected {MUSE_GLIMMER_MLX_FORMAT_VERSION}); \"\n                \"regenerate the artifact with a matching packager\"\n            )\n\n\nclass ScalelessRMSNorm(nn.Module):\n    \"\"\"RMS norm with no learnable scale (reference MuseGlimmerScalelessRMSNorm).\"\"\"\n\n    def __init__(self, dims: int, eps: float):\n        super().__init__()\n        self.dims = dims\n        self.eps = eps\n\n    def __call__(self, x: mx.array) -> mx.array:\n        return mx.fast.rms_norm(x, None, self.eps)\n\n","sourceCodeStart":308,"sourceCodeEnd":344,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/srt/hardware_backend/mlx/models/muse_glimmer_mlx.py#L308-L344","documentation":"If config.json sets muse_glimmer_mlx_format, its value must equal MUSE_GLIMMER_MLX_FORMAT_VERSION supported by this model file. Any other version string/int means the packaged artifact was produced by an incompatible packager and the loader refuses it up front.","triggerScenarios":"Loading a packaged MLX artifact whose config.json carries a muse_glimmer_mlx_format value from a newer or older packaging tool than the installed sglang supports.","commonSituations":"Upgrading/downgrading sglang across a packaging-format change, sharing artifacts between machines with different sglang versions, or downloading a repacked model from a source using a newer packager.","solutions":["Upgrade (or pin) sglang to the version whose packager produced the artifact","Repackage the artifact from the raw HF export using the currently installed toolchain","Check the artifact's format value against MUSE_GLIMMER_MLX_FORMAT_VERSION and remove the key only if the weights are actually raw (then error 3575 semantics apply)"],"exampleFix":"// before (artifact format 2, library expects 1)\n\"muse_glimmer_mlx_format\": 2\n// after: repack with matching packager, or upgrade sglang so expected version == 2","handlingStrategy":"try-catch","validationCode":"from sglang.srt.hardware_backend.mlx.models.muse_glimmer_mlx import MUSE_GLIMMER_MLX_FORMAT_VERSION\nassert cfg.get(\"muse_glimmer_mlx_format\", MUSE_GLIMMER_MLX_FORMAT_VERSION) == MUSE_GLIMMER_MLX_FORMAT_VERSION","typeGuard":null,"tryCatchPattern":"try:\n    model = MuseGlimmerMLXConfig(**cfg)\nexcept ValueError as e:\n    if \"muse_glimmer_mlx_format\" in str(e):\n        raise RuntimeError(\"Artifact packaged by incompatible version; repack or upgrade sglang\") from e\n    raise","preventionTips":["Pin the sglang version that produced your artifacts","Record the packager version alongside artifacts"],"tags":["version-mismatch","packaging","mlx"],"backgroundTag":"artifact-version-mismatch","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}