Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Mechanistic Interpretability in Deep Learning
·
Module 1
Linear Algebra and PyTorch Instrumentation for Model Internals
1
Vector Operations in PyTorch
Compute vector norms, cosine similarities, and orthogonal projections with PyTorch tensors.
2
Tensor Shape Manipulation
Track tensor shapes through batched matrix multiplications, transpositions, and reshaping operations.
3
Implementing PyTorch Einsum Expressions
Translate a simple indexed tensor equation into a PyTorch einsum expression and verify it against an explicit implementation.
4
Identifying Dominant Patterns via SVD
Use singular value decomposition to identify dominant directions in an activation matrix.
5
Implementing PyTorch Forward Hooks for Activation Extraction
Register a PyTorch forward hook that records and safely detaches an intermediate activation.
6
Modifying Intermediate Activations with PyTorch Hooks
Use a PyTorch hook to replace an intermediate activation during inference.
7
Verifying Intervention Specificity
Verify that an activation intervention changes only the intended computation and leaves model parameters unchanged.
Next module isn't ready yet,
Back to course
Previous module
Next module