fix logging msg for block manager (#3701)

This commit is contained in:
Simon Mo
2024-03-28 16:29:55 -07:00
committed by GitHub
parent c0935c96d3
commit 4716a32dd4
3 changed files with 5 additions and 4 deletions

View File

@@ -41,6 +41,8 @@ def _can_use_flash_attn(dtype: torch.dtype) -> bool:
try:
import flash_attn # noqa: F401
except ImportError:
logger.info("flash_attn is not found.")
logger.info(
"Cannot use FlashAttention because the package is not found. "
"Please install it for better performance.")
return False
return True