This commit is contained in:
fxmarty 2024-06-06 12:35:18 +00:00
parent 0d3cc033ad
commit e9b9a96ba8

View File

@ -412,9 +412,8 @@ def get_model(
sliding_window = config_dict.get("sliding_window", -1) sliding_window = config_dict.get("sliding_window", -1)
if sliding_window != -1 and not SUPPORTS_WINDOWING: if sliding_window != -1 and not SUPPORTS_WINDOWING:
logger.warning( logger.warning(
f"Flash attention is available, but doesn't support windowing which is required by model {model_id} for best performance." f"Flash attention is available, but doesn't support windowing which is required by model {model_id} for long contexts."
) )
# FLASH_ATTENTION = False
if model_type == MAMBA: if model_type == MAMBA:
return Mamba( return Mamba(