This commit is contained in:
Gerard Casas Saez 2025-06-17 09:44:06 -05:00 committed by GitHub
commit 2e1d1fecbe
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