tp3.yaml 1.6 KB

12345678910111213141516171819202122232425
  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 SPEC_EXTRA) and
  9. # after fixes.yaml / sp.yaml / recoverssm.yaml (model.py there carries the
  10. # load hook, a no-op without tp_pad_orig in the config).
  11. services:
  12. glm53:
  13. volumes:
  14. - ../experimental/tp3/tp3pad.py:/usr/local/lib/python3.12/dist-packages/vllm/models/glm5next/common/tp3pad.py:ro
  15. - ../experimental/tp3/vocab_parallel_embedding.py:/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/vocab_parallel_embedding.py:ro
  16. environment:
  17. - TP=3
  18. # adaptive-k.yaml's scheduler plus a data-parallel vision tower: its 16
  19. # ViT heads and 10240-wide merger do not split by 3.
  20. - EXTRA_ARGS=--scheduler-cls vllm.v1.core.sched.adaptive_k.AdaptiveKScheduler --mm-encoder-tp-mode data
  21. # The speculative config as it was here before SPEC_EXTRA (no
  22. # disable_eagle_block_drop: adaptive-k.yaml's copy never reached this layout).
  23. - SPEC_EXTRA={"attention_backend":"TRITON_ATTN","num_speculative_tokens_per_batch_size":[[1,1,7],[2,2,5],[3,3,4],[4,4,3],[5,5,2],[6,32,7]]}
  24. # Padded weights process differently: never restore a TP=4 snapshot.
  25. - VLLM_WEIGHT_SNAPSHOT_TAG=tp3pad-2026-09-28