Do not fail on missing moe-kernels (Intel-cpu).

This commit is contained in:
Nicolas Patry 2025-01-29 22:24:18 +01:00
parent b73aec7fa3
commit b2a13b92f9
No known key found for this signature in database
GPG Key ID: D2920555C90F704C

View File

@ -10,7 +10,11 @@ from text_generation_server.layers.fp8 import (
quant_dtype,
normalize_e4m3fn_to_native_float8,
)
try:
from moe_kernels.fused_moe import fused_moe
except Exception:
fused_moe = None
class FP8SparseMoELayer(nn.Module):