hfppl icon indicating copy to clipboard operation
hfppl copied to clipboard

Example usage of `twist`

Open jagilley opened this issue 2 years ago • 0 comments

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.

jagilley avatar Sep 21 '23 01:09 jagilley