Skip to content
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

Fix do_merge_lora raises an Exception in transformers v4.37.0 #1184

Conversation

tisorlawan
Copy link
Contributor

Description

transformers v4.37.0 introduced this change which causes do_merge_lora to raise an exception because the model contains bad generation config, which shown on the stacktrace below.

Traceback (most recent call last):
  File "/home/user/.pyenv/versions/3.10.10/lib/python3.10/site-packages/transformers/generation/configuration_utils.py", line 558, in save_pretrained
    raise ValueError(str([w.message for w in caught_warnings]))
ValueError: [UserWarning('`do_sample` is set to `False`. However, `temperature` is set to `0.9` -- this flag is only used in sample-based generation modes. You should set `do_sample=True` or u
nset `temperature`.'), UserWarning('`do_sample` is set to `False`. However, `top_p` is set to `0.6` -- this flag is only used in sample-based generation modes. You should set `do_sample=True`
or unset `top_p`.')]

@winglian winglian merged commit 02f2c72 into axolotl-ai-cloud:main Jan 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants