recoverssm.yaml 1.1 KB

1234567891011121314151617
  1. # KDA spec verify from one checkpoint state per request, ported from Kimi-K3's
  2. # RecoverSSM (fixes/recoverssm.py). On with this file;
  3. # VLLM_GLM5NEXT_RECOVERSSM=0 turns it off. The stock spec path keeps 1 + k recurrent states
  4. # per request and writes one per verified token. This verifies from the
  5. # checkpoint, records each token's inputs, and after sampling replays only
  6. # the accepted tokens into it. Each request then holds one KDA block per
  7. # group, where the stock path holds 1 + k (8 at k=7). The records cost
  8. # ~3.2 MiB per max_num_seqs row per rank, outside the pinned pool.
  9. # Stack after fixes.yaml (kda.py, causal_conv1d.py). model.py is sp.yaml's
  10. # file: it installs the runner's commit hook, and SP stays off without sp.yaml.
  11. services:
  12. glm53:
  13. volumes:
  14. - ../experimental/fixes/recoverssm.py:/usr/local/lib/python3.12/dist-packages/vllm/models/glm5next/common/recoverssm.py:ro
  15. - ../experimental/fixes/model.py:/usr/local/lib/python3.12/dist-packages/vllm/models/glm5next/common/model.py:ro
  16. environment:
  17. - VLLM_GLM5NEXT_RECOVERSSM=${VLLM_GLM5NEXT_RECOVERSSM:-1}