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
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
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 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 | |