-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unsloth overwrites the forward call function of a model loaded by huggingface library #1713
Comments
yes that is correct. if you want to reuse the HF model call, you have to use reload from import_lib for transformers and then it should work |
I am using the |
I am trying out the GRPO notebook with a pretrained model as my reward model. Basically, I followed the notebook from this link https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_(8B)-GRPO.ipynb . I load the base model as the notebook do
Then I load my reward model using the huggingface library:
Then I execute
Then I got the following error:
So, unsloth overwrites the forward call of a model loaded by the hugging face library, then caused the error. I could switch my reward model to some unsloth-supported model, but I am wondering if this can be solved.
The text was updated successfully, but these errors were encountered: