vllm.model_executor.warmup.jit_warmup ¶
Shared interfaces and tracing helpers for explicit JIT warmup keys.
Classes:
-
JitWarmupRegistry–Collect and compile JIT kernels selected during runner setup.
-
VllmJitKernel–Kernel wrapper that owns dispatch, warmup keys, and compilation.
-
WarmupIntRange–Expand integers with range semantics or a custom monotonic progression.
Functions:
-
kernel_launcher–Delegate a declarative launch specification to its backend owner.
-
zip_inputs–Group row-wise dispatch inputs that should be expanded in lockstep.
JitWarmupRegistry ¶
Collect and compile JIT kernels selected during runner setup.
Methods:
-
activate–Collect registrations made in this context.
-
register–Register a kernel with the active registry, if one exists.
-
warmup–Expand registrations and compile each wrapper/key pair once.
Source code in vllm/model_executor/warmup/jit_warmup.py
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 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 | |
activate() ¶
Collect registrations made in this context.
register(kernel, *args, **kwargs) classmethod ¶
Register a kernel with the active registry, if one exists.
Source code in vllm/model_executor/warmup/jit_warmup.py
warmup() ¶
Expand registrations and compile each wrapper/key pair once.
Source code in vllm/model_executor/warmup/jit_warmup.py
VllmJitKernel ¶
Bases: Generic[CompileKeyT], ABC
Kernel wrapper that owns dispatch, warmup keys, and compilation.
Methods:
-
compile–Compile one warmup key.
-
dispatch–Build one compile key from one concrete dispatch point.
-
get_warmup_keys–Return compile keys that should be warmed for this kernel.
-
register_warmup–Register this kernel with the active runner's warmup registry.
-
warmup–Compile this kernel's warmup keys.
Source code in vllm/model_executor/warmup/jit_warmup.py
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 | |
_get_or_compile(compile_key, *, runtime_context=None) ¶
Return a cached executor, compiling it on a monitored cache miss.
Source code in vllm/model_executor/warmup/jit_warmup.py
compile(compile_key) abstractmethod ¶
dispatch(**kwargs) abstractmethod ¶
get_warmup_keys(*args, **kwargs) abstractmethod ¶
Return compile keys that should be warmed for this kernel.
register_warmup(*args, **kwargs) ¶
Register this kernel with the active runner's warmup registry.
warmup(*args, **kwargs) ¶
WarmupIntRange dataclass ¶
Expand integers with range semantics or a custom monotonic progression.
Source code in vllm/model_executor/warmup/jit_warmup.py
_WarmupInputRows dataclass ¶
_same_registration(left, right) ¶
True if two (args, kwargs) registrations are equivalent.
Source code in vllm/model_executor/warmup/jit_warmup.py
_same_value(left, right) ¶
True if two registration values are the same object or compare equal.
Identity is checked first so shared singletons (e.g. vllm_config, torch dtypes) short-circuit before any potentially deep or non-boolean __eq__.
Source code in vllm/model_executor/warmup/jit_warmup.py
kernel_launcher(call_fn) ¶
Delegate a declarative launch specification to its backend owner.
Source code in vllm/model_executor/warmup/jit_warmup.py
zip_inputs(*rows) ¶
Group row-wise dispatch inputs that should be expanded in lockstep.