Skip to content

Installation

  • Python 3.10 or higher
  • PyTorch 2.7+
  • A CUDA-capable GPU is recommended for running models
Terminal window
pip install murano-interp

The base install is deliberately lean: it carries only what every workflow needs (recording, steering, intervention, the causal substrate). Feature-specific libraries ship as extras, so you install for what you actually do:

ExtraUse casePulls in
(base)recording, steering, intervention, logits, ablation, metrics, paired datasetsnnsight, nnterp, torch, transformers
probelinear probingscikit-learn
dataloading datasets by name from the Hubdatasets
plotfigures and visualizationsmatplotlib, seaborn, plotly
saesparse autoencoder featuressae-lens
alleverything aboveall of the above

Combine extras as needed:

Terminal window
pip install "murano-interp[probe,plot]" # probing with figures
pip install "murano-interp[all]" # everything

If you call a feature whose extra is not installed, Murano raises a clear error naming the extra to install.

The PyPI distribution is murano-interp (the bare name murano is held by an unrelated OpenStack project). The Python module name is unchanged: import murano.

If you want to contribute or run from source:

Terminal window
git clone https://github.com/UKPLab/murano
cd murano
uv sync --all-extras --dev

Or with pip:

Terminal window
pip install -e ".[plot]"

Murano loads models from HuggingFace Hub. On first use, models are downloaded to the local cache (~/.cache/huggingface/hub). Subsequent runs load from cache without network access.

If your models require authentication (e.g. gated Llama weights), log in first:

Terminal window
huggingface-cli login
import murano
model = murano.Model("meta-llama/Llama-3.2-1B-Instruct")
print(model) # MuranoModel('meta-llama/Llama-3.2-1B-Instruct', layers=16, d=2048)