Installation¶
Requirements¶
- Python 3.10 or higher
- PyTorch 2.4 or higher
Install from PyPI¶
The simplest way to install NNsight is via pip:
Install from Source¶
For the latest development version, install directly from GitHub:
Or clone the repository and install in editable mode:
Optional Dependencies¶
vLLM Support¶
For high-performance inference with vLLM, install the vllm extra:
Verify Installation¶
Verify your installation by running:
Next Steps¶
Once installed, head to the Quick Start guide to run your first intervention!