Skip to content
Edit this page

Install

muscari is not on PyPI. Install it from the repository:

pip install "git+https://github.com/tkhshtsh0917/muscari.git"

That is enough to train, evaluate and inspect SAEs. The other parts are extras:

Extra Adds Needed for
retrieval Sentence Transformers 6.3 or later the heads, the losses, eval-retriever, everything about retrievers
saelens SAELens the second SAE training backend (--trainer saelens)
llm Sentence Transformers and peft low-rank adapters for decoder language models
pip install "muscari[retrieval] @ git+https://github.com/tkhshtsh0917/muscari.git"

It needs Python 3.11 or later, PyTorch 2.6 or later and Transformers 4.48 or later. Sentence Transformers 6.3 in turn needs Transformers 5.

To pin a version, add its tag: git+https://github.com/tkhshtsh0917/muscari.git@v0.1.2.

For a development checkout, see Contributing.