{
  "schema_version": "1",
  "kind": "research_release",
  "slug": "qwen35-4b-glaze",
  "version": "0.1.0",
  "title": "Qwen3.5-4B · Glaze",
  "summary": "Mixed 4-bit and 8-bit compression of Qwen3.5-4B: 83.2% on MATH-500 versus BF16’s 83.4%, in a 3.80 GB checkpoint. Published weights and text/vision evaluation records.",
  "lifecycle": {
    "status": "published"
  },
  "validation": {
    "status": "external",
    "summary": "Published by the research project. No native lazybrick execution adapter or executable lazybrick recipe is available."
  },
  "evidence": {
    "status": "publisher_reported",
    "summary": "External research measurements, attributed to the pinned source records. The Hub has not verified a complete lazybrick evidence bundle or rerun these experiments.",
    "repo_id": "lazybrick/kiln-evals",
    "revision": "257850afd3a4af49105923fa5b6170da27f6074d",
    "directory": "glaze_w4a16"
  },
  "model": {
    "id": "Qwen/Qwen3.5-4B",
    "family": "Qwen3.5",
    "revision": "851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a"
  },
  "artifact": {
    "repo_id": "lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16",
    "revision": "aee82c5370e21798fb33abb695c80aa51d1fb251",
    "license": "apache-2.0",
    "reported_total_bytes": 3795765945,
    "weights_file": "model.safetensors",
    "weights_bytes": 3772831712,
    "weights_sha256": "87587d584bbe854233fdda96ab29d1697c3efa7fe51d139fea49c3288ee42c5c"
  },
  "source": {
    "repository": "https://github.com/imjohnzakkam/qwen35-compression",
    "revision": "7a4499fa04db80cbc163fa82690b5957a79c6546",
    "execution_revision": "d3a2e2b5739b8d701b5ccf33f7282da1a76350b1"
  },
  "method": {
    "id": "glaze",
    "label": "Glaze",
    "weight_bits": 4,
    "activation_bits": 16,
    "weight_precisions": [
      4,
      8
    ],
    "group_sizes": [
      32,
      64,
      128
    ],
    "steps": [
      "Generate BF16 answers to 4,419 training prompts from MATH, ARC-Challenge, SciQ, and UltraChat; remove 13-gram overlaps with MATH-500 and MMLU-Pro.",
      "Pack 512 calibration blocks of 2,048 tokens with a 40/40/20 math, multiple-choice, and chat mixture; reserve 64 validation blocks.",
      "Estimate layer sensitivity with sampled-label Fisher factors, then allocate precision under the checkpoint byte budget.",
      "Quantize the vision tower to INT8 and spend the freed bytes on sensitive language layers: INT4 with group sizes 32, 64, or 128, and INT8 with group size 128.",
      "Learn rounding and clipping with Fisher-weighted layer reconstruction, up to 400 iterations per layer; export compressed-tensors. Token embeddings and lm_head remain BF16."
    ]
  },
  "runtime": {
    "export_format": "compressed-tensors",
    "inference": "vLLM",
    "version": "0.29.0"
  },
  "target": {
    "accelerator_family": "NVIDIA A100",
    "memory_gib": 40
  },
  "protocol": {
    "mode": "instruct",
    "enable_thinking": false,
    "decoding": "greedy",
    "max_generated_tokens": 8192,
    "text_context_length": 12288,
    "vision_context_length": 32768,
    "seeds": [
      42
    ],
    "versions": {
      "vllm": "0.29.0",
      "lm-evaluation-harness": "0.4.13",
      "transformers": "5.12.1",
      "quantization torch": "2.10.0",
      "text evaluation torch": "2.13.0+cu130",
      "compressed-tensors": "0.18.0",
      "VLMEvalKit": "34a64e619d5466ab3a900f1720041ea88d4a1ed6"
    },
    "answer_extraction": "gpt-4o-mini for MMBench, MMMU, and MathVista; fixed scoring rules for the remaining vision tasks. MMMU extraction failed on 6 of 900 answers."
  },
  "benchmarks": [
    {
      "task": "MMLU-Pro",
      "metric": "exact match",
      "unit": "percent",
      "scores": {
        "bf16": 74.6,
        "int8": 74.3,
        "gptq": 71.4,
        "awq": 71.9,
        "autoround": 72.8,
        "glaze": 73.7
      }
    },
    {
      "task": "GSM8K",
      "metric": "flexible extract",
      "unit": "percent",
      "scores": {
        "bf16": 83.2,
        "int8": 83.5,
        "gptq": 81.9,
        "awq": 82.6,
        "autoround": 82.3,
        "glaze": 82.8
      }
    },
    {
      "task": "MATH-500",
      "metric": "math_verify",
      "unit": "percent",
      "scores": {
        "bf16": 83.4,
        "int8": 82.6,
        "gptq": 75.8,
        "awq": 73.4,
        "autoround": 73.2,
        "glaze": 83.2
      }
    },
    {
      "task": "IFEval",
      "metric": "prompt-level strict",
      "unit": "percent",
      "scores": {
        "bf16": 82.3,
        "int8": 82.1,
        "gptq": 80.8,
        "awq": 79.3,
        "autoround": 80.6,
        "glaze": 82.8
      }
    },
    {
      "task": "HellaSwag",
      "metric": "acc_norm",
      "unit": "percent",
      "scores": {
        "bf16": 65.4,
        "int8": 65.2,
        "gptq": 64.3,
        "awq": 64.8,
        "autoround": 64.8,
        "glaze": 64.8
      }
    },
    {
      "task": "ARC-Challenge",
      "metric": "acc_norm",
      "unit": "percent",
      "scores": {
        "bf16": 51.1,
        "int8": 49.7,
        "gptq": 50.8,
        "awq": 50.0,
        "autoround": 50.0,
        "glaze": 49.6
      }
    },
    {
      "task": "WikiText-2 perplexity (lower is better)",
      "metric": "word perplexity",
      "unit": "perplexity",
      "scores": {
        "bf16": 10.95,
        "int8": 11.09,
        "gptq": 11.43,
        "awq": 11.55,
        "autoround": 11.45,
        "glaze": 11.3
      }
    },
    {
      "task": "MMBench (dev, EN v1.1)",
      "metric": "accuracy",
      "unit": "percent",
      "scores": {
        "bf16": 85.4,
        "int8": 83.7,
        "gptq": 84.1,
        "awq": 82.9,
        "autoround": 84.7,
        "glaze": 85.7
      }
    },
    {
      "task": "MMMU (val)",
      "metric": "accuracy",
      "unit": "percent",
      "scores": {
        "bf16": 69.6,
        "int8": 67.7,
        "gptq": 64.9,
        "awq": 65.7,
        "autoround": 66.9,
        "glaze": 66.7
      }
    },
    {
      "task": "MathVista (mini)",
      "metric": "accuracy",
      "unit": "percent",
      "scores": {
        "bf16": 81.0,
        "int8": 81.8,
        "gptq": 78.0,
        "awq": 78.0,
        "autoround": 80.3,
        "glaze": 80.6
      }
    },
    {
      "task": "OCRBench",
      "metric": "normalized score",
      "unit": "percent",
      "scores": {
        "bf16": 86.3,
        "int8": 87.5,
        "gptq": 86.0,
        "awq": 87.1,
        "autoround": 87.2,
        "glaze": 86.3
      }
    },
    {
      "task": "DocVQA (val)",
      "metric": "ANLS",
      "unit": "percent",
      "scores": {
        "bf16": 95.3,
        "int8": 95.3,
        "gptq": 94.8,
        "awq": 95.1,
        "autoround": 95.3,
        "glaze": 95.4
      }
    },
    {
      "task": "TextVQA (val)",
      "metric": "accuracy",
      "unit": "percent",
      "scores": {
        "bf16": 82.8,
        "int8": 82.2,
        "gptq": 81.7,
        "awq": 81.8,
        "autoround": 82.5,
        "glaze": 82.2
      }
    }
  ],
  "limitations": [
    "These are publisher-reported results under an instruct-mode protocol, not the base model card’s thinking-mode scores. The Hub has not rerun the benchmarks or downloaded the weight file for local hash verification.",
    "The original GPTQ, AWQ, and AutoRound baselines use general-chat calibration; Glaze uses in-domain data and a larger calibration volume. Their score differences combine data, optimization, and precision choices.",
    "The published data control takes AutoRound from 73.2 to 80.2 on MATH-500. The remaining 3.0-point difference to Glaze has a paired 95% interval of −0.2 to +6.2 and does not isolate the quantization mechanism.",
    "Glaze is 1.5 points below BF16 on ARC-Challenge and 2.9 below on MMMU. ARC-Challenge training prompts are used in calibration without a train/test overlap check.",
    "Glaze was evaluated on an A100, while the original baselines ran on A30s; repeated evaluations differ by about 1–2 points. One calibration/tuning seed was used; paired intervals resample questions, not seeds.",
    "Validation KL selected the rounding state, so it is validation evidence. The full AutoRound mixed-precision allocation control remains incomplete in the pinned controls record.",
    "The reported 3,795,765,945-byte export inventory excludes later model-card and compression-manifest files. It is distinct from the 3,772,831,712-byte safetensors weight file and the current repository storage size.",
    "No latency, throughput, FLOP reduction, or universal advantage is claimed. The 40 GB A100 is reported experiment hardware, not a measured minimum inference requirement."
  ],
  "tags": [
    "Qwen3.5",
    "Glaze",
    "Kiln",
    "W4A16",
    "mixed-precision",
    "vision-language",
    "vLLM",
    "compressed-tensors"
  ],
  "usage": {
    "download": "hf download lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16 --revision aee82c5370e21798fb33abb695c80aa51d1fb251 --local-dir ./qwen35-4b-glaze",
    "serve": "vllm serve lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16 \\\n  --revision aee82c5370e21798fb33abb695c80aa51d1fb251 \\\n  --dtype bfloat16 --max-model-len 32768",
    "request": "{\n  \"model\": \"lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"What is 12 \\u00d7 13?\"\n    }\n  ],\n  \"temperature\": 0,\n  \"max_tokens\": 8192,\n  \"chat_template_kwargs\": {\n    \"enable_thinking\": false\n  }\n}"
  },
  "sources": [
    {
      "path": "sources/model-card.md",
      "url": "https://huggingface.co/lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16/blob/aee82c5370e21798fb33abb695c80aa51d1fb251/README.md",
      "sha256": "c62ebc49fd2978acdc5e4dd16e96a4f4ac549906732ac566c01746fe7a855aa1"
    },
    {
      "path": "sources/compression-manifest.json",
      "url": "https://huggingface.co/lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16/blob/aee82c5370e21798fb33abb695c80aa51d1fb251/compression_manifest.json",
      "sha256": "3255616c54082359417ed20416c8e580d43781d56770ad67279d321fb9541cc7"
    },
    {
      "path": "sources/model-config.json",
      "url": "https://huggingface.co/lazybrick/Qwen3.5-4B-Kiln-Glaze-W4A16/blob/aee82c5370e21798fb33abb695c80aa51d1fb251/config.json",
      "sha256": "3447c26bd42b061fd51eedd826f3048dbb8da60d99cc14528167ac232ca324fc"
    },
    {
      "path": "sources/evaluation-manifest.json",
      "url": "https://huggingface.co/datasets/lazybrick/kiln-evals/blob/257850afd3a4af49105923fa5b6170da27f6074d/glaze_w4a16/manifest.json",
      "sha256": "53ddadf705552d46bff06e4768f3f3bdfb24302003ba27823c77179438894b7f"
    },
    {
      "path": "sources/text-results.json",
      "url": "https://huggingface.co/datasets/lazybrick/kiln-evals/blob/257850afd3a4af49105923fa5b6170da27f6074d/glaze_w4a16/text/results.json",
      "sha256": "f92a8395c3370663f5eb417abd86c7276a2630bdec5af01795e964eefdefa54f"
    }
  ]
}
