megamoe.yaml 1.1 KB

12345678910111213141516171819
  1. # megamoe for decode-sized MoE batches (W4A16, CUTLASS's own tensors), and with
  2. # VLLM_MOE_PREFILL=1 moe_prefill.cu for batches of VLLM_MOE_PREFILL_MIN_TOKENS or
  3. # more; CUTLASS keeps the sizes in between. Needs snapshot.yaml's loader, which
  4. # calls megamoe_vllm.install() after loading. VLLM_MOE_PREFILL_Y8: fc2's per-expert
  5. # rows as e4m3 (scale per 128 columns) for the fused SP finalize: half the bytes.
  6. services:
  7. glm53:
  8. volumes:
  9. - ../experimental/megamoe/megamoe_rm.cu:/opt/megamoe/megamoe_rm.cu:ro
  10. - ../experimental/megamoe/moe_prefill.cu:/opt/megamoe/moe_prefill.cu:ro
  11. - ../experimental/megamoe/megamoe_vllm.py:/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/fused_moe/megamoe_vllm.py:ro
  12. environment:
  13. - VLLM_MEGAMOE=${VLLM_MEGAMOE:-1}
  14. - VLLM_MEGAMOE_MAX_TOKENS=${VLLM_MEGAMOE_MAX_TOKENS:-8}
  15. - VLLM_MEGAMOE_VARIANT=${VLLM_MEGAMOE_VARIANT:-20}
  16. - VLLM_MOE_PREFILL=${VLLM_MOE_PREFILL:-1}
  17. - VLLM_MOE_PREFILL_MIN_TOKENS=${VLLM_MOE_PREFILL_MIN_TOKENS:-1024}
  18. - VLLM_MOE_PREFILL_CHECK=${VLLM_MOE_PREFILL_CHECK:-0}
  19. - VLLM_MOE_PREFILL_Y8=${VLLM_MOE_PREFILL_Y8:-1}