Mamba backend recommends an installation extra that does not exist
Summary
When the Mamba backend cannot import mamba_ssm, both of its error paths
recommend installing either lm-eval[mamba] or .[mamba]. The project does
not currently declare a mamba optional dependency, so those commands do not
install the missing package and the same import failure remains.
Reproduction
In an environment without mamba_ssm, initialize the non-Hugging Face Mamba
backend so that it loads either the model configuration or model class.
The resulting error says:
please install mamba via `pip install lm-eval[mamba]` or `pip install -e .[mamba]`However, the mamba entry in the project's optional dependencies is commented
out because installation depends on the user's platform and accelerator setup.
Neither suggested extra is therefore available.
Expected behavior
The missing-dependency error should direct users to an installation command
that actually provides mamba_ssm, while retaining a link to the upstream
hardware-specific guidance.
The Mamba project currently documents the core installation as:
pip install mamba-ssm --no-build-isolationSee the upstream installation guide for CUDA and other platform-specific options.
Root cause and impact
The optional dependency was disabled in the project configuration because it cannot be installed uniformly on CPU-only and non-CUDA systems, but the two runtime messages were not updated. Users encounter a valid missing dependency, follow the provided recovery command, and still cannot load the backend.
Proposed resolution
Use one shared missing-dependency message in both import paths. Recommend the upstream core installation command and link to its platform-specific guide. Add regression coverage ensuring neither unavailable project extra is advertised.
Source: EleutherAI/lm-evaluation-harness