fp8.yaml 829 B

123456789101112131415
  1. # Dense linears the checkpoint left in bf16 (dense_fp8.py): FP8, except the
  2. # layers matching VLLM_DENSE_W4, which go to NVFP4 (megadense4.cu): by default
  3. # the KDA in_proj, attention o_proj, the shared experts and every DFlash
  4. # drafter layer. Needs snapshot.yaml's loader;
  5. # keeps its own snapshots.
  6. services:
  7. glm53:
  8. volumes:
  9. - ../experimental/snapshot/dense_fp8.py:/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/dense_fp8.py:ro
  10. - ../experimental/megamoe/megadense4.cu:/opt/megamoe/megadense4.cu:ro
  11. environment:
  12. - VLLM_DENSE_FP8=1
  13. - VLLM_DENSE_FP8_LM_HEAD=${VLLM_DENSE_FP8_LM_HEAD:-1}
  14. - VLLM_DENSE_W4=${VLLM_DENSE_W4:-in_proj_qkvbfg_a$$|^model\.|self_attn\.o_proj$$|shared_experts\.(gate_up_proj|down_proj)$$}
  15. - VLLM_WEIGHT_SNAPSHOT_TAG=fp8w4c-2026-09-28