Skip to content

Setting lazy_encoder/lazy_decoder in from_pretrained, adding return_activations#46

Closed
hannamw wants to merge 1 commit intomainfrom
release/20251101-124857
Closed

Setting lazy_encoder/lazy_decoder in from_pretrained, adding return_activations#46
hannamw wants to merge 1 commit intomainfrom
release/20251101-124857

Conversation

@hannamw
Copy link
Collaborator

@hannamw hannamw commented Nov 1, 2025

This PR adds in the ability to set lazy_encoder/ lazy_decoder when using ReplacementModel.from_pretrained. It also adds in a return_activations argument to intervention functions (default: True). When False, None is returned instead of activations, and activations are not computed except where necessary for the intervention. This allows for much faster interventions.

Squashed changes from speedups branch.
@hannamw hannamw closed this Nov 1, 2025
@hannamw hannamw deleted the release/20251101-124857 branch November 1, 2025 13:02
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