vllm.models.qwen3_5.nvidia.model
¶
Inference-only Qwen3.5 Series compatible with HuggingFace weights.
Classes:
-
Qwen3_5ForConditionalGeneration– -
Qwen3_5RMSNorm–Gemma-style RMS normalization backed by flashinfer kernels.
Qwen3_5ForConditionalGeneration
¶
Bases: Qwen3VLForConditionalGeneration, IsHybrid
Methods:
-
forward–Run forward pass for Qwen3.5.
Source code in vllm/models/qwen3_5/nvidia/model.py
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 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 | |
forward(input_ids, positions, intermediate_tensors=None, inputs_embeds=None, **kwargs)
¶
Run forward pass for Qwen3.5.
With mrope enabled (default for Qwen3VL-class models), positions
has shape (3, seq_len), otherwise (seq_len,).
Source code in vllm/models/qwen3_5/nvidia/model.py
Qwen3_5RMSNorm
¶
Bases: Module
Gemma-style RMS normalization backed by flashinfer kernels.
When residual is given, the fused add + norm runs in place and the
updated (x, residual) pair is returned.
Methods:
-
forward_quant–forwardfused withlinear's input quantizationkey.
Source code in vllm/models/qwen3_5/nvidia/model.py
forward_quant(x, residual, linear, key, write_y=False)
¶
forward fused with linear's input quantization key.
x is not modified. Returns the quantized normed activation, the
normed activation in x's dtype when write_y (else None), and the
residual (x itself when residual is None).
Source code in vllm/models/qwen3_5/nvidia/model.py
_fused_gdn_gated_rms_norm_quant(*, x, out, out_proj, **kwargs)
¶
GDN gated norm, quantized for out_proj when it takes static FP8.
Source code in vllm/models/qwen3_5/nvidia/model.py
_norm_quant_key(linear)
¶
The input quant key of linear that the fused norms can produce.
Checked per call: keys are exposed after weight loading, and LoRA hides them (requires_unquantized_input).