[Bugfix] Widen flashinfer.comm import guard so a failed import doesn't abort engine startup (#52241)
Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>
This commit is contained in:
@@ -93,8 +93,8 @@ if find_spec("flashinfer"):
|
|||||||
_flashinfer_comm, "create_allreduce_fusion_workspace"
|
_flashinfer_comm, "create_allreduce_fusion_workspace"
|
||||||
):
|
):
|
||||||
flashinfer_comm = _flashinfer_comm
|
flashinfer_comm = _flashinfer_comm
|
||||||
except ImportError:
|
except Exception as e:
|
||||||
pass
|
logger.debug_once("flashinfer.comm import failed: %s", e)
|
||||||
|
|
||||||
if hasattr(torch.ops._C, "scaled_fp4_quant"):
|
if hasattr(torch.ops._C, "scaled_fp4_quant"):
|
||||||
STATIC_FP4_QUANT_OP = torch.ops._C.scaled_fp4_quant.out
|
STATIC_FP4_QUANT_OP = torch.ops._C.scaled_fp4_quant.out
|
||||||
|
|||||||
Reference in New Issue
Block a user