vllm.model_executor.layers.fused_moe.oracle.unquantized ¶
Classes:
-
UnquantizedMoEKernelOracle–Class-based view of the unquantized MoE kernel oracle.
Functions:
-
map_unquantized_backend–Map user's MoEBackend to UnquantizedMoeBackend.
-
select_unquantized_moe_backend–Select the primary Unquantized MoE backend.
UnquantizedMoEKernelOracle ¶
Bases: MoEKernelOracle[UnquantizedMoeBackend]
Class-based view of the unquantized MoE kernel oracle.
Each method delegates to its module-level counterpart so that instantiating and calling this class is bit-identical to calling the standalone functions. Follow-up PRs may move logic from the module-level functions into these methods.
Source code in vllm/model_executor/layers/fused_moe/oracle/unquantized.py
_get_priority_backends(moe_config) ¶
Get available backends in priority order based on platform and config.
This function can be extended to become more complex as needed.
Source code in vllm/model_executor/layers/fused_moe/oracle/unquantized.py
_trtllm_bf16_lora_supported(moe_config) ¶
Gate for routing LoRA-enabled BF16 MoE to the FlashInfer TRT-LLM gemm1_lora_delta path (PR #3153).
Source code in vllm/model_executor/layers/fused_moe/oracle/unquantized.py
map_unquantized_backend(runner_backend) ¶
Map user's MoEBackend to UnquantizedMoeBackend.
Source code in vllm/model_executor/layers/fused_moe/oracle/unquantized.py
select_unquantized_moe_backend(moe_config) ¶
Select the primary Unquantized MoE backend. Note: Shape-specific fallbacks may still occur at runtime.
Source code in vllm/model_executor/layers/fused_moe/oracle/unquantized.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | |