Commit b9f5fc6
[AMD][AgentX] kimik3: try lazy offload for fp8 KV; --block-size is inert on K3
The block-size attempt (run 30505656455) is void. K3 is hybrid, so vLLM raises
the attention block size until the attention page is at least the mamba/KDA
page (interface.py:911) and silently overrode --block-size 64 to 1536. Measured
pages are bf16 768 / fp8 1536, so that cell was byte-identical to the earlier
eager failures and died the same way. Keep the KV_BLOCK_SIZE knob but document
it as inert here. This also explains the connector's identical 14122 CPU blocks
across dtypes: fp8 halves bytes/token but doubles page tokens, so page bytes --
and manager.py:199's pool -- are unchanged.
New lever: lazy offload. Eager stores every completed block to CPU at once;
every fp8+connector death has come while the GPU pool was nearly empty (11.6%
usage, 0.0% external hit rate in 30505656455), i.e. mid store-storm with
nothing yet to gain from the host tier, and the last two were a 600s RCCL
_ALLGATHER_BASE hang rather than an OOM. Lazy only stores under GPU-block
pressure, removing nearly all connector traffic in that regime. It is also the
mode kimik3_fp4_mi355x_mtp.sh already pins for gfx950 (PR #2367).
Add a vllm-simple-fp8-lazy backend and swap the fp8b64 key for fp8lazy.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent f495ab7 commit b9f5fc6
2 files changed
Lines changed: 45 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
| |||
456 | 461 | | |
457 | 462 | | |
458 | 463 | | |
459 | | - | |
| 464 | + | |
460 | 465 | | |
461 | 466 | | |
462 | 467 | | |
| |||
558 | 563 | | |
559 | 564 | | |
560 | 565 | | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
566 | 573 | | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
572 | 577 | | |
573 | 578 | | |
574 | 579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
802 | | - | |
803 | | - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
804 | 807 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
812 | 815 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
| 816 | + | |
| 817 | + | |
819 | 818 | | |
820 | | - | |
821 | | - | |
822 | | - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
823 | 822 | | |
824 | 823 | | |
825 | 824 | | |
| |||
831 | 830 | | |
832 | 831 | | |
833 | 832 | | |
834 | | - | |
| 833 | + | |
835 | 834 | | |
836 | 835 | | |
837 | 836 | | |
| |||
0 commit comments