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

Example usage of twist #1

Open
jagilley opened this issue Sep 21, 2023 · 0 comments
Open

Example usage of twist #1

jagilley opened this issue Sep 21, 2023 · 0 comments

Comments

@jagilley
Copy link

jagilley commented Sep 21, 2023

Could you provide an example of how to use Model.twist()? Currently, I'm calling it in step() with values between 0 and 1. I'd imagine that the effect size should be magnified more than this to get a bigger difference after the exp function is called (e.g., multiplying by 10 prior to calling twist())?

EDIT: I've got an example of steering the model with differentials of cosine similarity to different embeddings using twist() up and running here, this can probably be closed. Happy to open a PR to add it to the examples folder if you like.

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

No branches or pull requests

1 participant