vllm.models.dots3_note.nvidia.attention ¶
Dots3 NOTE sliding-window MLA attention backends for Hopper.
Prefill and mixed batches expand the latent cache and use FlashAttention-3 varlen MHA. Decode-only batches use the Triton absorbed-MQA kernel.
Classes:
-
Dots3NoteFlashAttnPrefillBackend–FA3 varlen prefill for the NOTE SWA MLA dimensions.
-
Dots3NoteMLAMetadataBuilder–Keep decode on MQA and route prefill/mixed batches through FA3.
-
Dots3NotePaddedSparseBackend–NOTE DSA backend for cache rows padded to the SWA latent width.
-
Dots3NotePaddedSparseImpl–Read top-k KV directly from uniformly padded cache rows.
-
Dots3NoteTritonMLABackend–Internal NOTE SWA specialization; not a user-selectable backend.
Dots3NoteFlashAttnPrefillBackend ¶
Bases: FlashAttnPrefillBackend
FA3 varlen prefill for the NOTE SWA MLA dimensions.
Source code in vllm/models/dots3_note/nvidia/attention.py
Dots3NoteMLAMetadataBuilder ¶
Bases: TritonMLAMetadataBuilder
Keep decode on MQA and route prefill/mixed batches through FA3.
Source code in vllm/models/dots3_note/nvidia/attention.py
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | |
Dots3NotePaddedSparseBackend ¶
Bases: FlashAttnMLASparseBackend
NOTE DSA backend for cache rows padded to the SWA latent width.
Source code in vllm/models/dots3_note/nvidia/attention.py
Dots3NotePaddedSparseImpl ¶
Bases: FlashAttnMLASparseImpl
Read top-k KV directly from uniformly padded cache rows.
Source code in vllm/models/dots3_note/nvidia/attention.py
689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 | |
Dots3NoteTritonMLABackend ¶
Bases: TritonMLABackend
Internal NOTE SWA specialization; not a user-selectable backend.
Source code in vllm/models/dots3_note/nvidia/attention.py
_build_sliding_window_metadata(*, seq_lens_cpu, query_start_loc_cpu, sliding_window, workspace, workspace_size, device) ¶
Plan per-request latent-cache gathers for SWA varlen attention.