Dockerfile 980 B

12345678910111213141516171819202122
  1. # syntax=docker/dockerfile:1.7
  2. # GLM-5.3-Flash NVFP4-4p67 (local-inference-lab fidelity quant) on DGX Spark.
  3. #
  4. # FROM the proven lab image (day-0 base + NoPE-MLA + FujitsuPolycom patches —
  5. # which already carry the W4A16_NVFP4 / MIXED_PRECISION / MXFP8 modelopt
  6. # methods this quant needs) and add ONE structural fix: glm5next model-class
  7. # `packed_modules_mapping` declarations (model.py + mtp.py). 4p67 is the
  8. # first glm5next checkpoint with QUANTIZED attention projections; without
  9. # the shard mapping the fused KDA/MLA/indexer linears load unquantized and
  10. # weight loading dies on `in_proj_qkvbfg_a.weight_scale`.
  11. # Provenance: mirrors the fork dev/jovian-judgement resolution path
  12. # (local-inference-lab/vllm, Apache-2.0) without porting the restructured
  13. # package (which hard-depends on the amd64-only b12x backend).
  14. ARG BASE_IMAGE
  15. FROM ${BASE_IMAGE}
  16. COPY patch_4p67.py /tmp/patch_4p67.py
  17. RUN set -eux; \
  18. python3 /tmp/patch_4p67.py; \
  19. rm -f /tmp/patch_4p67.py