-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from jbloomAus/get_feature_from_neuronpedia
FEAT: Add API for getting Neuronpedia feature
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from sae_lens.analysis.neuronpedia_integration import get_neuronpedia_feature | ||
|
||
|
||
def test_get_neuronpedia_feature(): | ||
result = get_neuronpedia_feature( | ||
feature=0, layer=0, model="gpt2-small", dataset="res-jb" | ||
) | ||
|
||
assert result["modelId"] == "gpt2-small" | ||
assert result["layer"] == "0-res-jb" | ||
assert result["index"] == 0 |