-
Notifications
You must be signed in to change notification settings - Fork 0
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
fixing ablate_then_add operator with 0 magnitude steering #176
Conversation
WalkthroughThe changes primarily focus on updating dependencies, refining logic, and enhancing test coverage. The Changes
Sequence Diagram(s)sequenceDiagram
participant Test as test_run_persona_cross_steering_experiment
participant Function as run_persona_cross_steering_experiment
participant Model as GPTNeoXForCausalLM
participant Tokenizer as Tokenizer
Test ->> Function: Call with model and tokenizer
Function ->> Model: Utilize for processing
Function ->> Tokenizer: Utilize for tokenizing
Function -->> Test: Return None
Recent review detailsConfiguration used: .coderabbit.yaml Files ignored due to path filters (1)
Files selected for processing (4)
Files skipped from review due to trivial changes (1)
Additional comments not posted (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
When doing ablation, zero-magnitude steering vectors cause NaN issues. This PR skips steering if the magnitude is 0. This should be a minor performance boost as well for the 0 magnitude case.
Summary by CodeRabbit
Bug Fixes
steering-vectors
dependency to version0.12.1
, resolving compatibility issues.Tests
run_persona_cross_steering_experiment
, ensuring functionality with specific parameters.Refactor
direction_multiplier
is 0.evaluate_cross_steering
function.