-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Broken Qwen2 7B Vision SFT Colab?: 'Qwen2VLCausalLMOutputWithPast' has no attribute 'forward' #1485
Comments
Never mind. It seems it works with the latest commit, but for some reason, the first time the cell is run fails, and after re-running it, works. Very weird, but it still works. |
I'm reopening the issue because I've tried to run it on Runpod, and I get the same issue:
with the way to fix it being
i.e. have the model loading part run twice, which is a bit of a hack (and while it's more okay on Colab, on scripts running on the cloud it's more of a pain)... |
same issue here |
I'm facing same issue here! It wasn't breaking things like that... Maybe because latest commits/updates |
In my case:
|
My previous enviroment |
I was able to rollback previous commits and find last working version of Unsloth:
After installation, go to: Remove import "merge_and_overwrite_lora" and save. Your algorithm will work again. |
use |
The latest version(=
|
Installing latest version of unsloth:
!pip uninstall unsloth -y && pip install --upgrade --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git
breaks the Qwen2 7B Vision Colab it seems(?)
Leading to:
The text was updated successfully, but these errors were encountered: