Tutorials#

Walkthrough

Learn the basics

notebooks/tutorials/walkthrough.ipynb
Access LLMs

Use our hosted models

notebooks/tutorials/start_remote_access.ipynb
Activation Patching

Causal intervention

notebooks/tutorials/activation_patching.ipynb
Attribution Patching

Approximate patching

notebooks/tutorials/attribution_patching.ipynb
Boundless DAS

Identifying causal mechanisms

notebooks/tutorials/boundless_DAS.ipynb
Dictionary Learning

Sparse autoencoders

notebooks/tutorials/dict_learning.ipynb
Diffusion Lens

Explore diffusion model text embedding

notebooks/tutorials/diffusion_lens.ipynb
Function Vectors

Steer model behavior

notebooks/tutorials/function_vectors.ipynb
Logit Lens

Decode activations

notebooks/tutorials/logit_lens.ipynb
LoRA

Fine tuning for sentiment analysis

notebooks/tutorials/LoRA_tutorial.ipynb

Report Issues#

NNsight and NDIF are open-source and you can report issues, read, and clone the full source at ndif-team/nnsight. Also check out https://discuss.ndif.us/ to ask questions about our tutorials, share your projects in NNsight, or request new tutorials.