@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / a197eda9c3
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 6, 23:00 UTC

Add tuned H100 MoE configs for LFM2 8B and 24B (#36699)

tianshu-Michael-yu committed Mar 10, 2026 at 21:22 UTC a197eda9c3d1174ee31c4da8f8b302bddfb7f08a
2 files changed +166
vllm/model_executor/layers/fused_moe/configs/E=32,N=1792,device_name=NVIDIA_H100_80GB_HBM3.json new
+11
@@ -0,0 +1,11 @@
1 +{
2 + "triton_version": "3.6.0",
3 + "512": {
4 + "BLOCK_SIZE_M": 64,
5 + "BLOCK_SIZE_N": 128,
6 + "BLOCK_SIZE_K": 64,
7 + "GROUP_SIZE_M": 64,
8 + "num_warps": 4,
9 + "num_stages": 3
10 + }
11 +}
vllm/model_executor/layers/fused_moe/configs/E=64,N=1536,device_name=NVIDIA_H100_80GB_HBM3.json new
+155
@@ -0,0 +1,155 @@
1 +{
2 + "triton_version": "3.6.0",
3 + "1": {
4 + "BLOCK_SIZE_M": 16,
5 + "BLOCK_SIZE_N": 256,
6 + "BLOCK_SIZE_K": 128,
7 + "GROUP_SIZE_M": 16,
8 + "num_warps": 4,
9 + "num_stages": 3
10 + },
11 + "2": {
12 + "BLOCK_SIZE_M": 16,
13 + "BLOCK_SIZE_N": 64,
14 + "BLOCK_SIZE_K": 128,
15 + "GROUP_SIZE_M": 16,
16 + "num_warps": 4,
17 + "num_stages": 4
18 + },
19 + "4": {
20 + "BLOCK_SIZE_M": 16,
21 + "BLOCK_SIZE_N": 64,
22 + "BLOCK_SIZE_K": 256,
23 + "GROUP_SIZE_M": 16,
24 + "num_warps": 4,
25 + "num_stages": 3
26 + },
27 + "8": {
28 + "BLOCK_SIZE_M": 16,
29 + "BLOCK_SIZE_N": 32,
30 + "BLOCK_SIZE_K": 256,
31 + "GROUP_SIZE_M": 1,
32 + "num_warps": 4,
33 + "num_stages": 2
34 + },
35 + "16": {
36 + "BLOCK_SIZE_M": 16,
37 + "BLOCK_SIZE_N": 32,
38 + "BLOCK_SIZE_K": 128,
39 + "GROUP_SIZE_M": 16,
40 + "num_warps": 4,
41 + "num_stages": 5
42 + },
43 + "24": {
44 + "BLOCK_SIZE_M": 16,
45 + "BLOCK_SIZE_N": 128,
46 + "BLOCK_SIZE_K": 256,
47 + "GROUP_SIZE_M": 32,
48 + "num_warps": 4,
49 + "num_stages": 2
50 + },
51 + "32": {
52 + "BLOCK_SIZE_M": 16,
53 + "BLOCK_SIZE_N": 256,
54 + "BLOCK_SIZE_K": 128,
55 + "GROUP_SIZE_M": 1,
56 + "num_warps": 4,
57 + "num_stages": 3
58 + },
59 + "48": {
60 + "BLOCK_SIZE_M": 16,
61 + "BLOCK_SIZE_N": 256,
62 + "BLOCK_SIZE_K": 128,
63 + "GROUP_SIZE_M": 1,
64 + "num_warps": 4,
65 + "num_stages": 3
66 + },
67 + "64": {
68 + "BLOCK_SIZE_M": 16,
69 + "BLOCK_SIZE_N": 256,
70 + "BLOCK_SIZE_K": 128,
71 + "GROUP_SIZE_M": 1,
72 + "num_warps": 4,
73 + "num_stages": 3
74 + },
75 + "96": {
76 + "BLOCK_SIZE_M": 32,
77 + "BLOCK_SIZE_N": 256,
78 + "BLOCK_SIZE_K": 128,
79 + "GROUP_SIZE_M": 1,
80 + "num_warps": 4,
81 + "num_stages": 3
82 + },
83 + "128": {
84 + "BLOCK_SIZE_M": 32,
85 + "BLOCK_SIZE_N": 128,
86 + "BLOCK_SIZE_K": 128,
87 + "GROUP_SIZE_M": 1,
88 + "num_warps": 4,
89 + "num_stages": 3
90 + },
91 + "256": {
92 + "BLOCK_SIZE_M": 64,
93 + "BLOCK_SIZE_N": 64,
94 + "BLOCK_SIZE_K": 64,
95 + "GROUP_SIZE_M": 1,
96 + "num_warps": 4,
97 + "num_stages": 3
98 + },
99 + "512": {
100 + "BLOCK_SIZE_M": 128,
101 + "BLOCK_SIZE_N": 128,
102 + "BLOCK_SIZE_K": 64,
103 + "GROUP_SIZE_M": 1,
104 + "num_warps": 8,
105 + "num_stages": 3
106 + },
107 + "1024": {
108 + "BLOCK_SIZE_M": 128,
109 + "BLOCK_SIZE_N": 256,
110 + "BLOCK_SIZE_K": 64,
111 + "GROUP_SIZE_M": 1,
112 + "num_warps": 8,
113 + "num_stages": 4
114 + },
115 + "1536": {
116 + "BLOCK_SIZE_M": 128,
117 + "BLOCK_SIZE_N": 256,
118 + "BLOCK_SIZE_K": 64,
119 + "GROUP_SIZE_M": 1,
120 + "num_warps": 8,
121 + "num_stages": 4
122 + },
123 + "2048": {
124 + "BLOCK_SIZE_M": 128,
125 + "BLOCK_SIZE_N": 256,
126 + "BLOCK_SIZE_K": 64,
127 + "GROUP_SIZE_M": 1,
128 + "num_warps": 8,
129 + "num_stages": 4
130 + },
131 + "3072": {
132 + "BLOCK_SIZE_M": 128,
133 + "BLOCK_SIZE_N": 256,
134 + "BLOCK_SIZE_K": 64,
135 + "GROUP_SIZE_M": 32,
136 + "num_warps": 8,
137 + "num_stages": 4
138 + },
139 + "4096": {
140 + "BLOCK_SIZE_M": 128,
141 + "BLOCK_SIZE_N": 256,
142 + "BLOCK_SIZE_K": 64,
143 + "GROUP_SIZE_M": 1,
144 + "num_warps": 8,
145 + "num_stages": 4
146 + },
147 + "8192": {
148 + "BLOCK_SIZE_M": 128,
149 + "BLOCK_SIZE_N": 256,
150 + "BLOCK_SIZE_K": 64,
151 + "GROUP_SIZE_M": 1,
152 + "num_warps": 8,
153 + "num_stages": 4
154 + }
155 +}