tp3.yaml 1.3 KB

1234567891011121314151617181920212223
  1. # TP=3: three boxes. GLM-5.3-Flash's 64 MLA heads, 64 KDA heads, 2048 MoE
  2. # intermediate and 154880 vocab do not split by 3, so experimental/tp3/
  3. # make_padded.py writes a config with padded sizes (66 / 66 / 2304) beside
  4. # hardlinks of the checkpoint, and tp3pad.py zero-pads the tensors as they
  5. # load. Zero heads and zero expert columns contribute nothing. Set TP=3 and
  6. # point MODEL_HOST_DIR / DFLASH_HOST_DIR at the padded dirs.
  7. #
  8. # Stack LAST, after adaptive-k.yaml (it restates that file's EXTRA_ARGS, and keeps
  9. # its SPEC_EXTRA) and
  10. # after fixes.yaml / sp.yaml / recoverssm.yaml (model.py there carries the
  11. # load hook, a no-op without tp_pad_orig in the config).
  12. services:
  13. glm53:
  14. volumes:
  15. - ../experimental/tp3/tp3pad.py:/usr/local/lib/python3.12/dist-packages/vllm/models/glm5next/common/tp3pad.py:ro
  16. - ../experimental/tp3/vocab_parallel_embedding.py:/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/vocab_parallel_embedding.py:ro
  17. environment:
  18. - TP=3
  19. # adaptive-k.yaml's scheduler plus a data-parallel vision tower: its 16
  20. # ViT heads and 10240-wide merger do not split by 3.
  21. - EXTRA_ARGS=--scheduler-cls vllm.v1.core.sched.adaptive_k.AdaptiveKScheduler --mm-encoder-tp-mode data
  22. # Padded weights process differently: never restore a TP=4 snapshot.
  23. - VLLM_WEIGHT_SNAPSHOT_TAG=tp3pad-2026-09-28