Main Tutorials#

Get Started
Predict
Control
Understand

Welcome! Follow the tutorials below to learn how to conduct interpretability research with nnsight.

Chat Templates

Format instructions with templates

notebooks/tutorials/get_started/chat_templates.ipynb
Logit Lens

Decode activations

notebooks/tutorials/probing/logit_lens.ipynb
Diffusion Lens

Explore diffusion model text embedding

notebooks/tutorials/probing/diffusion_lens.ipynb
Dictionary Learning

Sparse autoencoders

notebooks/tutorials/steering/dict_learning.ipynb
LoRA

Lightweight model adapter

notebooks/tutorials/steering/LoRA_tutorial.ipynb
Causal Mediation Analysis I

Use causal mediation to explain AI

notebooks/tutorials/causal_mediation_analysis/causal_mediation_analysis_i.ipynb
Causal Mediation Analysis II

Find causal mediators in LLMs

notebooks/tutorials/causal_mediation_analysis/causal_mediation_analysis_ii.ipynb