{
  "title": "How do I train and serve MoE models released in MXFP4 (gpt-oss, DeepSeek-V4)?",
  "summary": "Choose between the convenient QLoRA path, which decodes MXFP4 and re-quantises to NF4, and the native-byte path, which keeps the released blocks and scales in an arena.",
  "summary_origin": "comment",
  "project": "experts4bit-qlora",
  "canonical_package": "experts4bit-qlora",
  "canonical_url": "https://cerinamroth.com/ml/solutions/mxfp4-moe-training-and-residency/",
  "install": {
    "primary": {
      "purpose": "minimum/reference training",
      "command": "pip install \"experts4bit-qlora[train]\"",
      "capabilities": [
        "mxfp4-moe-training-and-residency"
      ]
    },
    "alternatives": [
      {
        "purpose": "residency/NVMe/fast-kernel route",
        "command": "pip install \"experts4bit-qlora[fast]\"",
        "capabilities": [
          "mxfp4-moe-training-and-residency"
        ]
      }
    ],
    "environment": {
      "os": [
        "Linux"
      ],
      "python": [
        ">=3.11 tested in CI (pyproject says >=3.9; 3.9/3.10 are not tested)"
      ],
      "accelerator": [
        "NVIDIA CUDA GPU, sm_80 or newer (Triton kernels via grouped-nf4-gemm)"
      ],
      "special_requirements": [
        "an expert arena baked with grouped-nf4-gemm (nvme_bake_nf4 for NF4, the MXFP4 relocation bake for native MXFP4)",
        "grouped-nf4-gemm>=0.30.0 ([fast] extra; the floor is pyproject.toml's, validated by CI)",
        "local NVMe or a fast block device; pinned host RAM for the hot tier",
        "triton>=3.4 (Linux-only distribution)"
      ]
    }
  },
  "source": {
    "repository": "https://github.com/pjordanandrsn/experts4bit-qlora",
    "commit": "0c2a256dcdc2cb0a83cf7692224a8aa716f61ecd",
    "path": "docs/solutions/mxfp4-moe-training-and-residency.md",
    "sha256": "7975d3720999027b10d1cd9adda6376271520f68d71a22717280ebe352d6cf0b",
    "generation_schema": "1.2"
  },
  "pinned_url": "https://github.com/pjordanandrsn/experts4bit-qlora/blob/0c2a256dcdc2cb0a83cf7692224a8aa716f61ecd/docs/solutions/mxfp4-moe-training-and-residency.md",
  "current_main_url": "https://github.com/pjordanandrsn/experts4bit-qlora/blob/main/docs/solutions/mxfp4-moe-training-and-residency.md",
  "current_main_label": "latest on main — unpinned; not the source of any fact rendered here",
  "freshness": {
    "source": {
      "repository": "pjordanandrsn/experts4bit-qlora",
      "commit": "0c2a256dcdc2cb0a83cf7692224a8aa716f61ecd",
      "version": "0.35.3"
    },
    "publication": {
      "latest_pypi_version": "0.35.3",
      "fresh": true,
      "state": "CURRENT",
      "checked_at": "2026-09-06T04:07:55Z"
    },
    "generated_at": "2026-09-06T04:07:55Z"
  },
  "markdown": "https://cerinamroth.com/ml/solutions/mxfp4-moe-training-and-residency/index.md",
  "sources": [
    {
      "repository": "https://github.com/pjordanandrsn/experts4bit-qlora",
      "commit": "0c2a256dcdc2cb0a83cf7692224a8aa716f61ecd",
      "commit_date": "2026-09-05",
      "package": "experts4bit-qlora",
      "package_version": "0.35.3",
      "published_version": "0.35.3",
      "publication": "published",
      "documents_used": [
        "docs/capabilities.json",
        "docs/solutions/mxfp4-moe-training-and-residency.md"
      ],
      "registers_used": [
        "capabilities"
      ],
      "synced_at": "2026-09-06T04:07:55Z",
      "pinned_tree": "https://github.com/pjordanandrsn/experts4bit-qlora/tree/0c2a256dcdc2cb0a83cf7692224a8aa716f61ecd",
      "current_main": "https://github.com/pjordanandrsn/experts4bit-qlora",
      "current_main_label": "latest on main — unpinned; not the source of any fact rendered here",
      "system_manifest": {
        "url": "https://cerinamroth.com/ml/system-manifest.json",
        "provenance_url": "https://cerinamroth.com/ml/system-manifest.provenance.json",
        "sha256": "196cb55a41e890842f258305f307b873d55639cc617cd4ae61c771a063204918",
        "pinned": "https://github.com/pjordanandrsn/experts4bit-qlora/blob/0c2a256dcdc2cb0a83cf7692224a8aa716f61ecd/docs/system-manifest.json"
      }
    },
    {
      "repository": "https://github.com/Cerin-Amroth/cerinamroth-site",
      "commit": null,
      "package_version": null,
      "documents_used": [
        "scripts/build_ml_site.py"
      ],
      "registers_used": [],
      "synced_at": null,
      "sections_owned": [
        "common-wrong-approaches"
      ],
      "kind": "site",
      "note": "site-authored prose; cites the registers above and copies no numbers"
    }
  ]
}
