-
Notifications
You must be signed in to change notification settings - Fork 100
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
[P1] Question regarding training flag. #139
Comments
Hi @frankaging , If I print the {self.training flag} in the forward pass function of Loreftintervention, I see it to be false after the first epoch. I was trying to figure out why this may be the case: but the training step in HF trainer does not turn on the training mode in the same way? the loreft scripts also had this line https://github.com/stanfordnlp/pyreft/blob/bc8a49c6e5307e7d67c910292d4035a1384c1790/examples/loreft/original_code/task_steer.py#L261C5-L261C29 before training. Could you help me understand if this is expected or this is an issue? How else can I track if model is in train or eval mode? Thanks! |
Also, if this is an issue it can have implications on whether interventions are being trained on in subsequent epochs, or is it just the classifier head being trained? |
@m-dev12 Hey, thanks for the input - it might take me a while to get back to this with actual testings since I am busy with other stuff right now. But here are a couple of pointers for you to test out stuff:
Keep us posted of your findings! |
Sure @frankaging thanks for the input! Let me try out a few things next week, I'll let you know. And yes, version might also be an issue, since I am on the latest transformer version. |
No description provided.
The text was updated successfully, but these errors were encountered: