-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Optimize rl #2065
base: main
Are you sure you want to change the base?
Optimize rl #2065
Conversation
Sync local repository with remote update
…mbedding training code to be more concise in llama.py - Remove duplicate functools import in vision.py - Clean up unnecessary pass statements
unsloth/models/llama.py
Outdated
pass | ||
for get_embeddings_fn in ( | ||
model.get_input_embeddings, | ||
model.get_output_embeddings): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this result in an error if get_input_embeddings
or get_output_embeddings
aren't defined for model
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i think you might be right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielhanchen have you checked this? (9712a46)
unsloth/models/llama.py
Outdated
pass | ||
for get_embeddings_fn in ( | ||
model.get_input_embeddings, | ||
model.get_output_embeddings): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i think you might be right
unsloth/models/llama.py
Outdated
pass | ||
for get_embeddings_fn in ( | ||
model.get_input_embeddings, | ||
model.get_output_embeddings): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve performance in RL module