Skip to content

Add compatibility for newer sae_lens forward() return type#19

Open
Tauheed-Elahee wants to merge 1 commit intoJoshEngels:mainfrom
Tauheed-Elahee:sae-lens-compatibility
Open

Add compatibility for newer sae_lens forward() return type#19
Tauheed-Elahee wants to merge 1 commit intoJoshEngels:mainfrom
Tauheed-Elahee:sae-lens-compatibility

Conversation

@Tauheed-Elahee
Copy link

Newer versions of sae_lens changed forward() to return a reconstructed tensor instead of an object with feature_acts. Add hasattr check and fall back to encode() to get feature activations.

Newer versions of sae_lens changed forward() to return a reconstructed
tensor instead of an object with feature_acts. Add hasattr check and
fall back to encode() to get feature activations.
@Tauheed-Elahee Tauheed-Elahee force-pushed the sae-lens-compatibility branch from 890435a to ec99df8 Compare March 13, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant