Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Add functionality from https://github.com/nrimsky/CAA #1

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ See `models/implementations/gpt2small.py` for an example of how to use this clas

### `models`

Model implementations. Currently only [gpt2](https://huggingface.co/openai-community/gpt2) is implemented as a basic example that will load on your laptop. You can add more models by following the same pattern.
Model implementations. Currently gpt2 and llama3 are implemented. You can add more models by following the same pattern.

### `notebooks`

Jupyter notebooks demonstrating basic use-cases.

## To do

- Integrate with SAE feature steering
- Integrate with SAE feature steering
- Add Gemma 2 implementation https://huggingface.co/google/gemma-2-9b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Layer Mult_1 Mult_-1
0 28.92 28.93
1 29.01 28.84
2 29.25 28.60
3 29.36 28.50
4 29.47 28.39
5 29.10 28.75
6 28.80 29.05
7 28.78 29.08
8 29.05 28.82
9 28.71 29.17
10 28.57 29.32
11 28.76 29.09
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \worse{0.56} & \same{0.56} & \better{0.56} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5649 0.5650 0.5650
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \worse{0.56} & \same{0.56} & \better{0.57} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5638 0.5650 0.5660
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \worse{0.56} & \same{0.56} & \better{0.57} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5642 0.5650 0.5657
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \better{0.57} & \same{0.56} & \worse{0.56} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5654 0.5650 0.5645
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \better{0.57} & \same{0.56} & \worse{0.56} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5668 0.5650 0.5631
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \better{0.57} & \same{0.56} & \worse{0.56} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5675 0.5650 0.5624
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Misconceptions & \better{0.57} & \same{0.56} & \worse{0.56} \\
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Category Mult_-1.0 Mult_0.0 Mult_1.0
Misconceptions 0.5680 0.5650 0.5619
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading