From 32803fb2797fcf1e006b385ac1f4bc55b1366792 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Wed, 15 Oct 2025 13:06:31 +0800 Subject: [PATCH] Super tiny improve FA3 import error message (#11590) --- sgl-kernel/python/sgl_kernel/flash_attn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sgl-kernel/python/sgl_kernel/flash_attn.py b/sgl-kernel/python/sgl_kernel/flash_attn.py index ea70abb18..f2f6d895f 100644 --- a/sgl-kernel/python/sgl_kernel/flash_attn.py +++ b/sgl-kernel/python/sgl_kernel/flash_attn.py @@ -6,7 +6,9 @@ import torch try: from sgl_kernel import flash_ops except: - raise ImportError("Can not import sgl_kernel. Please check your installation.") + raise ImportError( + "Can not import FA3 in sgl_kernel. Please check your installation." + ) try: from ._fa4_interface import flash_attn_varlen_func as flash_attn_varlen_func_v4