-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 AttributeError crash when running on non-CUDA systems #256
Conversation
This is a very minor update, but gets dream.py running on Mac MPS systems. |
Squash, please 😁 Otherwise, LGTM 👍 |
Just checked out this branch on an M1 Mac, but still getting an issue here.
|
Resolves that for me but script is still non-functional with:
|
As mentioned elsewhere, Mx/MPS support is very much W.I.P.; there's a PR open ti fix this exact issue. |
Yeah, I believed this is exactly that PR based on the branch name If it's not helpful, apologies. |
No worries! Feedback is always helpful. I wanted to set expectations for Mac users that things are in flux. |
I dunno why I get the excess commit messages. I think it's because I create a branch, make my edits, commit, and then get a warning that the branch is out of date with main and needs a merge. The funny thing is that I try to do a pull from origin before branching. Maybe it is the mixture of merging pull requests from the github interface and working locally that is tripping me up. Anyway, I've got the github interface set to doing a --squash each time. |
Probably Doing a rebase or fast-forward against main is the best practice. The only problem I have with always squashing everything in a PR is that there are plenty of times when you DO want multiple commits in history, to decouple things which are related (and thus in the same PR), but which don't depend on each other. It's not hard to imagine a scenario where you need to revert a single commit with a regression, but instead of doing that, you have to back out several "commits" worth of work from a single PR, then re-commit the changes which aren't involved with the regression. |
The issue is still here. Testing on M1 Mac Pro yields same error:
commenting out the torch.cuda.torch.cuda.reset_peak_memory_stats() line gets it to run (same as before), but the output is again the same:
Changing the device default to cpu doesn't make a difference. It looks like an error is generated with LayerNormKernelImpl, then the error handler catches it and prints the general message. |
It definitely takes a lot more discipline to manage a fast-moving multi-collaborator project like this one than any of the projects I've been involved in before. I guess rebase -i and I are going to get to be good friends. |
May I humbly offer my personal cheatsheet? https://github.com/ben-alkov/_git_-Beyond-The-Basics/blob/master/git%20-%20beyond%20the%20basics.md#commit-magic |
) * fix AttributeError crash when running on non-CUDA systems; closes issue invoke-ai#234 and issue invoke-ai#250 * although this prevents dream.py script from crashing immediately on MPS systems, MPS support still very much a work in progress.
No description provided.