disable mamba in CPU

This commit is contained in:
Gerard Casas Saez 2025-06-13 12:34:28 -05:00 committed by GitHub
parent 3752143b39
commit aeabb7b71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,9 +189,12 @@ if FLASH_ATTENTION:
__all__.append(IdeficsCausalLM)
MAMBA_AVAILABLE = True
try:
if SYSTEM == "cpu":
MAMBA_AVAILABLE = False
else:
try:
from text_generation_server.models.mamba import Mamba
except ImportError as e:
except ImportError as e:
log_master(logger.warning, f"Could not import Mamba: {e}")
MAMBA_AVAILABLE = False